I have a list of point coordinates X, Y realized with
(setq listp (append (list p) listp))
I need to enter a progressive number on these coordinates, so that the consecutive numbers are graphically neighbors.
So I need to reorder the coordinates in the list.
is difficult to explain, I hope that the attached picture helps to understand.
Have any of you a little sample code.
I could write it, but I hope to find something ready.