Main MRPT website > C++ reference
MRPT logo
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 63 of file CPolyhedron.h.

#include <mrpt/opengl/CPolyhedron.h>

List of all members.

Public Member Functions

 TPolyhedronEdge ()
 Default constructor.
bool operator== (const TPolyhedronEdge &e) const
 Comparison agains another edge.
double length (const vector< 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.

Constructor & Destructor Documentation

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

Default constructor.

Initializes to garbage.

Definition at line 75 of file CPolyhedron.h.

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

Destructor.

Definition at line 90 of file CPolyhedron.h.


Member Function Documentation

double mrpt::opengl::CPolyhedron::TPolyhedronEdge::length ( const vector< 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 79 of file CPolyhedron.h.

References v1, and v2.


Member Data Documentation

First vertex.

Definition at line 67 of file CPolyhedron.h.

Referenced by operator==().

Second vertex.

Definition at line 71 of file CPolyhedron.h.

Referenced by operator==().




Page generated by Doxygen 1.7.1 for MRPT 0.9.4 SVN: at Mon Jan 10 23:33:19 UTC 2011