|
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 zuoyemoming 于 2010-1-18 13:52 编辑 3 e$ N! j( [, E0 U4 z; z K# q8 M
. \2 O# H$ V. P/ V7 E
为什么我照着教程编写的LSP程序,老是提示输入中的点位置不正确。- Y6 |! Y. p3 I, f5 o, ~' q. F
这个是照着教程自己写的源码:; Z3 r& \4 [$ _
;this program will prompt you to enter three points + a) w# N' E3 O1 @/ \
;of a triangle from the keyboard ,or select three points6 B( y: R! v% m5 ?4 G3 ?
;by using the screen cursor .P1,P2,P3 are triangle corners
( e0 Q8 g6 Y n& L3 g% c
1 j) A6 t. J& o(defun: C:triang1()
: c f# }: g5 q$ ?3 e! \ (setq p1(getPoint“\n Enter first Point of triangle:”))* i a. A9 X2 C: g6 K2 y
(setq p2(getPoint“\n Enter second Point of triangle:”))
K, m2 l% O6 B' K+ A. A- u (setq p3(getPoint“\n Enter third Point of triangle:”)): p. k) T7 T9 J) _# I
(Command“line” p1 p2 p3“C”)
3 y/ T4 W: F# _+ j0 t& A; ^6 I)
: f/ {5 A7 { I* C/ e$ J教程为下面的图片 |
|