Collision many/many keeping one colider

collidingdowels.gh (550.5 KB)
Hej there.
I have a bunch of cylinders which I need to check for collision, to do so I use collision many/many. I want to use the output (boolean pattern) to keep one of the colliding breps and cull the other(s).
I cant find a good way doing so, if I use the pattern I end up culling all colliding breps.

I made a clumsy workaround using mass multiplication of the colliders indices, so I can check for duplicates and cull one of the. It works ok at the moment, but I´m sure there is a better way.

ANY DEAS?

Cheers from Berlin

This might help:

collidingdowels.gh (558.0 KB)

Yes, it does =) danke dir!

1 Like

You can use Clash

collidingdowels.gh (552.4 KB)

1 Like