summaryrefslogtreecommitdiff
path: root/testdata/scad/features/minkowski3-tests.scad
blob: 0e5356353e6f826fcc53af9a819a7a2e68a95a90 (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
module roundedBox3dSimple() {
    minkowski() {
        cube([10,10,5]);
        cylinder(r=5, h=5);
    }
}

module roundedBox3dCut() {
    minkowski() {
        difference() {
            cube([10,10,5]);
            cube([5,5,5]);
        }
        cylinder(r=5, h=5);
    }
}

module roundedBox3dHole() {
    minkowski() {
        difference() {
            cube([10,10,5], center=true);
            cube([8,8,10], center=true);
        }
        cylinder(r=2);
    }
}

translate([-20,30,0]) roundedBox3dHole();
translate([0,25,0]) roundedBox3dCut();
translate([25,25,0]) roundedBox3dSimple();
contact: Jan Huwald // Impressum