// Trafo links, printplaat verticaal tegen rechterwand $fn = $preview ? 40 : 200; Deksel=1; Base=11; if(Base) { difference() { Cube(110,90,3); translate([3.5,3.5,-1]) cylinder(d=2.7,h=10); translate([110-3.5,3.5,-1]) cylinder(d=2.7,h=10); translate([110-3.5,90-3.5,-1]) cylinder(d=2.7,h=10); translate([3.5,90-3.5,-1]) cylinder(d=2.7,h=10); translate([3.5,3.5,-1]) cylinder(d=4.6,h=2.4); translate([110-3.5,3.5,-1]) cylinder(d=4.6,h=2.4); translate([110-3.5,90-3.5,-1]) cylinder(d=4.6,h=2.4); translate([3.5,90-3.5,-1]) cylinder(d=4.6,h=2.4); } difference() { translate([100,90/2-50/2,3])cube([8,50,10]); translate([103,90/2-50/2-2,3])cube([2.2,60,20]); } } if(Deksel) translate([0,0,30]) { difference() { Cube(110,90,110); translate([2,2,-1]) Cube(110-4,90-4,110); // Ventilatie translate([15,30-2,106]) Cube(80,4,10); translate([15,45-2,106]) Cube(80,4,10); translate([15,60-2,106]) Cube(80,4,10); //230V-kabeldoorvoer translate([55,-1,-1] )cube([7,10,6]); // Kabel naar bel translate([90,86,-1] )cube([5,10,4]); // LED translate([55,78,105] )cylinder(d=5,h=20); } translate([3.5,3.5,20])rotate([0,180,0])Pilaar(8,20); translate([110-3.5,3.5,20])rotate([0,180,0])Pilaar(8,20); translate([110-3.5,90-3.5,20])rotate([0,180,0])Pilaar(8,20); translate([3.5,90-3.5,20])rotate([0,180,0])Pilaar(8,20); } module Cube(xdim ,ydim ,zdim,rdim=2) { 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(d2=W,d1=3,h=H); translate([0,0,H-4]) cylinder(d=3.2,h=5); } }