Salome HOME
Fix for exception on presentation of arc with radius less 0.001
authorvsv <vsv@opencascade.com>
Thu, 12 Jul 2018 09:08:29 +0000 (12:08 +0300)
committervsv <vsv@opencascade.com>
Thu, 12 Jul 2018 09:08:29 +0000 (12:08 +0300)
src/ModuleBase/ModuleBase_ResultPrs.cpp

index be06b5046b0d58c55b9c865c22ec46b6c52b0808..1646edc0d2bc230e17cfa35dc4001a2ed21285c2 100755 (executable)
@@ -253,7 +253,12 @@ void ModuleBase_ResultPrs::Compute(
   }
   // change deviation coefficient to provide more precise circle
   //ModuleBase_Tools::setDefaultDeviationCoefficient(myResult, Attributes());
-  AIS_Shape::Compute(thePresentationManager, thePresentation, theMode);
+  try {
+    AIS_Shape::Compute(thePresentationManager, thePresentation, theMode);
+  }
+  catch (...) {
+    return;
+  }
 
   // visualize hidden sub-shapes transparent
   if (myTransparency < 1 && !myHiddenSubShapes.IsEmpty())