I hope you can help me out on this one. I have to do some "special sorting" of a list of points (x,y,z coordinates) as a part of a larger code.
This list (by definition) will:
i) Always have a column with all the values equal zero.
ii) The first and the last point will always be the same.
The sorting of the list will depend on which column is equal to zero. I can identify this column myself with no problem (see code) but I am struggling when it comes with the sorting bit. First I have to find a the point that meet some specific criteria, then reorganise the list based on this. I have explained the sorting criteria as comments in the code (see sections 2 and 3).
If you could provide assistance on 2) and 3) that would be great (the first part is ok I think).
Many thanks
The code: