Main MRPT website > C++ reference
MRPT logo
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes

Detailed Description

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

See also
TPolygon3D,TPlane

Definition at line 73 of file geometry.h.

#include <mrpt/math/geometry.h>

Public Member Functions

 TPolygonWithPlane (const TPolygon3D &p)
 Constructor. More...
 
 TPolygonWithPlane ()
 Basic constructor. More...
 

Static Public Member Functions

static void getPlanes (const vector< TPolygon3D > &oldPolys, vector< TPolygonWithPlane > &newPolys)
 Static method for vectors. More...
 

Public Attributes

TPolygon3D poly
 Actual polygon. More...
 
TPlane plane
 Plane containing the polygon. More...
 
mrpt::poses::CPose3D pose
 Plane's pose. More...
 
mrpt::poses::CPose3D inversePose
 Plane's inverse pose. More...
 
TPolygon2D poly2D
 Polygon, after being projected to the plane using inversePose. More...
 

Constructor & Destructor Documentation

◆ TPolygonWithPlane() [1/2]

mrpt::math::TPolygonWithPlane::TPolygonWithPlane ( const TPolygon3D p)

Constructor.

Takes a polygon and computes each parameter.

◆ TPolygonWithPlane() [2/2]

mrpt::math::TPolygonWithPlane::TPolygonWithPlane ( )
inline

Basic constructor.

Needed to create containers.

See also
TPolygonWithPlane(const TPolygon3D &)

Definition at line 106 of file geometry.h.

Member Function Documentation

◆ getPlanes()

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

Static method for vectors.

Takes a set of polygons and creates every TPolygonWithPlane

Member Data Documentation

◆ inversePose

mrpt::poses::CPose3D mrpt::math::TPolygonWithPlane::inversePose

Plane's inverse pose.

See also
pose

Definition at line 92 of file geometry.h.

◆ plane

TPlane mrpt::math::TPolygonWithPlane::plane

Plane containing the polygon.

Definition at line 82 of file geometry.h.

◆ poly

TPolygon3D mrpt::math::TPolygonWithPlane::poly

Actual polygon.

Definition at line 78 of file geometry.h.

◆ poly2D

TPolygon2D mrpt::math::TPolygonWithPlane::poly2D

Polygon, after being projected to the plane using inversePose.

See also
inversePose

Definition at line 97 of file geometry.h.

◆ pose

mrpt::poses::CPose3D mrpt::math::TPolygonWithPlane::pose

Plane's pose.

See also
inversePose

Definition at line 87 of file geometry.h.




Page generated by Doxygen 1.8.14 for MRPT 1.0.2 SVN: at lun oct 28 00:52:41 CET 2019 Hosted on:
SourceForge.net Logo