Re: [問題] 參考某一未知長度畫圓或畫弧

看板Cad_Cae (電腦輔助設計)作者 (張慶堂)時間15年前 (2010/11/11 18:21), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/7 (看更多)
※ 引述《sjgau (sjgau)》之銘言: : (defun dtor(d1 / ) : (* (/ d1 180.0) pi) : ); end of dtor() : ; draw a arc by CDR, C:圓心,D:方向, R:半徑 : (defun c:arc-cdr( / pc p1 t1 t2 t3 p2 p3) : (setq pc (getpoint "\n 弧的圓心: ")) : (setq p1 (getpoint "\n 大概的方向: ")) : (setq t1 (angle pc p1)) : (setq r1 (getdist "\n 輸入兩點 決定半徑: ")) : (setq t2 (+ t1 (dtor 15.0))) : (setq t3 (- t1 (dtor 15.0))) : (setq p2 (polar pc t3 r1)) : (setq p3 (polar pc t2 r1)) : (setq p1 (polar pc t1 r1)) : (command "arc" p2 p1 p3) : (princ) : ); end of c:arc-cdr (defun c:ac()(command "arc" "c")) 此程式與上述相同功能.而且比較簡單明瞭! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.160.194.140
文章代碼(AID): #1CsyEHx4 (Cad_Cae)
討論串 (同標題文章)
文章代碼(AID): #1CsyEHx4 (Cad_Cae)