乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
楼主: yajis_narif

[编程交流] lin中点之间的距离

[复制链接]

91

主题

428

帖子

326

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
474
发表于 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.
回复

使用道具 举报

8

主题

43

帖子

35

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 10:01:43 | 显示全部楼层
hello anyone can help me plzzz
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
358
发表于 2022-7-6 10:07:31 | 显示全部楼层
 
You still looking for a help .
 
What's the issue buddy .
回复

使用道具 举报

8

主题

43

帖子

35

银币

初来乍到

Rank: 1

铜币
40
发表于 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
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
358
发表于 2022-7-6 10:11:48 | 显示全部楼层
You want to calculate the distance from the list or from the distance between points ?
回复

使用道具 举报

8

主题

43

帖子

35

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 10:16:07 | 显示全部楼层
yes i want to calculate the distance between points in every line
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 10:19:36 | 显示全部楼层
If your point list is in the format:
 
  1. ( (  ... ) (  ... ) ... (  ... ))
 
then perhaps:
 
  1. (defun test ( mainlist ) (mapcar   (function     (lambda ( sublist )       (mapcar 'distance sublist (cdr sublist))     )   )   mainlist ))
回复

使用道具 举报

8

主题

43

帖子

35

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 10:22:38 | 显示全部楼层
yes exactly  my list is in that format and i want to calculate the distance between  (  and ) ,(  and )...... and )
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 10:25:40 | 显示全部楼层
Try my test code...
回复

使用道具 举报

8

主题

43

帖子

35

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 10:26:49 | 显示全部楼层
thank you lee Mac  it worked thanks for your help actually i was stuck in it for 3 days
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-7 03:17 , Processed in 0.614537 second(s), 70 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表