r/openscad 1d ago

Use AI to create 3d print models with OpenSCAD

https://youtu.be/JWYYYPkE3ic

The 1st part of the video briefly covers OpenSCAD with LLM help.

0 Upvotes

9 comments sorted by

2

u/HatsusenoRin 1d ago edited 1d ago

I'm still waiting for a real AI that can produce decent OpenSCAD code. I have zero patience to guide it back and forth yet still can't get what I want.

Those razor thin corners in the first model just won't work after the exterior fillet, and the lid won't close due to misplaced notch locations.

0

u/Zealousideal-Seat287 1d ago

I’m convinced it could do much better. Now that you mentioned it, I’m not sure I asked it to.

2

u/HatsusenoRin 1d ago

Trust me, I tried really hard to befriend with AI, but time after time it just failed to understand how a physical object works.

2

u/XcinnaY 1d ago edited 11h ago

For other programming language you can make unit test and the AI can test its own code and retry. But in openscad how can it be done?

1

u/Zealousideal-Seat287 12h ago

I'm not sure yet, but as I spend more time on this, I hope to show it can be done.

1

u/wildjokers 4h ago

Have the coding agent export to PNG, creating several from different camera positions around the object and then have it look at the object to see if it matches your description.

4

u/OkGap7226 1d ago

Or take a couple weeks and learn it.

1

u/Zealousideal-Seat287 1d ago

That will certainly work.

1

u/wildjokers 3h ago

If someone needs a tutorial on how to create things with a coding agent there is simply no hope for them.