WLJS LogoWLJS Notebook

VoronoiMesh

VoronoiMesh[{p1, ..., pn}] gives a MeshRegion representing the Voronoi mesh from the points p1, p2, ....

  • VoronoiMesh[{p1, ..., pn}, {{xmin, xmax}, ...}] clips the mesh to the bounds [xmin, xmax]×....

Examples

Create a Voronoi mesh from random points:

VoronoiMesh[RandomReal[1, {10, 2}]]

Clip the mesh to a specific region:

VoronoiMesh[RandomReal[1, {20, 2}], {{0, 1}, {0, 1}}]

Please visit the official Wolfram Language Reference for more details.

On this page