]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2024: Redesign of circle and arc of circle
authornds <nds@opencascade.com>
Tue, 28 Mar 2017 07:18:43 +0000 (10:18 +0300)
committernds <nds@opencascade.com>
Tue, 28 Mar 2017 07:19:03 +0000 (10:19 +0300)
Deflection for Presentations if result has not been created yet(Macro Circle, Fillet)

src/SketchPlugin/SketchPlugin_SketchEntity.h

index d9f2cec43804291ae4d1bdc9476da88f2542e082..cbbfcdf55c162bf8d6141366872980645d1cba6b 100644 (file)
@@ -167,6 +167,11 @@ class SketchPlugin_SketchEntity : public SketchPlugin_Feature, public GeomAPI_IC
       double aWidth = thePrs->width();
       isCustomized = thePrs->setWidth(aWidth / 2.5) || isCustomized;
     }
+
+    if (!theResult.get()) {
+      double aDeflection = Config_PropManager::real("Visualization", "construction_deflection");
+      thePrs->setDeflection(aDeflection);
+  }
     return isCustomized;
   }