diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/CGALEvaluator.cc | 5 | ||||
| -rw-r--r-- | src/version_check.h | 2 | 
2 files changed, 4 insertions, 3 deletions
| diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc index 242fe0f..4a05274 100644 --- a/src/CGALEvaluator.cc +++ b/src/CGALEvaluator.cc @@ -160,14 +160,15 @@ CGAL_Nef_polyhedron CGALEvaluator::applyHull(const CgaladvNode &node)  			}  			else {  				bool err = false; +				std::string errmsg("");  				try{  					err = nefworkaround::convert_to_Polyhedron<CGAL_Kernel3>( *(chN.p3), P );  					//chN.p3->convert_to_Polyhedron(P); -				} catch (...) { +				catch (const CGAL::Failure_exception &e) {  					err = true;  				}  				if (err) { -					PRINT("ERROR: CGAL NefPolyhedron->Polyhedron conversion failed"); +					PRINTB("ERROR: CGAL NefPolyhedron->Polyhedron conversion failed. %s", e.what());  				} else {  					std::transform(P.vertices_begin(), P.vertices_end(), std::back_inserter(points3d),   										 boost::bind(static_cast<const CGAL_Polyhedron::Vertex::Point_3&(CGAL_Polyhedron::Vertex::*)() const>(&CGAL_Polyhedron::Vertex::point), _1)); diff --git a/src/version_check.h b/src/version_check.h index fbea077..be52e61 100644 --- a/src/version_check.h +++ b/src/version_check.h @@ -113,7 +113,7 @@ a time, to avoid confusion.                     + __GNUC_MINOR__ * 100 \                     + __GNUC_PATCHLEVEL__)  #if GCC_VERSION == 40802 -#error OpenSCAD isn't compatible with gcc 4.8.2. Please try a different version +#error "OpenSCAD isnt compatible with gcc 4.8.2. Please try a different version"  #endif  #endif // OPENSCAD_SKIP_VERSION_CHECK | 
