Following threads in p.b.images, here's a more generically-useful version of my
It's a macro that produces an array of Voronoi polygons in the x-z plane given
an input array of seed points. Each polygon is stored as a list of vertices, so
each element in the output array is itself an array of points (NOT a 2D array!).
The macro also removes collinear points, so each polygon might not be the same
size (use dimension_size to find the number of vertices for each polygon).
Also included is my util macro for shrinking a partly-assigned array.
Post a reply to this message
Download 'voronoi.inc.txt' (3 KB)