Skip to main content

flatten

Function flatten 

Source
pub fn flatten(ops: &[PathOp], out: &mut Vec<Vec2>)
Expand description

Flattens ops into closed contours in out, each contour’s points followed by CONTOUR_BREAK. Every subpath is closed for the purpose of a fill, as SVG closes it. A move with nothing after it adds nothing.