Package dev.gothickit.zenkit.mrm
Record Class CachedMultiResolutionSubMesh
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mrm.CachedMultiResolutionSubMesh
- All Implemented Interfaces:
CacheableObject<CachedMultiResolutionSubMesh>,MultiResolutionSubMesh
public record CachedMultiResolutionSubMesh(@Nullable Material material, @NotNull MeshTriangle @NotNull [] triangles, @NotNull MeshWedge @NotNull [] wedges, float @NotNull [] colors, short @NotNull [] trianglePlaneIndices, @NotNull MeshPlane @NotNull [] trianglePlanes, @NotNull MeshTriangleEdge @NotNull [] triangleEdges, @NotNull MeshEdge @NotNull [] edges, float @NotNull [] edgeScores, short @NotNull [] wedgeMap)
extends Record
implements MultiResolutionSubMesh
-
Constructor Summary
ConstructorsConstructorDescriptionCachedMultiResolutionSubMesh(@Nullable Material material, @NotNull MeshTriangle @NotNull [] triangles, @NotNull MeshWedge @NotNull [] wedges, float @NotNull [] colors, short @NotNull [] trianglePlaneIndices, @NotNull MeshPlane @NotNull [] trianglePlanes, @NotNull MeshTriangleEdge @NotNull [] triangleEdges, @NotNull MeshEdge @NotNull [] edges, float @NotNull [] edgeScores, short @NotNull [] wedgeMap) Creates an instance of aCachedMultiResolutionSubMeshrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull CachedMultiResolutionSubMeshcache()float @NotNull []colors()Returns the value of thecolorsrecord component.@NotNull MeshEdge @NotNull []edges()Returns the value of theedgesrecord component.float @NotNull []Returns the value of theedgeScoresrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisCached()@Nullable Materialmaterial()Returns the value of thematerialrecord component.final StringtoString()Returns a string representation of this record class.@NotNull MeshTriangleEdge @NotNull []Returns the value of thetriangleEdgesrecord component.short @NotNull []Returns the value of thetrianglePlaneIndicesrecord component.@NotNull MeshPlane @NotNull []Returns the value of thetrianglePlanesrecord component.@NotNull MeshTriangle @NotNull []Returns the value of thetrianglesrecord component.short @NotNull []wedgeMap()Returns the value of thewedgeMaprecord component.@NotNull MeshWedge @NotNull []wedges()Returns the value of thewedgesrecord component.
-
Constructor Details
-
CachedMultiResolutionSubMesh
public CachedMultiResolutionSubMesh(@Nullable @Nullable Material material, @NotNull @NotNull MeshTriangle @NotNull [] triangles, @NotNull @NotNull MeshWedge @NotNull [] wedges, float @NotNull [] colors, short @NotNull [] trianglePlaneIndices, @NotNull @NotNull MeshPlane @NotNull [] trianglePlanes, @NotNull @NotNull MeshTriangleEdge @NotNull [] triangleEdges, @NotNull @NotNull MeshEdge @NotNull [] edges, float @NotNull [] edgeScores, short @NotNull [] wedgeMap) Creates an instance of aCachedMultiResolutionSubMeshrecord class.- Parameters:
material- the value for thematerialrecord componenttriangles- the value for thetrianglesrecord componentwedges- the value for thewedgesrecord componentcolors- the value for thecolorsrecord componenttrianglePlaneIndices- the value for thetrianglePlaneIndicesrecord componenttrianglePlanes- the value for thetrianglePlanesrecord componenttriangleEdges- the value for thetriangleEdgesrecord componentedges- the value for theedgesrecord componentedgeScores- the value for theedgeScoresrecord componentwedgeMap- the value for thewedgeMaprecord component
-
-
Method Details
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedMultiResolutionSubMesh>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedMultiResolutionSubMesh>
-
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). -
material
Returns the value of thematerialrecord component.- Specified by:
materialin interfaceMultiResolutionSubMesh- Returns:
- the value of the
materialrecord component
-
triangles
Returns the value of thetrianglesrecord component.- Specified by:
trianglesin interfaceMultiResolutionSubMesh- Returns:
- the value of the
trianglesrecord component
-
wedges
Returns the value of thewedgesrecord component.- Specified by:
wedgesin interfaceMultiResolutionSubMesh- Returns:
- the value of the
wedgesrecord component
-
colors
public float @NotNull [] colors()Returns the value of thecolorsrecord component.- Specified by:
colorsin interfaceMultiResolutionSubMesh- Returns:
- the value of the
colorsrecord component
-
trianglePlaneIndices
public short @NotNull [] trianglePlaneIndices()Returns the value of thetrianglePlaneIndicesrecord component.- Specified by:
trianglePlaneIndicesin interfaceMultiResolutionSubMesh- Returns:
- the value of the
trianglePlaneIndicesrecord component
-
trianglePlanes
Returns the value of thetrianglePlanesrecord component.- Specified by:
trianglePlanesin interfaceMultiResolutionSubMesh- Returns:
- the value of the
trianglePlanesrecord component
-
triangleEdges
Returns the value of thetriangleEdgesrecord component.- Specified by:
triangleEdgesin interfaceMultiResolutionSubMesh- Returns:
- the value of the
triangleEdgesrecord component
-
edges
Returns the value of theedgesrecord component.- Specified by:
edgesin interfaceMultiResolutionSubMesh- Returns:
- the value of the
edgesrecord component
-
edgeScores
public float @NotNull [] edgeScores()Returns the value of theedgeScoresrecord component.- Specified by:
edgeScoresin interfaceMultiResolutionSubMesh- Returns:
- the value of the
edgeScoresrecord component
-
wedgeMap
public short @NotNull [] wedgeMap()Returns the value of thewedgeMaprecord component.- Specified by:
wedgeMapin interfaceMultiResolutionSubMesh- Returns:
- the value of the
wedgeMaprecord component
-