Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 4 - Geometric Objects / Geometric Objects Reference
Geometric Objects Routines / Creating and Editing Meshes


Q3Mesh_GetFaceIndex

You can use the Q3Mesh_GetFaceIndex function to get the index of a mesh face.

TQ3Status Q3Mesh_GetFaceIndex (
TQ3GeometryObject mesh, 
TQ3MeshFace face, 
unsigned long *index);
mesh
A mesh.
face
A mesh face.
index
On exit, the index of the specified mesh face.
DESCRIPTION
The Q3Mesh_GetFaceIndex function returns, in the index parameter, the index of the mesh face specified by the mesh and face parameters. A face index is a unique integer (between 0 and the total number of faces in the mesh minus 1) associated with a face.

WARNING
Face indices are volatile and can be changed by functions that alter the topology of a mesh (such as functions that add or delete faces or vertices), and by writing, picking, rendering, or duplicating a mesh, or by calling Q3Mesh_DelayUpdates. As a result, you should rely on an index returned by Q3Mesh_GetFaceIndex only until you perform one of these operations.8batcolor>s

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help