https://github.com/nylen/go-scad
A tool to aid in construction of complex shapes using https://www.openscad.org/
https://github.com/nylen/go-scad
Last synced: 18 days ago
JSON representation
A tool to aid in construction of complex shapes using https://www.openscad.org/
- Host: GitHub
- URL: https://github.com/nylen/go-scad
- Owner: nylen
- Created: 2019-01-31T07:42:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-30T01:31:30.000Z (over 5 years ago)
- Last Synced: 2025-11-11T21:31:48.135Z (8 months ago)
- Language: Go
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-scad
This is a tool to aid in construction of complex shapes using
[OpenSCAD](https://www.openscad.org/).
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](https://docs.python.org/3.3/library/turtle.html)
to draw basic 2-dimensional shapes.
**Output: `file.js.scad`**
Contains OpenSCAD code with
[`polygon()`](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#polygon)
statements. You can import this code into other OpenSCAD files and use the
[extrusion functions](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/2D_to_3D_Extrusion)
to turn them into 3D shapes.