pub fn triangulate_2d(outer: &[P2], holes: &[&[P2]]) -> Vec<[usize; 3]>Expand description
Triangulates a flat polygon with holes. The result indexes the outer loop’s points followed by each hole’s in turn, and runs the same way round as the outer loop. Degenerate input gives fewer (or no) triangles, never a panic.