summaryrefslogtreecommitdiff
path: root/testdata/scad/bugs
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-28 02:42:20 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-28 02:42:20 (GMT)
commit1e64dddf1ea30282c89de7f35854a68614234652 (patch)
tree165d37c1c66f6ff79d48c74794238b3f0bed09da /testdata/scad/bugs
parent5c779159c208ca3d88c88479ab29f9cd66574859 (diff)
parentd0856efe6da545693f9c50a8a2514a9f999ab5ef (diff)
Merge branch 'master' of github.com:openscad/openscad into issue159
Diffstat (limited to 'testdata/scad/bugs')
-rw-r--r--testdata/scad/bugs/issue204.scad5
-rw-r--r--testdata/scad/bugs/transform-nan-inf-tests.scad12
2 files changed, 17 insertions, 0 deletions
diff --git a/testdata/scad/bugs/issue204.scad b/testdata/scad/bugs/issue204.scad
new file mode 100644
index 0000000..f2e8152
--- /dev/null
+++ b/testdata/scad/bugs/issue204.scad
@@ -0,0 +1,5 @@
+// Causes a CGAL assertion in CGALEvaluator::process()
+e=0.000;
+for (m = [ [ [ 0, 1, 0], [ 0, 0, 1], [ 1, 0, 0] ],
+ [ [-1, 0, e], [ 0,-1, 0], [ 0, 0,-1] ] ] )
+ multmatrix (m) cube([1,5,1], center=true);
diff --git a/testdata/scad/bugs/transform-nan-inf-tests.scad b/testdata/scad/bugs/transform-nan-inf-tests.scad
new file mode 100644
index 0000000..cb8a667
--- /dev/null
+++ b/testdata/scad/bugs/transform-nan-inf-tests.scad
@@ -0,0 +1,12 @@
+// Test translation by NaN and Infinity
+// cube()s should not be rendered
+
+// NaN
+sphere();
+rotate([0, 0, asin(1.1) ]) cube();
+
+// Infinity (as of 2012-08 this is detected as NaN)
+translate([4,0,0]) {
+ sphere();
+ rotate([0, 0, 1/0]) cube();
+}
contact: Jan Huwald // Impressum