voronoi
Cells of Voronoi - returns the cells around each point, containing all locations closest to that point. Return a list of list of polygons
voronoi(
points,
[triangles=false],
[bbox=false]
) -> list of list
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 | Type | Required | Default | Description |
|---|---|---|---|---|
points | list | yes | - | list of points [x1,y1,x2,y2...] |
triangles | bool | - | false | list of triangles (flat), auto delaunay if omitted |
bbox | bool | - | false | bounding box [x1,y1,x2,y2], auto if omitted |