Top
Best
New

Posted by c0nsumer 3 days ago

OpenSCAD is kinda neat(nuxx.net)
322 points | 248 commentspage 3
tylervigen 3 days ago|
I’ve used OpenSCAD for 3D printing random objects for years. It’s the perfect tool for designing super simple geometric objects, because it giant demands that you remember hardly anything about his the interface works. Contrast with Fusion 360 or any other more powerful tool, which are fantastic if you use them daily but a slog of you only boot them up a few times a year.

Also with OpenSCAD, you can feed the documentation to your favorite LLM and ask it for a starter design of whatever you are building. (Or you can skip the documentation; it is in the trading data after all.) Maybe in the future that SVG Pelican on a bike test will be a 3D model in OpenSCAD.

rcarmo 3 days ago|
Ooh, an LLM that could take requests for custom Gridfinity bins would be a good step towards AGI indeed.
WillAdams 2 days ago||
This is being done for photographic inputs for shapes --- I believe at least one of these tools does that:

https://www.shapescan.pt/

https://www.tooltrace.ai/

khufiya 3 days ago||
I've been experimenting with using Claude Code and the Gemini CLI to generate OpenSCAD with the renderer in the loop.

https://github.com/rahulgarg123/openscad-mcp

It’s still strictly worse than what these models are capable of for general-purpose coding, but for simple tasks where precision isn't the bottleneck, it's surprisingly decent.The "aha" moment for me was an image-to-object workflow: found a geometric design on the web --> generated OpenSCAD to match the image --> 3D printed it. Going from seeing a JPEG to holding the physical object in a few hours.

gmiller123456 2 days ago||
I really wish OpenSCAD had objects, so you could use something like box1.width rather than having to declare variables for such things.

I tried using Build123d, a Python library that lets you use all of the features of Python. And it's supposed to allow specifically things like box1.width, but it's always 0. Lots of other issues/bugs too, and severely lacking in ddocumentation.Maybe it'll get there some day.

lorenzohess 3 days ago||
That let() {} expression seems pretty similar to the LISP let()() form: https://lisp-lang.org/learn/variables
bradfitz 3 days ago||
I find myself using OpenSCAD regularly to 3D print little things for the house. (Most recently: hooks to attach Christmas lights to our roof deck's glass walls)

And when something gets too trick, ChatGPT is amazing at writing in it. Often it nails the whole design in the first try, like https://bsky.app/profile/bradfitz.com/post/3maelwomyw22n to mask off certain Raspberry Pi pins to make reassembly of projects easier later.

arjie 3 days ago||
Oh I had no idea that OpenSCAD was a programmatic toolkit. I recently bought a 3D printer and I don't model so much as describe to Claude Code how to write a Python script that will generate the required STL that I then rescale or whatever in Bambu Studio. LLMs are great at code-oriented stuff so I've stayed away from traditional modeling tools because I assumed you'd have to point and click and so on and I don't really want to learn the ins and outs of their interface. I just need the right mesh made.

The chatbots kept recommending I try using OpenSCAD but I resisted without even giving it a look. The results I had with just the Python script are quite adequate for the tasks I had. You can just ask the LLM to add a fillet to a vertical pin on a plane or to chamfer some edge and it is pretty good at doing it.

https://wiki.roshangeorge.dev/w/Blog/2025-12-01/Grounding_Yo... if you want to roughly see the workflow.

I'm going to try using OpenSCAD for things in the future. Does anyone else use exclusively an LLM with OpenSCAD (I used Claude Code and Codex) and if you do what did you do to make it more effective? The Python script wouldn't always generate printable meshes so I had to give it a check script to operate on.

ThrowawayTestr 3 days ago|
Fusion 360 is free for hobbyists and it's not too hard to learn for basic stuff
avmich 2 days ago|||
Is it online only? I in general prefer locally installed software, without Internet requirements.
fainpul 2 days ago||
The software is installed locally (runs on macOS and Windows), but your files are stored on Autodesk's servers. You have to sign in to use it. Program startup takes ages. But the features are great.

If you don't need fancy features, have a look at FreeCAD as well.

arjie 3 days ago|||
Maybe I should suck it up and just give it a crack. Thank you for the recommendation.
haberman 3 days ago||
A long time ago I read that CadQuery has a fundamentally more powerful geometry kernel than OpenSCAD, so I dropped any attempt to try OpenSCAD.

Years later, I never actually got the hang of CadQuery, and I'm wondering if it was a mistake to write off OpenSCAD.

I am pretty new to CAD, so I don't actually know when I would run into OpenSCAD's limitations.

WillAdams 3 days ago|
The notable limitations for OpenSCAD are:

- functional programming model --- some folks find not having traditionally mutable variables limiting

- output is as an STL, or DXF using polylines

- native objects are spheres, cylinders, cubes, with functions for hull and Minkowski, so filleting and other traditional CAD operations can be difficult

exasperaited 3 days ago||
Neat-ish.

I don't really see why that code is better, more logical, more readable or more robust than the equivalent quite trivial parametrics in more or less any GUI CAD program, and I think the geek discourse is really harmed by people who don't understand the value of the things that OpenSCAD can't ever offer.

avmich 2 days ago|
I wonder what kind of things OpenSCAD can't ever offer... It's pretty automatable.
exasperaited 2 days ago|||
The main thing it cannot ever offer is the ability to further process its own generated geometry. It has no concept of edges, vertices or faces in 3D so you cannot do operations on them, which means no generalised operations like fillets or chamfers, only specific implementations for specific shapes.

This difference is profound, is the point I am getting at.

It also lacks any concept of constraints or constraint solving in 2D sketches, which makes some quite simple shapes extremely difficult to make without advanced maths.

So in both cases you never get away from the maths, and the maths complexity increases as your design complexity increases. You can see this reflected in the complexity of any large OpenSCAD codebase and in the number of functions in any large utility library.

CAD software should aid design. That’s its entire purpose. OpenSCAD just lets you plot 3D shapes and do some very limited operations to combine them.

unbelievably 2 days ago|||
[dead]
yehoshuapw 3 days ago||
worth also looking at cadquery, build123d and similar

https://github.com/gumyr/build123d

Robdel12 3 days ago|
OpenSCAD has become my go to with my 3-D printer for dumb little things. And the best part is LLMs are getting decent / pretty good with it!

My favorite thing I’ve printed is a little downsize coupler for the cool shirt system I built for my spec miata. It’s realllly silly & small thing, but it saved me!

More comments...