diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-12-17 23:08:36 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-12-17 23:08:36 (GMT) |
commit | 6938ae2dfde578e3980d077adefb86a4bdbd9df1 (patch) | |
tree | a74dbb81a30dbaf561dfde4230561acfdfbd454e | |
parent | e64bf96b37f483bcc9ac61ef4e3b4a935432cf5c (diff) |
prevent cgal::orientation_2 crash on polygons that fail is_simple_2 test
-rw-r--r-- | src/dxftess-cgal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dxftess-cgal.cc b/src/dxftess-cgal.cc index 14f1204..5f95e6a 100644 --- a/src/dxftess-cgal.cc +++ b/src/dxftess-cgal.cc @@ -471,7 +471,7 @@ bool triangulate_polygon( const PolySet::Polygon &pgon, std::vector<PolySet::Pol triangles.push_back( pgon ); } } - } catch (const CGAL::Assertion_exception &e) { + } catch (const CGAL::Failure_exception &e) { PRINTB("CGAL error in dxftess triangulate_polygon: %s", e.what()); err = true; } |