9 pin_gap = 1.0; // around
21 hole_dia = th + pin_gap;
23 hinge_o_r = 0.5 * hole_dia + th;
25 hinge_x = -0.5 * tube_dia - hinge_o_r;
26 bolt_x = 0.5 * tube_dia + bolt_flat * 0.5;
27 max_x = bolt_x + max(0.5 + bolt_dia + th, 0.5 * bolt_flat/2);
29 flats_y = open_gap/2 + th;
36 offset(r=-smooth_r) offset(delta=smooth_r)
38 translate([hinge_x, 0]) circle(r= hinge_o_r);
39 circle(r = tube_dia/2 + th);
40 rectfromto([0, -flats_y],
43 circle(r = tube_dia/2);
44 rectfromto([0, -open_gap/2],
45 [max_x+1, +open_gap/2]);