- UID
- 1
- 积分
- 16111
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-3
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
API提供三个功能强大的拓扑函数,交、并、差,可以在曲线、填充、面域、MPOLYGON任意两个实体之间实现交、并、差运算。
结果实体的类型取决于第一个实体,如果第一个是曲线,结果是曲线,第一个是填充,结果是填充....
(xdrx-get-intersect e1 e2)
(xdrx-get-union e1 e2)
(xdrx-get-subtract e1 e2)
 - ;并
- (defun c:tt ()
- (if (and (setq e1 (car
- (xdrx_entsel
- "\n拾取曲线、面域、填充、MPOLYGON<退出>:"
- '((0 . "*line,arc,circle,ellipse,hatch,region,mpolygon"))
- )
- )
- )
- (setq e2 (car
- (xdrx_entsel
- "\n拾取曲线、面域、填充、MPOLYGON<退出>:"
- '((0 . "*line,arc,circle,ellipse,hatch,region,mpolygon"))
- )
- )
- )
- )
- (progn (xdrx-get-union e1 e2))
- )
- (princ)
- )
 - ;差
- (defun c:tt1 ()
- (if (and (setq e1 (car
- (xdrx_entsel
- "\n拾取曲线、面域、填充、MPOLYGON<退出>:"
- '((0 . "*line,arc,circle,ellipse,hatch,region,mpolygon"))
- )
- )
- )
- (setq e2 (car
- (xdrx_entsel
- "\n拾取曲线、面域、填充、MPOLYGON<退出>:"
- '((0 . "*line,arc,circle,ellipse,hatch,region,mpolygon"))
- )
- )
- )
- )
- (progn (xdrx-get-subtract e1 e2))
- )
- (princ)
- )
 - ;交
- (defun c:tt2 ()
- (if (and (setq e1 (car
- (xdrx_entsel
- "\n拾取曲线、面域、填充、MPOLYGON<退出>:"
- '((0 . "*line,arc,circle,ellipse,hatch,region,mpolygon"))
- )
- )
- )
- (setq e2 (car
- (xdrx_entsel
- "\n拾取曲线、面域、填充、MPOLYGON<退出>:"
- '((0 . "*line,arc,circle,ellipse,hatch,region,mpolygon"))
- )
- )
- )
- )
- (progn (xdrx-get-intersect e1 e2))
- )
- (princ)
- )
|
评分
-
查看全部评分
|