Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Public Attributes

mrpt::opengl::CPolyhedron::TPolyhedronFace Struct Reference


Detailed Description

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>

List of all members.

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.

Constructor & Destructor Documentation

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

Fast default constructor.

Initializes to garbage.

Definition at line 107 of file CPolyhedron.h.

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

Destructor.

Definition at line 111 of file CPolyhedron.h.


Member Function Documentation

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.


Member Data Documentation

Normal vector.

Definition at line 103 of file CPolyhedron.h.

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:40:17 UTC 2011