diff options
| author | Marius Kintel <marius@kintel.net> | 2014-01-16 03:23:50 (GMT) | 
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2014-01-16 03:23:50 (GMT) | 
| commit | bf0d9edf38132049a2d8a8f5de4d6e70657a8870 (patch) | |
| tree | 5559625acd9496f855fd7e377b75ce5318cf7d21 /tests/regression/dumptest | |
| parent | 1fc52f8cd47213131e0eb76ccf184b5c7388c6b9 (diff) | |
Change behavior of intersection: intersecting something with an empty object will be empty
Diffstat (limited to 'tests/regression/dumptest')
| -rw-r--r-- | tests/regression/dumptest/intersection-tests-expected.csg | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/regression/dumptest/intersection-tests-expected.csg b/tests/regression/dumptest/intersection-tests-expected.csg index bfb5077..1091c8d 100644 --- a/tests/regression/dumptest/intersection-tests-expected.csg +++ b/tests/regression/dumptest/intersection-tests-expected.csg @@ -54,4 +54,23 @@ group() {  			}  		}  	} +	multmatrix([[1, 0, 0, 0], [0, 1, 0, -12], [0, 0, 1, 0], [0, 0, 0, 1]]) { +		intersection() { +			cylinder($fn = 0, $fa = 12, $fs = 2, h = 5, r1 = 4, r2 = 4, center = true); +			cube(size = [0, 0, 0], center = false); +		} +	} +	multmatrix([[1, 0, 0, 12], [0, 1, 0, -12], [0, 0, 1, 0], [0, 0, 0, 1]]) { +		intersection() { +			cube(size = [5, 5, 5], center = true); +			circle($fn = 0, $fa = 12, $fs = 2, r = 2); +		} +	} +	multmatrix([[1, 0, 0, 24], [0, 1, 0, -12], [0, 0, 1, 0], [0, 0, 0, 1]]) { +		intersection() { +			group(); +			cube(size = [5, 5, 5], center = true); +			cylinder($fn = 0, $fa = 12, $fs = 2, h = 20, r1 = 2, r2 = 2, center = true); +		} +	}  }  | 
