summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-01-08 18:14:30 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-08 18:14:30 (GMT)
commit3c18145b13759db1a8926e29b81fb41f8efcde4d (patch)
tree75cc01dd8507a1667c4ba715cdc408ad785dce19 /testdata
parent11fb1f71dad9c7d744ff5bbe7c3ee017ed67ff41 (diff)
parentf3e6e8168bac6b14383d1d321de7dcf122e0b7de (diff)
Merge branch 'master' into boost_filesystem
Diffstat (limited to 'testdata')
-rw-r--r--testdata/scad/bugs/minkowski-crash.scad26
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);
+}
contact: Jan Huwald // Impressum