generative modeling for Rhino
I have an irregular grid of cells (city blocks) that have individual curves between the sides of the cells (street center lines). See attachments for clarification. I am trying to create a python script that can input all the blocks and all the center lines and will output the neighbors for each block. For instance in the attached image the green block would output a list of the red blocks (neighbors). I can get different types of information like branch items, the center lines for each block or shared edges that seems useful but I having trouble getting the right output that I need. If anyone has any suggestions it would be very helpful. Thanks
It shouldn't matter but this file is closer the the image.
Ok so I got it to work, but if anybody has ideas bout speeding it up, let me know. I slows down quite a bit on larger data sets.