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;
32 brace_hole_width = 1.0;
33 brace_above_below = 1.2;
42 bayo_entry_x = bayo_entry;
43 bayo_entry_z = bayo_entry;
44 bayo_inramp_x = bayo_entry;
45 bayo_inramp_z = bayo_entry;
47 side_height = rivet_posn + bayo_behind + rivet_thick/2;
48 side_thick = rivet_tall + over_rivet_wall;
50 top_z = top_thick + seal_thick;
52 bayo_entry = bayo_behind / 3.0;
53 bayo_top_z = bayo_behind + rivet_thick + bayo_above_gap;
54 bayo_entry_ramp = bayo_entry + bayo_interf;
56 rivet_entry_width = rivet_width + side_rivet_gap;
58 jig_mark_rad = jig_mark + main_dia/2 + jig_thick;
65 bayo_a = [ bayo_entry_x, 0 ];
66 bayo_p = [ 0, bayo_entry_z ];
67 bayo_n = [ 0, bayo_behind-bayo_inramp_z ];
68 bayo_m = [ bayo_inramp_x, bayo_behind ];
69 bayo_l = bayo_m + bayo_interf * [ 1/bayo_interf_slope, 1 ];
70 bayo_k = bayo_l + [ bayo_interf_width, 0 ];
71 bayo_j = bayo_k + bayo_interf * [ 1/bayo_interf_slope, -1 ];
72 bayo_i = bayo_j + [ rivet_width, 0 ];
73 bayo_h = [ bayo_i[0], bayo_behind + rivet_thick + bayo_above_gap ];
74 bayo_g = [ bayo_m[0] - rivet_width, bayo_h[1] ];
76 bayo_e = [-bayo_p[0], bayo_p[1]] - [rivet_entry_width,0];
77 bayo_d = [-bayo_a[0], bayo_a[1]] - [rivet_entry_width,0];
78 bayo_c = bayo_d + [0,-5];
79 bayo_b = bayo_a + [0,-5];
81 bayo_f = [ bayo_e[0], bayo_g[1] + (bayo_e[0] - bayo_g[0]) ];
83 bayo_polygon = [ bayo_a,
101 module MainProfile(){
102 main_cnr_pos = [ side_thick, top_z ] - [1,1]*main_cnr;
103 translate(main_cnr_pos){
106 circle(r = main_cnr);
107 circle(r = main_cnr * 0.5);
112 polygon([[ -1, seal_thick ],
114 [ main_cnr_pos[0], top_z ],
115 [ side_thick, main_cnr_pos[1] ],
116 [ side_thick, -side_height ],
117 [ side_taper, -side_height ],
119 [ 0, -(seal_recess[0] + seal_recess[1]) ],
120 [ seal_recess[0], -(seal_recess[0]) ],
121 [ seal_recess[0], seal_thick ],
125 module RotateProjectSlice(offset, slice_size, nom_rad, real_rad){
126 // nom_rad > real_rad
127 rotate([0,0, atan2(offset, nom_rad) ]){
129 translate([-offset, -10, 0])
131 linear_extrude(height= nom_rad*2)
133 translate([0,0, -25])
134 cylinder(h=50, r= real_rad);
135 translate([0,0, -25])
136 linear_extrude(height= 50)
138 [ -slice_size, -real_rad*2 ],
139 [ +slice_size, -real_rad*2 ] ]);
144 module RotateProject(x_min, x_max, slice_size, nom_rad, real_rad){
145 offs = [ for (i=[ x_min :
147 x_max + slice_size ]) i ];
150 RotateProjectSlice(off, slice_size, nom_rad, real_rad)
154 module BayonetCutout(){
155 RotateProject(bayo_c[0], bayo_i[0], bayo_slice_size,
156 main_dia/2 + side_thick,
157 main_dia/2 + rivet_tall)
158 polygon(bayo_polygon);
161 module ProfilesDemo(){
162 translate([-20,0]) MainProfile();
163 polygon(bayo_polygon);
166 module Cover(){ ////toplevel
170 translate([main_dia/2, 0])
172 translate([0,0, seal_thick])
173 cylinder(h= top_thick, r = main_dia/2);
177 translate([0,0, -side_height])
179 for (r=[0 : 60 : 179]) {
181 height = top_thick - brace_above_below*2;
182 translate([0,0, seal_thick + brace_above_below + height/2 ])
183 cube(center=true, [ main_dia, brace_hole_width, height ]);
190 translate([0,0, -10])
191 cylinder(r= main_dia/2 - jig_rim, h=20);
194 module Jig(){ ////toplevel
197 translate([0,0, -side_height]){
198 cylinder(r= main_dia/2 + jig_thick, h= side_height + jig_thick);
200 translate([-jig_mark_rad, 0, jig_thick - jig_mark])
201 cube([jig_mark_rad*2, jig_mark, jig_mark]);
203 translate([0,0, -side_height-1])
204 cylinder(r= main_dia/2, h= side_height + 1);
206 translate([0,0, -rivet_posn])
208 translate([0,0, -100])
209 cylinder(r= jig_hole_dia/2, h = 200);
213 module CoverTest(){ ////toplevel
225 render() CoverTest();