Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Design and print 3D objects

Design and print 3D objects

First presented at the 6 January 2014 technical meeting of Swansea Hackspace: "In this workshop you will learn how to create a 3D model using OpenSCAD, that can then be printed on a 3D printer. OpenSCAD is an open-source CAD (Computer-Aided Design) application, where you specify what your design should look like using a script, which is then compiled into a 3D model. During the workshop you will design your own enclosure for a Raspberry Pi. "

Gerrit Niezen

January 06, 2014
Tweet

More Decks by Gerrit Niezen

Other Decks in How-to & DIY

Transcript

  1. Primitive solids cube(size = [1,2,3], center = true); sphere(r =

    10); cylinder(h = 10, r1 = 20, r2 = 10, center = true); polyhedron(points = [ [x, y, z], ... ], triangles = [ [p1, p2, p3..], ... ], 
 convexity = N);
  2. union() { cylinder (h = 4, r=1, center = true,

    $fn=100); rotate ([90,0,0]) cylinder (h = 4, r=0.9, 
 center = true, $fn=100); } Transformations and CSG operators difference() intersection()
  3. Creating the base (1) use <rpi.scad> ! base_x = 95.0;

    base_y = 66.0; base_z = 2; base_width = 1.5; ! base(); translate([5,5,6]) %board();
  4. Creating the base (2) module base() { $fn=50; minkowski() {

    cube([base_x,base_y,base_z]); cylinder(r=2,h=1); } }
  5. Building up the sides module base_block() { difference() { base();

    translate([base_width,base_width,base_width]) cube([base_x-base_width,base_y- base_width,base_z]); } }
  6. Creating some slits module slits() { for (i = [0:16]){

    translate([i*5+base_x*0.08,base_y*0.08,-0.25]) cube([2, base_x*0.6, base_width+4]); } } ! difference() { bottom(); slits(); }
  7. Images used under the Creative Commons license: MakerBot Industries Replicator

    2X by Creative Tools from Flickr Orange bike planter with succulents by Colleen Elizabeth Jordan on Flickr Snap-together Robohand by MakerBot on Thingiverse ! The design files used in this tutorial are available on Thingiverse: http://www.thingiverse.com/thing:201867