summaryrefslogtreecommitdiff
path: root/testdata/scad/features/difference-tests.scad
blob: 3bcd9e59e0357d269fa8531aee035953fadd93c5 (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
// Empty
difference();
// No children
difference() { }

difference() {
  cube([10,10,10], center=true);
  cylinder(r=4, h=20, center=true);
}

translate([12,0,0]) difference() {
  cube([10,10,10], center=true);
  cylinder(r=4, h=10.5, center=true);
}

translate([0,12,0]) difference() {
  cube([10,10,10], center=true);
  cylinder(r=4, h=11, center=true);
  rotate([0,90,0]) cylinder(r=4, h=11, center=true);
}

translate([12,12,0]) difference() {
  cube([10,10,10], center=true);
  translate([0,0,7.01]) cylinder(r=4, h=4, center=true);
}

translate([24,0,0]) difference() {
  cube([10,10,10], center=true);
  translate([0,0,6.99]) cylinder(r=4, h=4, center=true);
}
contact: Jan Huwald // Impressum