MRPT logo

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

Struct used to store a polyhedron face. More...

#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.


Detailed Description

Struct used to store a polyhedron face.

Consists on a set of vertex indices and a normal vector.

Definition at line 88 of file CPolyhedron.h.


Constructor & Destructor Documentation

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

Fast default constructor.

Initializes to garbage.

Definition at line 100 of file CPolyhedron.h.

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

Destructor.

Definition at line 104 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 96 of file CPolyhedron.h.

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.7.1 for MRPT 0.7.1 SVN: at Mon Aug 17 23:10:56 EDT 2009