本帖最后由 ~希望 于 2012-4-16 21:58 编辑
 - (defun c:ceshi ( )
- (setq zx (getpoint"\n请输入中心点:"))
- (setq r(getdist"\请输入半径:"))
- (setq h(getdist"\请输入高度:"))
- (setq p1(polar zx 0 r))
- (command"circle" zx r)
- (command "line" zx p1 "")
- (setq p2(polar p1 (+ 90) h))
- (setq p3(polar p1 (- 90) h))
- (command "line" p2 p3 "")
- (Princ)
- )
为什么连接P2 与P3的直线不是经过 P1并且与P1垂直呢,难道(setq p2(polar p1 (+ 90) h))中90的参数不对?求高手指点一下,谢谢
|