7 my $settings = <<'END';
9 main_dia = 71.2 + 0.50;
16 rivet_width = 4.15 + 1.0;
17 rivet_tall = 5.51 + 0.49;
24 bayo_interf_width = 2.0;
25 bayo_interf_slope = 0.75;
28 seal_recess = [ 2.0, 2.0 ]; // recess depth, recess height
34 bayo_entry = bayo_behind/3;
38 bayo_entry_x = bayo_entry;
39 bayo_entry_z = bayo_entry;
40 bayo_inramp_x = bayo_entry;
41 bayo_inramp_z = bayo_entry;
43 side_height = rivet_posn + bayo_behind + rivet_thick/2;
44 side_thick = rivet_tall + over_rivet_gap;
46 top_z = top_thick + seal_thick;
48 bayo_entry = bayo_behind / 3.0;
49 bayo_top_z = bayo_behind + rivet_thick + over_rivet_gap;
50 bayo_entry_ramp = bayo_entry + bayo_interf;
52 rivet_entry_width = rivet_width + side_rivet_gap;
59 bayo_a = [ bayo_entry_x, 0 ];
60 bayo_p = [ 0, bayo_entry_z ];
61 bayo_n = [ 0, bayo_behind-bayo_inramp_z ];
62 bayo_m = [ bayo_inramp_x, bayo_behind ];
63 bayo_l = bayo_m + bayo_interf * [ 1/bayo_interf_slope, 1 ];
64 bayo_k = bayo_l + [ bayo_interf_width, 0 ];
65 bayo_j = bayo_k + bayo_interf * [ 1/bayo_interf_slope, -1 ];
66 bayo_i = bayo_j + [ rivet_width, 0 ];
67 bayo_h = [ bayo_i[0], bayo_behind + rivet_thick + over_rivet_gap ];
68 bayo_g = [ bayo_m[0] - rivet_width, bayo_h[1] ];
70 bayo_e = [-bayo_p[0], bayo_p[1]] - [rivet_entry_width,0];
71 bayo_d = [-bayo_a[0], bayo_a[1]] - [rivet_entry_width,0];
72 bayo_c = bayo_d + [0,-5];
73 bayo_b = bayo_a + [0,-5];
75 bayo_f = [ bayo_e[0], bayo_g[1] + (bayo_e[0] - bayo_g[0]) ];
77 bayo_polygon = [ bayo_a,
97 my $mainbody = <<'END';
100 main_cnr_pos = [ side_thick, top_z ] - [1,1]*main_cnr;
101 translate(main_cnr_pos){
104 circle(r = main_cnr);
105 circle(r = main_cnr * 0.5);
110 polygon([[ -1, seal_thick ],
112 [ main_cnr_pos[0], top_z ],
113 [ side_thick, main_cnr_pos[1] ],
114 [ side_thick, -side_height ],
115 [ side_taper, -side_height ],
117 [ 0, -(seal_recess[0] + seal_recess[1]) ],
118 [ seal_recess[0], -(seal_recess[0]) ],
119 [ seal_recess[0], seal_thick ],
123 translate([-20,0]) MainProfile();
125 polygon(bayo_polygon);
129 print $settings, $mainbody or die $!;