diff options
author | Marius Kintel <marius@kintel.net> | 2012-02-03 22:10:43 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-02-03 22:10:43 (GMT) |
commit | 6dde0695f1f4edbae6980fb62ca207630f560095 (patch) | |
tree | 2960b49bc570116a7356cc015d5bcb3a3d3b0c5c /testdata | |
parent | d7ee4e4f3c17667c0a5bdb3b68d4485ce79869dd (diff) | |
parent | c2c67f2eacd74b560c5c5a428e8a0a7bae4fd55a (diff) |
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/scad/bugs/projectioncrash.scad | 5 | ||||
-rw-r--r-- | testdata/scad/features/projection-tests.scad | 3 |
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); |