Grasshopper

algorithmic modeling for Rhino

Dear all,

I need to select from a series of boxes generated in GH with rabbit the ones that have a neighbor on each face (so 6 neighbors) and the ones that don't have any neighbor on any face.
For istance you can refer to the image attached, I need to select the red boxes.
I was trying to select them in GH by evaluating the distance from the center of each box to the center of each face. Since this distance has to be 0,5m and since avery box has to have at least 6 points on this distance, the idea was to select the boxes with 6 or 12 points on this distance. The problem is that i don't know how to list the cubes in a way to select the ones i want. Any suggestion, help or better idea on how to achieve this is very welcome.


Thanks.
Ruis Dervishi

Views: 307

Attachments:

Replies to This Discussion

Here is an update, i manage to manually select the items that have 6 or 12 pts with 0,5m distance, but how can i automate this operation?

Attachments:

I did it. Attached the image of the def. if someone needs it.
Ps. Ps i'm still open to better solutions, so any suggestion is welcome!
Cheers!

Attachments:

Moved from FAQ into Discussion.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service