public class CompoundMesh extends NativePhysicsObject
btTriangleIndexVertexArray.| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
loggerN| Constructor and Description |
|---|
CompoundMesh()
Instantiate an empty mesh.
|
CompoundMesh(CompoundMesh original)
Copy an existing mesh.
|
CompoundMesh(CompoundMesh base,
Vector3f offset)
Instantiate a mesh by applying an offset to an existing mesh.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(IndexedMesh submesh)
Add a submesh to this mesh.
|
int |
countSubmeshes()
Count how many submeshes are in this mesh.
|
int |
countTriangles()
Count how many triangles are in this mesh.
|
int |
countVertices()
Count how many vertices are in this mesh.
|
Vector3f |
getScale(Vector3f storeResult)
Copy the scale factors.
|
IndexedMesh |
getSubmesh(int index)
Access the specified submesh.
|
void |
maxMin(Vector3f storeMaxima,
Vector3f storeMinima)
Find the maximum and minimum coordinates for each local axis among the
scaled vertices in this mesh.
|
void |
setScale(Vector3f scale)
Alter the scale factors.
|
CompoundMesh[] |
split(Triangle scaledTriangle)
Attempt to divide this mesh into 2 meshes.
|
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, toString, unassignNativeObjectpublic static final java.util.logging.Logger logger
public CompoundMesh()
public CompoundMesh(CompoundMesh original)
original - the mesh to copy (not null, unaffected)public CompoundMesh(CompoundMesh base, Vector3f offset)
base - the mesh to use as a base (not null, unaffected)offset - the offset to add to the scaled vertex positions (not null,
unaffected)public final void add(IndexedMesh submesh)
submesh - (not null, alias created)public int countSubmeshes()
public int countTriangles()
public int countVertices()
public Vector3f getScale(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public IndexedMesh getSubmesh(int index)
index - the index of the desired submesh (in the order the submeshes
were added, ≥0)public void maxMin(Vector3f storeMaxima, Vector3f storeMinima)
storeMaxima - storage for the maxima (not null, modified)storeMinima - storage for the minima (not null, modified)public void setScale(Vector3f scale)
scale - the desired scale factor for each local axis (not null, no
negative component, unaffected, default=(1,1,1))public CompoundMesh[] split(Triangle scaledTriangle)
scaledTriangle - to define the splitting plane (in scaled
coordinates, not null, unaffected)