-module BayonetCutout(){
- offset = 5;
- intersection(){
- translate([offset, -10, 0])
- rotate([90,0,0])
- linear_extrude(height= main_dia*2)
- polygon(bayo_polygon);
- translate([0,0, -25])
- cylinder(h=50, r= main_dia/2 + rivet_tall);
+module RotateProjectSlice(offset, slice_size, nom_rad, real_rad){
+ // nom_rad > real_rad
+ rotate([0,0, atan2(offset, nom_rad) ]){
+ intersection(){
+ translate([-offset, -10, 0])
+ rotate([90,0,0])
+ linear_extrude(height= nom_rad*2)
+ children(0);
+ translate([0,0, -25])
+ cylinder(h=50, r= real_rad);
+ translate([0,0, -25])
+ linear_extrude(height= 50)
+ polygon([ [ 0,0 ],
+ [ -slice_size, -real_rad*2 ],
+ [ +slice_size, -real_rad*2 ] ]);
+ }