com.bulletphysics.linearmath.convexhull
Class HullLibrary
java.lang.Object
com.bulletphysics.linearmath.convexhull.HullLibrary
public class HullLibrary
- extends Object
HullLibrary class can create a convex hull from a collection of vertices, using
the ComputeHull method. The ShapeHull
class uses this HullLibrary to create
a approximate convex mesh given a general (non-polyhedral) convex shape.
vertexIndexMapping
public final IntArrayList vertexIndexMapping
HullLibrary
public HullLibrary()
createConvexHull
public boolean createConvexHull(HullDesc desc,
HullResult result)
- Converts point cloud to polygonal representation.
- Parameters:
desc
- describes the input requestresult
- contains the result
- Returns:
- whether conversion was successful
releaseResult
public boolean releaseResult(HullResult result)
- Release memory allocated for this result, we are done with it.