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_GetNumComponents

You can use the Q3Mesh_GetNumComponents function to determine the number of connected components of a mesh.

TQ3Status Q3Mesh_GetNumComponents (
TQ3GeometryObject mesh, 
unsigned long *numComponents);
mesh
A mesh.
numComponents
On exit, the number of connected components in the specified mesh.
DESCRIPTION
The Q3Mesh_GetNumComponents function returns, in the numComponents parameter, the number of connected components in the mesh specified by the mesh parameter. A connected component is a list of vertices, each of which is connected to all the others by some sequence of mesh edges. For example, a mesh that contains two cubes has two components.

SPECIAL CONSIDERATIONS
The Q3Mesh_GetNumComponents function might not accurately report the number of connected components in a mesh if called while mesh updating is delayed (that is, after a call to Q3Mesh_DelayUpdates but before the matching call to Q3Mesh_ResumeUpdates).


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