Package cz.fidentis.analyst.data.mesh
Record Class Curvature
java.lang.Object
java.lang.Record
cz.fidentis.analyst.data.mesh.Curvature
- Record Components:
minPrincipal
- Minimum principal curvaturemaxPrincipal
- Maximum principal curvaturegaussian
- Gaussian curvaturemean
- Mean curvatureminCurvatureDir
- direction of the minimum principal curvature. Can benull
maxCurvatureDir
- direction of the maximum principal curvature. Can benull
- All Implemented Interfaces:
Serializable
public record Curvature(double minPrincipal, double maxPrincipal, double gaussian, double mean, javax.vecmath.Vector3d minCurvatureDir, javax.vecmath.Vector3d maxCurvatureDir)
extends Record
implements Serializable
Curvature of a single mesh point.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCurvature
(double minPrincipal, double maxPrincipal, double gaussian, double mean, javax.vecmath.Vector3d minCurvatureDir, javax.vecmath.Vector3d maxCurvatureDir) Creates an instance of aCurvature
record class.Curvature
(double minPrincipal, double maxPrincipal, javax.vecmath.Vector3d minCurvatureDir, javax.vecmath.Vector3d maxCurvatureDir) Constructor that computes Gaussian and mean curvature automatically from principal curvatures.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.double
gaussian()
Returns the value of thegaussian
record component.final int
hashCode()
Returns a hash code value for this object.javax.vecmath.Vector3d
Returns the value of themaxCurvatureDir
record component.double
Returns the value of themaxPrincipal
record component.double
mean()
Returns the value of themean
record component.javax.vecmath.Vector3d
Returns the value of theminCurvatureDir
record component.double
Returns the value of theminPrincipal
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Curvature
Copy constructor.- Parameters:
curvature
- curvature
-
Curvature
public Curvature(double minPrincipal, double maxPrincipal, javax.vecmath.Vector3d minCurvatureDir, javax.vecmath.Vector3d maxCurvatureDir) Constructor that computes Gaussian and mean curvature automatically from principal curvatures.- Parameters:
minPrincipal
- Minimum principal curvaturemaxPrincipal
- Maximum principal curvatureminCurvatureDir
- direction of the minimum principal curvature. Can benull
maxCurvatureDir
- direction of the maximum principal curvature. Can benull
-
Curvature
public Curvature(double minPrincipal, double maxPrincipal, double gaussian, double mean, javax.vecmath.Vector3d minCurvatureDir, javax.vecmath.Vector3d maxCurvatureDir) Creates an instance of aCurvature
record class.- Parameters:
minPrincipal
- the value for theminPrincipal
record componentmaxPrincipal
- the value for themaxPrincipal
record componentgaussian
- the value for thegaussian
record componentmean
- the value for themean
record componentminCurvatureDir
- the value for theminCurvatureDir
record componentmaxCurvatureDir
- the value for themaxCurvatureDir
record component
-
-
Method Details
-
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 '=='. -
minPrincipal
public double minPrincipal()Returns the value of theminPrincipal
record component.- Returns:
- the value of the
minPrincipal
record component
-
maxPrincipal
public double maxPrincipal()Returns the value of themaxPrincipal
record component.- Returns:
- the value of the
maxPrincipal
record component
-
gaussian
public double gaussian()Returns the value of thegaussian
record component.- Returns:
- the value of the
gaussian
record component
-
mean
public double mean()Returns the value of themean
record component.- Returns:
- the value of the
mean
record component
-
minCurvatureDir
public javax.vecmath.Vector3d minCurvatureDir()Returns the value of theminCurvatureDir
record component.- Returns:
- the value of the
minCurvatureDir
record component
-
maxCurvatureDir
public javax.vecmath.Vector3d maxCurvatureDir()Returns the value of themaxCurvatureDir
record component.- Returns:
- the value of the
maxCurvatureDir
record component
-