Skip to main content

triangulate_with_holes

Function triangulate_with_holes 

Source
pub fn triangulate_with_holes<S: Scalar>(
    outer: &[Vector2<S>],
    holes: &[Vec<Vector2<S>>],
) -> GeopResult<Vec<(Vector2<S>, Vector2<S>, Vector2<S>)>>
Expand description

Triangulate outer (a simple polygon) minus holes (simple polygons strictly inside outer and disjoint from each other), returning triangles as (a, b, c) vertex triples.