|
MVSim
Lightweight simulator for 2.5D vehicles and robots
|
#include <Shape2p5.h>
Public Member Functions | |
| void | buildInit (const mrpt::math::TPoint2Df &bbMin, const mrpt::math::TPoint2Df &bbMax, int numCells=100) |
| void | buildAddPoint (const mrpt::math::TPoint3Df &pt) |
| void | buildAddTriangle (const mrpt::opengl::TTriangle &t) |
| const mrpt::math::TPolygon2D & | getContour () const |
| double | volume () const |
| void | mergeWith (const Shape2p5 &s) |
| void | setShapeManual (const mrpt::math::TPolygon2D &contour, const float zMin, const float zMax) |
| float | zMin () const |
| float | zMax () const |
| void | clipZMin (float v) |
| void | clipZMax (float v) |
| std::string | asString () const |
A "2.5" shape: a 2D polygon + a [zMin,zMax] height range
The actual 2.5 shape is evaluated the first time getContour() is called, given all former calls to buildAddPoint() or buildAddTriangle() and a ray-tracing algorithm.