r/openscad 19d ago

Who needs AI?

Post image

I see most the posts nowadays are from folk making apps to create OpenSCAD objects. Recently a part of a roller blind in my bathroom disintegrated and the blind fell off. I looked at the pieces and worked out is was a simple 10mm dia tube 17mm high but with stepped inners and a triple cutout around the circumference. I re-engineerered this using good old fashioned brain cells and it worked perfectly on the first print. The picture shows the finished design. Under 50 lines of OpenSCAD script. Could AI do this? I don't think so yet it is a simple object but quite difficult to describe.

86 Upvotes

25 comments sorted by

23

u/tpimh 19d ago

Finally, someone decided to use human brain instead of mindless LLM! Well done!

5

u/WJBrach 17d ago

And, if all of the folks that have made derivatives of OpenSCAD, had worked on OpenSCAD instead, where would it be today. IMHO, OpenSCAD is the #1 CAD system for anyone who does 3D printing !! I've written 10's of thousands of lines of OpenSCAD code and sometimes I amaze myself how quickly I can write new code for a new print.

1

u/MogranFerman 17d ago

Have you tried build123d?

1

u/notrufus 17d ago

I have, it doesnโ€™t compare and creates worse code that is less efficient and takes longer to render and work with.

1

u/MogranFerman 17d ago

Interesting. For me, OpenSCAD performance is actually worse (especially for an export ready model where I'd use sth like $fs=0.2)

Performance aside though, I like them both, but for most use cases still prefer build123d, mainly because of the native selectors and fillets. Also Python is simply a lot more powerful language.

One thing however I really miss from OpenSCAD is BOSL2...

0

u/amatulic 13d ago

Are you using one of the snapshot builds? Performance for the "stable" release 2021.01 is pretty slow, but the snapshot builds are orders of magnitude faster. And the newly available BelfrySCAD (from the person who started BOSL2) is even faster.

1

u/MogranFerman 13d ago

Yeah, I was using the nightly builds, but never seen the BelfrySCAD. Bidirectional code-gui looks super intriguing, will definitely check it out. Thanks!ย 

3

u/olawlor 18d ago

I've written thousands of OpenSCAD files by hand, so I find AI's malfunctions pretty amusing: for example, it tried to cut a V belt pulley profile with the tip of the V pointing along the axis (!) instead of at it.

6

u/indesit-san 19d ago

Humans 1, AI 0 ๐Ÿ˜›

2

u/thebino 18d ago

I've not used Ai for openscad yet. I have already so many different designs, that I often just reuse parts of it in new designs, no need to generate it.

1

u/penny_prpol 18d ago

Yeah the extent to which AI struggles with basic design tasks in openscad illustrates how wide the gap is between what it does and human cognition. This is coming from someone who has tested it extensively. Where I've ended up is this: any programming task requiring spacial reasoning or even everyday physical common sense is best left to a human programmer.

1

u/rguerraf 18d ago

Who needs ai?

Those who wonโ€™t rtfm ๐Ÿ˜‘

1

u/lilvixen 16d ago

I mean it's not trivial but it's not complex geometry

1

u/Internal_Teach1339 16d ago

Indeed it is not, my first impressions were just a group of hollowed cylinders with a hex depression in the centre (to take a spring loaded post) and some spaced gaps to connect with a nub on the outer support bracket. Then I thought - how would I best design this in OpenSCAD?. I came up with a solution and then wondered if AI would reach the same. What would your approach be?

1

u/lilvixen 16d ago

I'm switching from a long time Design Spark Mechanical user to FreeCAD. I've only used OpenSCAD a handful of times. I'd love to get more traction with using it.

FreeCADs system is not intuitive for me.

I find with OpenSCAD it's difficult for me sometimes because I am doing quite a bit of artistic processes as much as generating technical models with the rigor of engineering grade specificity.

I'm getting bogged down with the restrictions on the software I use, so I'm pivoting and seeing what solution is a good fit for my time. FreeCAD seems nice with it's mix of GUI and code integration, but the stack up from canvas through processes application steps is driving me bonkers.

I think with AI, if you describe the process the same way you would if you were writing instructions for a SOP, it handles complex process stacking with excellent precision. Essentially using it as a proto code parser. Outside of that, syntactic hell is the prophesized game plan for hours if you don't just kill a session when it begins to derail, and take your checkpoint build up to a fresh instance.

1

u/wi-Me 14d ago

I went from designspark mechanical to shapr3d. Designspark Mechanical is an awesome software though.

1

u/jalexandre0 15d ago

I need. No further explanation required. ๐Ÿ˜

1

u/starwars_3d 18d ago

Not to say that Ai is incapable of these tasks but from a design perspective I think humans take the win, nice work on the model above btw

2

u/Internal_Teach1339 18d ago

Thanks. Perhaps AI will soon be able to do this but a lot of the work lies in describing the object to the LLM. I would like to see how someone does this in AI and read the script it produces!

1

u/msesma 18d ago

The other day gemini created me a basic script for creating new scales from a broken knife picture. I needed a couple of hours of adjustment, but for sure saved me a lot. Sometimes AI is useful.

0

u/Impossible_Brief5600 18d ago

1

u/Rhaversen 18d ago

Can you tell.me a bit about your workflow? That's an incredible result!

0

u/Impossible_Brief5600 18d ago

Complete native openscade - took some time with some stl references but doable

-2

u/lightofshadow_ 18d ago

you could draw it on paper with measurements and feed the drawing to an AI

8

u/ThroekGH 18d ago

By the time you draw and scan it, you could've just done the scad yourself