Grasshopper

algorithmic modeling for Rhino

I have a series of points in Rhino and I want to connect them in such a way that they adhere to a series of rules.

  1. Start at a point (manually selected)
  2. Connect to nearest point
    1. As long as it’s within a certain distance to its neighbouring point – how do I go about making the line exist between two points of a certain distance?
    2. Only connect to neighbouring point (that’s within specified distance) if said point is within a certain cone of vision (or angle range) - in the example image attached the cone of vision is a total 90 degrees (could this be controlled perhaps?)
  3. Repeat the process with an additional rule / condition - points cannot connect to other points which are already connected.

I've been told this is possible and have been trying to Google solutions or partial solutions to lead me in the right direction but I've been unsuccessful - not sure if I'm searching for the wrong thing or what. I've messed around with some of the proximity components in GH but have had no luck achieving what I want. This is part of something I'm working on in studio. Any help would be appreciated. Thanks!

Views: 1604

Attachments:

Replies to This Discussion

Just try and execute you process. Exactly as you have written. Also, look into hoopsnake. 

I agree with michael. you are asking for a lot of different things, your logic sounds roughly right, so unless somebody has already done it, stop researching and start experimenting.

Start simple; look at 'point cp' component. Then cull lines how you said, by distance.

Hoopsnake will help with iterations but don't use till you have step 1 complete.

Thanks for the little tips guys, I'll look into it! Glad I posted.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service