include; module servo(){ union(){ cube([servo_w,servo_d,servo_h],center=true); difference(){ translate([0,0,5.75]) cube([servo_w2,servo_d2,servo_h2],center=true); translate([14,0,0]) cylinder(h=20,r=t,center=true,$fn=res); translate([-14,0,0]) cylinder(h=20,r=t,center=true,$fn=res);} translate([0,0,servo_h/2+servo_rh/2]){ union(){ hull(){ translate([1.5,0,0]) cylinder(r=servo_r3,h=servo_r3h,center=true); translate([-1.5,0,0]) cylinder(r=servo_r3,h=servo_r3h,center=true,$fn=res); } translate([servo_r,0,0]) cylinder(r=servo_r,h=servo_rh,center=true,$fn=res); } } translate([5.75,0,servo_r2h/2+servo_h/2+servo_rh]) cylinder(r=servo_r2,h=servo_r2h,center=true,$fn=res); } } //servo();