Image2Surface Add-In for Autodesk Fusion 360
Image2Surface Add-In for Autodesk Fusion 360
This is an Autodesk Fusion add-in that's used for generating surfaces from images.
This surface was created from a small height map of a crater on Earth's moon. The first image is the mesh created from the script. The second is the T-Spline surface created from the mesh.
This is a penny that was milled out of a 4"x4" block of 6061 Aluminum. The surface was created from a height map of a penny. The mesh was then converted to a T-Spline then merged onto a cube. That model was brought into the CAM environment where the various milling operations were defined. Finally, it was milled on a Haas CNC vertical milling machine.
Please see the Fusion add-in install instructions here:
If you are installing manually, then please download the archive file (ZIP) from Github by clicking on the "Clone or download" button and then selecting "Download ZIP".
Once you have the ZIP file, please follow the manual install instructions in the link above.
Note, installing the add-in into the Fusion add-ins folder allows it to be found automatically and displayed in the add-ins list.
Important: This add-in requires the document to be in parametric modeling mode (i.e. Capturing design history).
Enter the Model environment
Run the Image2Surface add-in from the Scripts and Add-Ins Manager. Note, select the "Run on Startup" checkbox if you would like the add-in automatically started when Fusion starts up and avoid having to manually run each time.
Display the Image 2 Surface Palette.
Click on the SOLID->CREATE dropdown and then click on the "Show Image 2 Surface" menu item. This should display the palette.
This palette window contains a preview of the surface mesh that will be generated as well as controls for adjusting the mesh.
Once the mesh generated it will be added to the active drawing. You might have to "fit" the view to see it.
If you have created a mesh then it's useful to convert it to a T-Spline or BREP for further modification. Note, Fusion has a limitation on the size of the mesh that can be converted to a BREP (around 10K faces). With a T-Spline or BREP surface it's possible to CNC or 3D print.
Convert the Mesh to a T-Spline
Click on the "Create Form" button on the toolbar to enter the "Sculpt" environment
Click on the "Utilities" button and then the "Convert" item to display the dialog:
In the dialog, select the "Quad Mesh to T-Spline" type
For the "Selection", select the mesh in the drawing then click OK
Convert the Mesh to a BREP
Here's the heightmap image of the moon's surface that was used to generate the mesh and t-spline shown at the top of the page.
And here's the t-spline in the CAM environment being used to create toolpaths for milling:
The palette UI is styled with daisyUI (on Tailwind CSS) and rendered with Three.js (r137). The add-in itself ships no build step and no runtime CSS tooling — Fusion only loads the prebuilt, committed stylesheet css/app.css.
If you change the markup in Image2Surface.html (adding/removing daisyUI or Tailwind classes), regenerate the stylesheet:
npm install # one-time: installs the Tailwind CLI + daisyUI (dev only)
npm run build:css # regenerates css/app.css from src/tailwind.css
# or, while iterating:
npm run watch:css
package.json, src/tailwind.css, and node_modules/ are development-only and are not required at runtime. The theme (modern dark "dim", with "night" for OS dark mode) is configured in src/tailwind.css.
The parameter controls are plain HTML range/checkbox inputs (daisyUI range / toggle) wired to the surface generator in js/image2surface.js.
The grid patterns are modular: each lives in its own file under js/gridpatterns/ and self-registers with the GridPatterns registry. Adding a new pattern is a matter of dropping in a new file and a `` tag — see docs/GRID_PATTERNS.md for the generator contract.
No open issues yet, or sync has not completed.