summaryrefslogtreecommitdiff
path: root/src/CGALEvaluator.cc
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2013-12-15 13:47:01 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2013-12-15 13:47:01 (GMT)
commit6d0efd62d996e5fbf2b61d54821f8c4c5142ace1 (patch)
treedf9bb23d0e3c295798cc094ce1ced9361169e25b /src/CGALEvaluator.cc
parent60a4561da5b0592f20910e8a9ea4fcdbb1b1a2f7 (diff)
improve CGAL nonplanar face error detection. also change dumptests to 'faces'
keyword for 'polyhedrnon().
Diffstat (limited to 'src/CGALEvaluator.cc')
-rw-r--r--src/CGALEvaluator.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc
index 9902f70..854e9cd 100644
--- a/src/CGALEvaluator.cc
+++ b/src/CGALEvaluator.cc
@@ -677,8 +677,10 @@ CGAL_Nef_polyhedron CGALEvaluator::evaluateCGALMesh(const PolySet &ps)
}
catch (const CGAL::Assertion_exception &e) {
if (std::string(e.what()).find("Plane_constructor")!=std::string::npos) {
- PRINT("PolySet has nonplanar faces. Attempting alternate construction");
- plane_error=true;
+ if (std::string(e.what()).find("has_on")!=std::string::npos) {
+ PRINT("PolySet has nonplanar faces. Attempting alternate construction");
+ plane_error=true;
+ }
} else {
PRINTB("CGAL error in CGAL_Nef_polyhedron3(): %s", e.what());
}
contact: Jan Huwald // Impressum