VoronoiToTissue Cellzilla2D Home


Generates a tissue based on a constrained Voronoi diagram. The constraint must be a convex polygon that contains that contains all of the vertices.


Return Value

VoronoiToTissue[points, polygon] where points is a list of Voronoi centers {{x1, y1}, {x2, y2}, ...} and polygon is a list of vertices that enclose of the Voronoi center. The polygon also has the form {{x1, y1}, {x2, y2}, ...} but must be convex.



[ Download Example as Zipped Mathematica Notebook ]

Implementation Notes

Possible Issues

If the Voronoi solution is not unique the function could fail. Try to change the boundary or the collection of points. In particular, points on a regular grid will cause problems.

See Also


[ 2017 June 18 ]