Interface ConstMeshShapeSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject,ConstSerializableObject,ConstShapeSettings
- All Known Implementing Classes:
MeshShapeSettings
Read-only access to a
MeshShapeSettings object. (native type: const
MeshShapeSettings)-
Method Summary
Modifier and TypeMethodDescriptionintCount the physics materials.intCount the triangles in the mesh.intCount the vertices in the mesh.floatReturn the cosine of the active-edge threshold angle.Return the build quality.intReturn the maximum number of triangles per leaf.booleanTest whether each triangle will include user data.getTriangleVertex(int vertexIndex) Copy the specified vertex.Copy the vertex list.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa, targetVaOrZeroMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRttiMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstShapeSettings
create, getRefCount, toRefC
-
Method Details
-
countMaterials
int countMaterials()Count the physics materials. The settings are unaffected.- Returns:
- the count (≥0)
-
countTriangles
int countTriangles()Count the triangles in the mesh. The settings are unaffected.- Returns:
- the count (≥0)
-
countTriangleVertices
int countTriangleVertices()Count the vertices in the mesh. The settings are unaffected.- Returns:
- the count (≥0)
-
getActiveEdgeCosThresholdAngle
float getActiveEdgeCosThresholdAngle()Return the cosine of the active-edge threshold angle. The settings are unaffected.- Returns:
- the cosine
-
getBuildQuality
EBuildQuality getBuildQuality()Return the build quality. The settings are unaffected.- Returns:
- an enum value (not
null)
-
getMaxTrianglesPerLeaf
int getMaxTrianglesPerLeaf()Return the maximum number of triangles per leaf. The settings are unaffected.- Returns:
- the maximum number
-
getPerTriangleUserData
boolean getPerTriangleUserData()Test whether each triangle will include user data. The settings are unaffected.- Returns:
trueif per-triangle data is included, otherwisefalse
-
getTriangleVertex
Copy the specified vertex. The settings are unaffected.- Parameters:
vertexIndex- the index of the vertex to copy (≥0)- Returns:
- a new vector
-
getTriangleVertices
VertexList getTriangleVertices()Copy the vertex list. The settings are unaffected.- Returns:
- a new object
-