Grasshopper

algorithmic modeling for Rhino

Hi there,

this seems easy but it is slightly tricky. I know how to get the smallest / largest value in a list etc.

Yet, I am trying to select a point that has the smallest Z coordinate. I can deconstruct the point and select the smallest z coordinate yet I can only (re)construct that point manually - comparing the two different lists and getting the X and Y values of that specific point.

Is there way to sort a list of points according to the values of a given - X, Y, Z - coordinate, rather than overall?

Kind Regards,

Levent

Views: 2437

Replies to This Discussion

Yes, you can sort the Z values, and synchronously sort the points using the A input of the Sort component.

Attachments:

And here's how to do it without changing the order of the points. I.e. instead of sorting the points synchronously, the point indices are sorted synchronously.

Attachments:

Thanks very much!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service