From 02616b5674db084b07368e8cd59ead51c68277ec Mon Sep 17 00:00:00 2001 From: wandererfan Date: Sat, 7 Dec 2019 16:02:36 -0500 Subject: [PATCH] [TD]soft fail on bad geometry error w/ polygon algo --- src/Mod/TechDraw/App/GeometryObject.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Mod/TechDraw/App/GeometryObject.cpp b/src/Mod/TechDraw/App/GeometryObject.cpp index 1573dbac8c..4a77c5a49b 100644 --- a/src/Mod/TechDraw/App/GeometryObject.cpp +++ b/src/Mod/TechDraw/App/GeometryObject.cpp @@ -201,7 +201,8 @@ void GeometryObject::projectShape(const TopoDS_Shape& input, e.GetMessageString()); } catch (...) { - throw Base::RuntimeError("GeometryObject::projectShape - unknown error occurred while projecting shape"); + Base::Console().Error("GeometryObject::projectShape - unknown error occurred while projecting shape\n"); +// throw Base::RuntimeError("GeometryObject::projectShape - unknown error occurred while projecting shape"); } auto end = chrono::high_resolution_clock::now(); @@ -262,7 +263,8 @@ void GeometryObject::projectShape(const TopoDS_Shape& input, e.GetMessageString()); } catch (...) { - throw Base::RuntimeError("GeometryObject::projectShape - error occurred while extracting edges"); + Base::Console().Error("GO::projectShape - unknown error while extracting edges\n"); +// throw Base::RuntimeError("GeometryObject::projectShape - error occurred while extracting edges"); } end = chrono::high_resolution_clock::now(); diff = end - start; @@ -342,7 +344,8 @@ void GeometryObject::projectShapeWithPolygonAlgo(const TopoDS_Shape& input, e.GetMessageString()); } catch (...) { - throw Base::RuntimeError("GeometryObject::projectShapeWithPolygonAlgo - error occurred while projecting shape"); + Base::Console().Error("GO::projectShapeWithPolygonAlgo - unknown error while projecting shape\n"); +// throw Base::RuntimeError("GeometryObject::projectShapeWithPolygonAlgo - error occurred while projecting shape"); // Standard_Failure::Raise("GeometryObject::projectShapeWithPolygonAlgo - error occurred while projecting shape"); } @@ -389,7 +392,8 @@ void GeometryObject::projectShapeWithPolygonAlgo(const TopoDS_Shape& input, e.GetMessageString()); } catch (...) { - throw Base::RuntimeError("GeometryObject::projectShapeWithPolygonAlgo - error occurred while extracting edges"); + Base::Console().Error("GO::projectShapeWithPolygonAlgo - - error occurred while extracting edges\n"); +// throw Base::RuntimeError("GeometryObject::projectShapeWithPolygonAlgo - error occurred while extracting edges"); // Standard_Failure::Raise("GeometryObject::projectShapeWithPolygonAlgo - error occurred while extracting edges"); } auto end = chrono::high_resolution_clock::now();