summaryrefslogtreecommitdiff
path: root/testdata/scad/features/projection-tests.scad
blob: bc2111cd5bbf84171ff106296f7aa08a672c9e87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Empty
projection();
// No children
projection() { }
// 2D child
projection(cut=true) { square(); }

projection(cut=false) cube(10);
projection(cut=true) translate([20,0,0]) cube(10, center=true);
// Boundary case: clipping the top of a cube
translate([0,20,0]) projection(cut=true) translate([0,0,-4.999999]) cube(10, center=true);

// holes
translate([0,-10,0]) projection(cut=true) {
  union() {
      difference() { cube(5,center=true); cube(4,center=true); }
      translate([2.1,2.1]) difference() { cube(5,center=true); cube(4,center=true); }
  }
}
contact: Jan Huwald // Impressum