void readFromStream(mrpt::serialization::CArchive &in)
void writeToStream(mrpt::serialization::CArchive &out) const
void readFromStream(mrpt::serialization::CArchive &in)
CSetOfTexturedTriangles()
Constructor.
size_t getTrianglesCount() const
void writeToStream(mrpt::serialization::CArchive &out) const
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...
virtual ~CSetOfTexturedTriangles()
Private, virtual destructor: only can be deleted from smart pointers.
void getTriangle(size_t idx, TTriangle &t) const
void insertTriangle(const TTriangle &t)
const TTriangle & getTriangle(size_t idx) const
A base class for all OpenGL objects with loadable textures.
virtual bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const override
Simulation of ray-trace, given a pose.
void render_texturedobj() const override
Must be implemented by derived classes.
std::vector< TTriangle > m_triangles
Triangle array.
A set of textured triangles.