Ladybug sun volumes

hi,
so I have a block of buildings, and I placed volumes between thus buidlings, and I want to test if they can have light inside. I used the ladybug plugin of course.


I want to turn those volumes to 3d grid, so I would be able to delete some boxes within the volumes and check if I can insert more light inside them. I’m trying to understand what’s the best way to do so, because right now, i’m testing the volumes, baking it with the built in grid and tries to delete some boxes and repeat the tests.

i’m adding the code, but It require epw file of course.
TheLadyBugs.gh (642.9 KB)

example of what I want to do:
image