NewtonConvexHullGetFaceIndices
Contents
NewtonConvexHullGetFaceIndices
int NewtonConvexHullGetFaceIndices (const NewtonCollision* convexHullCollision, int face, int* faceIndices);
Usage
Returns the vertex indices of the specified face in a convex hull.
Parameters
- const NewtonCollision* convexHullCollision - pointer to the convex hull collision primitive.
- int face - the requested face.
- int* faceIndices - pointer to the storage in memory which will hold the indices of the face.
Return
- Number of indices stored in faceIndices.
Description
Returns the vertex indices of the specified face in a convex hull.
Remarks
- Added since Newton 2.0
- The memory area pointed by faceIndices shall have enough space for all the indices of the requested face
- This function will return zero on all shapes other than a convex full collision shape.
- To get the number of faces of a convex hull shape see function *NewtonCollisionGetInfo*
See also
NewtonCreateConvexHull NewtonCreateConvexHullFromMesh NewtonCollisionGetInfo