MRPT
2.0.4
|
Slightly heavyweight type to speed-up calculations with polygons in 3D.
Definition at line 25 of file TPolygonWithPlane.h.
#include <mrpt/math/TPolygonWithPlane.h>
Public Member Functions | |
TPolygonWithPlane (const TPolygon3D &p) | |
Constructor. More... | |
TPolygonWithPlane ()=default | |
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::math::TPose3D | pose |
Plane's pose. More... | |
mrpt::math::TPose3D | inversePose |
Plane's inverse pose. More... | |
TPolygon2D | poly2D |
Polygon, after being projected to the plane using inversePose. More... | |
TPolygonWithPlane::TPolygonWithPlane | ( | const TPolygon3D & | p | ) |
Constructor.
Takes a polygon and computes each parameter.
Definition at line 19 of file TPolygonWithPlane.cpp.
References mrpt::math::TPose3D::fromHomogeneousMatrix(), mrpt::math::TPlane::getAsPose3D(), mrpt::math::TPolygon3D::getBestFittingPlane(), mrpt::math::TPose3D::getInverseHomogeneousMatrix(), inversePose, plane, poly, poly2D, pose, and mrpt::math::internal::unsafeProjectPolygon().
|
default |
|
static |
Static method for vectors.
Takes a set of polygons and creates every TPolygonWithPlane
Definition at line 30 of file TPolygonWithPlane.cpp.
mrpt::math::TPose3D mrpt::math::TPolygonWithPlane::inversePose |
Plane's inverse pose.
Definition at line 35 of file TPolygonWithPlane.h.
Referenced by intersect(), and TPolygonWithPlane().
TPlane mrpt::math::TPolygonWithPlane::plane |
Plane containing the polygon.
Definition at line 31 of file TPolygonWithPlane.h.
Referenced by intersect(), and TPolygonWithPlane().
TPolygon3D mrpt::math::TPolygonWithPlane::poly |
Actual polygon.
Definition at line 29 of file TPolygonWithPlane.h.
Referenced by intersect(), and TPolygonWithPlane().
TPolygon2D mrpt::math::TPolygonWithPlane::poly2D |
Polygon, after being projected to the plane using inversePose.
Definition at line 38 of file TPolygonWithPlane.h.
Referenced by intersect(), and TPolygonWithPlane().
mrpt::math::TPose3D mrpt::math::TPolygonWithPlane::pose |
Plane's pose.
Definition at line 33 of file TPolygonWithPlane.h.
Referenced by intersect(), and TPolygonWithPlane().
Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |