Surface.Difference doesn't work as expected

Hello everyone,

In my script i am using Surfaces in combination with the Surface.Difference node.
However the problem i am having right now is that this node cuts off my adjacent surfaces as well (not only the overlapping ones.)

See image:

Is this intended? If yes how would someone get around this?

Surface.Difference doesnt work as i expect.dyn (41.0 KB)

Hi @Daan
I think it is the regular behaviour of the difference node : if you remove “nothing” (no overlapping) from “something” you get “something”.
You can filter the adjacent surfaces by using Geometry.Intersect, if the result is not a surface you drop it.

Thanks for the tip! Will try the Geometry.Intersect node

Hi everyone,

The solution with geometry.intersect did not work for me, however i did create a similar approach, but now my list structure is wrong at the output of the group.


Surface.Difference Group.dyn (53.6 KB)

I don’t know how to keep the structure the same, i tried losing the List.Clean nodes, but then i only get null values as output.

Thanks in advance!
Daan