pfMeshFace(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages
NAMEpfMeshFace - Stores faces as a part of a pfMesh
FUNCTION SPECIFICATION
#include <Performer/pf/pfMesh.h>
void pfMeshFace::setPart(int p);
int pfMeshFace::getPart(void);
void pfMeshFace::setGState(pfGeoState *g);
pfGeoState * pfMeshFace::getGState(void);
void pfMeshFace::setNumVerts(int n);
int pfMeshFace::getNumVerts(void);
void pfMeshFace::setVertex(int i, int v);
int pfMeshFace::getVertex(int i);
void pfMeshFace::setTexCoord(int i, pfVec2 *v);
pfVec2 * pfMeshFace::getTexCoord(int i);
void pfMeshFace::setVerts(int *v, int n);
int pfMeshFace::getVerts(int *v, int size);
void pfMeshFace::setFlags(int which, int value);
int pfMeshFace::getFlags(int which);
DESCRIPTION
A pfMeshFace is a high level OpenGL Performer class. A pfMeshFace is
used in a pfMesh to store information about faces. Each face contains an
array of face vertices, a set of texture coordinates, a pfGeoSet, a part
index, and flags.
Vertices can be set using functions pfMeshFace::setNumVerts and
pfMeshFace::setVertex. Parameters of the function pfMeshFace::setVertex
are the index of the vertex in the array stored with the face (which
vertex we want to set) and the vertex index in the array of vertices
associated with a pfMesh (this index identifies the vertex). Face
vertices can be queried using functions pfMeshFace::getNumVerts and
pfMeshFace::getVertex.
Texture coordinates are specified similarly as vertices using function
pfMeshFace::setTexCoord.
The part index is used by the pfMesh to determine which edges are marked
Page 1
pfMeshFace(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages
as smooth and which as creases (see man page for pfMesh).
Currently, there is only one flag used by a pfMeshFace. This flag,
PFMF_FLAG_FACE_CHANGED, is set by function pfMesh::updateMesh if any
vertex of the face changes position.
SEE ALSO
pfMesh, pfMeshVertex, pfObject, pfNode
Page 2