Enum Class MeshDistanceConfig.Method

java.lang.Object
java.lang.Enum<MeshDistanceConfig.Method>
cz.fidentis.analyst.engines.distance.MeshDistanceConfig.Method
All Implemented Interfaces:
Serializable, Comparable<MeshDistanceConfig.Method>, Constable
Enclosing class:
MeshDistanceConfig

public static enum MeshDistanceConfig.Method extends Enum<MeshDistanceConfig.Method>
Sampling method.
  • Enum Constant Details

    • POINT_TO_TRIANGLE_NEAREST_NEIGHBORS

      public static final MeshDistanceConfig.Method POINT_TO_TRIANGLE_NEAREST_NEIGHBORS
      A point-to-point algorithm. It can produce "noise". If there are multiple closest points at the primary mesh, then it is not possible to choose which of them is correct (better). Therefore, the Double.POSITIVE_INFINITY value is set as the distance for this vertices. If this situation happens with human faces, we would consider this part of the face as noisy anyway, trying to avoid these parts from further processing.
    • POINT_TO_POINT_NEAREST_NEIGHBORS

      public static final MeshDistanceConfig.Method POINT_TO_POINT_NEAREST_NEIGHBORS
      Fast point-to-triangle distance strategy. Produces more precise results than the point-to-point strategy, but is not geometrically correct. Can produce "noise" in the sense that it may not find the really closest triangle on "wrinkly" surfaces. If this situation happens with human faces, we would consider this part of the face as noisy anyway, trying to avoid these parts from further processing. The algorithm supports both relative and absolute distances.
    • RAY_CASTING

      public static final MeshDistanceConfig.Method RAY_CASTING
      Casting rays from visited meshes in the direction of their normal vectors.
    • RAY_CASTING_GPU

      public static final MeshDistanceConfig.Method RAY_CASTING_GPU
      Casting rays from visited meshes in the direction of their normal vectors. Runs on GPU. Available only for systems with OpenGL >= 4.3
  • Method Details

    • values

      public static MeshDistanceConfig.Method[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MeshDistanceConfig.Method valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null