Class CSetOfTexturedTriangles

Inheritance Relationships

Base Types

Class Documentation

class CSetOfTexturedTriangles : public virtual mrpt::viz::CVisualObject, public mrpt::viz::VisualObjectParams_TexturedTriangles

A set of textured triangles. This class can be used to draw any solid, arbitrarily complex object with textures.

See also

opengl::Scene

Public Types

using TVertex = mrpt::viz::TTriangle::Vertex
using TTriangle = mrpt::viz::TTriangle

Public Functions

CSetOfTexturedTriangles() = default
virtual ~CSetOfTexturedTriangles() override = default
virtual mrpt::math::TBoundingBoxf internalBoundingBoxLocal() const override

Evaluates the bounding box of this object (including possible children) in the coordinate frame of the object parent.

inline void clearTriangles()
inline size_t getTrianglesCount() const
inline TTriangle getTriangle(size_t idx) const
inline void getTriangle(size_t idx, TTriangle &t) const
inline void insertTriangle(const TTriangle &t)
virtual bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const override

Simulation of ray-trace, given a pose. Returns true if the ray effectively collisions with the object (returning the distance to the origin of the ray in “dist”), or false in other case. “dist” variable yields undefined behaviour when false is returned