An implementation of the earcut polygon triangulation algorithm. The code is a port of mapbox/earcut.


.triangulate (data, holeIndices, dim) : Array

data -- A flat array of vertice coordinates.

holeIndices -- An array of hole indices if any.

dim -- The number of coordinates per vertice in the input array.


For more info on how to obtain the source code of this module see this page.