3 opening_height = 7.84 - 0.3;
4 opening_depth = 6.0; // 7.88;
6 opening_topprotr = 1.54;
10 retain_empir_angle = 20;
11 retain_empir_stalkw = 0.8;
13 retain_empir_inward = 0.65;
15 hgap_empir_adjust = -0.5;
36 ins_irad = openingcnr_dia/2 + gap;
37 ins_orad = openingcnr_dia/2 + opening_height - gap;
38 ins_th = ins_orad - ins_irad;
40 handle_x0 = ins_irad + hgap_empir_adjust;
41 handle_h = bot_overlap + ins_th;
42 handle_y0 = -ins_orad-bot_overlap;
43 handle_y1 = handle_y0 + handle_h;
45 handle_x1 = handle_x0 + bot_w + handle_w;
47 topprotr_y = -ins_irad + opening_topprotr;
49 module InsertSection(){
51 translate([-ins_irad, -ins_irad])
53 square([opening_depth - ins_irad, 0.1]);
54 translate([-ins_irad - topprotr_rad,
55 topprotr_y - topprotr_rad])
56 circle(r=topprotr_rad, $fn=10);
58 translate([0, -ins_orad]) square([ins_irad+1, ins_th]);
60 translate([0.1, -ins_irad + 0.1])
62 square([100, opening_depth]);
65 circle(r= ins_irad, $fn=20);
70 module HandleSection(){
73 translate([handle_x0, handle_y0])
74 square([bot_w, handle_h]);
75 for (y= [handle_y1 - handle_rh/2,
76 handle_y1 - ins_th + handle_rh/2]) {
77 translate([handle_x1 - handle_rh/2, y])
78 circle(r= handle_rh/2, $fn=20);
82 for (x= [handle_x0 + bot_w + handle_rcut/2,
83 handle_x1 - handle_rh/2 - handle_rcut/2]) {
84 translate([x, handle_y1])
85 circle(r = handle_rcut/2, $fn=20);
90 for (y= [handle_y1 - handle_rh/2,
91 handle_y1 - 3*handle_rh/2])
92 translate([handle_x1 - handle_rh/2, y])
93 circle(r = handle_rh/2, $fn=20);
97 module RetainSection(){
98 rotate(180-retain_empir_angle)
99 translate([0, ins_orad - retain_empir_inward])
100 circle(r=retain_rad, $fn=20);
103 module RetainCutout(gapping=false){
104 rotate(180-retain_empir_angle)
105 translate([0, ins_orad - retain_empir_inward]) {
107 circle(r=retain_rad + cutout_gap, $fn=20);
109 rotate(180 + retain_empir_angle/2)
110 translate([0, -retain_empir_stalkw])
111 square([100, retain_empir_stalkw*2]);
116 module GappingSection(){
124 module WithRetainSection(){
135 module BasicSection(){
141 bs0 = retaining_len + overret_gaplen;
142 bs1 = bs0 + overret_hch;
143 linear_extrude(height=total_len, convexity=100) GappingSection();
144 linear_extrude(height=retaining_len, convexity=100) WithRetainSection();
145 translate([0,0, bs1]) linear_extrude(height= total_len - bs1)
147 translate([0,0, bs1+0.1]) mirror([0,0,1]) {
148 intersection_for (sl=[0,1]) {
149 multmatrix([[1,0,0,0],
153 linear_extrude(height= overret_gaplen+1, convexity=100)
160 color("red") translate([0,0,-3]) BasicSection();
161 color("blue") translate([0,0,3]) WithRetainSection();
165 linear_extrude(height=2) {
167 translate([0, -handle_y0 + topprotr_y + 10])
175 //WithRetainSection();