Interface ConstFace
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
Face
Read-only access to a
Face. (native type:
const SoftBodySharedSettings::Face)-
Method Summary
Modifier and TypeMethodDescriptionintReturn the material index.intgetVertex(int indexInFace) Return the mesh vertex at the specified corner.booleanTest whether the face is degenerate.Methods inherited from interface java.lang.Comparable
compareToMethods 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:
trueif degenerate, otherwisefalse
-