Package com.io7m.smfj.processing.main
Interface SMFMemoryMeshFilterTrianglesOptimizeConfigurationType
-
- All Known Implementing Classes:
SMFMemoryMeshFilterTrianglesOptimizeConfiguration
@Immutable public interface SMFMemoryMeshFilterTrianglesOptimizeConfigurationType
A specification of how triangles should be processed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
checkPreconditions()
Check preconditions for the type.java.util.OptionalInt
optimize()
A specification of whether triangles should be optimized.boolean
validate()
A specification of whether or not triangle indices should be validated.
-
-
-
Method Detail
-
optimize
@Parameter java.util.OptionalInt optimize()
A specification of whether triangles should be optimized. If a value is provided, it represents the smallest size in bits that an implementation is allowed to use for triangle indices. If no value is specified, optimization is not performed.- Returns:
- The minimum size of triangle indices, if any
-
validate
@Parameter boolean validate()
A specification of whether or not triangle indices should be validated. A triangle index is valid iff there is an existing vertex with the same index value.- Returns:
true
iff triangle indices should be validated
-
checkPreconditions
@Check default void checkPreconditions()
Check preconditions for the type.
-
-