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 = 6.5;
16 retain_bend_gap = 2.0;
17 retain_empir_angle = -25;
18 retain_pushmore_adj = 0.75;
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 - retain_pushmore_adj];
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 square([retain_stalk_len + 1, retain_stalk_h]);
123 module RetainCutout(gapping=false){
124 translate(retain_mxy) {
125 rotate(retain_empir_angle) {
126 translate([-50, -retain_rad]) {
127 square([50 + retain_stalk_len,
134 module GappingSection(){
144 module WithRetainSection(){
155 module BasicSection(){
161 bs0 = retaining_len + overret_gaplen + basics_len;
162 bs1 = bs0 + overret_hch;
163 linear_extrude(height=total_len, convexity=100) GappingSection();
165 translate([0,0, basics_len]) {
167 linear_extrude(height=retaining_len, convexity=100)
169 translate([retain_mxy[0], retain_mxy[1], 0])
170 rotate([0,0, retain_empir_angle])
171 translate([retain_stalk_len, -30, 0])
172 multmatrix([[1,0,-1,0],
182 linear_extrude(height= basics_len)
186 translate([0,0, bs1+0.1]) mirror([0,0,1]) {
187 intersection_for (sl=[0,1]) {
188 multmatrix([[1,0,0,0],
192 linear_extrude(height= overret_gaplen + 10, convexity=100)
199 color("red") translate([0,0,-3]) BasicSection();
200 color("blue") translate([0,0,3]) WithRetainSection();
204 linear_extrude(height=2) {
206 translate([0, -handle_y0 + topprotr_y + 10])
214 //WithRetainSection();