The Parametric Pseudo-Manifold (PPS) Library 1.0
|
This class represents a set of attributes of a face of the underlying triangle surface mesh of a PPS constructed from a PN triangle surface. More...
#include <face_attribute.h>
Public Member Functions | |
FaceAttribute () | |
Creates an instance of this class. | |
FaceAttribute (PNTriangle *patch) | |
Creates an instance of this class. | |
FaceAttribute (const FaceAttribute &a) | |
Creates an instance of this class from another instance. | |
~FaceAttribute () | |
Destroys an instance of this class. | |
PNTriangle * | get_patch () const |
Returns a pointer to the triangular surface patch associated with this face. | |
void | set_patch (PNTriangle *patch) |
Assigns an address to the pointer to the triangular surface patch associated with this face. | |
Private Attributes | |
PNTriangle * | _patch |
Pointer to the PN triangle associated with this face. |
This class represents a set of attributes of a face of the underlying triangle surface mesh of a PPS constructed from a PN triangle surface.
Definition at line 56 of file face_attribute.h.
ppsfrompnt::FaceAttribute::FaceAttribute | ( | PNTriangle * | patch | ) | [inline] |
Creates an instance of this class.
patch | A pointer to the PN triangle associated with the face that owns this attribute. |
Definition at line 81 of file face_attribute.h.
: _patch( patch ) {}
ppsfrompnt::FaceAttribute::FaceAttribute | ( | const FaceAttribute & | a | ) | [inline] |
Creates an instance of this class from another instance.
a | A given instance of this class. |
Definition at line 92 of file face_attribute.h.
References _patch, and get_patch().
{ _patch = new PNTriangle( *( a.get_patch() ) ) ; }
PNTriangle * ppsfrompnt::FaceAttribute::get_patch | ( | ) | const [inline] |
Returns a pointer to the triangular surface patch associated with this face.
Definition at line 119 of file face_attribute.h.
References _patch.
Referenced by FaceAttribute(), and ~FaceAttribute().
{ return _patch ; }
void ppsfrompnt::FaceAttribute::set_patch | ( | PNTriangle * | patch | ) | [inline] |
Assigns an address to the pointer to the triangular surface patch associated with this face.
patch | The address of the PN triangle associated with this face. |
Definition at line 134 of file face_attribute.h.
References _patch.
{ _patch = patch ; }