diff options
| author | Marius Kintel <marius@kintel.net> | 2012-01-08 12:27:31 (GMT) | 
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2012-01-08 12:27:31 (GMT) | 
| commit | e20a7c261a9671d05d1cd4cea7334f2051123dfa (patch) | |
| tree | 1425eab66573214ae39b3590940a892274c03cb5 /testdata/scad | |
| parent | f963d1ab7fd2f717ae348fc1ae870965b20c41a5 (diff) | |
Added test model causing a minkowski assert with a subsequent corrupt polyhedron
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); +} | 
