com.bulletphysics.collision.shapes
Class ShapeHull
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
vertices
protected java.util.List<javax.vecmath.Vector3f> vertices
indices
protected IntArrayList indices
numIndices
protected int numIndices
shape
protected ConvexShape shape
ShapeHull
public ShapeHull(ConvexShape shape)
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()