6 ms·
GhostSCAD: Marrying OpenSCAD and Golang
- Gravityloss 5y agoThere's something wrong with Algolia's search. It won't find this with the words ghost, scad or cad. "openscad" did it.
- gmac 5y agoIf you’re looking for 3D modelling in real programming languages, I’ve very much enjoyed IceSL, which embeds Lua: https://icesl.loria.fr/ https://icesl.loria.fr/ I used it to design this piece for use with Gravitrax, for example: https://share.icloud.com/photos/0b2yeTGdLftZV17btg-KTEYog https://share.icloud.com/photos/0b2yeTGdLftZV17btg-KTEYog
- ur-whale 5y ago> I’ve very much enjoyed IceSL Heavy bias on 3D printing though. At first glance, doesn't look as general as other CAD tools.
- gmac 5y agoYes, all true. You can in principle export to STL but it doesn't work very well.
- ljan 5y agoCan you share this design? My nephew spends untold hours playing Gravitrax.
- gmac 5y agoSure: https://www.dropbox.com/s/oxirbmoa2n40xrc/steps02.lua https://www.dropbox.com/s/oxirbmoa2n40xrc/steps02.lua The code isn't at all well-structured or documented. It needs external power and is designed around this motor: https://www.amazon.co.uk/gp/product/B009AQLDSS https://www.amazon.co.uk/gp/product/B009AQLDSS.
- guitarbill 5y agoI wonder how many OpenSCAD wrappers now exist? I know of scad-clj [0], openpyscad [1], and solidpython [2]. I particularly like scad-clj, because of `lein auto generate`. It watches source files, and regenerates the OpenSCAD files automatically, which OpenSCAD then also picks up. Although I'm not well versed in Clojure, and find debugging Clojure tricky, the workflow is just so good. [0] https://github.com/farrellm/scad-clj https://github.com/farrellm/scad-clj [1] https://github.com/taxpon/openpyscad https://github.com/taxpon/openpyscad [2] https://github.com/SolidCode/SolidPython https://github.com/SolidCode/SolidPython
- bb88 5y ago> It watches source files, and regenerates the OpenSCAD files automatically inotify() is awesome. Here's a library in python that does it. https://michaelcho.me/article/using-pythons-watchdog-to-monitor-changes-to-a-directory https://michaelcho.me/article/using-pythons-watchdog-to-moni... There's also inotifywatch on linux and fswatch on mac which makes it stupidly simple to do the same thing in a shell script. I'm sure there's alternatives for BSD Unix and Windows, but I care the least about those OS's. https://github.com/emcrisostomo/fswatch https://github.com/emcrisostomo/fswatch https://linux.die.net/man/1/inotifywatch https://linux.die.net/man/1/inotifywatch
- sprior 5y agoI always thought it would be interesting to use the solution seeking of Prolog to design a physical object, but haven't figured out a usecase. Funny that in my house it would be possible to trigger the design of an object by a MQTT message of an event, slice that object, then turn on my 3D printer and print it with no manual intervention.