3 main_dia = 71.2 + 0.50 - 2.26;
4 top_minthick_middle = 4;
5 top_minthick_by_oring = 2.5;
11 rivet_width = 4.15 + 1.0;
12 rivet_tall = 5.51 + 0.49;
14 over_rivet_wall = 0.5;
19 bayo_interf_width = 2.0;
20 bayo_interf_slope = 0.75;
25 oring_upper_embed_angle = 80;
26 oring_compress = 0.1; // proportion
32 bayo_entry = bayo_behind/3;
36 brace_hole_width = 1.0;
37 brace_above_below = 1.2;
38 brace_end_shorter = 0.3;
47 bayo_entry_x = bayo_entry;
48 bayo_entry_z = bayo_entry;
49 bayo_inramp_x = bayo_entry;
50 bayo_inramp_z = bayo_entry;
52 oring_mid_dia = oring_bore + oring_thick;
53 oring_outer_dia = oring_mid_dia + oring_thick;
55 oring_oblate = (1 - oring_compress);
57 oring_y_rad = oring_thick/2 * oring_oblate;
58 oring_x_rad = oring_thick/2 / oring_oblate;
60 seal_thick = oring_y_rad * (1 + cos(oring_upper_embed_angle));
62 side_height = rivet_posn + bayo_behind + rivet_thick/2;
63 side_thick = rivet_tall + over_rivet_wall;
65 top_thick = max(top_minthick_middle,
66 top_minthick_by_oring + oring_y_rad);
68 top_z = top_thick + seal_thick;
70 bayo_entry = bayo_behind / 3.0;
71 bayo_top_z = bayo_behind + rivet_thick + bayo_above_gap;
72 bayo_entry_ramp = bayo_entry + bayo_interf;
74 rivet_entry_width = rivet_width + side_rivet_gap;
76 jig_mark_rad = jig_mark + main_dia/2 + jig_thick;
83 bayo_a = [ bayo_entry_x, 0 ];
84 bayo_p = [ 0, bayo_entry_z ];
85 bayo_n = [ 0, bayo_behind-bayo_inramp_z ];
86 bayo_m = [ bayo_inramp_x, bayo_behind ];
87 bayo_l = bayo_m + bayo_interf * [ 1/bayo_interf_slope, 1 ];
88 bayo_k = bayo_l + [ bayo_interf_width, 0 ];
89 bayo_j = bayo_k + bayo_interf * [ 1/bayo_interf_slope, -1 ];
90 bayo_i = bayo_j + [ rivet_width, 0 ];
91 bayo_h = [ bayo_i[0], bayo_behind + rivet_thick
92 + bayo_above_gap + bayo_interf ];
93 bayo_g = [ bayo_m[0] - rivet_width, bayo_h[1] ];
95 bayo_e = [-bayo_p[0], bayo_p[1]] - [rivet_entry_width,0];
96 bayo_d = [-bayo_a[0], bayo_a[1]] - [rivet_entry_width,0];
97 bayo_c = bayo_d + [0,-5];
98 bayo_b = bayo_a + [0,-5];
100 bayo_f = [ bayo_e[0], bayo_g[1] + (bayo_e[0] - bayo_g[0]) ];
102 bayo_polygon = [ bayo_a,
120 module MainProfile(){
121 main_cnr_pos = [ side_thick, top_z ] - [1,1]*main_cnr;
124 translate(main_cnr_pos){
127 circle(r = main_cnr);
128 circle(r = main_cnr * 0.5);
133 polygon([[ -11, seal_thick ],
135 [ main_cnr_pos[0], top_z ],
136 [ side_thick, main_cnr_pos[1] ],
137 [ side_thick, -side_height ],
138 [ side_taper, -side_height ],
144 translate([ oring_mid_dia/2 - main_dia/2, 0 ])
146 translate([ 0, oring_y_rad ])
147 scale([ 1/oring_oblate, oring_oblate ])
148 circle(oring_thick/2);
149 translate([ 0, oring_y_rad*2 - oring_thick/2 ])
150 circle(oring_thick/2);
155 module RotateProjectSlice(offset, slice_size, nom_rad, real_rad){
156 // nom_rad > real_rad
157 rotate([0,0, atan2(offset, nom_rad) ]){
159 translate([-offset, -10, 0])
161 linear_extrude(height= nom_rad*2)
163 translate([0,0, -25])
164 cylinder(h=50, r= real_rad);
165 translate([0,0, -25])
166 linear_extrude(height= 50)
168 [ -slice_size, -real_rad*2 ],
169 [ +slice_size, -real_rad*2 ] ]);
174 module RotateProject(x_min, x_max, slice_size, nom_rad, real_rad){
175 offs = [ for (i=[ x_min :
177 x_max + slice_size ]) i ];
180 RotateProjectSlice(off, slice_size, nom_rad, real_rad)
184 module BayonetCutout(){
185 RotateProject(bayo_c[0], bayo_i[0], bayo_slice_size,
186 main_dia/2 + side_thick,
187 main_dia/2 + rivet_tall)
188 polygon(bayo_polygon, convexity=10);
191 module ProfilesDemo(){ ////toplevel
192 translate([-10,0]) MainProfile();
193 translate([+10,0]) polygon(bayo_polygon, convexity=10);
196 module Cover(){ ////toplevel
197 render() difference(){
199 rotate_extrude(convexity=10)
200 translate([main_dia/2, 0])
202 translate([0,0, seal_thick])
203 cylinder(h= top_thick, r = main_dia/2 - 10);
207 translate([0,0, -side_height])
209 for (r=[0 : 60 : 179]) {
211 height = top_thick - brace_above_below*2;
212 translate([0,0, seal_thick + brace_above_below + height/2 ])
213 cube(center=true, [ oring_bore - brace_end_shorter,
214 brace_hole_width, height ]);
221 translate([0,0, -10])
222 cylinder(r= main_dia/2 - jig_rim, h=20);
225 module Jig(){ ////toplevel
228 translate([0,0, -side_height]){
229 cylinder(r= main_dia/2 + jig_thick, h= side_height + jig_thick);
231 translate([-jig_mark_rad, 0, jig_thick - jig_mark])
232 cube([jig_mark_rad*2, jig_mark, jig_mark]);
234 translate([0,0, -side_height-1])
235 cylinder(r= main_dia/2, h= side_height + 1);
237 translate([0,0, -rivet_posn])
239 translate([0,0, -100])
240 cylinder(r= jig_hole_dia/2, h = 200);
244 module CoverTest2(){ ////toplevel
251 module CoverTest1(){ ////toplevel
254 translate([0,0, -10])
255 cube([ main_dia*3, main_dia * .85, 20], center=true);