summaryrefslogtreecommitdiff
path: root/src/CGALEvaluator.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-04-27 01:43:57 (GMT)
committerMarius Kintel <marius@kintel.net>2012-04-27 01:43:57 (GMT)
commitc0d5a9bb308497bf70d6a8d0bdc02c9b8db90389 (patch)
tree019a530736c19e8184f91d6554a5ed4b75621847 /src/CGALEvaluator.cc
parent42c6751806eef7e0903f381bb9288ad7c2da9265 (diff)
Caught a CGAL precondition error which caused OpenSCAD to crash. Reported by Eric Packman
Diffstat (limited to 'src/CGALEvaluator.cc')
-rw-r--r--src/CGALEvaluator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc
index 46f4cfa..a570df4 100644
--- a/src/CGALEvaluator.cc
+++ b/src/CGALEvaluator.cc
@@ -81,7 +81,7 @@ void CGALEvaluator::process(CGAL_Nef_polyhedron &target, const CGAL_Nef_polyhedr
break;
}
}
- catch (CGAL::Assertion_exception e) {
+ catch (CGAL::Failure_exception e) {
// union && difference assert triggered by testdata/scad/bugs/rotate-diff-nonmanifold-crash.scad
std::string opstr = op == CGE_UNION ? "union" : op == CGE_INTERSECTION ? "intersection" : op == CGE_DIFFERENCE ? "difference" : op == CGE_MINKOWSKI ? "minkowski" : "UNKNOWN";
PRINTB("CGAL error in CGAL_Nef_polyhedron's %s operator: %s", opstr % e.what());
contact: Jan Huwald // Impressum