Solid Difference should handle empty lists

Solid Difference currently fails when the second Brep set is empty:

1. Second Brep set is empty

I think the more useful behavior would be to simply return the original Breps from A.

If there’s nothing in B to subtract, then the result is just A.

This comes up pretty often in parametric definitions where cutters are generated conditionally. An empty cutter list is a valid result, not really an error, and having Solid Difference return nothing forces an unnecessary bypass/check around the component.

Solid Difference Empty.gh (17.3 KB)


Different branches are seen

With Clean Tree you are mismatching branches and that produces the wrong boolean differences.