Salome HOME
Set default deflection for Arc presentation(not result)
authornds <nds@opencascade.com>
Thu, 8 Sep 2016 08:09:05 +0000 (11:09 +0300)
committernds <nds@opencascade.com>
Thu, 8 Sep 2016 08:09:48 +0000 (11:09 +0300)
src/SketchPlugin/SketchPlugin_Arc.cpp

index 07c4d3ee5649abb0ab136380105425b5a471c4a3..4de5125106cb02038952369b76739524bc415c71 100644 (file)
@@ -244,6 +244,9 @@ AISObjectPtr SketchPlugin_Arc::getAISObject(AISObjectPtr thePrevious)
         if (!anAIS)
           anAIS = AISObjectPtr(new GeomAPI_AISObject);
         anAIS->createShape(aCompound);
+        double aDeflection = Config_PropManager::real("Visualization", "construction_deflection",
+                                             ModelAPI_ResultConstruction::DEFAULT_DEFLECTION());
+        anAIS->setDeflection(aDeflection);
         anAIS->setWidth(3);
         return anAIS;
       }