Struct CPolyhedron::TPolyhedronEdge

Nested Relationships

This struct is a nested type of Class CPolyhedron.

Struct Documentation

struct TPolyhedronEdge

Struct used to store a polyhedron edge. The struct consists only of two vertex indices, used to access the polyhedron vertex list.

Public Functions

TPolyhedronEdge() = default

Default constructor. Initializes to garbage.

inline bool operator==(const TPolyhedronEdge &e) const

Comparison against another edge. Simmetry is taken into account.

double length(const std::vector<mrpt::math::TPoint3D> &vs) const

Given a set of vertices, computes the length of the vertex.

~TPolyhedronEdge() = default

Destructor.

Public Members

uint32_t v1 = 0

Vertices.

uint32_t v2 = 0