40 points · by jetter · 2mo ago · 65 comments
Yuck, this style of LLM output is awful, it’s horrible to read and does a lot to say absolutely nothing.
- "CadQuery fails loudly and early... OpenSCAD fails silently and late"
This should be obvious, from the documentation, from the way geometry construction works. OpenSCAD has no sense of failure where one shape means another won't work; you're just drawing the equivalent of 3D pixels in space. It will always potentially-meaninglessly succeed if the syntax is OK.
- Renders caught nothing that mattered
Objects with hollows are not going to show their major problems this way.
- CadQuery can be interrogated, OpenSCAD cannot
Isn't this explicit from the documentation of both? One works by iteratively building on top of a previous result that can be stored in a variable; the other doesn't.
- OpenSCAD renders have no concept of a part edge
Again — this should be explicit from the documentation, which describes no methods for operating on edges (and largely from the fact that it is declarative).
- Speed favours OpenSCAD, and it barely matters
Yes, being faster is no good if things are wrong.
- "What decides it is verifiability rather than expressiveness, and CadQuery leads there by a wider margin than the syntax difference suggests."
Yes, because the difference is semantic. Which you can get from the documentation. Building iteratively on the basis of existing geometry is inherently more verifiable, because stuff that can't work won't work.
Honestly do people not try learning CAD before they try to build an AI tool to generate CAD models? This feels like yet another situation where people who have not done the foundational conceptual work seem to think that they can avoid it and just work around it with AI.
I don't really get it. But then I think text-to-CAD is probably the strongest example of cart-before-horse thinking in the AI world as regards technical work compared to creative work.
I like build123d simply because it can export proper STEP (like CadQuery) but has a nicely python friendly design.
I’m using a single repo for all my models and Claude with build123d (plus a VS Code viz extension). Over time, I’ve built up a little folder of useful skills and I’m generally getting satisfactory results.
That said, I have had my eye on CadQuery and am looking for an excuse to try it. For those in the know: how does it compare to build123d?
The other big difference (which I have only read about) is in the way their assembly constraints work; again Build123D takes the more procedural approach (declaring "joints" etc.)
CadQuery came first; Build123D is sort of a more pythonic, robust restatement of it.
Are you willing to share your work?
Mine is available at https://jnslmk.github.io/build123d-models/?model=drill_stora... One of the things I've found more useful is the generation of a static site to view and download the models. With WASM you can make minor adjustments directly in browser
I like your approach so much more and I wish you the best of luck with it, but I think this is the kind of fundamental flaw with text-to-CAD isn't it?
CAD is show, don't tell territory. Humans can make things we can't describe, and we can extrapolate spatially from what we can describe.
after making SEVERAL observations that cadquery is pretty much better overall, they say "ehhh we're going to stay with openscad".
Cynically it always feels to me like they are written by people who not only think end users shouldn't have to learn CAD principles, they themselves shouldn't have to either.
Code complexity and repetition balloons with part complexity. Your thing will not scale well because OpenSCAD does not scale well.
Small changes will lead to subtle flaws; changes will need to be respecified in minute detail because OpenSCAD doesn't support sketch constraints that would generate correct geometry, doesn't support edges and faces that can help make parametric designs flow.
OpenSCAD is fun for making small, trivial objects, it is a good way to learn the most basic CSG operations, and it really excels at 3D representations of mathematical formulae.
But it's entirely the wrong foundation for the more general CAD-replacement thing you are trying to do.
CadQuery is not at all as bad a foundation (I think it's quite neat, and I think it could work).
But IMO much of this article talks about "findings" that should have been obvious to you if you know enough about CAD to know what it is you are replacing.
If you are continuing in this non-bRep, fast calculation approach, have you looked at generating SDF instead?
https://github.com/yuechen-li-dev/Aetheris/
It's still kinda buggy but they are actively getting fixed, but Claude and GPTs seemed to work better with my current design than other CAD stacks. Still haven't added threads yet, so can't speak for T3, but generally speaking the generated parts are pretty good quality, and I also got fillets/chamfers working so that's a plus.
https://aetheris-editable-v8.yuechenli.workers.dev/
Let me know, since I think we may be able get something cooking together.
Full disclosure, this is one of my pie-in-sky ideas that I've been letting AI loose on with only top down direction from me. I'm usually fairly hands-on even with the model in the loop, but this is an exception, because a geometry kernel is frankly beyond my ability to write solo (and I say that as someone with a reasonably strong math background). The gamble has always been that if a current model can produce "works, but crap under the hood", future models will be able to clean it up to "works, and is solid under the hood".
I'll push everything up by the weekend and drop you a line.
At a glance, not sure how you're approaching constraints, and what luck you've had with getting language models to be able to juggle them?
Using Replicad, I've successfully iterated on a 3d printed enclosure for my electronics project. It's fantastic to get everything parameter based and version controlled from revision 1.
It was probably an easy model to get right, since the only "critical" dimension was the radius of the interior. But I was able to tweak the numbers on the support length & some other details relatively easily, and I had a working solution 2 hours of print time later.
(I had a CAD class in highschool, but haven't used it since).
I suspect this may be another case of "LLMs are mainly good at things you're bad at."
Claude Code: Oops, I am sorry but I was wrong.
As you say it is quicker to do it by hand. Now.
I certainly wouldn’t entrust this job to a general-purpose (universal) tool that gets it 99.9 percent right.
But a domain-specific harness? Maybe it could work.
Hardware and engineering dont tolerate hallucinations, trust-me-bro numbers, deviations.
It's not a small change, it's from "not useful" to "pretty good"
Right, but, so what? There is very little utility here. Parts that need to be useful need to be designed to spec.
I'm the target for such material for I do use OpenSCAD to model parts I then 3D-print to fix stuff around the house and enhance the cars etc.
And yet the writing is totally insufferable AI slop:
"All six parts came out printable. Capability turned out to be the boring part of the answer. Where the two diverge is in how they fail."
Anyone who writes like this or who enjoys such kind of sentences: from the bottom of my heart, just go fuck yourself.