Voronoi Sketch Generator Script for Autodesk Fusion 360
JavaScript HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
resources Added Voronoi table May 13, 2015
CREDITS.md Update CREDITS.md Mar 10, 2015
LICENSE.md Lots of cleanup Mar 10, 2015
README.md Image updates May 13, 2015
Voronoi.html Updated to support API changes. Feb 14, 2016
Voronoi.js Updated to support API changes. Feb 14, 2016


Fusion360Voronoi Fusion360Voronoi

This script is used for generating voronoi sketches in Autodesk Fusion 360. Once created, these sketches may then be used for creating or modifying models.

Image of Voronoi Table

Image of Voronoi 128 Cell Sample


Copy the "Fusion360Voronoi" folder into your Fusion 360 "My Scripts" folder. You may find this folder using the following steps:

  1. Start Fusion 360 and then select the File -> "Scripts and Add-Ins..." menu item
  2. The Scripts and Add-Ins dialog will appear and display the "My Scripts" and "Sample Scripts" folders
  3. Select one of the "My Scripts" files and then click on the "+" Details icon near the bottom of the dialog.
    • If there are no files in the "My Scripts" folder then create a default one by clicking the Create button, select JavaScript, and then OK.
  4. With a user script selected and the "Details" section expanded, look at the Full Path value. This contains the location of the user scripts folder.
  5. Copy this script's folder into that location. For example, on my Mac the folder is located in: /Users/USERNAME/Library/Application Support/Autodesk/Autodesk Fusion 360/API/Scripts And on Windows: C:\users\USERNAME\AppData\Roaming\Autodesk\Autodesk Fusion 360\API\Scripts
  6. Now add the script to the lists of "My Scripts"
  7. Click the "+" icon next to the "my Scripts" item
    • The "Add new script" dialog should appear.
  8. Locate the Voronoi.js file in the folder you copied, select it, and click Open. The script should now be installed and ready to be run.

The script should be ready to run.


  1. Run the "Voronoi" script from the Script Manager
  2. The settings dialog will be shown. Adjust to your preferences:

    Image of Voronoi Settings

    • Edge Style: Straight or Curved edges
    • Number of Cells (2-256) : Number of cells created in the sketch
    • Pattern width : Width of the area filled with cells
    • Pattern height : Height of the area filled with cells
    • % to scale cells (10-100) : Percentage to scale down each of the cells
  3. Click OK to generate the sketch

Note that a large number (> 128) of cells may take a while to generate (sometimes several minutes).

Once the voronoi sketch is created I will usually project the geometry onto a surface and then modify from there. Note that projecting onto a curved surface will not work at this time. In this case I'll use push/pull on the voronoi geometry to modify existing models. The image above was created using this method and a 128 cell voronoi pattern.


Examples posted on my Fusion 360 project gallery.

Image of Voronoi 256 Cell Sample

Image of Voronoi 256 Cell Sample


  • One cell may not be filled after generation. Adjusting a control point then forces it to fill.
  • It's not possible to adjust the spline's knots and strengths therefore the curves don't conform as close as they should. The "% Scale Cell" value is a workaround for this. Scaling down the cells reduces the possible overlap of the cells.


This code makes use of the Raymond Hill's well done Javascript-Voronoi code: https://github.com/gorhill/Javascript-Voronoi