Expand description
Per-element mesh simplification for the demesher (cavity removal, grid vertex-clustering decimation, bounding-box collapse). Per-element mesh simplification (“demesher”).
Reduces an element mesh’s triangle count for lightweight re-export:
enclosed-cavity removal (drops shells fully contained inside the outer
shell — bolt holes, internal machining detail), grid vertex-clustering
decimation (Rust port of the renderer’s LOD1 simplifyIndicesByClustering,
which is proven on this pipeline’s unwelded flat-shaded facet soup), and
bounding-box collapse. All passes key on vertex POSITION, never on index
topology, because the pipeline deliberately emits per-face duplicated
vertices (issue #846).
Structs§
- Simplify
Options - Simplification tuning for one element mesh.
- Simplify
Stats - What
simplify_meshdid to one element mesh.
Functions§
- simplify_
mesh - Simplify one element mesh. Returns a new mesh carrying the input’s
placement/frame metadata (
origin,rtc_applied,local_bounds,local_to_world) so world reconstruction (world = origin + position (+ rtc)) and the inverse-placement export path keep working.