r/openscad

LPT: Don't invert your screws! (unless that's what you want)

OK this was really dumb. I was trying to get an M50 plug printed and noticed that the BOSL calls I made created the bolt upside down making it hard to print. Rather than rotate 180 I took a "shortcut" (saved a few characters) and did scale([1,1,-1]). After printing it, I drove over to install and it would not start. I stared at it stupidly for a while before even realizing it had left handed threads and then was like wow, you can't count on BOSL to make the correct kind of threads!? Only after I was trying to find the "handedness" flag for version 2 did I realize that my inversion of course changed the handedness of the threads. So I brought this ignominy on myself! GRRR Don't do it kids!

reddit.com
u/braddo99 — 2 days ago

Confusing - local variables in module apparently not declared

https://preview.redd.it/2ovyzpxhms1h1.png?width=1920&format=png&auto=webp&s=29120880d1b8afea68e9d03061efc14f0c0f3b40

I have a module within a program that defines a slot in a phone case. Depending on which side of the phone case is being specified, the idea is to move / rotate the block that will be subtracted to create the hole. eg, creating a hole for the charging port. I thought the easiest way would be to have the rotate and translate commands executed having first set the translate and rotate parameters depending on which side of the phone case is applicable. However, I'm getting messages that the variables aren't actually defined - Why could this be? Is it because they're implicitly declared within an 'if' statement each time?

Edit: can I just say that I'm extremely appreciative of all the high quality and helpful responses.

reddit.com
u/Baddog1965 — 4 days ago

Testing a parametric threaded cutter, from SCAD-style CAD to real print

We’ve been experimenting with parametric cutters for adding functional joints to 3D models.

This one is a threaded connector cutter. The idea is to keep the control surface small, with only a few key parameters like radius, depth, pitch, and clearance, then use it to generate printable screw-fit geometry.

u/sjia — 5 days ago

Creating Hollow/Shell of a curved objects

I have a solid object with unique curves that needs to be become hollow, with equal thickness walls throughout.

Think of it as taking a solid chocolate Bunny and making it the cheap hollow bunny.

I tried doing a difference of scaled object, but that just doesn't work for keeping uniform walls of curved surfaces.

I tried fiddling with minkowski but ended up with errors that are outside of my comprehension:

~~~

ERROR: Nef minkoswki operation failed: CGAL ERROR: assertion violation!

Expr: sf_old->mark()

~~~

Is there a simple waying of doing this on recent builds?

reddit.com
u/ListeningIntentlyNow — 7 days ago
▲ 111 r/openscad

I’m building a visual editor for OpenSCAD with bidirectional code sync.

I’m building a visual editor for OpenSCAD with bidirectional code sync. The overall architecture, direction, and design decisions are human-driven, while AI coding agents were used as development assistants for rapid prototyping and experimentation. Feel free to explore the repository, share ideas, open discussions, or suggest directions for future development. The application can currently work side-by-side with OpenSCAD: generated .scad files can be previewed live in an open OpenSCAD window. Since the project is still in development, some geometry operations and scene interactions may not always behave correctly yet.

https://github.com/42ne/3dscad

u/LegitimateBluebird42 — 10 days ago

Looking for OpenSCAD freelancer for paid work

HI I am looking for freelancer who can do basic openscad for me like custom name desk organiser with, piggy bank name desk something like custom gifting options

reddit.com
u/Organic-Crow8270 — 10 days ago

How to get started with OpenSCAD?

I am a person with a disability, with a neuromuscular disease. I use a Tobii (eye-tracking mouse) and I have a 3D printer. Unlike other software that requires physical movement, I can use my eyes to use OpenSCAD. However, I know nothing about programming. How can I learn OpenSCAD? I see little information about OpenSCAD on YouTube, unlike FreeCAD. Could someone please guide me?

reddit.com
u/Dangerous_Suit_4422 — 13 days ago

designed a parametric clamp stabilizer plate so my cat perch stops shifting around [OpenSCAD]

Have a cat perch that clamps to my desk and the clamp disk kept creeping and rotating over time. Designed a plate to fix it mechanically:

  • It mounts to the underside of the desk and the clamp disk drops into a deep recessed pocket, so the disk is fully captured and can't shift or spin

  • Small clearance on the pocket so it seats easily but stays put

  • 4 countersunk screw holes in the corners to attach it to the underside of the desk

  • Fully parametric, just plug in your clamp's disk diameter and thickness and it builds around it

Currently tuned for a 35mm disk on a 120x120mm plate but the whole thing regenerates from a handful of numbers at the top.

Would this be useful for other desk clamps too? Mic arms, monitor mounts, etc. Happy to share the file once I've done a proper test fit.

https://www.printables.com/model/1695662-desk-clamp-stabilizer-plate

u/rdurdle — 11 days ago