3 opening_height = 7.84 - 0.3 + 0.60;
4 opening_depth = 6.0; // 7.88;
6 opening_topprotr = 1.54;
12 retain_hgap_adjust = 1.5;
14 retain_stalk_len = 8.0;
16 retain_bend_gap = 2.0;
17 retain_empir_angle = -25;
18 retain_pushmore_adj = 0.45;
20 hgap_empir_adjust = -0.5 -2.50;
40 ins_irad = openingcnr_dia/2 + gap;
41 ins_orad = openingcnr_dia/2 + opening_height - gap;
42 ins_th = ins_orad - ins_irad;
44 handle_x0 = ins_irad + hgap_empir_adjust;
45 handle_h = bot_overlap + ins_th;
46 handle_y0 = -ins_orad-bot_overlap;
47 handle_y1 = handle_y0 + handle_h;
49 handle_x1 = handle_x0 + bot_w + handle_w;
51 topprotr_y = -ins_irad + opening_topprotr;
53 retain_mxy = [handle_x0 - retain_rad - retain_hgap_adjust,
54 -ins_orad + retain_rad - retain_protr];
56 retain_cutout_h = retain_rad * 2 + retain_bend_gap;
58 overret_gaplen = retain_cutout_h / cos(retain_empir_angle);
60 retaining_len = total_len - overret_gaplen - basics_len * 2;
63 module InsertSection(){
65 translate([-ins_irad, -ins_irad])
67 square([opening_depth - ins_irad, 0.1]);
68 translate([-ins_irad - topprotr_rad,
69 topprotr_y - topprotr_rad])
70 circle(r=topprotr_rad, $fn=10);
72 translate([0, -ins_orad]) square([ins_irad+1, ins_th]);
74 translate([0, -ins_irad])
76 square([100, opening_depth]);
79 circle(r= ins_irad, $fn=20);
84 module HandleSection(){
87 translate([handle_x0, handle_y0])
88 square([bot_w, handle_h]);
89 for (y= [handle_y1 - handle_rh/2,
90 handle_y1 - ins_th + handle_rh/2]) {
91 translate([handle_x1 - handle_rh/2, y])
92 circle(r= handle_rh/2, $fn=20);
96 for (x= [handle_x0 + bot_w + handle_rcut/2,
97 handle_x1 - handle_rh/2 - handle_rcut/2]) {
98 translate([x, handle_y1])
99 circle(r = handle_rcut/2, $fn=20);
104 for (y= [handle_y1 - handle_rh/2,
105 handle_y1 - 3*handle_rh/2])
106 translate([handle_x1 - handle_rh/2, y])
107 circle(r = handle_rh/2, $fn=20);
109 translate([ handle_x1 - handle_rh*2,
110 handle_y1 - handle_rh/2 ])
111 circle(r = handle_rh/2, $fn=20);
114 module RetainSection(){
115 translate(retain_mxy) {
116 rotate(retain_empir_angle) {
117 circle(r=retain_rad, $fn=20);
118 translate([0, -retain_pushmore_adj])
119 square([retain_stalk_len + 1, retain_stalk_h]);
124 module RetainCutout(gapping=false){
125 translate(retain_mxy) {
126 rotate(retain_empir_angle) {
127 translate([-50, -retain_rad]) {
128 square([50 + retain_stalk_len,
135 module GappingSection(){
145 module WithRetainSection(){
156 module BasicSection(){
162 bs0 = retaining_len + overret_gaplen + basics_len;
163 bs1 = bs0 + overret_hch;
164 linear_extrude(height=total_len, convexity=100) GappingSection();
166 translate([0,0, basics_len]) {
168 linear_extrude(height=retaining_len, convexity=100)
170 translate([retain_mxy[0], retain_mxy[1], 0])
171 rotate([0,0, retain_empir_angle])
172 translate([retain_stalk_len, -30, 0])
173 multmatrix([[1,0,-1,0],
183 linear_extrude(height= basics_len)
187 translate([0,0, bs1+0.1]) mirror([0,0,1]) {
188 intersection_for (sl=[0,1]) {
189 multmatrix([[1,0,0,0],
193 linear_extrude(height= overret_gaplen + 10, convexity=100)
200 color("red") translate([0,0,-3]) BasicSection();
201 color("blue") translate([0,0,3]) WithRetainSection();
205 linear_extrude(height=2) {
207 translate([0, -handle_y0 + topprotr_y + 10])
215 //WithRetainSection();