Ahankhah 发表于 2022-7-6 10:00:15

Renderman, I just wanted to confess that I know my English isn't so good.
I respect you as one of the active members of CADTutor. I learn much in this forum and thank you and all other friends for this.

yajis_narif 发表于 2022-7-6 10:01:43

hello anyone can help me plzzz

Tharwat 发表于 2022-7-6 10:07:31

 
You still looking for a help .
 
What's the issue buddy .

yajis_narif 发表于 2022-7-6 10:09:05

i have a drawing with 4 lines of points (each line of points with the same Y) . i have the coordinate of the points of each line in a list and all the lists in a list .
so now i want to calculate the disatnce between points of each list knowing that the number of points in lines may change and may not be equal as follows :
.....
.....
..   ..
...      
 
thanks tharwat

Tharwat 发表于 2022-7-6 10:11:48

You want to calculate the distance from the list or from the distance between points ?

yajis_narif 发表于 2022-7-6 10:16:07

yes i want to calculate the distance between points in every line

Lee Mac 发表于 2022-7-6 10:19:36

If your point list is in the format:
 

( (... ) (... ) ... (... ))
 
then perhaps:
 

(defun test ( mainlist ) (mapcar   (function   (lambda ( sublist )       (mapcar 'distance sublist (cdr sublist))   )   )   mainlist ))

yajis_narif 发表于 2022-7-6 10:22:38

yes exactlymy list is in that format and i want to calculate the distance between(and ) ,(and )...... and )

Lee Mac 发表于 2022-7-6 10:25:40

Try my test code...

yajis_narif 发表于 2022-7-6 10:26:49

thank you lee Macit worked thanks for your help actually i was stuck in it for 3 days
页: 1 [2]
查看完整版本: lin中点之间的距离