News for hackers. Stuff that matters.
Re:Show HN: 3D Meshes of Signed Distance Functions in Python by sitkack on Wednesday February 17, 2021 @10:09AM (#26167119)
(to the channel), I am sure you know about it, but this [1] technique for making a big design a tree of smaller designs works ok.

I feel like OpenSCAD is like 2 standard deviations away from perfection. Functions vs Modules and how clunky composition and application of operators over the object tree. It almost needs to be Datalog. Right now, it is a notch under SQL.

[1] https://old.reddit.com/r/openscad/comments/lbq58y/my_approac...

Re:Show HN: 3D Meshes of Signed Distance Functions in Python by alpaca128 on Wednesday February 17, 2021 @01:50PM (#26169972)
The problem in my case was that I wanted to combine a pattern with my objects that I precomputed using an external program because it contained a lot of curved surfaces. As I already knew OpenSCAD basically becomes unusable if you try to use a png image as heightmap I decided to instead generate a .scad file containing an array with precomputed coordinates, and then used that to build and extrude 2d polygons.

This kind of works for the 3d preview, but the stl renderer was not happy regardless. It was basically the worst case for OpenSCAD. But still, the fact I could just auto-generate a text file and use it directly for building models is fantastic. With tools like FreeCAD I wouldn't even know where to start, here it was basically a case of "it just works" and with a few more minutes it can be combined with a bash script for batch rendering.