Struct used to store a polyhedron face.
Consists on a set of vertex indices and a normal vector.
#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 112 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 104 of file CPolyhedron.h.
Vector of indices to the vertex list.
Definition at line 100 of file CPolyhedron.h.
Referenced by mrpt::opengl::CPolyhedron::Create().
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |