From d0424553b2719e8c99798cb3f6856b42ef106418 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 30 Nov 2016 12:14:39 +0300 Subject: [PATCH] Issue #1859 Default value of deflection coefficients --- src/ModelAPI/ModelAPI_ResultBody.h | 2 +- src/ModelAPI/ModelAPI_ResultConstruction.h | 2 +- src/XGUI/XGUI_Workshop.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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); -- 2.39.2