Giter Club home page Giter Club logo

fusion360voronoi's Introduction

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

Installation

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.
  1. 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.
  2. 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
  3. Now add the script to the lists of "My Scripts"
  4. Click the "+" icon next to the "my Scripts" item
  • The "Add new script" dialog should appear.
  1. 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.

Usage

  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
  1. 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

Examples posted on my Fusion 360 project gallery.

Image of Voronoi 256 Cell Sample

Image of Voronoi 256 Cell Sample

Issues

  • 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.

Credits

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

fusion360voronoi's People

Contributors

brianekins avatar hanskellner avatar hanskwork avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.