Voronoi

Computes the Voronoi cells of a set of points inside an area.

Node id tessellation/voronoi

The Voronoi node computes the Voronoi cells of a collection of points inside an area. For each input point, its Voronoi cell is the region of the area closer to that point than to any other. Output cells are returned as Polygons, so they can be drawn, transformed, and styled like any shape.

Inputs

NameTypeDefaultNotes
pointsArray<Point>—
areaBoundingBox—

Outputs

NameTypeNotes
cellsArray<Polygon>
sitesArray<Point>

Behaviour

  • Centroids and positions. Each returned cell is a Polygon whose position (transform) is set to the cell's area centroid, and whose vertices are relative to that centroid. Rotating or scaling a cell acts around its centre (e.g. scaling by 0.9 shrinks cells toward their centroids, leaving gaps between them).
  • Sites output. sites is parallel to cells: sites[i] is the site point that generated cells[i]. Points outside the area or duplicates that produce empty or degenerate cells are skipped, so both cells and sites can be shorter than points.
  • Drawing. Array outputs spread into multi-inputs, so cells can be connected directly to the Output node.

Errors

  • area must be connected (for example from Make BoundingBox or Page).
  • Non-finite coordinates in area or in any point of points are node errors.
  • Providing more than 10 000 points is a node error.

Example

Voronoi cells generated from an orthogonal grid inside a bounding box.

Voronoi cells generated from an orthogonal grid inside a bounding boxOpen in Playground
© 2026 Wirepaint