Package jme3tools.optimize
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCollapses vertices until the cost exceeds the given value.Number of triangles to be removed from the mesh.Percentage of triangles to be removed from the mesh. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static LodGenerator.TriangleReductionMethod[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROPORTIONAL
Percentage of triangles to be removed from the mesh. Valid range is a number between 0.0 and 1.0 -
CONSTANT
Number of triangles to be removed from the mesh. Pass an integer or it will be rounded. -
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
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
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 nameNullPointerException
- if the argument is null
-