3d mode l ing and printing by python
play

3D Mode l ing and Printing by Python EuroPython 2016@ Bi l bao, - PowerPoint PPT Presentation

3D Mode l ing and Printing by Python EuroPython 2016@ Bi l bao, Spain 2016/07/22 Takuro Wada Hi! Kabuku Inc. (Japanese Startup) Software Engineer Takuro Wada Providing services related to 3D printing taxpon taxpon


  1. 3D Mode l ing and Printing by Python EuroPython 2016@ Bi l bao, Spain 2016/07/22 Takuro Wada

  2. Hi! Kabuku Inc. (Japanese Startup) 和 田 拓 朗 Software Engineer Takuro Wada Providing services related to 3D printing taxpon taxpon http://takuro.ws

  3. What is 3D printing?

  4. What is 3D printing? Creating products by forming successive layers of material based on 3D Data

  5. Example https://en.wikipedia.org/wiki/3D_printing

  6. What is required for 3D Printing?

  7. What is required for 3D printing? 3D Printer 3D Data

  8. How to create 3D Data?

  9. 3D Data Examp l e STL(ASCII)

  10. Definition of Triang l e (po l ygon)

  11. Definition of Triang l e (po l ygon) Successive triang l e definitions

  12. Format is so simple

  13. But creating 3D Data from scratch is so hard task

  14. 3DCG/CAD software

  15. Many 3D software provides Python API

  16. Many 3D software provides Python API You can manipulate 3D data via Python

  17. Script Modeling ‣ You can create 3D mode l even if you are not fami l iar with 3DCG/CAD software ‣ You can create shapes that are difficu l t for hand creation ‣ Modifying shape is easy

  18. _人人人人人人人_ _人人人人人人人_ Script Modeling ‣ You can create 3D mode l even if you are not fami l iar with 3DCG/CAD software ‣ You can create shapes that are difficu l t for hand creation ‣ Modifying shape is easy > GREAT !! < > FANTASTIC !!< ‾ Y^Y^Y^Y^Y^Y ‾ ‾ Y^Y^Y^Y^Y^Y ‾

  19. _人人人人人人人_ Today’s software > FREE !! < ‾ Y^Y^Y^Y^Y^Y ‾

  20. Script Modeling with Blender and Python

  21. What is Blender? • Deve l oped since 199 5 • Open source software, Mu l ti p l atform • Language: C, C ++ , Python ‣ Python is used as API interface ‣ B l ender has its own python interpreter in the software ( 3.5. 1 in B l ender 2 . 77 a ) asyncio!!

  22. De l ete defau l t Object Add cone

  23. -P option and script name to execute

  24. Making Chain Project Making Chain https://flic.kr/p/aA2u7C CC BY-SA 2.0

  25. https://www.myminifactory.com/object/5943

  26. https://www.youtube.com/watch?v=z1OSXnCG-jk

  27. http://afinia.com/3d-printers/h480/

  28. Afinia H480 Bed Size 15 cm 15 cm

  29. Decided to create l onger one Longer one … jumping rope… https://flic.kr/p/5pT9iD CC BY 2.0

  30. Connect b l ender and minecraft wor l d using Python

  31. Convert this kind of 3D data to Minecraft B l ocks!!

  32. Implementation Overview Consists of two main pars. Convert 3D mode l Transport b l ocks into B l ocks into Minecraft Converting Transporting

  33. Converting before after

  34. Level of Conversion

  35. Transporting b l ender Spigot add-on p l ugin TCP Raspberry mcpi Juice • Use mcpi (python modu l e • Spigot = Minecraft mod server for minecraft) modu l e • Raspberry Juice is p l ugin for Spigot

  36. _人人人人人人人人_ \ (^o^) / > Success!! < ‾ Y^Y^Y^Y^Y^Y^Y ‾

  37. F l oating Faces!!

  38. You can l ive in your face!!

  39. 3D Printed Resu l t

  40. Github • b 2 mine ‣ https://github.com/taxpon/b 2 mine

  41. Script Modeling with OpenSCAD and Python

  42. What is OpenSCAD? • CAD software, Open source (GPL) • Mu l ti p l atform ( Win, Mac, Linux ) • Imp l emented by C ++ (Qt) • Create 3D mode l using origina l programming l anguage • No GUI to manipu l ate 3D data

  43. Feature of OpenSCAD • Very good for Software Engineer • Written script can be kicked from command l ine ‣ Generate mode l in Server ‣ Create mu l tip l e mode l with command

  44. Neck tie composed of mu l tip l e characters

  45. Generate by 1 command ‣ You can pass arguments from command l ine to OpenSCAD script

  46. OpenPySCAD • Generate OpenSCAD code from Python code ‣ https://github.com/taxpon/openpyscad • Insta ll via pip command $ pip install openpyscad

  47. OpenPySCAD • Union operation Cube([20, 10, 10]) + Cube([10, 20, 10]) union(){ 
 cube([20, 10, 10]) 
 cube([10, 20, 10]) 
 };

  48. OpenPySCAD • Difference operation Cube([20, 10, 10]) - Cube([10, 20, 10]) difference(){ 
 cube([20, 10, 10]) 
 cube([10, 20, 10]) 
 };

  49. OpenPySCAD • Rotation c1 = Cube([20, 10, 10]) c1.rotate([0, 0, 45]) rotate([0, 0, 45]){ 
 cube([20, 10, 10]) 
 };

  50. Conclusion

  51. Script Mode l ing is FUN!! Script Modeling is FUN!! • Let's start tody Let’s start today https://flic.kr/p/ef4VBP CC BY 2.0

  52. We are Hiring!! ‣ Python Deve l oper ‣ C ++ Deve l oper ‣ Frontend Deve l oper ‣ Angu l ar/React ‣ You can use 3D printer ‣ Internationa l members ‣ 3 Goog l e Deve l oper Experts Engineer team http://www.kabuku.co.jp/#jobs

Recommend


More recommend