com.bulletphysics.linearmath.convexhull
Class HullLibrary

java.lang.Object
  extended by 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.


Field Summary
 IntArrayList vertexIndexMapping
           
 
Constructor Summary
HullLibrary()
           
 
Method Summary
 boolean createConvexHull(HullDesc desc, HullResult result)
          Converts point cloud to polygonal representation.
 boolean releaseResult(HullResult result)
          Release memory allocated for this result, we are done with it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertexIndexMapping

public final IntArrayList vertexIndexMapping
Constructor Detail

HullLibrary

public HullLibrary()
Method Detail

createConvexHull

public boolean createConvexHull(HullDesc desc,
                                HullResult result)
Converts point cloud to polygonal representation.

Parameters:
desc - describes the input request
result - 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.