From: nds Date: Wed, 30 Nov 2016 09:14:39 +0000 (+0300) Subject: Issue #1859 Default value of deflection coefficients X-Git-Tag: V_2.6.0~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d0424553b2719e8c99798cb3f6856b42ef106418;p=modules%2Fshaper.git Issue #1859 Default value of deflection coefficients --- diff --git a/src/ModelAPI/ModelAPI_ResultBody.h b/src/ModelAPI/ModelAPI_ResultBody.h index 959259934..8b90e4427 100644 --- a/src/ModelAPI/ModelAPI_ResultBody.h +++ b/src/ModelAPI/ModelAPI_ResultBody.h @@ -47,7 +47,7 @@ public: /// default deflection for a result body inline static const std::string DEFAULT_DEFLECTION() { - return "0.001"; + return "0.0001"; } /// Iternal enumeration for storage the information of connected topology flag diff --git a/src/ModelAPI/ModelAPI_ResultConstruction.h b/src/ModelAPI/ModelAPI_ResultConstruction.h index 4704bc43b..b132572b8 100644 --- a/src/ModelAPI/ModelAPI_ResultConstruction.h +++ b/src/ModelAPI/ModelAPI_ResultConstruction.h @@ -43,7 +43,7 @@ class ModelAPI_ResultConstruction : public ModelAPI_Result /// default deflection for a result construction inline static const std::string DEFAULT_DEFLECTION() { - return "0.0001"; + return "0.00001"; } /// Sets the result diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index f569608b9..6996a2d02 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -213,12 +213,12 @@ XGUI_Workshop::XGUI_Workshop(XGUI_SalomeConnector* theConnector) Config_PropManager::registerProp("Visualization", "body_deflection", "Body deflection coefficient", Config_Prop::Double, - ModelAPI_ResultBody::DEFAULT_DEFLECTION());//"0.001"); + ModelAPI_ResultBody::DEFAULT_DEFLECTION()); Config_PropManager::registerProp("Visualization", "construction_deflection", "Construction deflection coefficient", Config_Prop::Double, - ModelAPI_ResultConstruction::DEFAULT_DEFLECTION());//"0.0001"); + ModelAPI_ResultConstruction::DEFAULT_DEFLECTION()); if (ModuleBase_Preferences::resourceMgr()->booleanValue("Viewer", "face-selection", true)) myViewerSelMode.append(TopAbs_FACE);