Struct used to store a polyhedron face.
Consists on a set of vertex indices and a normal vector.
Definition at line 95 of file CPolyhedron.h.
#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. |
mrpt::opengl::CPolyhedron::TPolyhedronFace::TPolyhedronFace | ( | ) | [inline] |
mrpt::opengl::CPolyhedron::TPolyhedronFace::~TPolyhedronFace | ( | ) | [inline] |
Destructor.
Definition at line 111 of file CPolyhedron.h.
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.
Normal vector.
Definition at line 103 of file CPolyhedron.h.
vector<uint32_t> mrpt::opengl::CPolyhedron::TPolyhedronFace::vertices |
Vector of indices to the vertex list.
Definition at line 99 of file CPolyhedron.h.
Referenced by mrpt::opengl::CPolyhedron::Create().
Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:16:28 UTC 2011 |