//x smooth rod
translate([0, -11, 5 + bushing_xy[0]]) rotate([-90, 0, 0]) pushfit_rod(bushing_xy[0] * 2 + 0.2, 50);
//z smooth rod
- translate([0, 18, -1]) cylinder_poly(h=20, r=bushing_z[0] + single_wall_width / 4);
+ translate([0, 18, -1]) cylinder(h=20, r=bushing_z[0] + single_wall_width / 4);
//screw
translate([0, -20, 10]) rotate([0, -90, 0]) screw(head_drop=7, h=122, r_head=4.5);
}
}
-// Based on nophead research
-module polyhole(d, h, center=false) {
- n = max(round(2 * d),3);
- rotate([0,0,180])
- cylinder(h = h, r = (d / 2) / cos (180 / n), $fn = n);
-}
-
-// make it interchangeable between this and cylinder
-module cylinder_poly(r, h, center=false){
- polyhole(d=r*2, h=h, center=center);
-}
-
module fillet(radius, height=100, $fn=0) {
//this creates acutal fillet
translate([-radius, -radius, -height / 2 - 0.02]) difference() {
cylinder(h=bottom_thickness / 2, r=(bushing_z[0] + 5 * single_wall_width));
}
//smooth rod hole
- translate([board_to_xz_distance - z_delta, 9, -1]) cylinder_poly(h=board_thickness+20, r=bushing_z[0] + single_wall_width / 4);
+ translate([board_to_xz_distance - z_delta, 9, -1]) cylinder(h=board_thickness+20, r=bushing_z[0] + single_wall_width / 4);
//inside rouned corner
translate([0, 5, -1]) cylinder(r=0.8, h=100, $fn=8);
//side screw