com.bulletphysics.collision.shapes
Class VertexData

java.lang.Object
  extended by com.bulletphysics.collision.shapes.VertexData
Direct Known Subclasses:
ByteBufferVertexData

public abstract class VertexData
extends Object

Allows accessing vertex data.


Constructor Summary
VertexData()
           
 
Method Summary
abstract  int getIndex(int idx)
           
abstract  int getIndexCount()
           
 void getTriangle(int firstIndex, Vector3f scale, Vector3f[] triangle)
           
abstract
<T extends Tuple3f>
T
getVertex(int idx, T out)
           
abstract  int getVertexCount()
           
abstract  void setVertex(int idx, float x, float y, float z)
           
 void setVertex(int idx, Tuple3f t)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VertexData

public VertexData()
Method Detail

getVertexCount

public abstract int getVertexCount()

getIndexCount

public abstract int getIndexCount()

getVertex

public abstract <T extends Tuple3f> T getVertex(int idx,
                                                T out)

setVertex

public abstract void setVertex(int idx,
                               float x,
                               float y,
                               float z)

setVertex

public void setVertex(int idx,
                      Tuple3f t)

getIndex

public abstract int getIndex(int idx)

getTriangle

public void getTriangle(int firstIndex,
                        Vector3f scale,
                        Vector3f[] triangle)