diff options
author | chrysn <chrysn@fsfe.org> | 2013-06-24 15:20:33 (GMT) |
---|---|---|
committer | chrysn <chrysn@fsfe.org> | 2013-06-25 11:41:47 (GMT) |
commit | 400248d566d5c3db34253a94f70c128e68ea9121 (patch) | |
tree | 33254aedd319fca7672976aaa07a1f1a1ff229a5 /tests/regression/dumptest/projection-tests-expected.csg | |
parent | b715e580f7c0e541cc07c0d0d13da8df64d88f18 (diff) |
renamed dumptest files to .csg and added group headers
Diffstat (limited to 'tests/regression/dumptest/projection-tests-expected.csg')
-rw-r--r-- | tests/regression/dumptest/projection-tests-expected.csg | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/regression/dumptest/projection-tests-expected.csg b/tests/regression/dumptest/projection-tests-expected.csg new file mode 100644 index 0000000..86423a1 --- /dev/null +++ b/tests/regression/dumptest/projection-tests-expected.csg @@ -0,0 +1,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); + } + } + } + } + } + } +} |