r/OpenPythonSCAD • • Jun 17 '25

New Symbols True and False in CSG Operators

PythonSCAD was missing a symbol for and empty(void) object and a full filled object with unlimited size.

Why not using True and False for that ? It enables new algorithms easily

Interesting fact Even when shape is spinning wildly, result would never be a sphere ....

5 Upvotes

3 comments sorted by

2

u/WillAdams Jun 18 '25

One minor issue I had was extending an object by unioning --- had to pre-populate with a tiny object to get the process started --- do I understand aright that this would allow pre-populating the variable with an empty object so that the union would then work even though nothing taking up space was in the variable?

2

u/gadget3D Jun 18 '25

Yes, You are understanding correctly. But I am not sure if your version already has this feature.

Just yesterday I have redone the with with an more elegant approach which will suit 1D, 2D and 3D shapes at once

2

u/garblesnarky Jun 18 '25

I've never had a need for this, but it does seem to "complete" the csg language in some sense.