This is a request for comment on a proposed extension to generate Voronoi Diagrams as a pattern. This is a follow-up to LP Bug 171901. https://bugs.launchpad.net/inkscape/+bug/171901
Details and source code are attached to that bug report (comment 4,5,6). Voronoi algorithm and code by Steven Fortune and Bill Simons.
On Sun, Jan 10, 2010 at 1:55 PM, Alvin Penner <penner@...1856...> wrote:
This is a request for comment on a proposed extension to generate Voronoi Diagrams as a pattern. This is a follow-up to LP Bug 171901. https://bugs.launchpad.net/inkscape/+bug/171901
1. I could easily crash it with 10px size:
Traceback (most recent call last):
File "C:\inkscape\inkscape\share\extensions\generate_voronoi.py", line 144, in <module>
e.affect()
File "c:\inkscape\inkscape\share\extensions\inkex.py", line 208, in affect
self.effect()
File "C:\inkscape\inkscape\share\extensions\generate_voronoi.py", line 106, in effect
voronoi.voronoi(sl, c)
File "C:\inkscape\inkscape\share\extensions\voronoi.py", line 200, in voronoi
edge = Edge.bisect(bot,newsite)
File "C:\inkscape\inkscape\share\extensions\voronoi.py", line 397, in bisect
newedge.a = dx/dy
ZeroDivisionError: float division
Can we make it more stable?
2. What's the use of making it a pattern? If you enlarge the path to reveal more of the pattern, the edges of the pattern tile won't match. This would make sense only if they matched, otherwise I think it should create subpaths of the current path, or a new path doing the subdivision.
3. It would make a lot more visual sense if it would coordinate with the nodes of the original path, by placing the nodes of the grid in these nodes. This way you won't even need the Size control because the size will depend on the density of nodes of the original path, and can be different in different parts of the fill. That will be much more useful e.g. to generate something as lifelike as scales on a turtle's legs.
Thanks! Working, awesome! beautiful .. :)
I use Debian SID + Inkscape 0.47-devel
2010/1/10 Alvin Penner <penner@...1856...>:
This is a request for comment on a proposed extension to generate Voronoi Diagrams as a pattern. This is a follow-up to LP Bug 171901. https://bugs.launchpad.net/inkscape/+bug/171901
Details and source code are attached to that bug report (comment 4,5,6). Voronoi algorithm and code by Steven Fortune and Bill Simons.
-- View this message in context: http://old.nabble.com/Proposal-for-Voronoi-Diagram-extension-tp27100645p2710... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
attaching an updated version of the file generate_voronoi.py. This version will not crash, as far as I can tell.
As for the interface, the reason for making it into a pattern was so that it would be reusable. It would be very nice if this pattern was repetitive, but I am not sure how to do that.
Something of this sort was, or is, available in GIMP as a plugin, will investigate a bit to see what they did. http://old.nabble.com/file/p27104652/generate_voronoi.py generate_voronoi.py
participants (3)
-
Alvin Penner
-
bulia byak
-
Valessio Brito