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.
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
View all comments
Show parent comment
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.