pub fn drop_degenerate_rings(
ring_refs: &[Vec<u32>],
structure: &[Vec<Vec<usize>>],
arcs: Vec<Arc<i32>>,
stats: &mut CleanStats,
) -> CleanedTopoExpand description
Drops rings that quantization collapsed to zero area: a degenerate hole
vanishes alone, and a degenerate exterior takes its holes with it. Arcs
that no surviving ring references are removed, and their ids are
compacted. Returns the
filtered (ring_refs, structure, arcs) mirroring Topology’s fields.
Dropping a zero-area ring can’t open a crack with a neighbour: there was
no area to disagree about.
§Panics
Panics if a polygon has more than u32::MAX rings.