thank you david, i'll look at it the next day. i dont know why but i cant get on to the site during this time of day. ------------------ Original ------------------ From: "David Rutten"<[email protected]>; Date: 2009年3月14日(星期六) 晚上8:22 To: "Grasshopper"<[email protected]>; Subject: Re: how to change the order of points?
You can even sort stuff in a circular fashion by using a circle instead of a line: http://groups.google.com/group/grasshopper3d/web/ReorderByCircularSort.png This is a very powerful mechanism to change the order of data. -- David Rutten [email protected] Robert McNeel & Associates On Mar 14, 1:17?pm, David Rutten <[email protected]> wrote: > 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.
