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

hull() {
  cylinder(r=10, h=1);
  translate([0,0,10]) cube([5,5,5], center=true);
}

translate([25,0,0]) hull() {
  translate([0,0,10]) cylinder(r=3);
  difference() {
    cylinder(r=10, h=4, center=true);
    cylinder(r=5, h=5, center=true);
  }
}

// Don't Crash (issue 188)

translate([-5,-5,-5]) {
  hull() {
    intersection() {
      cube([1,1,1]);
      translate([-1,-1,-1]) cube([1,1,1]);
    }
  }
}
contact: Jan Huwald // Impressum