看板 Cad_Cae 關於我們 聯絡資訊
※ 引述《sjgau (sjgau)》之銘言: : http://myblog.pchome.com.tw/_/myblog/?blog_id=sjgau&y=2005&m=09&an=11726&acn=3247 : (setvar "cmdecho" 0) : ; plot r= G(theta) : ; r=a(1-sinθ) : (setq a 2.5) : (setq no (getint "Please input no= ")) : (setq t1 (* -1 pi) : t2 (* +1 pi) : dt (/ (- t2 t1) no) : t2 (+ t2 (* 0.1 dt)) : ) : ; for theta= t1 to t2 step dt do ... : ; dt= (t2 - t1)/no : ; no= ? : (command "PLINE") : (setq theta t1) : (while (< theta t2) : ; // r=a(1-sinθ) : (setq r (* a (- 1.0 (sin theta)))) : (setq x (* r (cos theta)) : y (* r (sin theta)) : ) : (setq p1 (list x y)) : (command p1) : (setq theta (+ theta dt)) : ) : (command "") : (princ) : 那麼請問該如何呼叫出 AutoCAD自動畫函數圖形的程式? 3D圖案是否也是用函數建立會比較好看呢? 謝謝指教! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.164.1.3
sjgau:case by case, 屬於上帝的歸上帝,屬於魔鬼的歸魔鬼 11/03 10:03
sjgau:(load "test.lsp") 11/03 10:04