Slightly heavyweight type to speed-up calculations with polygons in 3D.
Definition at line 32 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 std::vector< TPolygon3D > &oldPolys, std::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... | |
math::TPolygonWithPlane::TPolygonWithPlane | ( | const TPolygon3D & | p | ) |
Constructor.
Takes a polygon and computes each parameter.
Definition at line 620 of file geometry.cpp.
References mrpt::math::TPlane::getAsPose3D(), mrpt::math::TPolygon3D::getBestFittingPlane(), inversePose, plane, poly, poly2D, pose, and unsafeProjectPolygon().
|
inline |
|
static |
Static method for vectors.
Takes a set of polygons and creates every TPolygonWithPlane
Definition at line 627 of file geometry.cpp.
mrpt::poses::CPose3D mrpt::math::TPolygonWithPlane::inversePose |
Plane's inverse pose.
Definition at line 42 of file geometry.h.
Referenced by intersect(), and TPolygonWithPlane().
TPlane mrpt::math::TPolygonWithPlane::plane |
Plane containing the polygon.
Definition at line 38 of file geometry.h.
Referenced by intersect(), and TPolygonWithPlane().
TPolygon3D mrpt::math::TPolygonWithPlane::poly |
Actual polygon.
Definition at line 36 of file geometry.h.
Referenced by intersect(), and TPolygonWithPlane().
TPolygon2D mrpt::math::TPolygonWithPlane::poly2D |
Polygon, after being projected to the plane using inversePose.
Definition at line 45 of file geometry.h.
Referenced by intersect(), and TPolygonWithPlane().
mrpt::poses::CPose3D mrpt::math::TPolygonWithPlane::pose |
Plane's pose.
Definition at line 40 of file geometry.h.
Referenced by intersect(), and TPolygonWithPlane().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |