參考網際正齒輪繪圖

採用 Brython (Python) 技術

  1. https://github.com/brython-dev/brython/releases 下載 3.5.1 版 Brython-3.5.1.zip, 在 c:\tmp 中解開壓縮檔, 然後在 Brython-3.5.1 目錄外新增 index.html
  2. 接著從 http://mde.tw/2017springcd/blog/brython-2d-spur-gear-matching.html 取得利用 Brython 語法繪製正齒輪輪廓圖的程式碼, 然後放入步驟 1 的 index.html, 原始碼如 https://github.com/mdecourse/cd2018/blob/gh-pages/gear/index.html 所示.
  3. 為了在近端 c:\tmp 目錄中測試所複製的正齒輪繪製程式, 啟動隨身程式系統後, 在命令列進入 c:\tmp, 然後執行 python -m http.server 啟動一個簡單的 www 伺服器, 然後以瀏覽器 http://localhost:8000 檢查
  4. 若正確顯示正齒輪輪廓繪圖結果, 接著在自己的 Github 倉儲中的 gh-pages 分支中新增一個 gear 目錄, 然後將近端的 Brython 程式庫與 index.html 新增, 提交退送到自己的倉儲, 然後在瀏覽器檢視.

所得到的結果:http://mde.tw/cd2018/gear/

完成後, 請仔細檢查其中的程式碼, 了解每一行的原理後, 設法繪出多齒輪嚙合繪圖, 接下來再研究

http://mde.tw/2017springcd/blog/brython-spur-gears.html

以及

http://mde.tw/2017springcd/blog/brython-2d-spur-gear-matching-2.html

參考資料:

Gear Drawing with Bezier Curves.pdf
https://www.arc.id.au/GearDrawing.html
http://cadlab.mde.tw/post/onshape-featurescript-spur-gear-lun-kuo-hui-tu.html
https://sourceforge.net/projects/pygear/
https://github.com/e-dub/pygear
https://www.youtube.com/watch?v=TM7whOx02Hc
https://github.com/JMG1/5SGearBox
https://github.com/JMG1/ExplodedAssembly
https://github.com/JMG1/FreeTruck

採用 Fengari-web (Lua) 技術繪圖

14週目標

1.請各組員在各自的 Github Pages 中繪製一個自選齒數的漸開線正齒輪輪廓外型.

2.完成單一齒輪輪廓繪圖後, 請繪製一組 50t 與 25t 的齒輪嚙合靜態輪廓圖.

3.完成兩齒嚙合靜態繪圖後, 請嘗試轉為動態繪圖.

results matching ""

    No results matching ""