]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3256: Hang up when displaying the model
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Wed, 27 May 2020 13:20:36 +0000 (16:20 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Wed, 27 May 2020 13:20:36 +0000 (16:20 +0300)
Provide a workaround to eliminate the hang up.

src/ModuleBase/ModuleBase_Tools.cpp

index a3697ee37f0c09d7f889585b732882b2b708af8e..08a9ef0aec393655d3924b746e912c1e55dac678 100644 (file)
@@ -470,8 +470,12 @@ void setDefaultDeviationCoefficient(const TopoDS_Shape& theShape,
   double aDeflection;
   if (isConstruction)
     aDeflection = Config_PropManager::real("Visualization", "construction_deflection");
-  else
+  else {
     aDeflection = Config_PropManager::real("Visualization", "body_deflection");
+    // workaround (issue #3256): to avoid hang up on one of restricted models
+    // set the maximal deflection to be the same as a default body deflection
+    theDrawer->SetMaximalChordialDeviation(aDeflection);
+  }
 
   theDrawer->SetDeviationCoefficient(aDeflection);
 }