Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Approximate the generalized Voronoi mesh for non-overlapping geometries
ResourceFunction["ApproximateGeneralizedVoronoiMesh"][{g1,g2,…}] gives a MeshRegion that approximates the Voronoi mesh of curves approximated by the 2D points in lists g1,g2,…. | |
ResourceFunction["ApproximateGeneralizedVoronoiMesh"][{g1,g2,…},{{xmin,xmax},{ymin,ymax}}] clips the mesh to the bounds [xmin,xmax]⨯ [ymin,ymax]. |
Generate the Voronoi mesh for some points, lines and a parabola:
In[1]:= |
Out[1]= |
Since MeshRegion cannot contain polygons with holes, the Voronoi meshes which contain such polygons will contain edges so that such polygons can be represented without holes:
In[2]:= |
Out[2]= |
This work is licensed under a Creative Commons Attribution 4.0 International License