summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testdata/scad/features/transform-tests.scad18
-rw-r--r--tests/CMakeLists.txt1
-rw-r--r--tests/regression/cgalpngtest/transform-tests-expected.pngbin0 -> 16015 bytes
-rw-r--r--tests/regression/opencsgtest/transform-tests-expected.pngbin0 -> 16911 bytes
4 files changed, 19 insertions, 0 deletions
diff --git a/testdata/scad/features/transform-tests.scad b/testdata/scad/features/transform-tests.scad
new file mode 100644
index 0000000..a591695
--- /dev/null
+++ b/testdata/scad/features/transform-tests.scad
@@ -0,0 +1,18 @@
+module mycyl() {
+ cylinder(r1=10, r2=0, h=20);
+}
+
+translate([25,0,0]) scale([1,2,0.5]) mycyl();
+translate([20,-30,0]) scale(0.5) mycyl();
+translate([0,-20,0]) rotate([90,0,0]) mycyl();
+rotate(v=[-1,0,0], a=45) mycyl();
+multmatrix([[1,0,0,-25],
+ [0,1,0,0],
+ [0,0,1,0],
+ [0,0,0,1]]) mycyl();
+multmatrix([[1,0.4,0.1,-25],
+ [0.4,0.8,0,-25],
+ [0.2,0.2,0.5,0],
+ [0,0,0,1]]) mycyl();
+
+//FIXME: mirror() \ No newline at end of file
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index fa61db8..a869cdf 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -218,6 +218,7 @@ LIST(APPEND CGALPNGTEST_FILES
${CMAKE_SOURCE_DIR}/../testdata/scad/features/rotate_extrude-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/surface-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/import_dxf-tests.scad
+ ${CMAKE_SOURCE_DIR}/../testdata/scad/features/transform-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/color-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/background-modifier.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/features/highlight-modifier.scad
diff --git a/tests/regression/cgalpngtest/transform-tests-expected.png b/tests/regression/cgalpngtest/transform-tests-expected.png
new file mode 100644
index 0000000..08cfce8
--- /dev/null
+++ b/tests/regression/cgalpngtest/transform-tests-expected.png
Binary files differ
diff --git a/tests/regression/opencsgtest/transform-tests-expected.png b/tests/regression/opencsgtest/transform-tests-expected.png
new file mode 100644
index 0000000..9c763ba
--- /dev/null
+++ b/tests/regression/opencsgtest/transform-tests-expected.png
Binary files differ
contact: Jan Huwald // Impressum