Q3Mesh_GetNumComponents
You can use theQ3Mesh_GetNumComponentsfunction 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
TheQ3Mesh_GetNumComponentsfunction returns, in thenumComponentsparameter, the number of connected components in the mesh specified by themeshparameter. 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
TheQ3Mesh_GetNumComponentsfunction might not accurately report the number of connected components in a mesh if called while mesh updating is delayed (that is, after a call toQ3Mesh_DelayUpdatesbut before the matching call toQ3Mesh_ResumeUpdates).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help