Interface ConstSoftBodySharedSettings
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
SoftBodySharedSettings
,SoftBodySharedSettingsRef
Read-only access to a
SoftBodySharedSettings
object. (native type:
const SoftBodySharedSettings)-
Method Summary
Modifier and TypeMethodDescriptionint
Count the edge constraints.int
Count the faces.int
Count the pinned vertices.int
Count the bend-twist constraints.int
Count the discrete Cosserat rods.int
Count the vertices.int
Count the volume constraints.Enumerate all Cosserat rods in the settings.void
putEdgeIndices
(IntBuffer storeIndices) Write the vertex indices of all edges to the specified buffer and advance the buffer's position.void
putFaceIndices
(IntBuffer storeIndices) Write the vertex indices of all faces to the specified buffer and advance the buffer's position.void
saveBinaryState
(StreamOut stream) Write the state of this object to the specified stream, excluding the materials.void
saveWithMaterials
(StreamOut stream, SharedSettingsToIdMap settingsMap, MaterialToIdMap materialMap) Write the state of this object to the specified stream.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
countEdgeConstraints
int countEdgeConstraints()Count the edge constraints. The settings are unaffected.- Returns:
- the count (≥0)
-
countFaces
int countFaces()Count the faces. The settings are unaffected.- Returns:
- the count (≥0)
-
countPinnedVertices
int countPinnedVertices()Count the pinned vertices. The settings are unaffected.- Returns:
- the count (≥0)
-
countRodBendTwistConstraints
int countRodBendTwistConstraints()Count the bend-twist constraints. The settings are unaffected.- Returns:
- the count (≥0)
-
countRodStretchShearConstraints
int countRodStretchShearConstraints()Count the discrete Cosserat rods. The settings are unaffected.- Returns:
- the count (≥0)
-
countVertices
int countVertices()Count the vertices. The settings are unaffected.- Returns:
- the count (≥0)
-
countVolumeConstraints
int countVolumeConstraints()Count the volume constraints. The settings are unaffected.- Returns:
- the count (≥0)
-
getRodStretchShearConstraints
ConstRodStretchShear[] getRodStretchShearConstraints()Enumerate all Cosserat rods in the settings. (native member: mRodStretchShearConstraints)- Returns:
- a new array of new JVM objects with the pre-existing native objects assigned
-
putEdgeIndices
Write the vertex indices of all edges to the specified buffer and advance the buffer's position. The settings are unaffected.- Parameters:
storeIndices
- the destination buffer (not null, modified)
-
putFaceIndices
Write the vertex indices of all faces to the specified buffer and advance the buffer's position. The settings are unaffected.- Parameters:
storeIndices
- the destination buffer (not null, modified)
-
saveBinaryState
Write the state of this object to the specified stream, excluding the materials. The settings are unaffected.- Parameters:
stream
- where to write objects (notnull
)
-