3 ms·
I am also a big fan of iquilez, and a little fed up with openscad. I recently tried out deadsy/sdfx, a similar tool written in golang. I was impressed and I enj
by alanbernstein 6y ago
I am also a big fan of iquilez, and a little fed up with openscad. I recently tried out deadsy/sdfx, a similar tool written in golang. I was impressed and I enjoyed using it, but there was a little too much friction when I had a complicated design that I just wanted to make and print ASAP.
I'm a little more comfortable in python, plus I think the language is better suited to this, as a DSL or something like it. I'll definitely try it out, thank you for sharing.
- fogleman 6y agoLet me know if you do anything cool with it! I just got text working, which is very exciting. It was surprisingly easy, too. 1) Render text to a high resolution 1-bit array using PIL 2) Compute the distance transform using scipy 3) Do some index fiddling to map it into world space, and it's done! Even works with unicode: https://twitter.com/FogleBird/status/1361523405821005824 https://twitter.com/FogleBird/status/1361523405821005824