/go-scad

A tool to aid in construction of complex shapes using https://www.openscad.org/

Primary LanguageGo

go-scad

This is a tool to aid in construction of complex shapes using OpenSCAD. I wrote it because it's difficult to make objects with rounded corners and generally smooth transitions between features using OpenSCAD, but otherwise, it is the best way I've found to define 3D models using code.

For now, this tool is 2D only, with the intent to expand to 3D later.

Input: file.js
This file can use standard JavaScript syntax as well as a library similar to turtle graphics for Python to draw basic 2-dimensional shapes.

Output: file.js.scad
Contains OpenSCAD code with polygon() statements. You can import this code into other OpenSCAD files and use the extrusion functions to turn them into 3D shapes.