PLAYGROUND (experimental)

delaunay

Delaunay's triangulation - returns the optimal triangles of a set of points, with no points inside their circumcircles. Return a list of triangles
delaunay(
    points
)

Delaunay's triangulation - returns the optimal triangles of a set of points, with no points inside their circumcircles. Return a list of triangles

Syntaxe

var pts = delaunay(points=[x1,y1,x2,y2...]) ; // [x1,y1,x2,y2,x3,y3, x1,y1,x2,y2,x3,y3, ...]

Arguments

NameTypeRequiredDefaultDescription
pointsyes-list of points [x1,y1,x2,y2...]