pfMeshFace(3pf) OpenGL Performer 3.2.2 libpf C Reference Pages
NAME
pfMeshFacePart, pfGetMeshFacePart, pfMeshFaceGState, pfGetMeshFaceGState,
pfMeshFaceNumVerts, pfGetMeshFaceNumVerts, pfMeshFaceVertex,
pfGetMeshFaceVertex, pfMeshFaceTexCoord, pfGetMeshFaceTexCoord,
pfMeshFaceVerts, pfGetMeshFaceVerts, pfMeshFaceFlags, pfGetMeshFaceFlags
- Stores faces as a part of a pfMesh
FUNCTION SPECIFICATION
#include <Performer/pf.h>
void pfMeshFacePart(pfMeshFace* meshface, int p);
int pfGetMeshFacePart(pfMeshFace* meshface);
void pfMeshFaceGState(pfMeshFace* meshface, pfGeoState *g);
pfGeoState* pfGetMeshFaceGState(pfMeshFace* meshface);
void pfMeshFaceNumVerts(pfMeshFace* meshface, int n);
int pfGetMeshFaceNumVerts(pfMeshFace* meshface);
void pfMeshFaceVertex(pfMeshFace* meshface, int i, int v);
int pfGetMeshFaceVertex(pfMeshFace* meshface, int i);
void pfMeshFaceTexCoord(pfMeshFace* meshface, int i, pfVec2 *v);
pfVec2* pfGetMeshFaceTexCoord(pfMeshFace* meshface, int i);
void pfMeshFaceVerts(pfMeshFace* meshface, int *v, int n);
int pfGetMeshFaceVerts(pfMeshFace* meshface, int *v, int size);
void pfMeshFaceFlags(pfMeshFace* meshface, int which,
int value);
int pfGetMeshFaceFlags(pfMeshFace* meshface, 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 pfMeshFaceNumVerts and
pfMeshFaceVertex. Parameters of the function pfMeshFaceVertex 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 pfGetMeshFaceNumVerts and pfGetMeshFaceVertex.
Page 1
pfMeshFace(3pf) OpenGL Performer 3.2.2 libpf C Reference Pages
Texture coordinates are specified similarly as vertices using function
pfMeshFaceTexCoord.
The part index is used by the pfMesh to determine which edges are marked
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 pfMeshUpdateMesh if any vertex
of the face changes position.
SEE ALSO
pfMesh, pfMeshVertex, pfObject, pfNode
Page 2