Package dev.gothickit.zenkit.ssm
Record Class CachedSoftSkinMesh
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.ssm.CachedSoftSkinMesh
- All Implemented Interfaces:
CacheableObject<CachedSoftSkinMesh>,SoftSkinMesh
public record CachedSoftSkinMesh(@Nullable MultiResolutionMesh mesh, @NotNull List<@NotNull OrientedBoundingBox> boundingBoxes, @NotNull List<@NotNull SoftSkinWeightEntry[]> weights, @NotNull SoftSkinWedgeNormal @NotNull [] wedgeNormals, int[] nodes)
extends Record
implements SoftSkinMesh
-
Constructor Summary
ConstructorsConstructorDescriptionCachedSoftSkinMesh(@Nullable MultiResolutionMesh mesh, @NotNull List<@NotNull OrientedBoundingBox> boundingBoxes, @NotNull List<@NotNull SoftSkinWeightEntry[]> weights, @NotNull SoftSkinWedgeNormal @NotNull [] wedgeNormals, int[] nodes) Creates an instance of aCachedSoftSkinMeshrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable OrientedBoundingBoxbbox(long node) @NotNull List<@NotNull OrientedBoundingBox>Returns the value of theboundingBoxesrecord component.@NotNull CachedSoftSkinMeshcache()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisCached()@Nullable MultiResolutionMeshmesh()Returns the value of themeshrecord component.longint[]nodes()Returns the value of thenodesrecord component.final StringtoString()Returns a string representation of this record class.@NotNull SoftSkinWedgeNormal @NotNull []Returns the value of thewedgeNormalsrecord component.@NotNull List<@NotNull SoftSkinWeightEntry[]>weights()Returns the value of theweightsrecord component.@NotNull SoftSkinWeightEntry @Nullable []weights(long node)
-
Constructor Details
-
CachedSoftSkinMesh
public CachedSoftSkinMesh(@Nullable @Nullable MultiResolutionMesh mesh, @NotNull @NotNull List<@NotNull OrientedBoundingBox> boundingBoxes, @NotNull @NotNull List<@NotNull SoftSkinWeightEntry[]> weights, @NotNull @NotNull SoftSkinWedgeNormal @NotNull [] wedgeNormals, int[] nodes) Creates an instance of aCachedSoftSkinMeshrecord class.- Parameters:
mesh- the value for themeshrecord componentboundingBoxes- the value for theboundingBoxesrecord componentweights- the value for theweightsrecord componentwedgeNormals- the value for thewedgeNormalsrecord componentnodes- the value for thenodesrecord component
-
-
Method Details
-
nodeCount
public long nodeCount()- Specified by:
nodeCountin interfaceSoftSkinMesh
-
bbox
- Specified by:
bboxin interfaceSoftSkinMesh
-
weights
- Specified by:
weightsin interfaceSoftSkinMesh
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedSoftSkinMesh>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedSoftSkinMesh>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
mesh
Returns the value of themeshrecord component.- Specified by:
meshin interfaceSoftSkinMesh- Returns:
- the value of the
meshrecord component
-
boundingBoxes
Returns the value of theboundingBoxesrecord component.- Specified by:
boundingBoxesin interfaceSoftSkinMesh- Returns:
- the value of the
boundingBoxesrecord component
-
weights
Returns the value of theweightsrecord component.- Specified by:
weightsin interfaceSoftSkinMesh- Returns:
- the value of the
weightsrecord component
-
wedgeNormals
Returns the value of thewedgeNormalsrecord component.- Specified by:
wedgeNormalsin interfaceSoftSkinMesh- Returns:
- the value of the
wedgeNormalsrecord component
-
nodes
public int[] nodes()Returns the value of thenodesrecord component.- Specified by:
nodesin interfaceSoftSkinMesh- Returns:
- the value of the
nodesrecord component
-