public class ShapeHull extends Object
ConvexShape
, builds the convex hull using HullLibrary
and provides triangle indices and vertices.Modifier and Type | Field and Description |
---|---|
protected IntArrayList |
indices |
protected int |
numIndices |
protected ConvexShape |
shape |
protected ObjectArrayList<javax.vecmath.Vector3f> |
unitSpherePoints |
protected ObjectArrayList<javax.vecmath.Vector3f> |
vertices |
Constructor and Description |
---|
ShapeHull(ConvexShape shape) |
Modifier and Type | Method and Description |
---|---|
boolean |
buildHull(float margin) |
IntArrayList |
getIndexPointer() |
ObjectArrayList<javax.vecmath.Vector3f> |
getVertexPointer() |
int |
numIndices() |
int |
numTriangles() |
int |
numVertices() |
protected ObjectArrayList<javax.vecmath.Vector3f> vertices
protected IntArrayList indices
protected int numIndices
protected ConvexShape shape
protected ObjectArrayList<javax.vecmath.Vector3f> unitSpherePoints
public ShapeHull(ConvexShape shape)
public boolean buildHull(float margin)
public int numTriangles()
public int numVertices()
public int numIndices()
public ObjectArrayList<javax.vecmath.Vector3f> getVertexPointer()
public IntArrayList getIndexPointer()
Copyright © 2013. All Rights Reserved.