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 = -10;
18 retain_pushmore_adj = 0.0;
20 hgap_empir_adjust = -0.5 -2.50;
41 ins_irad = openingcnr_dia/2 + gap;
42 ins_orad = openingcnr_dia/2 + opening_height - gap;
43 ins_th = ins_orad - ins_irad;
45 handle_x0 = ins_irad + hgap_empir_adjust;
46 handle_h = bot_overlap + ins_th;
47 handle_y0 = -ins_orad-bot_overlap;
48 handle_y1 = handle_y0 + handle_h;
50 handle_x1 = handle_x0 + bot_w + handle_w;
52 topprotr_y = -ins_irad + opening_topprotr;
54 retain_mxy = [handle_x0 - retain_rad - retain_hgap_adjust,
55 -ins_orad + retain_rad - retain_protr];
57 retain_cutout_h = retain_rad * 2 + retain_bend_gap;
59 overret_gaplen = retain_cutout_h / cos(retain_empir_angle);
61 retain1_len = retain_len + retain_stalk_len;
62 retain1_base = total_len - retain1_len;
64 module InsertSection(){
66 translate([-ins_irad, -ins_irad])
68 square([opening_depth - ins_irad, 0.1]);
69 translate([-ins_irad - topprotr_rad,
70 topprotr_y - topprotr_rad])
71 circle(r=topprotr_rad, $fn=10);
73 translate([0, -ins_orad]) square([ins_irad+1, ins_th]);
75 translate([0, -ins_irad])
77 square([100, opening_depth]);
80 circle(r= ins_irad, $fn=20);
85 module HandleSection(){
88 translate([handle_x0, handle_y0])
89 square([bot_w, handle_h]);
90 for (y= [handle_y1 - handle_rh/2,
91 handle_y1 - ins_th + handle_rh/2]) {
92 translate([handle_x1 - handle_rh/2, y])
93 circle(r= handle_rh/2, $fn=20);
97 for (x= [handle_x0 + bot_w + handle_rcut/2,
98 handle_x1 - handle_rh/2 - handle_rcut/2]) {
99 translate([x, handle_y1])
100 circle(r = handle_rcut/2, $fn=20);
105 for (y= [handle_y1 - handle_rh/2,
106 handle_y1 - 3*handle_rh/2])
107 translate([handle_x1 - handle_rh/2, y])
108 circle(r = handle_rh/2, $fn=20);
110 translate([ handle_x1 - handle_rh*2,
111 handle_y1 - handle_rh/2 ])
112 circle(r = handle_rh/2, $fn=20);
115 module RetainSection(){
116 translate(retain_mxy) {
117 rotate(retain_empir_angle) {
118 circle(r=retain_rad, $fn=20);
119 translate([0, -retain_pushmore_adj])
120 square([retain_stalk_len + 1, retain_stalk_h]);
125 module RetainCutout(gapping=false){
126 translate(retain_mxy) {
127 rotate(retain_empir_angle) {
128 translate([-50, -retain_rad]) {
129 square([50 + retain_stalk_len,
136 module GappingSection(){
146 module WithRetainSection(){
157 module BasicSection(){
163 bs1 = retain_len + overret_gaplen + 4;
166 linear_extrude(height= retain_len)
169 translate([0,0, bs1])
170 linear_extrude(height= basics_len)
173 translate([0,0, bs1+0.1]) mirror([0,0,1]) {
174 intersection_for (sl=[0,1]) {
175 multmatrix([[1,0,0,0],
179 linear_extrude(height= overret_gaplen + 10, convexity=100)
184 linear_extrude(height=total_len, convexity=100) GappingSection();
186 translate([0,0, retain1_base]) {
188 linear_extrude(height=retain1_len, convexity=100)
190 translate([retain_mxy[0], retain_mxy[1], 0])
191 rotate([0,0, retain_empir_angle])
192 translate([retain_stalk_len, -30, 0])
193 multmatrix([[1,0,-1,0],
203 color("red") translate([0,0,-3]) BasicSection();
204 color("blue") translate([0,0,3]) WithRetainSection();
208 linear_extrude(height=2) {
210 translate([0, -handle_y0 + topprotr_y + 10])
218 //WithRetainSection();