com.bulletphysics.collision.shapes
Class ShapeHull

java.lang.Object
  extended by com.bulletphysics.collision.shapes.ShapeHull

public class ShapeHull
extends Object

ShapeHull takes a ConvexShape, builds the convex hull using HullLibrary and provides triangle indices and vertices.


Constructor Summary
ShapeHull(ConvexShape shape)
           
 
Method Summary
 boolean buildHull(float margin)
           
 IntArrayList getIndexPointer()
           
 ObjectArrayList<Vector3f> getVertexPointer()
           
 int numIndices()
           
 int numTriangles()
           
 int numVertices()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeHull

public ShapeHull(ConvexShape shape)
Method Detail

buildHull

public boolean buildHull(float margin)

numTriangles

public int numTriangles()

numVertices

public int numVertices()

numIndices

public int numIndices()

getVertexPointer

public ObjectArrayList<Vector3f> getVertexPointer()

getIndexPointer

public IntArrayList getIndexPointer()