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