Grasshopper

algorithmic modeling for Rhino

(images/attachments included) Hi everyone, I'm wondering if you can help with a certain issue I'm having. I have a some groups of points that are associated with a set of circles based on a given radius. I've made it so those points will automatically associate with the circles based on the 'closest point' component. All points that don't fall within at least one circle's catchment radius are ignored.

No problem with any of this.

But I want to associate a set of numbers ('numbers to associate' panel in file) with each point, and group them together with the circle they are closest to. I then want to add these numbers up based on each group and have the circles change colors with a gradient component based on their values. I can't figure out how to make a list that will group these numbers with their associated circles.

Hopefully the files explain more clearly what I'm attempting to do. Any help would be appreciated, thank you!

Views: 723

Attachments:

Replies to This Discussion

I've internalized points to work.

If you have more rules in your definition, apply first the more hard-general ones.

1-For each point find the nearest station

2-Check if the point is inside the area of that station

(With this method station you could have different area range for every station point and with some point this could happen: for point pt1 nearest station is "A" but outside its range AND farther station "B" but inside its range... and you'll have to create new rules...)

Btw, try this.

EDIT: I didn't understand red colors for stations back then... Do mass addition with value groups, flatten output, and link that to "t" parameter on gradient component...

Attachments:

Hi Riccardo, 

Thanks for your reply and file. I'll play around and see what I can learn from it. May have more questions in a bit-- in particular I need to see if this will work with a number set (the values we've associated with the dots) that will vary from time to time, as they are associated with other GH algorithms. Not sure how this will work with the idea of internalizing the points.  But for now accept my thanks!

Andrew

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service