Sorting intersected elements

Hi everybody,

I need a hand on a gh definition for a false ceiling with "hanging cubes"..

I've created a grid of surfaces from a single surface and then extruded them with a random height. Now i'd simply like to get rid of those cubes which intersect columns (represented by vertical lines/or boxes).

I think i'm pretty close to the solution cause i was able to identify the intersected elements but for unknown reasons the cull operator doesn't work the way i want.. Maybe need to "convert" the unwanted cubes into a cull pattern (true, false)?

see attached. Any help is welcome!! Thanks!!

cheers,

P

ceiling%2001.gh

etude_03.3dm