Record Class AvgMeshConfig
java.lang.Object
java.lang.Record
cz.fidentis.analyst.engines.avgmesh.AvgMeshConfig
- Record Components:
templateMesh
- Template mesh which is transformed to the averaged mesh. The original mesh remains unchanged. New mesh is allocated instead.glContext
- OpenGL context for GPU-accelerated computation. Can benull
for CPU-based methods.
public record AvgMeshConfig(Collection<MeshFacet> templateMesh, com.jogamp.opengl.GLContext glContext)
extends Record
Strategies of the average mesh computation.
-
Constructor Summary
ConstructorsConstructorDescriptionAvgMeshConfig
(MeshFacet facet, com.jogamp.opengl.GLContext glContext) Constructor.AvgMeshConfig
(MeshModel model, com.jogamp.opengl.GLContext glContext) Constructor.AvgMeshConfig
(Collection<MeshFacet> templateMesh, com.jogamp.opengl.GLContext glContext) Creates an instance of aAvgMeshConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Instantiates and returns a k-d tree visitor.Instantiates and returns a mesh visitor.Instantiates and returns an octree visitor.com.jogamp.opengl.GLContext
Returns the value of theglContext
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thetemplateMesh
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AvgMeshConfig
Constructor.- Parameters:
facet
- Template mesh facet which is transformed to the averaged mesh. The original mesh remains unchanged. New mesh is allocated instead.glContext
- OpenGL context for GPU-accelerated computation. Can benull
for CPU-based methods.
-
AvgMeshConfig
Constructor.- Parameters:
model
- Template mesh model which is transformed to the averaged mesh. The original mesh remains unchanged. New mesh is allocated instead.glContext
- OpenGL context for GPU-accelerated computation. Can benull
for CPU-based methods.
-
AvgMeshConfig
Creates an instance of aAvgMeshConfig
record class.- Parameters:
templateMesh
- the value for thetemplateMesh
record componentglContext
- the value for theglContext
record component
-
-
Method Details
-
getNearestNeighborsVisitor
Instantiates and returns a k-d tree visitor.- Returns:
- a visitor
-
getRayCastingVisitor
Instantiates and returns an octree visitor.- Returns:
- a visitor
-
getRayCastingGpuVisitor
Instantiates and returns a mesh visitor.- Returns:
- a visitor
-
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)
. -
templateMesh
Returns the value of thetemplateMesh
record component.- Returns:
- the value of the
templateMesh
record component
-
glContext
public com.jogamp.opengl.GLContext glContext()Returns the value of theglContext
record component.- Returns:
- the value of the
glContext
record component
-