58 size_t numEdges,
double radius,
TPolygon3D& poly);
65 size_t numEdges,
double radius,
TPolygon3D& poly,
static void createRegularPolygon(size_t numEdges, double radius, TPolygon3D &poly)
Static method to create a regular polygon, given its size and radius.
TPolygon3D(const std::vector< TPoint3D > &v)
Implicit constructor from a 3D points vector.
bool isSkew() const
Check whether the polygon is skew.
TPolygon3D()
Default constructor.
This base provides a set of functions for maths stuff.
void generate2DObject(TPolygon2D &p) const
Projects into a 2D space, discarding the z.
3D Plane, represented by its equation
bool getPlane(TPlane &p) const
Gets a plane which contains the polygon.
void removeRedundantVertices()
Erase every redundant vertex, thus saving space.
#define MRPT_DECLARE_TTYPENAME_NO_NAMESPACE(_TYPE, __NS)
Declares a typename to be "type" (without the NS prefix)
bool contains(const TPoint3D &point) const
Check whether a point is inside (or within geometryEpsilon of a polygon edge).
double distance(const TPoint3D &point) const
Distance to point (always >=0)
Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).
void removeRepeatedVertices()
Remove polygon's repeated vertices.
TPolygon3D(size_t N)
Constructor for a given size.
void getAsSegmentList(std::vector< TSegment3D > &v) const
Gets as set of segments, instead of set of points.
void getBestFittingPlane(TPlane &p) const
Gets the best fitting plane, disregarding whether the polygon actually fits inside or not...
2D polygon, inheriting from std::vector<TPoint2D>.
3D polygon, inheriting from std::vector<TPoint3D>
void getCenter(TPoint3D &p) const
Get polygon's central point.