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