aboutsummaryrefslogtreecommitdiff
path: root/src/fudge.scad
blob: 52e0798dee247158b610b10e063e75fa8f26db73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use <polyhedra.scad>;

len=16;

module plus(len) {
    union() {
        hull() {
            translate([-len*0.3,0,0]) sphere(len/10);
            translate([len*0.3,0,0]) sphere(len/10);
        }
        hull() {
            translate([0,-len*0.3,0]) sphere(len/10);
            translate([0,len*0.3,0]) sphere(len/10);
        }
    }
}

module minus(len) {
    hull() {
        translate([0,-len*0.3,0]) sphere(len/10);
        translate([0,len*0.3,0]) sphere(len/10);
    }
}

difference() {
    d6(len);
    translate([0,len/2,0]) rotate([90,0,0]) plus(len);
    translate([0,-len/2,0]) rotate([90,0,0]) plus(len);
    translate([len/2,0,0]) rotate([0,90,0]) minus(len);
    translate([-len/2,0,0]) rotate([0,90,0]) minus(len);
}