by craigjb · 8y ago · 0 comments
I’ve been using Python to generate OpenSCAD scripts, and then a half-finished Python binding for OpenSCAD. This framework uses the natural parametric CAD modeling primitives, like the workplane. I never got used to the OpenSCAD way.
I’m switching my stack over to this today.
The core issue is that the fluent object design approach makes it very difficult to decompose objects into reusable features. The shared state behind the fluent approach makes creating multiple sub-objects (to then combining them) difficult (maybe impossible). The power of Python gets limited to thinking about only one thing at a time.
See https://github.com/dcowden/cadquery/issues/167
They are trying to fix this in 2.0, but that's still in early development.