Struct used to store a polyhedron edge.
The struct consists only of two vertex indices, used to access the polyhedron vertex list.
Definition at line 40 of file CPolyhedron.h.
#include <mrpt/opengl/CPolyhedron.h>
Public Member Functions | |
TPolyhedronEdge () | |
Default constructor. | |
bool | operator== (const TPolyhedronEdge &e) const |
Comparison agains another edge. | |
double | length (const std::vector< mrpt::math::TPoint3D > &vs) const |
Given a set of vertices, computes the length of the vertex. | |
~TPolyhedronEdge () | |
Destructor. | |
Public Attributes | |
uint32_t | v1 |
First vertex. | |
uint32_t | v2 |
Second vertex. | |
|
inline |
|
inline |
Destructor.
Definition at line 67 of file CPolyhedron.h.
double mrpt::opengl::CPolyhedron::TPolyhedronEdge::length | ( | const std::vector< mrpt::math::TPoint3D > & | vs | ) | const |
Given a set of vertices, computes the length of the vertex.
|
inline |
Comparison agains another edge.
Simmetry is taken into account.
Definition at line 56 of file CPolyhedron.h.
uint32_t mrpt::opengl::CPolyhedron::TPolyhedronEdge::v1 |
uint32_t mrpt::opengl::CPolyhedron::TPolyhedronEdge::v2 |
Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Wed Feb 15 01:46:32 UTC 2023 |