Package com.io7m.smfj.processing.main
Interface SMFMemoryMeshFilterTrianglesOptimizeConfigurationType
-
- All Known Implementing Classes:
SMFMemoryMeshFilterTrianglesOptimizeConfiguration
@Immutable public interface SMFMemoryMeshFilterTrianglesOptimizeConfigurationTypeA specification of how triangles should be processed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcheckPreconditions()Check preconditions for the type.java.util.OptionalIntoptimize()A specification of whether triangles should be optimized.booleanvalidate()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:
trueiff triangle indices should be validated
-
checkPreconditions
@Check default void checkPreconditions()
Check preconditions for the type.
-
-