com.jme.scene.geometryinstancing
Class GeometryBatchInstance
java.lang.Object
com.jme.scene.geometryinstancing.instance.GeometryInstance<GeometryBatchInstanceAttributes>
com.jme.scene.geometryinstancing.GeometryBatchInstance
public class GeometryBatchInstance
- extends GeometryInstance<GeometryBatchInstanceAttributes>
GeometryBatchInstance
uses a GeometryBatchInstanceAttributes
to define an instance of object in world space. Uses TriMesh as source
data for the instance, instead of GeomBatch which does not have an index
buffer.
- Author:
- Patrik Lindegrén
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instanceMesh
public TriMesh instanceMesh
worldVector
Vector3f worldVector
- Vector used to store and calculate world transformations
GeometryBatchInstance
public GeometryBatchInstance(TriMesh sourceBatch,
GeometryBatchInstanceAttributes attributes)
commit
public void commit(TriMesh mesh)
- Uses the instanceAttributes to transform the instanceBatch into world
coordinates. The transformed instance mesh is added to the mesh.
- Specified by:
commit
in class GeometryInstance<GeometryBatchInstanceAttributes>
- Parameters:
mesh
-
getNumIndices
public int getNumIndices()
- Specified by:
getNumIndices
in class GeometryInstance<GeometryBatchInstanceAttributes>
getNumVerts
public int getNumVerts()
- Specified by:
getNumVerts
in class GeometryInstance<GeometryBatchInstanceAttributes>