Grasshopper

algorithmic modeling for Rhino

hi,

I am trying to find the closest points (using the closest points component) inside a single list, is there any way to make a recursive system so that it checks all the items on the list?

I would also like to check if the distance is less than 20 and that should tell me if it is false or true.. 

Below is a picture of my definition :) 

Can anyone help me out?

THANK YOU! 

Views: 8383

Attachments:

Replies to This Discussion

Use the "distance" component instead of the "closest point" component. Also, you should remove the point you are checking from the rest of the list (using the cull index component, for example) if you don't want it to show up.

If you graft the "P" parameter and send the flattened list to the "C" then it should work. As Vicente mentioned you will also get the current point in there as a result, so you can either cull it before you compute, or cull it after if you are checking for closest pointS rather than closest point. (If you try to cull it after then the number of points you want to look for will be +1 since you will have an extra point in the results - better off to cull it first).

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