Easy solution? Rotate the plane 90 degrees and turn the grid into 10*5. Hard solution? Generate a list of numbers that (when sorted) will give the new distribution:
Project all points onto a line segment that points in the desired direction. Combine the projection parameter (t) and the projection distance (D) into a new number (making sure that distance is far more important than the line parameter) and sort all the points with the numbers: http://groups.google.com/group/grasshopper3d/web/ReorderBySort.png -- David Rutten [email protected] Robert McNeel & Associates On Mar 14, 9:51 am, LaoyeChan <[email protected]> wrote: > hi guys, > I have a recGrid of 5*10, and the order of the points are as > 1 6 11 16 21... > 2 7 12 17 22... > 3 8 13 18 23... > 4 9 14 19 24... > 5 10 15 20 25... > > and I need to change the order to > 1 2 3 4 5 6 7 8 9 10 > 11 12 13 14 15 16 17 18 19 20 > ...... > 41 42 43 44 45 46 47 48 49 50 > > What should i do? > > Thanks.
