diff options
Diffstat (limited to 'testdata/scad')
| -rw-r--r-- | testdata/scad/bugs/minkowski-crash.scad | 26 | 
1 files changed, 26 insertions, 0 deletions
| diff --git a/testdata/scad/bugs/minkowski-crash.scad b/testdata/scad/bugs/minkowski-crash.scad new file mode 100644 index 0000000..46419ba --- /dev/null +++ b/testdata/scad/bugs/minkowski-crash.scad @@ -0,0 +1,26 @@ +/* +  Originally reported by nop head 20120107: +  This causes a CGAL assertion in minkowski on some platforms and CGAL versions: +  o CGAL-3.6, 3.8 Linux +  o Windows (OpenSCAD-2011.12 binaries) + +  The problem is that minkowski leaves the target polyhedron in a corrupt state +  causing a crash. This is worked around in CGALEvaluator::process(). +   +  CGAL-3.9 appears to just process forever. +*/ +$fn = 30; +minkowski() { +	union() { +		cube([10, 10, 10], center=true); + +		cylinder(r=2, h=15, center=true); + +		rotate([90, 0, 0]) +			cylinder(r=2, h=15, center=true); + +		rotate([0, 90, 0]) +			cylinder(r=2, h=15, center=true); +	} +	sphere(3); +} | 
