com.bulletphysics.collision.shapes
Class ShapeHull

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

public class ShapeHull
extends java.lang.Object

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


Field Summary
protected  IntArrayList indices
           
protected  int numIndices
           
protected  ConvexShape shape
           
protected  java.util.List<javax.vecmath.Vector3f> vertices
           
 
Constructor Summary
ShapeHull(ConvexShape shape)
           
 
Method Summary
 boolean buildHull(float margin)
           
 IntArrayList getIndexPointer()
           
 java.util.List<javax.vecmath.Vector3f> getVertexPointer()
           
 int numIndices()
           
 int numTriangles()
           
 int numVertices()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertices

protected java.util.List<javax.vecmath.Vector3f> vertices

indices

protected IntArrayList indices

numIndices

protected int numIndices

shape

protected ConvexShape shape
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 java.util.List<javax.vecmath.Vector3f> getVertexPointer()

getIndexPointer

public IntArrayList getIndexPointer()