diff options
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); |