{"id":886,"date":"2019-11-18T09:10:14","date_gmt":"2019-11-18T09:10:14","guid":{"rendered":"http:\/\/www.gaudi.ch\/GaudiLabs\/?page_id=886"},"modified":"2019-11-18T09:24:31","modified_gmt":"2019-11-18T09:24:31","slug":"openscad-workshop","status":"publish","type":"page","link":"http:\/\/www.gaudi.ch\/GaudiLabs\/?page_id=886","title":{"rendered":"OpenSCAD Workshop"},"content":{"rendered":"<p><strong>OpenSCAD is coding language for creating solid 3D objects.<\/strong><\/p>\n<p>The objects can be exported as STL file and 3D printed or shared online.<\/p>\n<p>Website: <a href=\"https:\/\/www.openscad.org\/\">https:\/\/www.openscad.org\/<\/a><\/p>\n<p>Download version: <a href=\"https:\/\/www.openscad.org\/downloads.html\">https:\/\/www.openscad.org\/downloads.html<\/a><br \/>\nOnline version: <a href=\"http:\/\/openscad.net\">http:\/\/openscad.net<\/a><\/p>\n<p>OpenSCAD Cheatsheet: <a href=\"https:\/\/www.openscad.org\/cheatsheet\/index.html\">https:\/\/www.openscad.org\/cheatsheet\/index.html<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-887 \" src=\"http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/Cube_OpenSCADOnline.png\" alt=\"\" width=\"471\" height=\"330\" srcset=\"http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/Cube_OpenSCADOnline.png 872w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/Cube_OpenSCADOnline-300x210.png 300w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/Cube_OpenSCADOnline-768x538.png 768w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/p>\n<h4>Make a cube<\/h4>\n<p><code><a href=\"https:\/\/en.wikibooks.org\/wiki\/OpenSCAD_User_Manual\/Primitive_Solids#cube\">cube<\/a>(size, center)<br \/>\n<\/code><\/p>\n<p><em>Type:<\/em><\/p>\n<p>cube(30, center = true);<\/p>\n<p><em>Hit: Design -&gt; Reload &amp; Preview (F4)<\/em><\/p>\n<p><em>or<\/em><\/p>\n<p><code><a href=\"https:\/\/en.wikibooks.org\/wiki\/OpenSCAD_User_Manual\/Primitive_Solids#cube\">cube<\/a>([width,depth,height], center)<\/code><\/p>\n<p>cube([30, 30, 30], center = false);<\/p>\n<p>&nbsp;<\/p>\n<h4>Rotate and Translate<\/h4>\n<p><code><a href=\"https:\/\/en.wikibooks.org\/wiki\/OpenSCAD_User_Manual\/Transformations#translate\">translate<\/a>([x,y,z])<\/code> <code><a href=\"https:\/\/en.wikibooks.org\/wiki\/OpenSCAD_User_Manual\/Transformations#rotate\">rotate<\/a>([x,y,z])<br \/>\n<\/code><\/p>\n<p>rotate(45)<br \/>\ntranslate([50,0,0])<br \/>\ncube(50, true);<\/p>\n<p>cube(50, true);<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-889 alignnone\" src=\"http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/OpenSCADRotateTranslate.png\" alt=\"\" width=\"422\" height=\"298\" srcset=\"http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/OpenSCADRotateTranslate.png 873w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/OpenSCADRotateTranslate-300x212.png 300w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/OpenSCADRotateTranslate-768x542.png 768w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/p>\n<h4>Flow Control<\/h4>\n<p><code><a href=\"https:\/\/en.wikibooks.org\/wiki\/OpenSCAD_User_Manual\/Conditional_and_Iterator_Functions#For_Loop\">for<\/a> (i = [start:end]) { \u2026 }<\/code><\/p>\n<p>for ( i = [0:20])<br \/>\n{<br \/>\nrotate(20*i)<br \/>\ntranslate([24,0,0])<br \/>\ncube( [10, 30, i*1+5], false);<br \/>\n}<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-890 alignnone\" src=\"http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/FlowOpenSCAD.png\" alt=\"\" width=\"413\" height=\"291\" srcset=\"http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/FlowOpenSCAD.png 873w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/FlowOpenSCAD-300x212.png 300w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/FlowOpenSCAD-768x542.png 768w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/p>\n<h4>Difference<\/h4>\n<p><code><a href=\"https:\/\/en.wikibooks.org\/wiki\/OpenSCAD_User_Manual\/CSG_Modelling#difference\">difference<\/a>()<\/code><\/p>\n<p>difference()<br \/>\n{<br \/>\nrotate([10,10,10])<br \/>\ncube(50, true);<br \/>\ncube(45, true);<br \/>\n}<\/p>\n<h4>Export as STL to 3D print<\/h4>\n<p><em>Hit: Design -&gt; Export as STL\/DXF<\/em><\/p>\n<p><em>save STL file and load it into Cura. Then print.<br \/>\n<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-891 alignnone\" src=\"http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/3DPrintOpenSCAD.png\" alt=\"\" width=\"423\" height=\"248\" srcset=\"http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/3DPrintOpenSCAD.png 1280w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/3DPrintOpenSCAD-300x176.png 300w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/3DPrintOpenSCAD-768x450.png 768w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/3DPrintOpenSCAD-1024x600.png 1024w\" sizes=\"auto, (max-width: 423px) 100vw, 423px\" \/><\/p>\n<h4>iMaterialise it<\/h4>\n<div class=\"lc-page-description\">\n<div class=\"m-editable-text-block\">Online 3D printing service. Printing and shipping your design from 100+ different finishes and materials.<\/div>\n<\/div>\n<p>Website: <a href=\"https:\/\/i.materialise.com\">https:\/\/i.materialise.com<\/a><\/p>\n<p><em>Hit: Get Started <\/em><\/p>\n<p><em>Upload 3D Model.<\/em><\/p>\n<p><em>Choose STL file.<\/em><\/p>\n<p><em>Choose Size and Material<\/em><\/p>\n<p><em>Order.<\/em><\/p>\n<p>or <a href=\"https:\/\/www.shapeways.com\/\">https:\/\/www.shapeways.com\/<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-895 alignnone\" src=\"http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/iMaterializeOpenSCAD.png\" alt=\"\" width=\"359\" height=\"294\" srcset=\"http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/iMaterializeOpenSCAD.png 1191w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/iMaterializeOpenSCAD-300x246.png 300w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/iMaterializeOpenSCAD-768x630.png 768w, http:\/\/www.gaudi.ch\/GaudiLabs\/wp-content\/uploads\/iMaterializeOpenSCAD-1024x840.png 1024w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/p>\n<h4>Share on Thingiverse.com<\/h4>\n<p>DIAMETER = 20; \/\/[20:60]<\/p>\n<p>for (i=[0:20])<br \/>\n{<br \/>\nrotate(20*i)<br \/>\ntranslate([DIAMETER,0,0])<br \/>\ncube( [10, 30, i*1+5], false);<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenSCAD is coding language for creating solid 3D objects. The objects can be exported as STL file and 3D printed or shared online. Website: https:\/\/www.openscad.org\/ Download version: https:\/\/www.openscad.org\/downloads.html Online version:<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-886","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.gaudi.ch\/GaudiLabs\/index.php?rest_route=\/wp\/v2\/pages\/886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gaudi.ch\/GaudiLabs\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.gaudi.ch\/GaudiLabs\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.gaudi.ch\/GaudiLabs\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gaudi.ch\/GaudiLabs\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=886"}],"version-history":[{"count":5,"href":"http:\/\/www.gaudi.ch\/GaudiLabs\/index.php?rest_route=\/wp\/v2\/pages\/886\/revisions"}],"predecessor-version":[{"id":896,"href":"http:\/\/www.gaudi.ch\/GaudiLabs\/index.php?rest_route=\/wp\/v2\/pages\/886\/revisions\/896"}],"wp:attachment":[{"href":"http:\/\/www.gaudi.ch\/GaudiLabs\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}