Grasshopper

algorithmic modeling for Rhino

I have a field of 826 points. I used "closest point" to evaluate their position in relation to 6 other defined points.

The result of course is another list of 826 points but within that list there are only 6 actual points which were chosen a various number of times. How do I redirect that list into 6 individual lists which each represent one of the 6 original points to be searched from?

Best,

Bennett

Views: 502

Replies to This Discussion

[Create Set] should reduce the large list to a list containing only those points that were used. Basically a single value will only occur once in a Set. You now have a list containing anywhere between 1 and 6 unique points. You can [Graft] this list to turn it into 1 to 6 separate lists containing one point each.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thanks for the reply David. This isn't what I'm after though. Sorry, I should have been more specific. I used [closest point] so that I can break up the list of 826 points into 6 groups based on their proximity to 6 attractors. For example, one of the groups would contain all of the points that were closest to attractor number 2.

Then I would be able to operate on each group individually.

Can I take the grafted list which you described and use it to [sort] the list coming out of the [closest point] node into the 6 lists I want? I'm not getting it to work so far.

Please see the attached files. I circled the bit I'm stuck on.

Thank you very much for your help. 

Bennett

Attachments:

Hey Bennett - 

See attached. I've included two approaches - one that uses my TreeFrog plugin to directly assign the paths, and one that uses a dispatch to do it natively. 

Attachments:

Thanks Andrew I really appreciate it. But I don't have the latest ghopper so I can't open the file you sent back and I'm sad to say I can't tell what some of the components are based on the image you attached.

Can you send a down-saved file?

Thank you

Ok I figured out the native way. But I'd still really like to check out you treefrog plugin! Let me know if you can send me a down-saved file.

Thanks

Bennett

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