summaryrefslogtreecommitdiff
path: root/testdata/scad
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-08-22 00:31:28 (GMT)
committerMarius Kintel <marius@kintel.net>2012-08-22 00:31:28 (GMT)
commita629560cee963087f6e43019d37933ce60776e49 (patch)
treead8c0b150ce405b49eb575593ac778415047ce58 /testdata/scad
parent1e56bf65b940f4d71104a358d3fea1e06f0ee461 (diff)
parentd831b44474b4b3220d884306fd29aaf0cb5810fe (diff)
Merge pull request #186 from openscad/issue185
Issue185
Diffstat (limited to 'testdata/scad')
-rw-r--r--testdata/scad/bugs/transform-nan-inf-tests.scad12
1 files changed, 12 insertions, 0 deletions
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