by deadsy · 6y ago · 0 comments
So - I wrote my own tool/library in Go and it's essentially replaced my OpenSCAD usage.
That looks really cool. What kind of files can it output?
> SDFs make CSG easy
Can you share some more info about how this works?
CSG = constructive solid geometry: Take primitive 3d shapes and do unions, differences, intersections on them to build more complex shapes.
Fairly obviously the union of 2 sdf functions is going to be the minimum of those values. That pretty simple.
Intersections and differences are not much more complex....
See: https://iquilezles.org/www/articles/distfunctions/distfuncti...
for some quick examples.