|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bulletphysics.collision.shapes.StridingMeshInterface
com.bulletphysics.collision.shapes.TriangleIndexVertexArray
public class TriangleIndexVertexArray
TriangleIndexVertexArray allows to use multiple meshes, by indexing into existing
triangle/index arrays. Additional meshes can be added using addIndexedMesh.
No duplicate is made of the vertex/index data, it only indexes into external vertex/index arrays. So keep those arrays around during the lifetime of this TriangleIndexVertexArray.
| Constructor Summary | |
|---|---|
TriangleIndexVertexArray()
|
|
TriangleIndexVertexArray(int numTriangles,
ByteBuffer triangleIndexBase,
int triangleIndexStride,
int numVertices,
ByteBuffer vertexBase,
int vertexStride)
Just to be backwards compatible. |
|
| Method Summary | |
|---|---|
void |
addIndexedMesh(IndexedMesh mesh)
|
void |
addIndexedMesh(IndexedMesh mesh,
ScalarType indexType)
|
ObjectArrayList<IndexedMesh> |
getIndexedMeshArray()
|
VertexData |
getLockedReadOnlyVertexIndexBase(int subpart)
|
VertexData |
getLockedVertexIndexBase(int subpart)
Get read and write access to a subpart of a triangle mesh. |
int |
getNumSubParts()
getNumSubParts returns the number of seperate subparts. |
void |
preallocateIndices(int numindices)
|
void |
preallocateVertices(int numverts)
|
void |
unLockReadOnlyVertexBase(int subpart)
|
void |
unLockVertexBase(int subpart)
unLockVertexBase finishes the access to a subpart of the triangle mesh. |
| Methods inherited from class com.bulletphysics.collision.shapes.StridingMeshInterface |
|---|
calculateAabbBruteForce, getScaling, internalProcessAllTriangles, setScaling |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TriangleIndexVertexArray()
public TriangleIndexVertexArray(int numTriangles,
ByteBuffer triangleIndexBase,
int triangleIndexStride,
int numVertices,
ByteBuffer vertexBase,
int vertexStride)
| Method Detail |
|---|
public void addIndexedMesh(IndexedMesh mesh)
public void addIndexedMesh(IndexedMesh mesh,
ScalarType indexType)
public VertexData getLockedVertexIndexBase(int subpart)
StridingMeshInterface
getLockedVertexIndexBase in class StridingMeshInterfacepublic VertexData getLockedReadOnlyVertexIndexBase(int subpart)
getLockedReadOnlyVertexIndexBase in class StridingMeshInterfacepublic void unLockVertexBase(int subpart)
unLockVertexBase in class StridingMeshInterfacepublic void unLockReadOnlyVertexBase(int subpart)
unLockReadOnlyVertexBase in class StridingMeshInterfacepublic int getNumSubParts()
getNumSubParts in class StridingMeshInterfacepublic ObjectArrayList<IndexedMesh> getIndexedMeshArray()
public void preallocateVertices(int numverts)
preallocateVertices in class StridingMeshInterfacepublic void preallocateIndices(int numindices)
preallocateIndices in class StridingMeshInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||