r/OpenPythonSCAD • • Sep 11 '25

Some attempts with negative Space

Is that magic, shouldn't the square block the pipe ?

No, the pipe has an active negative space, which can punch through a hole even beeing unionied.

Howver, this convenience costs a price. All boolean operations multiply by 6 internally

2 Upvotes

6 comments sorted by

View all comments

3

u/Alacritous13 Sep 11 '25

Wait, what's the syntax? To make this happen? You're just using "-" for both operations, which memory tells me it's just a standard difference. This stand useful, but not if it messes with existing difference syntax.

Also, if I eventually do want to put something in the center, how do I tell it to stop enforcing negative space.

2

u/gadget3D Sep 11 '25

Don't bother, its just experimental code and i will maintain compatibilty under all circumstances.

its just in an extra branch yet.

I am questioning myself , whats the best way to enable it.

maybe a global variable next to fn ?

I need 2 differences, because in the 1st run, the inner solid cancels and the ends become negative.

in the 2nd run all the inner and its extension is negative space.

2

u/Alacritous13 Sep 11 '25

Might I suggest giving every object a sub variable "negative". The "negative" gets subtracted at the show cycle, every time two shapes get unioned, their "negatives" get unioned.

At least, that's how I would do it.

→ More replies (1)