Enum Class LodGenerator.TriangleReductionMethod

java.lang.Object
java.lang.Enum<LodGenerator.TriangleReductionMethod>
jme3tools.optimize.LodGenerator.TriangleReductionMethod
All Implemented Interfaces:
Serializable, Comparable<LodGenerator.TriangleReductionMethod>, Constable
Enclosing class:
LodGenerator

public static enum LodGenerator.TriangleReductionMethod extends Enum<LodGenerator.TriangleReductionMethod>
Enumerate criteria for removing triangles.
  • Enum Constant Details

    • PROPORTIONAL

      public static final LodGenerator.TriangleReductionMethod PROPORTIONAL
      Percentage of triangles to be removed from the mesh. Valid range is a number between 0.0 and 1.0
    • CONSTANT

      public static final LodGenerator.TriangleReductionMethod CONSTANT
      Number of triangles to be removed from the mesh. Pass an integer or it will be rounded.
    • COLLAPSE_COST

      public static final LodGenerator.TriangleReductionMethod COLLAPSE_COST
      Collapses vertices until the cost exceeds the given value. Collapse cost indicates how much inaccuracy the reduction causes. This generates the best LOD output, but the collapse cost is implementation-dependant.
  • Method Details

    • values

      public static LodGenerator.TriangleReductionMethod[] 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 LodGenerator.TriangleReductionMethod 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