46 #ifndef vpMbtPolygon_HH
47 #define vpMbtPolygon_HH
49 #include <visp3/core/vpPoint.h>
50 #include <visp3/core/vpMeterPixelConversion.h>
51 #include <visp3/core/vpPixelMeterConversion.h>
52 #include <visp3/core/vpPolygon3D.h>
101 inline std::string
getName()
const {
return name;}
105 virtual bool isVisible(
const vpHomogeneousMatrix &cMo,
const double alpha,
const bool &modulo =
false,
116 virtual inline void setIndex(
const int i ) { index = i ; }
119 void setLod(
const bool use_lod);
131 this->minLineLengthThresh = min_line_length;
144 this->minPolygonAreaThresh = min_polygon_area;
152 inline void setName(
const std::string &face_name) {
153 this->name = face_name;
162 this->hasOrientation = oriented;
Implements a 3D polygon with render functionnalities like clipping.
std::string name
Name of the polygon.
Implementation of an homogeneous matrix and operations on such kind of matrices.
bool hasOrientation
Boolean that specify if the polygon has an orientation or not (mainly used for cylinders) ...
int index
Index of the polygon. Cannot be unsigned int because default value is -1.
void setMinPolygonAreaThresh(const double min_polygon_area)
void setName(const std::string &face_name)
double minLineLengthThresh
Threshold for minimum line length in pixel to consider if the line is visible or not in LOD case...
Implementation of a polygon of the model used by the model-based tracker.
std::string getName() const
Generic class defining intrinsic camera parameters.
double minPolygonAreaThresh
Threshold for minimum polygon area in pixel to consider if the polygon is visible or not in LOD case...
void setIsPolygonOriented(const bool &oriented)
vpPolygon3D & operator=(const vpPolygon3D &mbtp)
bool isappearing
flag to specify whether the face is appearing or not
bool useLod
Flag to specify if the visibility of the polygon depends also of the current level of detail (LOD) ...
bool isvisible
flag to specify whether the face is visible or not
void setMinLineLengthThresh(const double min_line_length)
virtual void setIndex(const int i)