// allviews guide // testviews test include include <../cadlib.h> length=130; width=15; height=10; ray=height; module guide(){ difference(){ union(){ cube ([length,width,height]); translate([length,width-ray,height]) difference(){ rotate ([0,-90,0]) cylinder(r=ray,h=20); union(){ rotate ([0,-90,0]) cylinder(r=ray-1,h=20); translate([-21,-ray-1,-ray]) cube([22,ray*2+2,ray]); translate([-21,-ray-1,-ray]) cube([22,ray+5,ray*2]); } } } union(){ translate([-0.5,0.5,1]) cube([length+1,width-1.5,height]); translate([10,width/2,-1]) cylinder(r=3,h=20); } } translate([0,width,1]) rotate ([0,90,0]) quarter_concave(3,length,20,1); } module view2(){ } module main_view(view){ if (view=="guide"){ guide(); }else if (view=="test"){ intersection(){ translate ([length-20,-1,-1]) cube([20,width+2,height+2+ray]); guide(); } } }