//8x5 $fn=128; Panel=01; Kast=10; KastInsert=0; Voet=0; Achterkant=01; if(Voet) { cylinder(d1=14,d2=11,h=4); } if(Achterkant)translate([0,0,10]) { difference() { Cube(78-3.6,50-3.6,2,3); translate([(78-3.6)/2-8/2,44,-1])cube([8,20,20]); hull() { translate([-1,(50-3.6)/2,-1])rotate([0,0,0])cylinder(d=3.4,h=10); translate([4,(50-3.6)/2,-1])rotate([0,0,0])cylinder(d=3.4,h=10); } } } if(KastInsert) color("black")translate([0,0,10]) { difference() { Cube(78-3.7,50-3.7,1,3); translate([(78-3.7)/2-58/2,(50-3.7)/2-32/2,-1])Cube(58,32,10,4); } } if(Kast) translate([0,0,-40]) { //Front(); difference() { Cube(78,50,40,3); translate([1.8,1.8,-1.8])Cube(78-3.6,50-3.6,40,3); translate([39-62/2,25-36/2,38])Cube(62,36,10,4); // USB hull() { translate([-1,25,0])rotate([90,0,90])cylinder(d=3.4,h=10); translate([-1,25,1.8])rotate([90,0,90])cylinder(d=3.4,h=10); } } translate([3,3,4])cylinder(h=25,d2=1,d1=5); translate([78-3,3,4])cylinder(h=25,d2=1,d1=5); translate([78-3,50-3,4])cylinder(h=25,d2=1,d1=5); translate([3,50-3,4])cylinder(h=25,d2=1,d1=5); } module Front() { difference() { Cube(78,50,3,3); translate([39-58/2,25-32/2,-1])Cube(58,32,10,4); translate([39-62/2,25-36/2,2])Cube(62,36,10,4); } } if(Panel) rotate([-10,0,0]) { /*translate([0,0,-2]) difference() { Cube(80,50,1,4); translate([40-60/2,25-34/2,-1])Cube(60,34,10,4); }*/ } module Cube(xdim ,ydim ,zdim,rdim=1) { hull(){ translate([rdim,rdim,0])cylinder(h=zdim,r=rdim); translate([xdim-rdim,rdim,0])cylinder(h=zdim,r=rdim); translate([rdim,ydim-rdim,0])cylinder(h=zdim,r=rdim); translate([xdim-rdim,ydim-rdim,0])cylinder(h=zdim,r=rdim); } } module Pilaar(W=10,H=40) { difference() { cylinder(d=W,h=H); translate([0,0,-1]) cylinder(d=3.2,h=5); } }