OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD...

32
OpenSCAD Marius Kintel

Transcript of OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD...

Page 1: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

OpenSCAD

Marius Kintel

Page 2: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Outline

• 3D Printing Primer

• OpenSCAD Walkthrough

• Hands-on tutorial

• Bring your own project

Page 3: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

3D Printing

Page 4: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project
Page 5: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project
Page 6: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project
Page 7: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project
Page 8: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project
Page 9: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project
Page 10: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Solid Modeling

CSG Constructive Solid Geometry

Page 11: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project
Page 12: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Textual description

sphere() cube()

+ =union()

- =difference()

Page 13: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project
Page 14: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project
Page 15: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

3D Primitives

Page 16: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Extrusions

Page 17: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

2D Primitives

Page 18: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Transformations

scalerotatetranslate

Page 19: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Customizer

Page 20: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

openscad.org/cheatsheet

Page 21: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Vocabulary

• Syntax: Rules/grammar

• Parentheses: ( )• Square brackets: [ ]• Curly braces: { }• Semicolon: ;

Page 22: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Interactive Walkthrough

Page 23: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

difference() { cube([40,20,20]); translate([-5,10,10]) rotate([0,90,0]) cylinder(h=50, r=4);}

Page 24: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

difference() { cube([100,50,30]); translate([2,2,2]) cube([100-4,50-4,30]); translate([-1,30,10]) rotate([0,90,0]) cylinder(h=10, d=5);}

translate([5,5,0]) cube(10);

Page 25: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

VariablesLength = 120;Width = 50;Height = 30;Wall = 2;

difference() { cube([Length, Width, Height]); translate([Wall, Wall, Wall]) cube([Length-2*Wall,Width-2*Wall,Height]);}

Page 26: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project
Page 27: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Texttranslate([20,0,0]) linear_extrude(height=10) text("MARIUS", size=20);

difference() { translate([0,2.5,0]) cube([120,15,3]); translate([10,10,-1]) cylinder(h=20, d=10);}

Page 28: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

translate([20,0,0]) linear_extrude(height=10) text("MARIUS", size=20, font="Noteworthy:style=Bold");

difference() { union() { translate([7.5,2.5,0]) cube([120-7.5,15,3]); translate([7.5,10,0]) cylinder(d=15, h=3); } translate([10,10,-1]) cylinder(h=20, d=10);}

Page 29: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Importing Files

import(“filename.stl”);

linear_extrude(height=10) import(“filename.dxf”);

Page 30: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Import STL

difference() { import("bunny.stl", convexity=3); translate([0,-8,40]) rotate([0,90,0]) cylinder(h=100, r=3, center=true);}

Page 31: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Import DXF

difference() { linear_extrude(height=10, convexity=3) import(“drawing.dxf"); translate([0,60,5]) rotate([0,90,0]) cylinder(h=100, r=3, center=true);}

Page 32: OpenSCAD Medical Makers - files.openscad.org · Outline • 3D Printing Primer • OpenSCAD Walkthrough • Hands-on tutorial • Bring your own project

Resources

• Docs, tutorials

• openscad.org/documentation.html

• Examples

• thingiverse.com/search?q=openscad

• thingiverse.com/customizable