pub fn clean_arc(arc: &mut Arc<i32>, closed: bool, stats: &mut CleanStats)Expand description
Removes quantization artifacts from one quantized arc, in place.
An interior vertex goes when it duplicates its predecessor, when the path
reverses over it along the same line (a zero-area spike; the pass
iterates, so multi-vertex spurs unwind fully), or when it lies
collinearly between its
neighbours. closed arcs (cut-free rings, stored with first == last) are
cleaned cyclically so artifacts at the arbitrary start vertex are caught
too; open arcs never lose their endpoints: those are junctions shared
with other arcs.