Class TPolygonWithPlane

Class Documentation

class TPolygonWithPlane

Slightly heavyweight type to speed-up calculations with polygons in 3D

See also

TPolygon3D,TPlane

Public Functions

TPolygonWithPlane(const TPolygon3D &p)

Constructor. Takes a polygon and computes each parameter.

TPolygonWithPlane() = default

Basic constructor. Needed to create containers

Public Members

TPolygon3D poly

Actual polygon.

TPlane plane

Plane containing the polygon.

mrpt::math::TPose3D pose

Plane’s pose.

See also

inversePose

mrpt::math::TPose3D inversePose

Plane’s inverse pose.

See also

pose

TPolygon2D poly2D

Polygon, after being projected to the plane using inversePose.

See also

inversePose

Public Static Functions

static void getPlanes(const std::vector<TPolygon3D> &oldPolys, std::vector<TPolygonWithPlane> &newPolys)

Static method for vectors. Takes a set of polygons and creates every TPolygonWithPlane