Shape in component failing to register all brep intersections

I seem to be having problems testing for whether a group of breps are intersecting with another group of breps.

Below is screenshot which shows the issue. The logic is pretty simple: red breps are tested to see if they touch the blue breps. If they do, they should turn pink. In order to speed up calculations I have a solid union component for combining the blue breps in to as few pieces of geometry as possible.

Is there a better way to solve this if the Shape In component isn’t the way to go?

ShapeIn Issue.gh (470.8 KB)

“Graft” shape input should work.


ShapeIn Issue_re.gh (474.5 KB)

1 Like

Ah makes sense - one brep test per branch.

Thanks!