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

Show parent comment

2

u/gadget3D Sep 11 '25

Yes,. thats the very basic idea.

ManifoldGeometry got a neg_space member.

But its turns out being more challenging:

for each csg operation the input operands come with pos and neg, so this are 4:

how to calculate union, intersection, and difference with 4 inputs and each pos and neg output ..

and to continuie, whats about hull, offset, minkowski ...

negatives just getting unionied all the way is probably yields to a negative monster with nothing remaining .. i figured out quite obicvous equations which a remarkable pattern which can be found in my code