Const
Advanced
Triangulate an outline.
A flat array of vertice coordinates like [x0,y0, x1,y1, x2,y2, ...].
Optional
holes: ArrayLike<number>An array of hole indices if any (e.g. [5, 8] for a 12-vertice input would mean one hole with vertices 5–7 and another with 8–11).
Optional
dimensions: numberThe number of coordinates per vertice in the input array (2 by default).
A flat array with each group of three numbers indexing a triangle in the vertices
array.
A polygon triangulation library