Record Class Curvature

java.lang.Object
java.lang.Record
cz.fidentis.analyst.data.mesh.Curvature
Record Components:
minPrincipal - Minimum principal curvature
maxPrincipal - Maximum principal curvature
gaussian - Gaussian curvature
mean - Mean curvature
minCurvatureDir - direction of the minimum principal curvature. Can be null
maxCurvatureDir - direction of the maximum principal curvature. Can be null
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 Link icon

    Constructors
    Constructor
    Description
    Curvature(double minPrincipal, double maxPrincipal, double gaussian, double mean, javax.vecmath.Vector3d minCurvatureDir, javax.vecmath.Vector3d maxCurvatureDir)
    Creates an instance of a Curvature 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.
    Curvature(Curvature curvature)
    Copy constructor.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    double
    Returns the value of the gaussian record component.
    final int
    Returns a hash code value for this object.
    javax.vecmath.Vector3d
    Returns the value of the maxCurvatureDir record component.
    double
    Returns the value of the maxPrincipal record component.
    double
    Returns the value of the mean record component.
    javax.vecmath.Vector3d
    Returns the value of the minCurvatureDir record component.
    double
    Returns the value of the minPrincipal record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details Link icon

    • Curvature Link icon

      public Curvature(Curvature curvature)
      Copy constructor.
      Parameters:
      curvature - curvature
    • Curvature Link icon

      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 curvature
      maxPrincipal - Maximum principal curvature
      minCurvatureDir - direction of the minimum principal curvature. Can be null
      maxCurvatureDir - direction of the maximum principal curvature. Can be null
    • Curvature Link icon

      public Curvature(double minPrincipal, double maxPrincipal, double gaussian, double mean, javax.vecmath.Vector3d minCurvatureDir, javax.vecmath.Vector3d maxCurvatureDir)
      Creates an instance of a Curvature record class.
      Parameters:
      minPrincipal - the value for the minPrincipal record component
      maxPrincipal - the value for the maxPrincipal record component
      gaussian - the value for the gaussian record component
      mean - the value for the mean record component
      minCurvatureDir - the value for the minCurvatureDir record component
      maxCurvatureDir - the value for the maxCurvatureDir record component
  • Method Details Link icon

    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • minPrincipal Link icon

      public double minPrincipal()
      Returns the value of the minPrincipal record component.
      Returns:
      the value of the minPrincipal record component
    • maxPrincipal Link icon

      public double maxPrincipal()
      Returns the value of the maxPrincipal record component.
      Returns:
      the value of the maxPrincipal record component
    • gaussian Link icon

      public double gaussian()
      Returns the value of the gaussian record component.
      Returns:
      the value of the gaussian record component
    • mean Link icon

      public double mean()
      Returns the value of the mean record component.
      Returns:
      the value of the mean record component
    • minCurvatureDir Link icon

      public javax.vecmath.Vector3d minCurvatureDir()
      Returns the value of the minCurvatureDir record component.
      Returns:
      the value of the minCurvatureDir record component
    • maxCurvatureDir Link icon

      public javax.vecmath.Vector3d maxCurvatureDir()
      Returns the value of the maxCurvatureDir record component.
      Returns:
      the value of the maxCurvatureDir record component