From a0916a9a661abc734f418aad192f4f2aaea5f118 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 4 Oct 2018 23:31:55 +0200 Subject: [PATCH] avoid re-throwing an exception in case normal is not defined --- src/Mod/Part/App/Geometry.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mod/Part/App/Geometry.cpp b/src/Mod/Part/App/Geometry.cpp index 882b6e128c..4503eda494 100644 --- a/src/Mod/Part/App/Geometry.cpp +++ b/src/Mod/Part/App/Geometry.cpp @@ -97,6 +97,7 @@ # include # include # include +# include #endif #include @@ -436,8 +437,11 @@ bool GeomCurve::normalAt(double u, Base::Vector3d& dir) const return true; } } + catch (const LProp_NotDefined&) { + dir.Set(0,0,0); + return false; + } catch (Standard_Failure& e) { - throw Base::RuntimeError(e.GetMessageString()); }