User manual:   Main Page   Overview   Installation   User Interface   Tutorial   Example   FAQ   Version Updates
Reference manual:   Class List   Class Members   Globals, enums and defines

Face Class Reference

Defines a face. More...

List of all members.

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)


Detailed Description

Defines a 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 & Destructor Documentation

Face::Face VertexID    v[MAX_FACE_VERTICES] = NULL [inline]
 

Constructor.

Initializes the vertices IDs.

Parameters:
v An array of the face's vertices IDs. If NULL, all VertexID's are initialized to -1


Member Function Documentation

VertexID Face::getV int    vNum const [inline]
 

Get the ID of the vertex in v[vNum].

Parameters:
vNum The index of the ID in the array v
Returns:
The ID of the vertex in v[vNum]

void Face::operator= const Face &    face [inline]
 

Sets the face according to face.

Parameters:
face The Face to copy

bool Face::operator== const Face &    face const [inline]
 

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

Parameters:
face The Face to compare to
Return values:
true The faces are the same
false The faces are different

void Face::set VertexID    v[MAX_FACE_VERTICES] = NULL [inline]
 

Sets the vertices IDs.

Parameters:
v An array of the face's vertices IDs. If NULL, all VertexID's are initialized to -1


The documentation for this class was generated from the following file:
MeshMaker 5.2 Manual
This software library was written by Roni Raab, ronir@cs.technion.ac.il.
Last updated on May 2003.
This software is for academic and research use only.