Struct used to store a polyhedron face.
Consists on a set of vertex indices and a normal vector.
Definition at line 77 of file CPolyhedron.h.
#include <mrpt/opengl/CPolyhedron.h>
Public Member Functions | |
| TPolyhedronFace () | |
| Fast default constructor. More... | |
| ~TPolyhedronFace () | |
| Destructor. More... | |
| double | area (const vector< TPoint3D > &vertices) const |
| Given a set of vertices, computes the area of this face. More... | |
| void | getCenter (const vector< TPoint3D > &vertices, TPoint3D &p) const |
| Given a set of vertices, get this face's center. More... | |
Public Attributes | |
| vector< uint32_t > | vertices |
| Vector of indices to the vertex list. More... | |
| double | normal [3] |
| Normal vector. More... | |
|
inline |
|
inline |
Destructor.
Definition at line 93 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.
| double mrpt::opengl::CPolyhedron::TPolyhedronFace::normal[3] |
Normal vector.
Definition at line 85 of file CPolyhedron.h.
| vector<uint32_t> mrpt::opengl::CPolyhedron::TPolyhedronFace::vertices |
Vector of indices to the vertex list.
Definition at line 81 of file CPolyhedron.h.
| Page generated by Doxygen 1.8.8 for MRPT 1.2.2 SVN:Unversioned directory at Tue Oct 14 02:14:08 UTC 2014 |