VoronoiToTissue Cellzilla2D Home

Description

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

Needs["Cellzilla2D`"];

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.

Options

Example

[ 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

TemplateRandom



[ 2017 June 18 ]