-difference() {
- body();
- // hole in base plate
- hull() {
- for (x = [-1, 1])
- for (y = [-1, 1])
- scale([x, y, 1])
- translate([-fuse_w/2+side_w+corner_d/2,
- -fuse_h/2+side_w+corner_d/2, -eps])
- cylinder(r = corner_d/2, h = thin_wall + 2*eps);
+module main(fuse_w, fuse_h, body_h) {
+ difference() {
+ body(fuse_w, fuse_h, body_h);
+ // hole in base plate
+ hull() {
+ for (x = [-1, 1])
+ for (y = [-1, 1])
+ scale([x, y, 1])
+ translate([-fuse_w/2+side_w+corner_d/2,
+ -fuse_h/2+side_w+corner_d/2, -eps])
+ cylinder(r = corner_d/2, h = thin_wall + 2*eps);
+ }
+ // fuse tube
+ translate([0, fuse_h/2-tube_d/2-wall, -eps])
+ cylinder(r = tube_d/2, h = body_h + 2*eps);
+ // fuse tube slot
+ translate([-tube_slot/2, 0, -eps])
+ cube([tube_slot, fuse_h/2-tube_d/2-wall, body_h +2*eps]);