Skip to main content

triangulate_polygon

Function triangulate_polygon 

Source
pub fn triangulate_polygon(
    outer: &[[f64; 2]],
    holes: &[Vec<[f64; 2]>],
) -> Vec<[[f64; 2]; 3]>
Expand description

The region inside the simple polygon outer and outside every one of holes, as triangles: the grid’s own clipping on one cell, the polygon’s bounding box — no bridge joins a hole to the outline (see the module doc). None for a polygon that encloses nothing.