Hi Bob,
Thanks a lot for the data points. I'll give that a try. Earlier today, in trying to understand how to achieve polygons
with different number of sides I traces the points off a voronoi picture on a web page and assigned x,y coordinates
to the point right from the green engineering graph paper and it worked. I got very nearly the same shapes as
in the web picture. So that led me to understand that the shape, size, arrangement, etc are just a product of
x,y placement. Good to know. Oh, and clipping is necessary.
Now, as for the programming. I did something similar to what you did. I created a Perl/Tk window to display the
voronoi polygons and assigned different colors to them to make them stand out better. So far the graphic part
is very crude. I haven't even dealt with scaling the image yet. But it works to see how the voronoi is shaping up.
The plugin. I started by trying to create it with python which I know next to nothing about. I got within one
statement of getting it operational, but when it failed to compile on cambam due to a missing "split" command,
I just gave up. If basic string tools are missing, I just didn't want to fight that.
So I switched to C#, another toolset I know next to nothing about. %-) But after a lot of successful google searches
on how to do things the C# way :-) I succeeded in creating the plugin. The plugin is responsible for just loading
the polygons from a file and installing them as polygons in cambam. I've just about got an instruction/cheatsheet
written to describe the steps needed to deal with the clipping/cropping issue you pointed out. If the polygons
you're loading are good to go without editing then that's the easy case. But, as I have been discovering with my
testing of random arrays of points, the good part is in the middle of wild and crazy polygons around the edges.
In that case there's a process to clip the polygons and then repair all the ones around the outside edges.
Not hard, but tedious. I'll include pics.
It sounds like you're interested in the plugin, so I'll upload it in the next day or so. I have made a fair bit of effort
to insure the polygons file is of proper format. We'll see how long it takes for someone to find a corner case
I don't handle. I want to add a readme file with some info on the polygons file format to follow.
My perl program still needs a bit of work, not ready for prime time just yet.
I sure liked your ideas about an all inclusive plugin to do it all. Is the voronoi math module available in C#?
Might be interesting to try that some day.
Mike