Record Class PointToSurfaceDistanceConfig
java.lang.Object
java.lang.Record
cz.fidentis.analyst.engines.point2surface.PointToSurfaceDistanceConfig
- Record Components:
method
- Distance methodpoint
- The point whose distance is measuredcheckOverlay
- Iftrue
and the closest point lies on the boundary of the mesh stored in the k-d tree, then the reference point is considered "outside" of the mesh and the distance is set to infinity.
public record PointToSurfaceDistanceConfig(PointToSurfaceDistanceConfig.Method method, javax.vecmath.Point3d point, boolean checkOverlay)
extends Record
Point sampling strategies and their configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Sampling method. -
Constructor Summary
ConstructorsConstructorDescriptionPointToSurfaceDistanceConfig
(PointToSurfaceDistanceConfig.Method method, javax.vecmath.Point3d point, boolean checkOverlay) Creates an instance of aPointToSurfaceDistanceConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Instantiates and returns a point sampling visitor.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thecheckOverlay
record component.method()
Returns the value of themethod
record component.javax.vecmath.Point3d
point()
Returns the value of thepoint
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PointToSurfaceDistanceConfig
public PointToSurfaceDistanceConfig(PointToSurfaceDistanceConfig.Method method, javax.vecmath.Point3d point, boolean checkOverlay) Creates an instance of aPointToSurfaceDistanceConfig
record class.- Parameters:
method
- the value for themethod
record componentpoint
- the value for thepoint
record componentcheckOverlay
- the value for thecheckOverlay
record component
-
-
Method Details
-
getVisitor
Instantiates and returns a point sampling visitor.- Returns:
- a point sampling 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
method
Returns the value of themethod
record component.- Returns:
- the value of the
method
record component
-
point
public javax.vecmath.Point3d point()Returns the value of thepoint
record component.- Returns:
- the value of the
point
record component
-
checkOverlay
public boolean checkOverlay()Returns the value of thecheckOverlay
record component.- Returns:
- the value of the
checkOverlay
record component
-