Public Methods | |
Face (VertexID v[MAX_FACE_VERTICES]=NULL) | |
void | set (VertexID v[MAX_FACE_VERTICES]=NULL) |
VertexID | getV (int vNum) const |
bool | operator== (const Face &face) const |
void | operator= (const Face &face) |
The face is defined by the VertexID's of the face's vertices. Currently, only triangles are allowed. The orientation of the vertices is: v1 v2 v3 (ccw). In order for the software to work properly, all faces have to be in the same orientation.
|
Constructor. Initializes the vertices IDs.
|
|
Get the ID of the vertex in v[vNum].
|
|
Sets the face according to face.
|
|
Compares 2 Faces. Faces are the same if they have the same VertexID's and the same orientation (not necessarily in the same order). For example, a face with VertexID's {1, 3, 4} is the same as the one with {3, 4, 1}, but different from {1, 4, 3}.
|
|
Sets the vertices IDs.
|