// Small holder to attach an electronic prototype board // allviews attach left right include height=9; width=10; thick=3; module attach(){ difference(){ len=10; cube([len,thick,width]); translate([2*len/3,-1,width/2]) rotate([-90,0,0]) cylinder(r=2,h=thick+2,$fn=40); } cube([thick,height,width]); translate([-4,height,0]) cube([4+thick,thick,width]); } module left(){ attach(); translate([-4,0,0]) cube([4,height,1]); } module right(){ translate([0,height,width]) rotate([180,0,0]) attach(); translate([-4,0,0]) cube([4,height,1]); } module main_view(view){ if (view=="attach"){ attach(); }else if (view=="left"){ left(); }else if (view=="right"){ right(); } }