|
|
|
|
|
by ajross
744 days ago
|
|
FWIW, those who've played with OpenSCAD and been annoyed at the holes in capability should take a look at CadQuery, which fills a very similar space but with a lot more expressivity: * It's imperative python instead of a purely declarative custom language. Declarative DSLs are great when your problem is simple, but don't scale. * The API design is sorta/kinda inspired by jQuery, operating on "selected sets" of subgeometry in a symmetric way, which recovers a lot of the "declarivity" for simple constructions. * The underlying data model is a B-Rep thing built around OpenCascade. It has the same CSG primitives you're used to from OpenSCAD, but retains the ability to operate on faces and edges directly. I'm no expert, but it's been a blast to play with. Definitely something to consider; OpenSCAD was sort of a mess back in the days of the RepRap Mendel, and frankly it hasn't improved much since. |
|
Can you define "don't scale"? I keep hearing that but I feel like I've made relatively complex models with declarative DSLs and from a "writing code" perspective I do think they scale perfectly fine. I'll grant that performance gets a little bad, generally I end up having greatly reduce the face number when I'm working and bump it up when doing a final render.