3 main_dia = 71.2 + 0.50;
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;
22 seal_recess = [ 2.0, 2.0 ]; // recess depth, recess height
28 bayo_entry = bayo_behind/3;
34 bayo_entry_x = bayo_entry;
35 bayo_entry_z = bayo_entry;
36 bayo_inramp_x = bayo_entry;
37 bayo_inramp_z = bayo_entry;
39 side_height = rivet_posn + bayo_behind + rivet_thick/2;
40 side_thick = rivet_tall + over_rivet_wall;
42 top_z = top_thick + seal_thick;
44 bayo_entry = bayo_behind / 3.0;
45 bayo_top_z = bayo_behind + rivet_thick + bayo_above_gap;
46 bayo_entry_ramp = bayo_entry + bayo_interf;
48 rivet_entry_width = rivet_width + side_rivet_gap;
55 bayo_a = [ bayo_entry_x, 0 ];
56 bayo_p = [ 0, bayo_entry_z ];
57 bayo_n = [ 0, bayo_behind-bayo_inramp_z ];
58 bayo_m = [ bayo_inramp_x, bayo_behind ];
59 bayo_l = bayo_m + bayo_interf * [ 1/bayo_interf_slope, 1 ];
60 bayo_k = bayo_l + [ bayo_interf_width, 0 ];
61 bayo_j = bayo_k + bayo_interf * [ 1/bayo_interf_slope, -1 ];
62 bayo_i = bayo_j + [ rivet_width, 0 ];
63 bayo_h = [ bayo_i[0], bayo_behind + rivet_thick + bayo_above_gap ];
64 bayo_g = [ bayo_m[0] - rivet_width, bayo_h[1] ];
66 bayo_e = [-bayo_p[0], bayo_p[1]] - [rivet_entry_width,0];
67 bayo_d = [-bayo_a[0], bayo_a[1]] - [rivet_entry_width,0];
68 bayo_c = bayo_d + [0,-5];
69 bayo_b = bayo_a + [0,-5];
71 bayo_f = [ bayo_e[0], bayo_g[1] + (bayo_e[0] - bayo_g[0]) ];
73 bayo_polygon = [ bayo_a,
92 main_cnr_pos = [ side_thick, top_z ] - [1,1]*main_cnr;
93 translate(main_cnr_pos){
97 circle(r = main_cnr * 0.5);
102 polygon([[ -1, seal_thick ],
104 [ main_cnr_pos[0], top_z ],
105 [ side_thick, main_cnr_pos[1] ],
106 [ side_thick, -side_height ],
107 [ side_taper, -side_height ],
109 [ 0, -(seal_recess[0] + seal_recess[1]) ],
110 [ seal_recess[0], -(seal_recess[0]) ],
111 [ seal_recess[0], seal_thick ],
115 module RotateProjectSlice(offset, slice_size, nom_rad, real_rad){
116 // nom_rad > real_rad
117 rotate([0,0, atan2(offset, nom_rad) ]){
119 translate([-offset, -10, 0])
121 linear_extrude(height= nom_rad*2)
123 translate([0,0, -25])
124 cylinder(h=50, r= real_rad);
125 translate([0,0, -25])
126 linear_extrude(height= 50)
128 [ -slice_size, -real_rad*2 ],
129 [ +slice_size, -real_rad*2 ] ]);
134 module RotateProject(x_min, x_max, slice_size, nom_rad, real_rad){
135 offs = [ for (i=[ x_min :
137 x_max + slice_size ]) i ];
140 RotateProjectSlice(off, slice_size, nom_rad, real_rad)
144 module BayonetCutout(){
145 RotateProject(bayo_c[0], bayo_i[0], bayo_slice_size,
146 main_dia/2 + side_thick,
147 main_dia/2 + rivet_tall)
148 polygon(bayo_polygon);
151 module ProfilesDemo(){
152 translate([-20,0]) MainProfile();
153 polygon(bayo_polygon);
160 translate([main_dia/2, 0])
162 translate([0,0, seal_thick])
163 cylinder(h= top_thick, r = main_dia/2);
167 translate([0,0, -side_height])