Grasshopper

algorithmic modeling for Rhino

hey guys,


i want to sort a list of random points by their ascending Z-coordinate value:

i made up a randomly generated point cloud which i now want to set in some kind of order... I need the points to be sorted from 0 to "n" by their Z-coordinates' values. meaning that the point with the smallest z coordinate gets list number 0 and the point with the biggest Zvalue gets list number N.

how would i do this?

(photo attached)

thanks in advance!!!

Views: 14898

Attachments:

Replies to This Discussion

Decompose point. Plug z coordinates into k of sort component. Plug points into a of sort component. A output of sort will be points sorted by z.

thanks

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