Struct CPolyhedron::TPolyhedronFace

Nested Relationships

This struct is a nested type of Class CPolyhedron.

Struct Documentation

struct TPolyhedronFace

Struct used to store a polyhedron face. Consists on a set of vertex indices and a normal vector.

Public Functions

inline TPolyhedronFace()

Fast default constructor. Initializes to garbage.

~TPolyhedronFace() = default

Destructor.

double area(const std::vector<mrpt::math::TPoint3D> &vertices) const

Given a set of vertices, computes the area of this face.

void getCenter(const std::vector<mrpt::math::TPoint3D> &vertices, mrpt::math::TPoint3D &p) const

Given a set of vertices, get this face’s center.

Public Members

std::vector<uint32_t> vertices

Vector of indices to the vertex list.

mrpt::math::TVector3D normal

Normal vector.