triangulate2d

Function triangulate2d 

Source
pub fn triangulate2d(vertices: &Pt2s) -> Indices
Expand description

Triangulate a 2D polygon.

vertices: The vertices of the polygon.

return: An array of indices into the given vertex array.