org.ode4j.ode
Interface DTriMeshData
public interface DTriMeshData
TriMesh code by Erwin de Vries.
Trimesh data.
This is where the actual vertexdata (pointers), and BV tree is stored.
Vertices should be single precision!
This should be more sophisticated, so that the user can easyly implement
another collision library, but this is a lot of work, and also costs some
performance because some data has to be copied.
Method Summary |
void |
build(float[] vertices,
int[] indices)
Build a TriMesh data object with single precision vertex data. |
void |
destroy()
|
build
void build(float[] vertices,
int[] indices)
- Build a TriMesh data object with single precision vertex data.
In Java, the number of vertices and indices are derived from
the length of the arrays. Strides can not be set because
GIMPACT assumes strides to be 3.
destroy
void destroy()