Skip to main content

triangulate_set

Function triangulate_set 

Source
pub fn triangulate_set(polys: &[Polygon]) -> Result<Triangulation>
Expand description

Triangulates a set of polygons with pairwise disjoint interiors (they may touch at vertices) into one triangulation sharing vertices between polygons.

Same input handling, guarantees and errors as triangulate; each polygon’s first ring is its outer ring. Islands inside holes of another polygon are fine.