3 main_dia = 71.2 + 0.50 - 2.26;
10 rivet_width = 4.15 + 1.0;
11 rivet_tall = 5.51 + 0.49;
13 over_rivet_wall = 0.5;
18 bayo_interf_width = 2.0;
19 bayo_interf_slope = 0.75;
24 oring_upper_embed_angle = 80;
25 oring_compress = 0.1; // proportion
31 bayo_entry = bayo_behind/3;
35 brace_hole_width = 1.0;
36 brace_above_below = 1.2;
37 brace_end_shorter = 0.3;
46 bayo_entry_x = bayo_entry;
47 bayo_entry_z = bayo_entry;
48 bayo_inramp_x = bayo_entry;
49 bayo_inramp_z = bayo_entry;
51 oring_mid_dia = oring_bore + oring_thick;
52 oring_outer_dia = oring_mid_dia + oring_thick;
54 oring_oblate = (1 - oring_compress);
56 oring_y_rad = oring_thick/2 * oring_oblate;
57 oring_x_rad = oring_thick/2 / oring_oblate;
59 seal_thick = oring_y_rad * (1 + cos(oring_upper_embed_angle));
61 side_height = rivet_posn + bayo_behind + rivet_thick/2;
62 side_thick = rivet_tall + over_rivet_wall;
64 top_z = top_thick + seal_thick;
66 bayo_entry = bayo_behind / 3.0;
67 bayo_top_z = bayo_behind + rivet_thick + bayo_above_gap;
68 bayo_entry_ramp = bayo_entry + bayo_interf;
70 rivet_entry_width = rivet_width + side_rivet_gap;
72 jig_mark_rad = jig_mark + main_dia/2 + jig_thick;
79 bayo_a = [ bayo_entry_x, 0 ];
80 bayo_p = [ 0, bayo_entry_z ];
81 bayo_n = [ 0, bayo_behind-bayo_inramp_z ];
82 bayo_m = [ bayo_inramp_x, bayo_behind ];
83 bayo_l = bayo_m + bayo_interf * [ 1/bayo_interf_slope, 1 ];
84 bayo_k = bayo_l + [ bayo_interf_width, 0 ];
85 bayo_j = bayo_k + bayo_interf * [ 1/bayo_interf_slope, -1 ];
86 bayo_i = bayo_j + [ rivet_width, 0 ];
87 bayo_h = [ bayo_i[0], bayo_behind + rivet_thick
88 + bayo_above_gap + bayo_interf ];
89 bayo_g = [ bayo_m[0] - rivet_width, bayo_h[1] ];
91 bayo_e = [-bayo_p[0], bayo_p[1]] - [rivet_entry_width,0];
92 bayo_d = [-bayo_a[0], bayo_a[1]] - [rivet_entry_width,0];
93 bayo_c = bayo_d + [0,-5];
94 bayo_b = bayo_a + [0,-5];
96 bayo_f = [ bayo_e[0], bayo_g[1] + (bayo_e[0] - bayo_g[0]) ];
98 bayo_polygon = [ bayo_a,
116 module MainProfile(){
117 main_cnr_pos = [ side_thick, top_z ] - [1,1]*main_cnr;
120 translate(main_cnr_pos){
123 circle(r = main_cnr);
124 circle(r = main_cnr * 0.5);
129 polygon([[ -11, seal_thick ],
131 [ main_cnr_pos[0], top_z ],
132 [ side_thick, main_cnr_pos[1] ],
133 [ side_thick, -side_height ],
134 [ side_taper, -side_height ],
140 translate([ oring_mid_dia/2 - main_dia/2, 0 ])
142 translate([ 0, oring_y_rad ])
143 scale([ 1/oring_oblate, oring_oblate ])
144 circle(oring_thick/2);
145 translate([ 0, oring_y_rad*2 - oring_thick/2 ])
146 circle(oring_thick/2);
151 module RotateProjectSlice(offset, slice_size, nom_rad, real_rad){
152 // nom_rad > real_rad
153 rotate([0,0, atan2(offset, nom_rad) ]){
155 translate([-offset, -10, 0])
157 linear_extrude(height= nom_rad*2)
159 translate([0,0, -25])
160 cylinder(h=50, r= real_rad);
161 translate([0,0, -25])
162 linear_extrude(height= 50)
164 [ -slice_size, -real_rad*2 ],
165 [ +slice_size, -real_rad*2 ] ]);
170 module RotateProject(x_min, x_max, slice_size, nom_rad, real_rad){
171 offs = [ for (i=[ x_min :
173 x_max + slice_size ]) i ];
176 RotateProjectSlice(off, slice_size, nom_rad, real_rad)
180 module BayonetCutout(){
181 RotateProject(bayo_c[0], bayo_i[0], bayo_slice_size,
182 main_dia/2 + side_thick,
183 main_dia/2 + rivet_tall)
184 polygon(bayo_polygon, convexity=10);
187 module ProfilesDemo(){ ////toplevel
188 translate([-20,0]) MainProfile();
189 polygon(bayo_polygon, convexity=10);
192 module Cover(){ ////toplevel
193 render() difference(){
195 rotate_extrude(convexity=10)
196 translate([main_dia/2, 0])
198 translate([0,0, seal_thick])
199 cylinder(h= top_thick, r = main_dia/2 - 10);
203 translate([0,0, -side_height])
205 for (r=[0 : 60 : 179]) {
207 height = top_thick - brace_above_below*2;
208 translate([0,0, seal_thick + brace_above_below + height/2 ])
209 cube(center=true, [ oring_bore - brace_end_shorter,
210 brace_hole_width, height ]);
217 translate([0,0, -10])
218 cylinder(r= main_dia/2 - jig_rim, h=20);
221 module Jig(){ ////toplevel
224 translate([0,0, -side_height]){
225 cylinder(r= main_dia/2 + jig_thick, h= side_height + jig_thick);
227 translate([-jig_mark_rad, 0, jig_thick - jig_mark])
228 cube([jig_mark_rad*2, jig_mark, jig_mark]);
230 translate([0,0, -side_height-1])
231 cylinder(r= main_dia/2, h= side_height + 1);
233 translate([0,0, -rivet_posn])
235 translate([0,0, -100])
236 cylinder(r= jig_hole_dia/2, h = 200);
240 module CoverTest2(){ ////toplevel
247 module CoverTest1(){ ////toplevel
250 translate([0,0, -10])
251 cube([ main_dia*3, main_dia * .85, 20], center=true);