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()
Slide 10
Slide 10 text
Designing an enclosure
for the Raspberry Pi
Slide 11
Slide 11 text
Creating the base (1)
use
!
base_x = 95.0;
base_y = 66.0;
base_z = 2;
base_width = 1.5;
!
base();
translate([5,5,6])
%board();
Slide 12
Slide 12 text
Creating the base (2)
module base()
{
$fn=50;
minkowski() {
cube([base_x,base_y,base_z]);
cylinder(r=2,h=1);
}
}
Slide 13
Slide 13 text
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]);
}
}
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();
}
Slide 16
Slide 16 text
Printing with
MakerWare
Slide 17
Slide 17 text
No content
Slide 18
Slide 18 text
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