summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-08-02 23:12:54 (GMT)
committerMarius Kintel <marius@kintel.net>2011-08-02 23:12:54 (GMT)
commita35c801eec98803bf21d0d6c8d2748f0d9ccd507 (patch)
treefb9fc3533c84011a99400055c5ff128ac567de04
parente43315363d4e392d54df77d500cf26ba53a7a599 (diff)
Improved (more detailed) CGAL error messages
-rw-r--r--src/csgops.cc2
-rw-r--r--src/dxftess-cgal.cc2
-rw-r--r--src/polyset.cc2
-rw-r--r--src/projection.cc2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/csgops.cc b/src/csgops.cc
index 55d91d2..8c295f9 100644
--- a/src/csgops.cc
+++ b/src/csgops.cc
@@ -118,7 +118,7 @@ CGAL_Nef_polyhedron CsgNode::render_cgal_nef_polyhedron() const
cgal_nef_cache.insert(cache_id, new cgal_nef_cache_entry(N), N.weight());
}
catch (CGAL::Assertion_exception e) {
- PRINTF("ERROR: Illegal polygonal object - make sure all polygons are defined with the same winding order. Skipping affected object.");
+ PRINTF("CGAL error: %s", e.what());
}
CGAL::set_error_behaviour(old_behaviour);
diff --git a/src/dxftess-cgal.cc b/src/dxftess-cgal.cc
index 2e80fea..adb7e9a 100644
--- a/src/dxftess-cgal.cc
+++ b/src/dxftess-cgal.cc
@@ -158,7 +158,7 @@ void dxf_tesselate(PolySet *ps, DxfData *dxf, double rot, bool up, bool /* do_tr
}
catch (CGAL::Assertion_exception e) {
- PRINTF("ERROR: Polygon intersection detected. Skipping affected polygons.");
+ PRINTF("CGAL error: %s", e.what());
CGAL::set_error_behaviour(old_behaviour);
return;
}
diff --git a/src/polyset.cc b/src/polyset.cc
index cccdaad..e34aeb3 100644
--- a/src/polyset.cc
+++ b/src/polyset.cc
@@ -665,7 +665,7 @@ CGAL_Nef_polyhedron PolySet::render_cgal_nef_polyhedron() const
return CGAL_Nef_polyhedron(N);
}
catch (CGAL::Assertion_exception e) {
- PRINTF("ERROR: Illegal polygonal object - make sure all polygons are defined with the same winding order. Skipping affected object.");
+ PRINTF("CGAL error: %s", e.what());
CGAL::set_error_behaviour(old_behaviour);
return CGAL_Nef_polyhedron();
}
diff --git a/src/projection.cc b/src/projection.cc
index f41ba56..d87b366 100644
--- a/src/projection.cc
+++ b/src/projection.cc
@@ -124,7 +124,7 @@ PolySet *ProjectionNode::render_polyset(render_mode_e) const
}
}
catch (CGAL::Assertion_exception e) {
- PRINTF("ERROR: Illegal polygonal object - make sure all polygons are defined with the same winding order. Skipping affected object.");
+ PRINTF("CGAL error: %s", e.what());
CGAL::set_error_behaviour(old_behaviour);
return ps;
}
contact: Jan Huwald // Impressum