#include <mrpt/opengl/CPolyhedron.h>
Public Member Functions | |
TPolyhedronFace () | |
Fast default constructor. | |
~TPolyhedronFace () | |
Destructor. | |
double | area (const vector< TPoint3D > &vertices) const |
Given a set of vertices, computes the area of this face. | |
void | getCenter (const vector< TPoint3D > &vertices, TPoint3D &p) const |
Given a set of vertices, get this face's center. | |
Public Attributes | |
vector< uint32_t > | vertices |
Vector of indices to the vertex list. | |
double | normal [3] |
Normal vector. |
Consists on a set of vertex indices and a normal vector.
Definition at line 88 of file CPolyhedron.h.
mrpt::opengl::CPolyhedron::TPolyhedronFace::TPolyhedronFace | ( | ) | [inline] |
mrpt::opengl::CPolyhedron::TPolyhedronFace::~TPolyhedronFace | ( | ) | [inline] |
double mrpt::opengl::CPolyhedron::TPolyhedronFace::area | ( | const vector< TPoint3D > & | vertices | ) | const |
Given a set of vertices, computes the area of this face.
void mrpt::opengl::CPolyhedron::TPolyhedronFace::getCenter | ( | const vector< TPoint3D > & | vertices, | |
TPoint3D & | p | |||
) | const |
Given a set of vertices, get this face's center.
vector<uint32_t> mrpt::opengl::CPolyhedron::TPolyhedronFace::vertices |
Vector of indices to the vertex list.
Definition at line 92 of file CPolyhedron.h.
Referenced by mrpt::opengl::CPolyhedron::Create().
Page generated by Doxygen 1.5.9 for MRPT 0.7.1 SVN: at Mon Aug 17 22:21:34 EDT 2009 |