Voronoi Script
Voronoi Script
Voronoi-16x4-Cells-Walnut.png
1309KB
2015/03/10
VoronoiSketchGenerator.png
1114KB
2021/01/20
VoronoiDialog.png
12KB
2021/01/20
VoronoiDialog_Profile.png
32KB
2021/01/20
VoronoiSketchGenerator-Relax20Stars.png
243KB
2021/01/20
Voronoi_Star_Field_2021_sm.jpg
77KB
2021/01/20
Voronoi-256-Cells-Brass.png
781KB
2015/03/09
Voronoi-128-Cells-Copper.png
2031KB
2015/03/07
Screen_Shot_2015-03-06_at_4.32.41_PM.png
1087KB
2015/03/07
Screen_Shot_2015-03-06_at_4.39.29_PM.png
2305KB
2015/03/07
Description
I've created a small Fusion 360 script for generating Voronoi patterns. When run, the patterns are generated as either straight edged polygons or closed splines within a sketch. There's also an option to insert symbols (stars, circles, etc) instead. The sketch created can then be used for creating or modifying bodies.
The flat sample model shown in the images was created using the Model->Sketch->Project/Include->Project to Surface command. The voronoi curves were projected onto one side of the flat surface. The projected curves were then used to cut the model.
For the cylinder and rounded cube it was a bit more work. The Project to Surface command does not work with curved surfaces. Instead, I created construction planes oriented along the side of the model I wanted to apply the pattern. For example, I created 4 planes around the cylinder. The should be done before creating the voronoi sketches since they must be moved using the "Redefine" command. This command requires selecting a plane to move the sketch to and if the plane was created after then it will not be selectable. Phew. Ok, so I created the four construction planes then generated 4 voronoi sketches. I then used the Sketch->Redefine command to move and align each of the voronoi sketches. At that point, for each voronoi sketch, I used the Modify->Press/Pull command to cut the model with the sketch curves.
You may download the script from here:
https://github.com/hanskellner/Fusion360Voronoi
Also, you might be interested in my Wrap Sketch add-in which makes it easier to wrap a voronoi onto a cylindrical surface:
https://github.com/hanskellner/Fusion360WrapSketch
Note: The above wrap sketch script is no longer necessary with the sheet metal support now part of Fusion. Use the wrap/unwrap functionality with a Voronoi pattern on the surface.

Hans Kellner
California, United States of AmericaThe license and other terms for contributing and using assets in the Autodesk Gallery are found in theAutodesk Terms of Use.
- Voronoi_128_Cells-V2.f3d1.52 MB
Statistics
- 21 K
- 23
- 110
Comments
Major update (v3) just posted. Most recent version available on my Github page linked in description.
Great work, Hopefully Autodesk will make use of such great efforts to make the WRAP SKETCH / TEXT an available and easy command.
Hi Pieter,
It seems that voronoi sketch generator is an excellent add to Fusion 360, however we always seek the best from Autodesk and its marvelous developers!! How about adding some more features to this amazing add?!!
Like the shape of the sketch frame, more patterns including not just straight and curved, but polygons and much more, ability to rotate and scale patterns as a whole.
Thanks in advance :)
A good job!
Hi Pieter -
Glad you like the script.
I'm not sure I understand your question. The Voronoi script creates splines for each of the cells. You may then edit the individual splines to adjust their shapes.
Hi Hans, great script!
Does anyone know of a workaround how you can adjust some curve, e.g. like convert them to adjustable splines after their generation?
Thanks in advance,
Pieter
Hans: Do you prefer here or in Github? :)
Hi Rafael - Feel free to offer up suggestions!
Thanks Hans! The only problem for me is, that I am a noob in programming. I can help you with the script, maybe, giving you suggestions of improvements if you want. :)
Hi all - just back from vacation and catching up.
Rafael - Yes, that would be great. You can fork the project at https://github.com/hanskellner/Fusion360Voronoi and then submit a request to integrate your changes into the main project.
Blow fish - Correct. The script only produces the 2D pattern.
Hey Hans! Really cool project! It need a couple of refinements, but after that i should be on the Fusion 360 Scripts gallery.
Could we help you at anything, to accelerate and improve this Voronoi Scripts?
Thanks!
Hey Hans
First Happy New Year.
I just got to try your scrip sounds very interesting to be honest, as I am starting to put together some script of my own too using C++, however while using your script I am not sure if I miss something or what.
Does the script just produce the 2D pattern rather than the 3D pattern (cut outs/ holes). is it correct?
Keep up the good work.
Hi William -
It's not possible at this time to project sketches onto a curved surface that you can then use to press/pull (cut) from the surface. Therefore, examples you see here, such as the rounded container, all use the technique I describe above. The holes may appear perpendicular to the surface but that's only because I created several construction planes around the surface.
Hi Hans, many thanks for getting back to me so quickly. I have been playing around with 360 for a while and know most of the tools although im sure my workflow isnt as proffesional it should be. I was curious as to how you acheived the cut outs on the cylinder by projecting 4 planes. the reason I ask is that I am playing around with a model of a prosthetic lower limb and would like to create astetic covers. You may already have seen a similar idea however I am thinking of another way to maufacture them here as i access to a 7 axis carver. this was my origional post on the help page but i dont think i made my request very clear..... of course there may be a simpler way to achieve this. I did think that your process would be quicker and more accurate than creating patterns on the surface using 3d sketch.
http://forums.autodesk.com/t5/design-validate-document/vorinoir-script-projection-to-curved-surface/m-p/5956041
The model is there if you wish to have a look. its roughly sculpted and not to any particular scale. I would like to be able to project the script and possibly other .svg patterns to the surface in a similar manner to your model above so I can do the cuts perpendicular to the surface as opposed to what I have done in my model.
Any ideas would be very helpful if you have the time.
thanks
Bill
Hi William -
What specifically are you asking? How familiar are you with Fusion 360?
The Voronoi script will generate a sketch within Fusion 360 that you can then use for a variety of things. In the examples above I have used the script to create a sketch and then used the sketch to cut out sections of geometry with the Press/Pull command. There's Fusion 360 help on sketching and on using the Press/Pull command.
Would anyone have any pointers on how to go about this.. im not a CAD expert though......
here is my project created with it
https://gallery.autodesk.com/fusion360/projects/25810/artificial-leg?searched=
very cool ! thanks man !
Thanks for sharing this Hans!
Fantastic.
This is fantastic! Drop me a line if you would like to have a chat about the API and give us feedback on things we could improve.
That is extraordinarily cool. I can't wait to try it out.
Yeah! Here we go. So excited to get better at this. Really neat!