demo_slop = 0.1;
+leg_height = 50;
+
+leg_big_dia = 37;
+leg_bot_dia = 15;
+leg_top_flat_z = 5;
+
// cutout
machine_rear_to_front = 84 + 0.25 - 1.4;
}
}
+module Leg(){ ////toplevel
+ difference(){
+ union(){
+ hull(){
+ mirror([0,0,1])
+ cylinder(r= leg_big_dia/2, height=leg_top_flat_z, $fn=100);
+ translate([0,0, -leg_height])
+ cylinder(r= leg_bot_dia/2, height=1, $fn=100);
+ }
+ }
+ }
+}
+
function Rectangle_corners(c0, sz) =
// returns the corners of a rectangle from c0 to c0+sz
// if sz is positive, the corners are anticlockwise starting with c0