Workspace 6.21.5
|
Modifies the level-of-detail of the input MeshModelInterface. Reducing the level-of-detail of a mesh abstracts its surface by removing selected triangles in a way that maintains the important visual features of the mesh. This can be useful for improving performance of rendering or processing operations without majorly impacting the visual results. A reduced mesh size (in terms of memory / storage space) is another effect of applying this operation. NOTE: This operation will only LOD triangle element types. Other types will be ignored.
Inputs: | |||
---|---|---|---|
MeshModelInterface | Modified-in-place | CSIRO::Mesh::MeshModelInterface | |
LOD reduction | double | 0->1 percentage to reduce the mesh | |
LOD | Deprecated | double | The level-of-detail error. A higher LOD value means that more triangles will be removed from the model. A value less than zero will disable this functionality. LOD error level input has been replace by the more intuitive 'LOD reduction' input - a 0->1 percentage deduction. |
Pre-LOD merge distance | Deprecated | double | Nodes with a proximity of this distance will be merged together as a pre-processing step. This can help speed up the algorithm. A value less than zero will disable this functionality. Pre-LOD merge is a very inefficient implementation of the pre-process that should not be used. |
Max tri normal change (deg) | double | The maximum allowed change in a triangle's normal direction (in degrees). A smaller value will result in the output mesh having a closer resemblance to the input mesh, but the detail will be reduced less. | |
Min tri area/length ratio | double | Minimum triangle area-to-length ratio allowed. This can help avoid splinters from being generated in the output mesh. | |
Free edge collapse angle (deg) | double | The angle used to determine whether a free edge (non-manifold edge) should be collapsed when 'Preserve free edges' is enabled. | |
Max new edge length | double | The maximum allowed edge length of a triangle in the output mesh. Useful for models with large homogenous regions that will be LODed down to large, single triangles. This will ensure that the triangles produced have a maximum size. | |
Save node states | bool | If enabled, node states are created on the output mesh for values used to perform the LOD. This can be useful for debugging. | |
Preserve free edges | bool | Do not collapse non-manifold edges unless angle change will be under 'Free edge collapse angle' | |
Stop at collapse number | int | Upper bound on the number of collapse operations performed. | |
Trace Progress | bool | If enabled, progress output is printed to the log. | |
Outputs: | |||
MeshModelInterface | CSIRO::Mesh::MeshModelInterface | ||
Reduction % | double | The percentage of triangles removed (0->1) |