OpenSCAD is a tool that allows you to program CAD models using its custom programming language rather than dragging and dropping models in an editor. This allows you to define your designs entirely in code that can be compiled into rendered images or 3D models. Let’s explore how we can connect that compilation feature to GitHub actions so we can automatically create new models whenever code is edited in our design.
To do this we’ll be taking advantage of GitHub Actions and using that to open Pull Requests with the updated models as STL files that we can review and merge into our code. We can take advantage of GitHub’s built-in STL viewer in order to preview models directly in any web browser.
Because we are only using features natively included in GitHub we can also use this as a full development loop so we can edit and regenerate models anywhere where we can access GitHub including things like a phone by using tools like http://github.dev/!
If you missed the first video introducing OpenSCAD you can watch that here: https://youtu.be/HxiyUi4RQzw
You can get a copy of my models and the SCAD files that generate them here: https://github.com/runewake2/scad-examples
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u