Author Topic: lisp reorganization coordinates  (Read 1907 times)

0 Members and 1 Guest are viewing this topic.

Lupo76

  • Bull Frog
  • Posts: 343
lisp reorganization coordinates
« on: January 13, 2015, 11:24:51 AM »
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.  :oops:

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: lisp reorganization coordinates
« Reply #1 on: January 13, 2015, 11:32:21 AM »
No clue if it will help, but I wrote this for no reason a few years ago...
http://www.theswamp.org/index.php?topic=32788.0
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lupo76

  • Bull Frog
  • Posts: 343
Re: lisp reorganization coordinates
« Reply #2 on: January 13, 2015, 12:05:52 PM »
No clue if it will help, but I wrote this for no reason a few years ago...
http://www.theswamp.org/index.php?topic=32788.0

This is great !!
is just what I wanted, indeed much more!  :-D

However it has the limitation of the number of rows.
In my case I do not have a rectangle of numbers but I have the numbers enclosed in an irregular shape.
Your lisp is too difficult for me and I would not know where to intervene  :cry: