summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testdata/scad/features/intersection_for-tests.scad5
-rw-r--r--tests/CMakeLists.txt3
-rw-r--r--tests/regression/cgalpngtest/intersection_for-tests-expected.pngbin0 -> 8314 bytes
-rw-r--r--tests/regression/opencsgtest/intersection_for-tests-expected.pngbin0 -> 6642 bytes
4 files changed, 7 insertions, 1 deletions
diff --git a/testdata/scad/features/intersection_for-tests.scad b/testdata/scad/features/intersection_for-tests.scad
new file mode 100644
index 0000000..ad058ac
--- /dev/null
+++ b/testdata/scad/features/intersection_for-tests.scad
@@ -0,0 +1,5 @@
+intersection_for(i = [[0, 0, 0],
+ [10, 20, 300],
+ [200, 40, 57],
+ [20, 88, 57]])
+ rotate(i) cube([100, 20, 20], center = true);
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 6897d8f..863164f 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -223,7 +223,8 @@ LIST(APPEND CGALPNGTEST_FILES
${CMAKE_SOURCE_DIR}/../testdata/scad/features/root-modifier.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/disable-modifier.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/for-tests.scad
- ${CMAKE_SOURCE_DIR}/../testdata/scad/features/for-nested-tests.scad)
+ ${CMAKE_SOURCE_DIR}/../testdata/scad/features/for-nested-tests.scad
+ ${CMAKE_SOURCE_DIR}/../testdata/scad/features/intersection_for-tests.scad)
#LIST(APPEND CGALPNGTEST_FILES ${CMAKE_SOURCE_DIR}/../examples/example001.scad)
add_cmdline_test(cgalpngtest png ${CGALPNGTEST_FILES})
diff --git a/tests/regression/cgalpngtest/intersection_for-tests-expected.png b/tests/regression/cgalpngtest/intersection_for-tests-expected.png
new file mode 100644
index 0000000..dc4c56a
--- /dev/null
+++ b/tests/regression/cgalpngtest/intersection_for-tests-expected.png
Binary files differ
diff --git a/tests/regression/opencsgtest/intersection_for-tests-expected.png b/tests/regression/opencsgtest/intersection_for-tests-expected.png
new file mode 100644
index 0000000..08c8e06
--- /dev/null
+++ b/tests/regression/opencsgtest/intersection_for-tests-expected.png
Binary files differ
contact: Jan Huwald // Impressum