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;
19 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 module InsertSection(){
58 translate([-ins_irad, -ins_irad])
60 square([opening_depth - ins_irad, 0.1]);
61 translate([-ins_irad - topprotr_rad,
62 topprotr_y - topprotr_rad])
63 circle(r=topprotr_rad, $fn=10);
65 translate([0, -ins_orad]) square([ins_irad+1, ins_th]);
67 translate([0, -ins_irad])
69 square([100, opening_depth]);
72 circle(r= ins_irad, $fn=20);
77 module HandleSection(){
80 translate([handle_x0, handle_y0])
81 square([bot_w, handle_h]);
82 for (y= [handle_y1 - handle_rh/2,
83 handle_y1 - ins_th + handle_rh/2]) {
84 translate([handle_x1 - handle_rh/2, y])
85 circle(r= handle_rh/2, $fn=20);
89 for (x= [handle_x0 + bot_w + handle_rcut/2,
90 handle_x1 - handle_rh/2 - handle_rcut/2]) {
91 translate([x, handle_y1])
92 circle(r = handle_rcut/2, $fn=20);
97 for (y= [handle_y1 - handle_rh/2,
98 handle_y1 - 3*handle_rh/2])
99 translate([handle_x1 - handle_rh/2, y])
100 circle(r = handle_rh/2, $fn=20);
104 module RetainSection(){
105 translate(retain_mxy) {
106 rotate(retain_empir_angle) {
107 circle(r=retain_rad, $fn=20);
108 square([retain_stalk_len + 1, retain_stalk_h]);
113 module RetainCutout(gapping=false){
114 translate(retain_mxy) {
115 rotate(retain_empir_angle) {
116 translate([-50, -retain_rad]) {
117 square([50 + retain_stalk_len,
118 retain_rad * 2 + retain_bend_gap]);
124 module GappingSection(){
132 module WithRetainSection(){
143 module BasicSection(){
149 bs0 = retaining_len + overret_gaplen;
150 bs1 = bs0 + overret_hch;
151 linear_extrude(height=total_len, convexity=100) GappingSection();
152 linear_extrude(height=retaining_len, convexity=100) WithRetainSection();
153 translate([0,0, bs1]) linear_extrude(height= total_len - bs1)
155 translate([0,0, bs1+0.1]) mirror([0,0,1]) {
156 intersection_for (sl=[0,1]) {
157 multmatrix([[1,0,0,0],
161 linear_extrude(height= overret_gaplen+1, convexity=100)
168 color("red") translate([0,0,-3]) BasicSection();
169 color("blue") translate([0,0,3]) WithRetainSection();
173 linear_extrude(height=2) {
175 translate([0, -handle_y0 + topprotr_y + 10])
183 //WithRetainSection();