summaryrefslogtreecommitdiff
path: root/tests/regression/dumptest/projection-tests-expected.csg
blob: 86423a15b4bdb11b2b638885cad0549e7502c848 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
group() {
	projection(cut = false, convexity = 0);
	projection(cut = false, convexity = 0);
	projection(cut = true, convexity = 0) {
		square(size = [1, 1], center = false);
	}
	linear_extrude(height = 20, center = false, convexity = 1, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
		projection(cut = false, convexity = 0) {
			sphere($fn = 0, $fa = 12, $fs = 2, r = 10);
		}
	}
	multmatrix([[1, 0, 0, 22], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
		linear_extrude(height = 20, center = false, convexity = 1, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
			projection(cut = true, convexity = 0) {
				multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 9], [0, 0, 0, 1]]) {
					sphere($fn = 0, $fa = 12, $fs = 2, r = 10);
				}
			}
		}
	}
	multmatrix([[1, 0, 0, 44], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
		linear_extrude(height = 20, center = false, convexity = 1, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
			projection(cut = true, convexity = 0) {
				multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 7], [0, 0, 0, 1]]) {
					sphere($fn = 0, $fa = 12, $fs = 2, r = 10);
				}
			}
		}
	}
	multmatrix([[1, 0, 0, 0], [0, 1, 0, -22], [0, 0, 1, 0], [0, 0, 0, 1]]) {
		linear_extrude(height = 5, center = false, convexity = 1, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
			projection(cut = true, convexity = 0) {
				multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, -4.999999], [0, 0, 0, 1]]) {
					cube(size = [10, 10, 10], center = true);
				}
			}
		}
	}
	multmatrix([[1, 0, 0, 0], [0, 1, 0, -44], [0, 0, 1, 0], [0, 0, 0, 1]]) {
		linear_extrude(height = 5, center = false, convexity = 1, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
			projection(cut = true, convexity = 0) {
				union() {
					difference() {
						cube(size = [5, 5, 5], center = true);
						cube(size = [4, 4, 4], center = true);
					}
					multmatrix([[1, 0, 0, 2.1], [0, 1, 0, 2.1], [0, 0, 1, 0], [0, 0, 0, 1]]) {
						difference() {
							cube(size = [5, 5, 5], center = true);
							cube(size = [4, 4, 4], center = true);
						}
					}
				}
			}
		}
	}
}
contact: Jan Huwald // Impressum