Interface ConstFace
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
Face
Read-only access to a
Face
. (native type:
const SoftBodySharedSettings::Face
)-
Method Summary
Modifier and TypeMethodDescriptionint
Return the material index.int
getVertex
(int indexInFace) Return the mesh vertex at the specified corner.boolean
Test whether the face is degenerate.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getMaterialIndex
int getMaterialIndex()Return the material index. The face is unaffected.- Returns:
- the index of the material in the body's shared settings (≥0)
-
getVertex
int getVertex(int indexInFace) Return the mesh vertex at the specified corner. The face is unaffected.- Parameters:
indexInFace
- which corner of the face (0 or 1 or 2)- Returns:
- the mesh index of the vertex (≥0)
-
isDegenerate
boolean isDegenerate()Test whether the face is degenerate. The face is unaffected.- Returns:
true
if degenerate, otherwisefalse
-