5 openingedge_dia = 2.00;
20 outside_pushslope = 1.4;
21 outside_push_inadj = 0.82;
27 opening_protr_slop = 0.1;
29 intooth_top_slop = 0.1;
47 inside_h = opening_height/2 - opening_protrh - inside_h_xgap/2;
49 edge_or = openingedge_dia/2 + opening_protr_slop;
51 Q0 = [ openingedge_dia/2,
52 openingedge_dia/2 + opening_height/2 ];
54 p4p5d = [edge_or + ourcirc_r, 0];
56 P0 = [ pivot_x, pivoting_gap ];
58 P3t = [ P4[0], Q0[1] - openingedge_dia/2 + opening_protrh
59 - intooth_top_slop - ourcirc_r ];
60 P2 = P4 + [ -(inside_len - ourcirc_r*2), 0 ];
61 P1 = [ P2[0], P3t[1] - (inside_h + ourcirc_r*2) ];
65 P8t = [ outside_len - ourcirc_r, P5[1] ];
66 P9t = P8t + [ 0, -(strap_above + strap_th + strap_below - ourcirc_r*2) ];
68 P9b = [ P9t[0], -P9t[1] + outside_gap ];
69 P8b = P9b + [ 0, outend_height ];
71 P89eadj = [ outside_len_bot - outside_len, 0 ];
75 P6t = P5 + [ 0, outside_pushh - ourcirc_r*2 ];
76 P7 = [ P6t[0] + (P6t[1] - P1[1]) / outside_pushslope,
79 P3a = P3t + [ -outside_push_inadj, 0 ];
80 P6a = P6t + [ -outside_push_inadj, 0 ];
82 outside_push_inadj_slope = (P3t[1]-P4[1]) / (P6a[1]-P5[1]);
84 ribble_rad = ribble_dia/2;
86 kit_adj_shift = -opening_height - 2.0;
88 module ExtrusionSect(){
89 cr = openingedge_dia/2;
90 toph = opening_height/2 + opening_protrh;
97 translate([-cr,10]) square([cr*2, 1]);
102 translate([-opening_depth, -toph]) {
105 square([opening_depth+6, toph*2+10]);
106 square([opening_depth+2, toph*2]);
115 circle(r = ourcirc_r, $fn=10);
120 module LeverSect(top, inadj=false){
121 P3 = inadj ? P3a : P3t;
122 P6 = inadj ? P6a : P6t;
123 P8 = top ? P8t : P8b;
124 P9 = top ? P9t : P9b;
128 PsHull([P0,P1,P2,P5,P8,P9]);
135 translate(Q0 + 5*dp) circle(r=edge_or, $fn=20);
141 module StrapSectTop(){
142 translate(P9t + ourcirc_r * [+1,-1]) {
144 circle(r = strap_below + strap_th, $fn=40);
145 circle(r = strap_below, $fn=40);
150 module StrapSectBot(inadj=false){
152 for (dx = [ -(strap_below + strap_th),
154 translate(P9b + [ ourcirc_r + dx, -10 ]) {
155 square([strap_th, 20]);
161 module Ribbles(xmax, xmin, y){
162 for (x = [ xmax + ourcirc_r - ribble_rad :
166 circle(r = ribble_rad, $fn=20);
170 module LeverSectTop(){
173 LeverSect(true, false);
175 Q0[0] + edge_or + ribble_rad*2,
178 translate([pivot_x,0]) circle(r= pivot_r + pivot_slop, $fn=20);
182 module LeverSectBot(inadj=false){
183 P6 = inadj ? P6a : P6t;
185 LeverSect(false, inadj);
187 PsHull([P8b,P8eb,P9eb,P9b]);
191 translate([pivot_x,0]) circle(r=pivot_r, $fn=20);
196 translate([0,0,-5]) color("white") ExtrusionSect();
198 translate([0,0,5]) LeverSectBot();
199 color("black") LeverSectBot(true);
200 color("blue") translate([0,0,10]) StrapSectTop();
201 color("purple") translate([0,0,-10]) StrapSectBot();
205 // SomeLever(){ LeverBot(inadj); LeverSectBot(); }
207 linear_extrude(height=width, convexity=100) children(0);
208 for (i = [ 0 : nstraps - 1 ]) {
209 translate([0,0, (i + 0.5) / nstraps * width - strap_width/2])
210 linear_extrude(height=strap_width, convexity=10)
217 linear_extrude(height=test_width, convexity=100) {
218 translate([0,2,0]) LeverSectTop();
220 translate([0,kit_adj_shift]) LeverSectBot(true);
224 module LeverTop(){ ////toplevel
230 module LeverBotOutside(){ ////toplevel
236 module LeverBotInside(){ ////toplevel
243 module KitOutside(){ ////toplevel
244 translate([0,2,0]) LeverTop();
248 module KitInside(){ ////toplevel
249 translate([0,2,0]) LeverTop();
253 //LeverSectBot(true);