void getTriangle(size_t idx, TTriangle &t) const
void insertTriangle(const TTriangle &t)
A base class for all OpenGL objects with loadable textures.
const TTriangle & getTriangle(size_t idx) const
void readFromStream(mrpt::utils::CStream &in)
void writeToStream(mrpt::utils::CStream &out) const
void render_texturedobj() const override
Must be implemented by derived classes.
void readFromStream(mrpt::utils::CStream &in)
void writeToStream(mrpt::utils::CStream &out) const
size_t getTrianglesCount() const
virtual bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const override
Simulation of ray-trace, given a pose.
std::vector< TTriangle > m_triangles
Triangle array.
virtual ~CSetOfTexturedTriangles()
Private, virtual destructor: only can be deleted from smart pointers.
void getBoundingBox(mrpt::math::TPoint3D &bb_min, mrpt::math::TPoint3D &bb_max) const override
Evaluates the bounding box of this object (including possible children) in the coordinate frame of th...
CSetOfTexturedTriangles()
Constructor.
A set of textured triangles.