summaryrefslogtreecommitdiff
path: root/testdata/scad/bugs
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-01-09 02:29:24 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-09 02:29:24 (GMT)
commit23f6b0623c86eba96dfb1296b862522cf02b0734 (patch)
tree998500ef16763f6f08f9f7cb8917c98b1643af68 /testdata/scad/bugs
parent52dfffd97ba49b603b4814d843cd9be08d040364 (diff)
parent5044ea928d72da800d11b2b80f6148265c13d10f (diff)
Merge branch 'master' into threading
Conflicts: RELEASE_NOTES
Diffstat (limited to 'testdata/scad/bugs')
-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