Please be kindly noted that Gallery will be under scheduled maintenance on Thursday, June 21st UTC 4am-6am.During the time system will not be available,thanks for your understanding and support.

×

Please be kindly noted that Gallery will be under scheduled maintenance on Thursday, June 21st UTC 4am-6am.During the time system will not be available,thanks for your understanding and support.

×

Voronoi Script

Voronoi Script

  • Voronoi-16x4-cells-walnut

    Voronoi-16x4-Cells-Walnut.png

    1309.0KB

    2015/03/10

  • Voronoi-sketch-gen---settings-3500-3500

    Voronoi Sketch Gen - Settings.png

    28.0KB

    2018/12/03

  • Voronoi-256-cells-brass

    Voronoi-256-Cells-Brass.png

    781.0KB

    2015/03/09

  • Voronoi-128-cells-copper

    Voronoi-128-Cells-Copper.png

    2031.0KB

    2015/03/07

  • Screen_shot_2015-03-06_at_4.32.41_pm

    Screen_Shot_2015-03-06_at_4.32.41_PM.png

    1087.0KB

    2015/03/07

  • Screen_shot_2015-03-06_at_4.39.29_pm

    Screen_Shot_2015-03-06_at_4.39.29_PM.png

    2305.0KB

    2015/03/07

  • 3dmodelthumbtraninprogress80x80
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. These 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.

Comments
X120

Great work, Hopefully Autodesk will make use of such great efforts to make the WRAP SKETCH / TEXT an available and easy command.

over 1 year ago
X120

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 :)

over 1 year ago
X120

A good job!

about 2 years ago
X120

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.

almost 4 years ago
User_x176

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

almost 4 years ago
X176

Hans: Do you prefer here or in Github? :)

almost 4 years ago
X120

Hi Rafael - Feel free to offer up suggestions!

almost 4 years ago
X176

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. :)

almost 4 years ago
X120

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.

almost 4 years ago
X176

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!

almost 4 years ago
X120

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.

almost 4 years ago
X120

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.

almost 4 years ago
User_x176

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

almost 4 years ago
X120

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.

almost 4 years ago
User_x176

Would anyone have any pointers on how to go about this.. im not a CAD expert though......

almost 4 years ago
X120

here is my project created with it

https://gallery.autodesk.com/fusion360/projects/25810/artificial-leg?searched=

about 4 years ago
X120

very cool ! thanks man !

about 4 years ago
Default_avatar

Thanks for sharing this Hans!

over 4 years ago
X176

Fantastic.

almost 5 years ago
X176

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.

almost 5 years ago
X176

That is extraordinarily cool. I can't wait to try it out.

almost 5 years ago
X176

Yeah! Here we go. So excited to get better at this. Really neat!

almost 5 years ago
X120
Hans Kellner
California, United States of America
OPEN/DOWNLOAD THE MODEL

The license and other terms for contributing and using assets in the Autodesk Gallery are found in theAutodesk Terms of Use.

Statistics

  • 17 K
  • 22
  • 93
Industries

Categories

Products

Tags

Autodesk Online Gallery

© 2014 Autodesk, Inc. All rights reserved.

All use of this Service is subject to the terms and conditions of the applicable Autodesk terms of service accepted upon access of this Service.

This Service may incorporate or use background Autodesk technology components. For information about these components, click here: http://www.autodesk.com/cloud-platform-components

Trademarks

Autodesk, the Autodesk logo, and Fusion 360 are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates.

All other brand names, product names or trademarks belong to their respective holders.

Third-Party Software Credits and Attributions

Ruby gems is Copyright (c) Chad Fowler, Rich Kilmer, Jim Weirich and others. Portions copyright (c) Engine Yard and Andre Arko

bootstrap-select.js is Copyright (C) 2013 bootstrap-select

Backbone.js is Copyright (c) 2010-2013 Jeremy Ashkenas, DocumentCloud

Apple-Style Flip Counter is Copyright (c) 2010 Chris Nanney

imagesLoaded is Copyright © 2013 David DeSandro

jQuery is Copyright 2013 jQuery Foundation and other contributors http://jquery.com/

jQuery timepicker addon is Copyright (c) 2013 Trent Richardson

jQuery ColorBox is Copyright (c) 2013 Jack Moore

jQuery.gritter is Copyright (c) 2013 Jordan Boesch

Masonry is Copyright (c) 2013 David DeSandro

Underscore is Copyright (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative

Reporters & Editors

underscore_string is Copyright (c) 2011 Esa-Matti Suuronen esa-matti@suuronen.org

Icanhaz.js is ICanHaz.js is Copyright (c) 2010 Henrik Joreteg (Mustache and Mustache.js are Copyright (c) 2009 Chris Wanstrath (Ruby) and Copyright (c) 2010 Jan Lehnardt (JavaScript) respectively)

Calendario is Copyright (c) Codrops 2014 by tympanus

All the above software components are licensed under the MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Portions relating to lightbox are licensed under Creative Commons Attribution 2.5 License (http://creativecommons.org/licenses/by/2.5/). Lightbox was authored by Lokesh Dhakar (lokeshdhakar.com).