summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/CGALEvaluator.cc2
-rw-r--r--testdata/scad/bugs/transform-nan-inf-tests.scad6
-rw-r--r--tests/CMakeLists.txt1
3 files changed, 5 insertions, 4 deletions
diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc
index c84d21f..75b9097 100644
--- a/src/CGALEvaluator.cc
+++ b/src/CGALEvaluator.cc
@@ -257,7 +257,7 @@ Response CGALEvaluator::visit(State &state, const TransformNode &node)
// Unfortunately CGAL provides no transform method for CGAL_Nef_polyhedron2
// objects. So we convert in to our internal 2d data format, transform it,
// tesselate it and create a new CGAL_Nef_polyhedron2 from it.. What a hack!
-
+
Eigen::Matrix2f testmat;
testmat << node.matrix(0,0), node.matrix(0,1), node.matrix(1,0), node.matrix(1,1);
if (testmat.determinant() == 0) {
diff --git a/testdata/scad/bugs/transform-nan-inf-tests.scad b/testdata/scad/bugs/transform-nan-inf-tests.scad
index eff62fc..eb3cb0c 100644
--- a/testdata/scad/bugs/transform-nan-inf-tests.scad
+++ b/testdata/scad/bugs/transform-nan-inf-tests.scad
@@ -1,10 +1,10 @@
// Test translation by NaN and Infinity
-// NaN test - cube(2) should not be rendered
-cube(1);
+// NaN test - cube() should not be rendered
+sphere();
angle = asin(1.1);
render()
rotate([0, 0, angle])
-cube(2);
+cube();
// FIXME: how do you test infinity?
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index ce7698e..66cd36e 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -670,6 +670,7 @@ list(APPEND CGALPNGTEST_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/include-
list(APPEND OPENCSGTEST_FILES ${CGALPNGTEST_FILES})
list(APPEND OPENCSGTEST_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/bbox-transform-bug.scad)
list(APPEND OPENCSGTEST_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/intersection-prune-test.scad)
+list(APPEND OPENCSGTEST_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/transform-nan-inf-tests.scad)
list(APPEND THROWNTOGETHERTEST_FILES ${OPENCSGTEST_FILES})
list(APPEND CGALSTLSANITYTEST_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/normal-nan.scad)
contact: Jan Huwald // Impressum