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
~CSetOfTexturedTriangles() override
Private, virtual destructor: only can be deleted from smart pointers.
void render_texturedobj() const override
Must be implemented by derived classes.
size_t getTrianglesCount() const
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.
void writeToStream(mrpt::serialization::CArchive &out) const
void readFromStream(mrpt::serialization::CArchive &in)
void readFromStream(mrpt::serialization::CArchive &in)
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...
void writeToStream(mrpt::serialization::CArchive &out) const
CSetOfTexturedTriangles()
Constructor.
A set of textured triangles.