5 openingedge_dia = 2.00;
18 outside_pushslope = 1.4;
19 outside_push_inadj = 0.82;
25 opening_protr_slop = 0.1;
27 intooth_top_slop = 0.1;
45 inside_h = opening_height/2 - opening_protrh - inside_h_xgap/2;
47 edge_or = openingedge_dia/2 + opening_protr_slop;
49 Q0 = [ openingedge_dia/2,
50 openingedge_dia/2 + opening_height/2 ];
52 p4p5d = [edge_or + ourcirc_r, 0];
54 P0 = [ pivot_x, pivoting_gap ];
56 P3t = [ P4[0], Q0[1] - openingedge_dia/2 + opening_protrh
57 - intooth_top_slop - ourcirc_r ];
58 P2 = P4 + [ -(inside_len - ourcirc_r*2), 0 ];
59 P1 = [ P2[0], P3t[1] - (inside_h + ourcirc_r*2) ];
63 P8t = [ outside_len - ourcirc_r, P5[1] ];
64 P9t = P8t + [ 0, -(strap_above + strap_th + strap_below - ourcirc_r*2) ];
66 P9b = [ P9t[0], -P9t[1] + outside_gap ];
67 P8b = P9b + [ 0, outend_height ];
69 P6t = P5 + [ 0, outside_pushh - ourcirc_r*2 ];
70 P7 = [ P6t[0] + (P6t[1] - P1[1]) / outside_pushslope,
73 P3a = P3t + [ -outside_push_inadj, 0 ];
74 P6a = P6t + [ -outside_push_inadj, 0 ];
76 outside_push_inadj_slope = (P3t[1]-P4[1]) / (P6a[1]-P5[1]);
78 ribble_rad = ribble_dia/2;
80 kit_adj_shift = -opening_height - 2.0;
82 module ExtrusionSect(){
83 cr = openingedge_dia/2;
84 toph = opening_height/2 + opening_protrh;
91 translate([-cr,10]) square([cr*2, 1]);
96 translate([-opening_depth, -toph]) {
99 square([opening_depth+6, toph*2+10]);
100 square([opening_depth+2, toph*2]);
109 circle(r = ourcirc_r, $fn=10);
114 module LeverSect(top, inadj=false){
115 P3 = inadj ? P3a : P3t;
116 P6 = inadj ? P6a : P6t;
117 P8 = top ? P8t : P8b;
118 P9 = top ? P9t : P9b;
122 PsHull([P0,P1,P2,P5,P8,P9]);
129 translate(Q0 + 5*dp) circle(r=edge_or, $fn=20);
135 module StrapSectTop(){
136 translate(P9t + ourcirc_r * [+1,-1]) {
138 circle(r = strap_below + strap_th, $fn=40);
139 circle(r = strap_below, $fn=40);
144 module StrapSectBot(){
146 translate(P9b + [ ourcirc_r - (strap_below + strap_th), -10 ]) {
147 square([strap_th, 20]);
152 module LeverSectTop(){
155 LeverSect(true, false);
156 for (x = [ P8t[0] + ourcirc_r - ribble_rad :
158 Q0[0] + edge_or + ribble_rad*2 ]) {
159 translate([x, P5[1] + ourcirc_r])
160 circle(r = ribble_rad, $fn=20);
163 translate([pivot_x,0]) circle(r= pivot_r + pivot_slop, $fn=20);
167 module LeverSectBot(inadj=false){
168 P6 = inadj ? P6a : P6t;
170 LeverSect(false, inadj);
172 translate([pivot_x,0]) circle(r=pivot_r, $fn=20);
177 translate([0,0,-5]) color("white") ExtrusionSect();
179 translate([0,0,5]) LeverSectBot();
180 color("black") LeverSectBot(true);
181 color("blue") translate([0,0,10]) StrapSectTop();
182 color("purple") translate([0,0,10]) StrapSectBot();
186 // SomeLever(){ LeverBot(inadj); LeverSectBot(); }
188 linear_extrude(height=width, convexity=100) children(0);
189 for (i = [ 0 : nstraps - 1 ]) {
190 translate([0,0, (i + 0.5) / nstraps * width - strap_width/2])
191 linear_extrude(height=strap_width, convexity=10)
198 linear_extrude(height=test_width, convexity=100) {
199 translate([0,2,0]) LeverSectTop();
201 translate([0,kit_adj_shift]) LeverSectBot(true);
205 module LeverTop(){ ////toplevel
211 module LeverBot(){ ////toplevel
217 module LeverBotAdj(){ ////toplevel
224 module Kit(){ ////toplevel
225 translate([0,2,0]) LeverTop();
229 module KitAdj(){ ////toplevel
230 translate([0,2,0]) LeverTop();
234 //LeverSectBot(true);