明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1568|回复: 6

如何得到面域的各点坐标

[复制链接]
发表于 2005-9-5 11:09 | 显示全部楼层 |阅读模式
请教各位:如何得到一个面域的各点坐标
发表于 2005-9-5 12:35 | 显示全部楼层
Explode -> Undo
发表于 2005-9-6 08:45 | 显示全部楼层
; I guess this function is from (acis_poll)
(defun acis_translate (string / item letter lst)
  (setq string (strcat string " ")
 item   ""
  )
  (while (> (strlen string) 0)
    (setq letter (substr string 1 1)
   string (substr string 2)
    )
    (if (= " " letter)
      (setq lst  (append lst (list item))
     item ""
      )
      (setq item (strcat item (chr (boole 6 (ascii letter) 95))))
    )
  )
  lst
)
;;acis_translate example
(defun c:test()
  (setq ent (entget (car (entsel "\nSelect a Region: "))))
  (foreach itm ent
    (if (= (type (cdr itm)) 'STR)
      (progn
 (princ (vl-princ-to-string (cons (car itm) (acis_translate (cdr itm)))))
         (princ "\n")
      )
    )
  )
  (princ)
 )
发表于 2005-9-6 10:28 | 显示全部楼层

很奇妙!送鲜花一朵,能否解说一下算法?

 楼主| 发表于 2005-9-6 11:10 | 显示全部楼层
谢谢,各点坐标得到了,能否按照绘制边界时的顺序排列起来呢
发表于 2005-9-6 15:08 | 显示全部楼层

Search the web you will know the Region and the 3D Solid of AutoCAD are from the 3D ACIS® Modeler (ACIS), which is Spatial's prominent 3D modeling development
Technology. However, the data is encrypted. Somebody (Sorry I can’t remember his name) decrypted it and wrote this function.

 

You shouldn't expect too much from this routine ...

发表于 2005-10-19 17:58 | 显示全部楼层
高手!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-8 11:33 , Processed in 1.823732 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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