明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1829|回复: 4

[求助]关于在LISP里给圆弧倒圆角的问题?

[复制链接]
发表于 2006-4-11 15:25:00 | 显示全部楼层 |阅读模式

ljpnb大侠:
    我记得您在论坛里回答过一个人关于在LISP里倒圆角的贴子
语句为:
(command "line" p1 p2)
(setq ent1 (entlast))
(command "line" p2 p3)
(setq ent2 (entlast))
(command "fillet" "r" 1 "fillet" ent1 ent2)

但为什么下面其中ent2为圆弧时倒出来的圆角是不对的?该如何来解决这一问题,能不能给讲一讲?谢谢!
(command "line" p1 p2)
(setq ent1 (entlast))
(command "arc" p2 p3 p4)  ;;三点画弧
(setq ent2 (entlast))
(command "fillet" "r" 1 "fillet" ent1 ent2)

发表于 2006-4-11 15:50:00 | 显示全部楼层

就是倒的方向不对吧,最后一句(command "fillet" "r" 1 "fillet" ent1 ent2)最好改成

(command "fillet" "r" 1 "fillet" (list ent1 point1) (list ent2 point2));_其中point1和

point2可以是物体的端点

发表于 2006-4-11 15:51:00 | 显示全部楼层

试一试如下:

   (command "line" p1 p2 "")
   (setq ent1 (entlast))
   (command "arc" p2 p3 p4)  ;;三点画弧
   (setq ent2 (entlast))
   (command "fillet" "r" 1 "fillet" (list ent1 p2) (list ent2 p2))

 楼主| 发表于 2006-4-11 16:18:00 | 显示全部楼层
谢谢两位大侠!我再消化消化.
发表于 2006-4-15 17:31:00 | 显示全部楼层

   (command "line" p1 p2 "")
   (setq ent1 (entlast))
   (command "arc" p2 p3 p4)  ;;三点画弧
   (setq ent2 (entlast))
   (command "fillet" "r" 1 "fillet" (list ent1 p2) (list ent2 p2))

请问一下上楼的大哥,这里面的list这是什么意思啊,,,还有你在这里输P2又是什么意思啊,,谢谢啊,

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

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-9-20 01:46 , Processed in 0.243330 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表