From: nds Date: Thu, 8 Sep 2016 08:09:05 +0000 (+0300) Subject: Set default deflection for Arc presentation(not result) X-Git-Tag: V_2.5.0~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9433f5211747f5ff5af5ad4ff4e24ee56a0b3e2e;p=modules%2Fshaper.git Set default deflection for Arc presentation(not result) --- diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index 07c4d3ee5..4de512510 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -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; }