View Full Version : sorting a list of points so that it follows a certain order
tany0070
2007-05-02, 04:51 AM
hi pple, i wish to know if anyone knows of any codes or functions that can help me to sort out a list of points so that they follow a certain order. for my current case, the points lie on the boundary of a square and i want them to follow a clockwise order.thanks
oh and just one point to bring out, my problem would be that the points were obtained but user selection and thus the order is not fixed, it could start from the center point of one side and reads the points till it reaches the end point, it then jumps to the other end point and reads the points till it reaches the point it read first. this happened for all 4 sides.
kennet.sjoberg
2007-05-02, 06:53 AM
I think you are trying to work out the same mission that rohaya.shaffini
please scan this thread to find out.
: ) Happy Computing !
kennet
tany0070
2007-05-02, 07:11 AM
not that i'm complaining but i don't seem to be able to find any threads that are from her, why do you think i'm posting in the first place. if it is possible, please post me a link on her post. thanks
kennet.sjoberg
2007-05-02, 11:15 AM
not that i'm complaining but i don't seem to be able to find any threads that are from her, why do you think i'm posting in the first place. if it is possible, please post me a link on her post. thanks
OK, rohaya.shaffini changed name to noadea
please scan this thread again.
: ) Happy Computing !
kennet
CAB2k
2007-05-02, 12:07 PM
Good catch Kennet.
kennet.sjoberg
2007-05-02, 01:53 PM
Good catch Kennet.
Check my avatar, I’m observing you 8)
: ) Happy Computing !
kennet
tany0070
2007-05-03, 01:23 AM
i see thanks
tany0070
2007-05-03, 03:05 AM
hi again, i have went through some of noadea threads and picked up a few codes, but they do not really work for my program keeps giving me an error. anyways i was looking through help and found a vl-sort function, tested it but also doesn't seem to do what i want. someone correct me if i'm wrong but does vl-sort uses bubble sorting method? lastly just want to say that all the above may not work for me because my list is very very screwed up in its order. will continue trying and hope more help can come in. thanks
Powered by vBulletin® Version 4.1.11 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.