generative modeling for Rhino
I'm looking for a way to sort a list points, built up from series of x and y values, by the y-values first and then, by x-values:
Current List: Output from Point XYZ Component
(0.0, 0.0, 0.0)
(1.0, 0.0, 0.0)
(2.0, 0.0, 0.0)
(3.0, 0.0, 0.0)
(0.0, 1.0, 0.0)
(1.0, 1.0, 0.0)
(2.0, 1.0, 0.0)
(3.0, 1.0, 0.0)
(0.0, 2.0, 0.0)
(1.0, 2.0, 0.0)
(2.0, 2.0, 0.0)
(3.0, 2.0, 0.0)
Desired List:
(0.0, 0.0, 0.0)
(0.0, 1.0, 0.0)
(0.0, 2.0, 0.0)
(0.0, 3.0, 0.0)
(1.0, 0.0, 0.0)
(1.0, 1.0, 0.0)
(1.0, 2.0, 0.0)
(1.0, 3.0, 0.0)
(2.0, 0.0, 0.0)
(2.0, 1.0, 0.0)
(2.0, 2.0, 0.0)
(2.0, 3.0, 0.0)
I was unable to make the Sort List Component work successfully:

Thanks,
Amanda
Tags:

Permalink Reply by Amanda M. Schluter on June 7, 2010 at 2:36pm
© 2013 Created by Scott Davidson.
Powered by