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/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.