]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1859 Default value of deflection coefficients
authornds <nds@opencascade.com>
Wed, 30 Nov 2016 09:14:39 +0000 (12:14 +0300)
committernds <nds@opencascade.com>
Wed, 30 Nov 2016 09:14:39 +0000 (12:14 +0300)
src/ModelAPI/ModelAPI_ResultBody.h
src/ModelAPI/ModelAPI_ResultConstruction.h
src/XGUI/XGUI_Workshop.cpp

index 959259934aa286c0424db13db1969b1f976d8c2a..8b90e4427440c2796840b274da23063ec6c07f97 100644 (file)
@@ -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
index 4704bc43bd9af48f2dd9a100870645831aa2a7fa..b132572b8d063e77a81bbaad2f037b06c8dbc697 100644 (file)
@@ -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
index f569608b99fc1fb527bdc102603055bdb6707681..6996a2d02e4d2ad9864e0b120190fc88dbe695bd 100755 (executable)
@@ -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);