Main MRPT website > C++ reference for MRPT 1.3.2
List of all members | Public Member Functions | Public Attributes
mrpt::opengl::CPolyhedron::TPolyhedronEdge Struct Reference

Detailed Description

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...
 

Constructor & Destructor Documentation

mrpt::opengl::CPolyhedron::TPolyhedronEdge::TPolyhedronEdge ( )
inline

Default constructor.

Initializes to garbage.

Definition at line 52 of file CPolyhedron.h.

mrpt::opengl::CPolyhedron::TPolyhedronEdge::~TPolyhedronEdge ( )
inline

Destructor.

Definition at line 67 of file CPolyhedron.h.

Member Function Documentation

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.

bool mrpt::opengl::CPolyhedron::TPolyhedronEdge::operator== ( const TPolyhedronEdge e) const
inline

Comparison agains another edge.

Simmetry is taken into account.

Definition at line 56 of file CPolyhedron.h.

References v1, and v2.

Member Data Documentation

uint32_t mrpt::opengl::CPolyhedron::TPolyhedronEdge::v1

First vertex.

Definition at line 44 of file CPolyhedron.h.

Referenced by operator==().

uint32_t mrpt::opengl::CPolyhedron::TPolyhedronEdge::v2

Second vertex.

Definition at line 48 of file CPolyhedron.h.

Referenced by operator==().




Page generated by Doxygen 1.8.9.1 for MRPT 1.3.2 SVN:Unversioned directory at Tue Dec 8 09:49:21 UTC 2015