2013年7月15日 星期一

Advanced VC++ Chapter 3

課程內容:

拖曳方式讀取檔案
http://codeboxy.blogspot.com/2013/07/drag-to-read-file.html

例外處理的方法
http://codeboxy.blogspot.com/2013/07/exception-handling.html

GD繪圖函式
http://codeboxy.blogspot.com/2013/07/simple-drawing-using-gd-libary.html

GD Library DL(DLL在bin資料夾內):
https://sites.google.com/site/ccuboxy/home/gd-latest-win32.zip?attredirects=0&d=1

作業3:
撰寫一程式,能拖曳一座標資料文字檔,進行繪圖動作產生一圖片檔。

作業參考解答:
http://codeboxy.blogspot.com/2013/07/read-stl-model-file-and-export-graphics.html

範例結果:




ASCII STL模型:

球 (FileName: SphereASCII.STL, Facet Normal: 2352, Vertex: 7056, Diameter: 1mm)
https://sites.google.com/site/ccuboxy/home/SphereASCII.STL?attredirects=0&d=1

小齒輪 (FileName: GearASCII.STL, Facet Normal: 792, Vertex: 2376, Diameter: 10mm)
https://sites.google.com/site/ccuboxy/home/GearASCII.STL?attredirects=0&d=1

大齒輪 (FileName: LargeGearASCII.STL, Facet Normal: 792, Vertex: 2376, Diameter: 100mm)
https://sites.google.com/site/ccuboxy/home/LargeGearASCII.STL?attredirects=0&d=1

風扇 (FileName: FanASCII.STL, Facet Normal: 2928, Vertex: 8784, Diameter: 80mm)
https://sites.google.com/site/ccuboxy/home/FanASCII.STL?attredirects=0&d=1

沒有留言:

張貼留言