Grasshopper

algorithmic 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 

Views: 474

Attachments:

Replies to This Discussion

It shouldn't matter but this file is closer the the image.  

Attachments:

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.  

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service