The Parametric Pseudo-Manifold (PPS) Library 1.0
|
This class represents a face (i.e., a triangle) from a surface mesh represented by the DCEL data structure. More...
#include <face.h>
Public Types | |
typedef dcel::Halfedge < VAttrib, FAttrib, EAttrib, HAttrib > | Halfedge |
Defines Halfedge as an alias for dcel::Halfedge< VAttrib, FAttrib , EAttrib , HAttrib >. | |
Public Member Functions | |
Face (Halfedge *h) | |
Creates an instance of this class. | |
~Face () | |
Destroys an instance of this class. | |
Halfedge * | get_halfedge () const |
Returns a pointer to the first half-edge of this face. | |
void | set_halfedge (Halfedge *h) |
Assigns an address to the pointer to the first half-edge of this face. | |
FAttrib & | get_attributes () |
Returns the set of attributes associated with this face. | |
Private Attributes | |
Halfedge * | _halfedge |
Pointer to the first half-edge of the half-edge cycle of this face. | |
FAttrib | _attributes |
Set of attributes associated with this face. |
This class represents a face (i.e., a triangle) from a surface mesh represented by the DCEL data structure.
dcel::Face< VAttrib, FAttrib, EAttrib, HAttrib >::Face | ( | Halfedge * | h | ) | [inline] |
FAttrib & dcel::Face< VAttrib, FAttrib, EAttrib, HAttrib >::get_attributes | ( | ) | [inline] |
Returns the set of attributes associated with this face.
Definition at line 142 of file face.h.
References dcel::Face< VAttrib, FAttrib, EAttrib, HAttrib >::_attributes.
{ return _attributes ; }
Halfedge * dcel::Face< VAttrib, FAttrib, EAttrib, HAttrib >::get_halfedge | ( | ) | const [inline] |
Returns a pointer to the first half-edge of this face.
Definition at line 114 of file face.h.
References dcel::Face< VAttrib, FAttrib, EAttrib, HAttrib >::_halfedge.
{ return _halfedge ; }
void dcel::Face< VAttrib, FAttrib, EAttrib, HAttrib >::set_halfedge | ( | Halfedge * | h | ) | [inline] |
Assigns an address to the pointer to the first half-edge of this face.
h | The address of the first half-edge of this face. |
Definition at line 128 of file face.h.
References dcel::Face< VAttrib, FAttrib, EAttrib, HAttrib >::_halfedge.
Referenced by dcel::Surface< VAttrib, FAttrib, EAttrib, HAttrib >::create_faces(), and dcel::Face< VAttrib, FAttrib, EAttrib, HAttrib >::~Face().
{ _halfedge = h ; }