We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
VoronoiMesh[{p1,…,pn},{{xmin,xmax},…}]
clips the mesh to the bounds .
Details and Options Examplesopen allclose all Basic Examples (2)Create a 1D Voronoi mesh from a set of points:
Each point corresponds to a Voronoi cell, which is an interval in the 1D case:
Create a 2D Voronoi mesh from a set of points:
Each point corresponds to a Voronoi cell:
Scope (2)Create a 1D Voronoi mesh from a set of points:
Voronoi meshes are full-dimensional:
Voronoi meshes are bounded by their clipping values:
Create a 2D Voronoi mesh from a set of points:
Voronoi meshes are full-dimensional:
Voronoi meshes are bounded by their clipping values:
Options (11) MeshCellHighlight (2)MeshCellHighlight allows you to specify highlighting for parts of a VoronoiMesh:
Individual cells can be highlighted using their cell index:
MeshCellLabel (2)MeshCellLabel can be used to label parts of a VoronoiMesh:
Individual cells can be labeled using their cell index:
MeshCellShapeFunction (2) MeshCellStyle (2)MeshCellStyle allows you to specify styling for parts of a VoronoiMesh:
Individual cells can be highlighted using their cell index:
PlotTheme (2)Use a theme with grid lines and a legend:
Use a theme to draw a wireframe:
Applications (8) Basic Applications (2)Create an interactive Voronoi mesh with draggable points. Use Click on the Voronoi mesh to add and remove draggable points:
Voronoi meshes for simple point configurations including a grid:
Geography (1)Create an interactive map of the closest large city in Italy. Start by getting names and coordinate data for large cities in Italy:
Nearest function for labeling region cells:
Generate a Voronoi mesh from city coordinates:
Create a tooltip map from the Voronoi mesh:
Mouse over the map to get the name of the closest large city:
Physics (1)Generate and visualize the Voronoi cells, also known as Brillouin zones:
Image Processing (1)Create a polygonal mosaic from an image:
Create a Voronoi mesh from the edge positions:
Recursively apply VoronoiMesh to the mean vertex positions of the precursive Voronoi cells to create a more uniform mesh:
Color each polygon with the image color coinciding with its mean vertex positions:
Other (3)Create a jigsaw puzzle from a random Voronoi mesh:
Define a function that converts a line to an interlocking edge:
Replace lines of sufficient length with an interlocking edge:
Visualize a piecewise constant interpolation of a function over a set of random point samples:
Voronoi mesh from , sample coordinates:
Function to rescale values to :
Piecewise constant contour plot of sample data:
A similar plot can also be achieved with ListContourPlot:
Plan a path for a point robot through a random set of point obstacles by following Voronoi edges:
Generate Voronoi edges around the obstacles:
Create an undirected Graph from the Voronoi edges with their lengths as edge weights:
Use Nearest function to find the closest Voronoi vertices to the start and end points:
Drag starting or ending points to explore different paths (red):
Properties & Relations (6)The output of VoronoiMesh is always a full-dimensional MeshRegion:
Each point of the original data is contained in exactly one cell in the Voronoi mesh:
VoronoiMesh is the dual of the DelaunayMesh:
Each Voronoi cell has a single point from the original point set:
The Voronoi cell for pi is given by :
Generate the conditions for each cell:
DistanceTransform for black points on a white background will be similar to VoronoiMesh:
2D Voronoi diagrams can be rendered in Graphics3D using Cone primitives:
Wolfram Research (2014), VoronoiMesh, Wolfram Language function, https://reference.wolfram.com/language/ref/VoronoiMesh.html (updated 2022). TextWolfram Research (2014), VoronoiMesh, Wolfram Language function, https://reference.wolfram.com/language/ref/VoronoiMesh.html (updated 2022).
CMSWolfram Language. 2014. "VoronoiMesh." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/VoronoiMesh.html.
APAWolfram Language. (2014). VoronoiMesh. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VoronoiMesh.html
BibTeX@misc{reference.wolfram_2025_voronoimesh, author="Wolfram Research", title="{VoronoiMesh}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/VoronoiMesh.html}", note=[Accessed: 08-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_voronoimesh, organization={Wolfram Research}, title={VoronoiMesh}, year={2022}, url={https://reference.wolfram.com/language/ref/VoronoiMesh.html}, note=[Accessed: 08-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4