- intersection() {
- // the main tube
- difference() {
- translate([base_l/2, tip_r, 0])
- cylinder(r = tip_r, h = base_w, $fn = 128);
- translate([base_l/2, tip_r, -eps])
- cylinder(r = tip_r - wall, h = base_w+2*eps, $fn = 128);
- }
- // the appropriate quarter of the tube only
- translate([base_l/2, -eps, -eps])
- cube([tip_r + eps, tip_r + eps, base_w+2*eps]);
- // make the tip round
- translate([tip_rv_off, -eps, base_w/2-eps])
- rotate([-90, 0, 0])
- cylinder(r = tip_rv, h = base_w + 2*eps);
+ translate([base_l/2-tip_l, 0, 0])
+ scale([2*tip_l/base_w, 1, 1])
+ cylinder(r = base_w/2, h = wall);
+
+ // center reinforcement
+ for (y = [-1, 1]) scale([1, y, 1]) hull() {
+ translate([base_l/2-tip_l, axle_bot_l/2, wall])
+ cube(eps);
+ translate([-base_l/2, axle_bot_l/2, wall])
+ cube(eps);
+ translate([0, axle_bot_l/2-3, wall])
+ cube([eps, 6, eps]);
+ translate([0, axle_bot_l/2, wall])
+ cube([eps, eps, axle_h/2]);