Creator:  Jonathan Puckey
Date:  21. January 2011, 16:43

www.vimeo.com/19167659

Voronoi Tool is a Scriptographer implementation of the Voronoi library created by Raymond Hill.

Click and drag in your document to add points to the diagram.

Shift + Click + Drag to move a point

Alt + Click to remove a point

Select one or more paths and click on 'Add Selected Points' to add their points to the diagram.

Also included are a number of grid generators, which might be expanded in the future.

Undo is supported.

Re: problems on CS3
From:  Robert
Date:  21. March 2011, 19:43

Are we CS3 users missing something with the Voronoi Tool? Or is it just incompatible? Like the others I would really like to use it but get exactly the same scrambling and blobs on the left in grid feature. Is it purely for later versions of Illustrator?

Re: problems on CS3
From:  François
Date:  3. May 2011, 20:17

I'm having the same troubles in cs3. Despite that it's still a great work you did ! i hope you'll find time to fix that !

Centers?
From:  Massimo Marolda
Date:  15. May 2011, 00:16

Is there a way to draw the voronoi centers of the diagram you're drawing? Maybe some js that we can add?

voronoi
From:  lucas
Date:  16. May 2011, 01:09

Dear all
I need help work with Voronoi tool.
Some one allready work with this script and with the comand Grid Generator.

I need work with this script.

Thank

Re: voronoi
From:  R. Hill
Date:  30. May 2011, 16:53

I am the author of the Javascript Voronoi() library used by this plug-in (on which I have no control.)

Just a word to let people know that I've brought significant change to the Voronoi code, to fix nagging arithmetic finite precision issues (sometimes causing failure in computing final Voronoi graphes) and especially in improving performance. The code is now available on Github at https://github.com/gorhill/Javascript-Voronoi

The usage has changed slightly, from:
this.voronoi.setSites(this.points);
var diagram = this.voronoi.compute(this.bbox);

To:
var diagram = this.voronoi.compute(this.points, this.bbox);

So hopefully the author of this plug-in will revise his plug-in to incorporate and benefit from the improved code.

Re: voronoi
Date:  30. May 2011, 21:34

Hi Raymond,

Thanks for the info, I will update the code as soon as I have a free moment.

We're currently in the middle of releasing Paper.js, a Canvas based vector graphics programming framework based on Scriptographer: https://github.com/scriptographer/paper.js - maybe it could also be of interest for you.

greetings,
Jonathan

Re: voronoi
From:  Brian
Date:  23. June 2011, 19:01

very cool script. i used it one time without any trouble. but sometimes i get some trouble with it. it does not create shapes in the same layer (in fact it does, but it seems like it creates a new one because the new shape does not rasterize to the other shapes). i get these error code:

TypeError: Cannot read property "id" from undefined
at Examples\Scripts\Voronoi Tool.js:241
at Examples\Scripts\Voronoi Tool.js:205
at Examples\Scripts\Voronoi Tool.js:200
at Examples\Scripts\Voronoi Tool.js:302
at Examples\Scripts\Voronoi Tool.js:323
at Examples\Scripts\Voronoi Tool.js:30

sometimes the shift and alt key does not have any function so it always create a new shape. any troubleshooting?

otherwise: cool tool :)

stitched some red threads onto black cardboard. looks very cool as a greetings- or postcard. will blog some photos soon.

best regards

Re: voronoi
From:  Brian
Date:  23. June 2011, 21:45

can not edit my comment. here is what i did:

http://www.cross-creations.de/blog/voronoi-gruskarte

Re: voronoi
From:  adrian
Date:  28. September 2011, 14:26

I'd like to form voronois within user-defined boundaries, for instance a circle, rather than a rectangle. Is this possible?
Cheers

Re: voronoi
Date:  18. January 2012, 11:09

Great script! works well for me ( Illustrator CS5 -15.0.2 windows XP)

My work with Voronoi ---> http://evidenciasdelmal.blogspot.com/2012/01/voronoi-illustrator-script.html