+ RotateProjectSlice(off, slice_size, nom_rad, real_rad)
+ children(0);
+}
+
+module BayonetCutout(){
+ RotateProject(bayo_c[0], bayo_i[0], bayo_slice_size,
+ main_dia/2 + side_thick,
+ main_dia/2 + rivet_tall)
+ translate([-0.5 * (bayo_a[0] + bayo_d[0]), 0])
+ polygon(bayo_polygon, convexity=10);
+}
+
+module ProfilesDemo(){ ////toplevel
+ translate([-10,0]) MainProfile();
+ translate([+10, -side_height]) polygon(bayo_polygon, convexity=10);
+}
+
+module LimitForHandling(){ ////toplevel
+ hull() for (r=[0,180])
+ rotate([0,0,r]) {
+ for (rs=[-1,+1]) {
+ for (xd=[0,1]) {
+ rotate([0,0, rs * handling_angle/2]) {
+ translate([rs * xd * main_dia/2 * tan(handling_angle/2),
+ main_dia/2 + side_thick - main_cnr,
+ top_z - main_cnr]) {
+ mirror([0,0,1])
+ cylinder(r= main_cnr, h=50);
+ sphere(main_cnr);
+ }
+ }
+ }
+ }
+ }
+ hull() rotate_extrude(){
+ translate([ handling_dia/2 - main_cnr, top_z - main_cnr ]) {
+ circle(r = main_cnr);
+ mirror([0,1]) square([ main_cnr, 50 ]);
+ }
+ }
+ //cylinder(r= handling_dia/2, h=20);
+}
+
+module Cover(){ ////toplevel
+ render() difference(){
+ intersection(){
+ union(){
+ rotate_extrude(convexity=10)
+ translate([main_dia/2, 0])
+ MainProfile();
+ translate([0,0, middle_bot_z])
+ cylinder(h= top_thick_middle, r = main_dia/2 - top_middle_dr + 1);
+ }
+ LimitForHandling();
+ }
+ for (r=[0,180]){
+ rotate([0,0, r])
+ translate([0,0, -side_height])
+ BayonetCutout();
+ rotate([0,0, r + asin((-oring_rm_beside) / (main_dia/2))])
+ translate([0,
+ oring_mid_dia/2 + oring_thick/4 * oring_rm_scale,
+ oring_y_rad * 1.5])
+ rotate([-oring_rm_angle, 0, 0])
+ mirror([0,0,1])
+ cylinder(r = oring_thick/4 * oring_rm_scale, h=20);
+ }
+ for (r=[0 : 60 : 179]) {
+ rotate([0,0, r]) {
+ height = top_thick_middle - brace_above_below*2;
+ translate([0,0, middle_bot_z + brace_above_below + height/2 ])
+ cube(center=true, [ oring_bore - brace_end_shorter,
+ brace_hole_width, height ]);
+ }
+ }
+ }
+ for (r=[0,180])
+ rotate([0,0,r])
+ translate([-implheadcup_large_dia * .5 - implheadcup_thick/2,
+ -implheadcup_large_dia * .0,
+ middle_bot_z + 0.1])
+ ImplHeadCup();
+// translate(strap_hoop_thick * [-0.5, 0, +1])
+// translate([handling_dia/2, 0, -side_height])
+// rotate([0,180,0]) rotate([0,0,90])
+// StrapHoop();
+}
+
+module SavingHole(){
+ translate([0,0, -10])
+ cylinder(r= main_dia/2 - jig_rim, h=20);
+}
+
+module Jig(){ ////toplevel
+ difference(){
+ union(){
+ translate([0,0, -side_height]){
+ cylinder(r= main_dia/2 + jig_thick, h= side_height + jig_thick);
+ }
+ translate([-jig_mark_rad, 0, jig_thick - jig_mark])
+ cube([jig_mark_rad*2, jig_mark, jig_mark]);
+ }
+ translate([0,0, -side_height-1])
+ cylinder(r= main_dia/2, h= side_height + 1);
+ SavingHole();
+ translate([0,0, -rivet_posn])
+ rotate([90, 0,0])
+ translate([0,0, -100])
+ cylinder(r= jig_hole_dia/2, h = 200);
+ }