voronoi
voronoi(points, [triangles], [bbox])
Cells of Voronoi - returns the cells around each point, containing all locations closest to that point. Return a list of list of polygons
Syntaxe
var cells = voronoi(points=[x1,y1,x2,y2,x3,y3])
Arguments
| Name | Required | Default | Description |
|---|---|---|---|
points | yes | - | list of points [x1,y1,x2,y2...] |
triangles | - | - | list of triangles (flat), auto delaunay if omitted |
bbox | - | - | bounding box [x1,y1,x2,y2], auto if omitted |