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. More... | |
| bool | operator== (const TPolyhedronEdge &e) const |
| Comparison agains another edge. More... | |
| double | length (const std::vector< mrpt::math::TPoint3D > &vs) const |
| Given a set of vertices, computes the length of the vertex. More... | |
| ~TPolyhedronEdge () | |
| Destructor. More... | |
Public Attributes | |
| uint32_t | v1 |
| First vertex. More... | |
| uint32_t | v2 |
| Second vertex. More... | |
|
inline |
|
inline |
Destructor.
Definition at line 67 of file CPolyhedron.h.
| double CPolyhedron::TPolyhedronEdge::length | ( | const std::vector< mrpt::math::TPoint3D > & | vs | ) | const |
Given a set of vertices, computes the length of the vertex.
Definition at line 336 of file CPolyhedron.cpp.
References mrpt::math::distance().
|
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 |
First vertex.
Definition at line 44 of file CPolyhedron.h.
Referenced by mrpt::opengl::CPolyhedron::addEdges(), faceContainsEdge(), mrpt::opengl::operator<<(), operator==(), mrpt::opengl::operator>>(), searchForEdge(), and mrpt::opengl::CPolyhedron::truncate().
| uint32_t mrpt::opengl::CPolyhedron::TPolyhedronEdge::v2 |
Second vertex.
Definition at line 48 of file CPolyhedron.h.
Referenced by mrpt::opengl::CPolyhedron::addEdges(), faceContainsEdge(), mrpt::opengl::operator<<(), operator==(), mrpt::opengl::operator>>(), searchForEdge(), and mrpt::opengl::CPolyhedron::truncate().
| Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019 |