Function decimate

Source
pub fn decimate(
    mesh: &TriMesh,
    target: DecimateTarget,
    tolerance: Tolerance,
) -> Result<(TriMesh, DecimateReport), DecimateError>
Expand description

Decimate a triangle mesh by edge collapse.

Deterministic: candidate edges are ordered by length then by vertex index, so the same input and target produce the same output on every run, matching the determinism discipline the plan contract established in v0.6.

ยงErrors

Refuses a ragged index buffer, out-of-range indices, and a non-positive deviation bound.