5 openingedge_dia = 1.34;
18 outside_pushslope = 1.4;
19 outside_push_inadj = 0.82;
25 opening_protr_slop = 0.1;
27 intooth_top_slop = 0.1;
37 inside_h = opening_height/2 - opening_protrh - inside_h_xgap/2;
39 edge_or = openingedge_dia/2 + opening_protr_slop;
41 Q0 = [ openingedge_dia/2,
42 openingedge_dia/2 + opening_height/2 ];
44 p4p5d = [edge_or + ourcirc_r, 0];
46 P0 = [ pivot_x, pivoting_gap ];
48 P3t = [ P4[0], Q0[1] - openingedge_dia/2 + opening_protrh
49 - intooth_top_slop - ourcirc_r ];
50 P2 = P4 + [ -(inside_len - ourcirc_r*2), 0 ];
51 P1 = [ P2[0], P3t[1] - (inside_h + ourcirc_r*2) ];
55 P9mid = [ outside_len - ourcirc_r, outside_gap/2 + ourcirc_r ];
56 P8mid = P9mid + [ 0, outend_height - ourcirc_r*2 ];
58 P89adj = [ 0, P5[1] - P8mid[1] ];
63 P6t = P5 + [ 0, outside_pushh - ourcirc_r*2 ];
64 P7 = [ P6t[0] + (P6t[1] - P1[1]) / outside_pushslope,
67 P3a = P3t + [ -outside_push_inadj, 0 ];
68 P6a = P6t + [ -outside_push_inadj, 0 ];
70 outside_push_inadj_slope = (P3t[1]-P4[1]) / (P6a[1]-P5[1]);
72 ribble_rad = ribble_dia/2;
74 module ExtrusionSect(){
75 cr = openingedge_dia/2;
76 toph = opening_height/2 + opening_protrh;
83 translate([-cr,10]) square([cr*2, 1]);
88 translate([-opening_depth, -toph]) {
91 square([opening_depth+6, toph*2+10]);
92 square([opening_depth+2, toph*2]);
101 circle(r = ourcirc_r, $fn=10);
106 module LeverSect(top, inadj=false){
107 P3 = inadj ? P3a : P3t;
108 P8 = top ? P8t : P8mid - P89adj;
109 P9 = top ? P9t : P9mid - P89adj;
110 diag = inadj ? 0 : atan(outside_push_inadj_slope);
113 PsHull([P0,P1,P2,P5,P8,P9]);
117 circle(r=edge_or, $fn=20);
118 translate([0,10]) circle(r=edge_or, $fn=20);
134 module LeverSectTop(){
137 LeverSect(true, false);
138 for (x = [ P8t[0] + ourcirc_r - ribble_rad :
140 Q0[0] + edge_or + ribble_rad*2 ]) {
141 translate([x, P5[1] + ourcirc_r])
142 circle(r = ribble_rad, $fn=20);
145 translate([pivot_x,0]) circle(r= pivot_r + pivot_slop, $fn=20);
149 module LeverSectBot(inadj=false){
150 P6 = inadj ? P6a : P6t;
152 LeverSect(false, inadj);
154 translate([pivot_x,0]) circle(r=pivot_r, $fn=20);
159 translate([0,0,-5]) color("white") ExtrusionSect();
161 translate([0,0,5]) LeverSectBot();
162 color("black") LeverSectBot(true);
163 color("blue") translate([0,0,10]) StrapSect();
167 linear_extrude(height=width, convexity=100) LeverSectTop();
170 module LeverBot(inadj=false){
171 linear_extrude(height=width, convexity=100) LeverSectBot(inadj);
175 translate([0,2,0]) LeverTop();
177 translate([0,-opening_height - 2,0]) LeverBot(true);