summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-02-03 22:05:42 (GMT)
committerMarius Kintel <marius@kintel.net>2012-02-03 22:05:42 (GMT)
commitcb363df358a70a1f366085773d13a3875a1ceda5 (patch)
treed5f5ed75ab42c9253e92597229e193bea269dee4 /testdata
parent7a4b75630f619dfd64618d3f1c24da859f9e4a13 (diff)
Added test case and source code comments related to issue #80
Diffstat (limited to 'testdata')
-rw-r--r--testdata/scad/bugs/projectioncrash.scad5
-rw-r--r--testdata/scad/features/projection-tests.scad3
2 files changed, 8 insertions, 0 deletions
diff --git a/testdata/scad/bugs/projectioncrash.scad b/testdata/scad/bugs/projectioncrash.scad
new file mode 100644
index 0000000..532ef8d
--- /dev/null
+++ b/testdata/scad/bugs/projectioncrash.scad
@@ -0,0 +1,5 @@
+// This causes OpenSCAD to crash. See source code comments:
+// PolySetCGALEvaluator::evaluatePolySet(const ProjectionNode &node)
+// Se also https://github.com/openscad/openscad/issues/80
+
+projection(cut=true) translate([0,0,-4.999999]) cube(10, center=true);
diff --git a/testdata/scad/features/projection-tests.scad b/testdata/scad/features/projection-tests.scad
index e1b05c7..edb65ba 100644
--- a/testdata/scad/features/projection-tests.scad
+++ b/testdata/scad/features/projection-tests.scad
@@ -8,3 +8,6 @@ projection(cut=true) { square(); }
linear_extrude(height=20) projection(cut=false) sphere(r=10);
translate([22,0,0]) linear_extrude(height=20) projection(cut=true) translate([0,0,9]) sphere(r=10);
translate([44,0,0]) linear_extrude(height=20) projection(cut=true) translate([0,0,7]) sphere(r=10);
+
+// Boundary case: clipping the top of a cube
+translate([0,-22,0]) linear_extrude(height=5) projection(cut=true) translate([0,0,-4.999999]) cube(10, center=true);
contact: Jan Huwald // Impressum