]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021338: EDF 1926 SMESH: New controls and filters
authoreap <eap@opencascade.com>
Fri, 27 Jan 2012 10:41:48 +0000 (10:41 +0000)
committereap <eap@opencascade.com>
Fri, 27 Jan 2012 10:41:48 +0000 (10:41 +0000)
  Add "Double nodes tolerance" preference

src/SMESHGUI/SMESHGUI.cxx
src/SMESHGUI/SMESH_msg_en.ts

index 3175c2128e852d8eea9f2541d7e0152571ec85f4..d4960fac5723769d792ba2ff468274df9e1dd535 100644 (file)
@@ -4486,6 +4486,11 @@ void SMESHGUI::createPreferences()
   int prec = addPreference( tr( "PREF_PRECISION_VALUE" ), qaGroup, LightApp_Preferences::IntSpin, "SMESH", "controls_precision" );
   setPreferenceProperty( prec, "min", 0 );
   setPreferenceProperty( prec, "max", 16 );
+  int doubleNodesTol = addPreference( tr( "PREF_EQUAL_NODES_TOL" ), qaGroup, LightApp_Preferences::DblSpin, "SMESH", "equal_nodes_tolerance" );
+  setPreferenceProperty( doubleNodesTol, "precision", 10 );
+  setPreferenceProperty( doubleNodesTol, "min", 0.0000000001 );
+  setPreferenceProperty( doubleNodesTol, "max", 1000000.0 );
+  setPreferenceProperty( doubleNodesTol, "step", 0.0000001 );
 
   int dispgroup = addPreference( tr( "PREF_DISPLAY_MODE" ), genTab );
   setPreferenceProperty( dispgroup, "columns", 2 );
index 9dcc32a52f2f23392cf1a6cfc29ff035fa9deff2..3ed34e9b3d20097f6dd59c6c5f9bd08273912f18 100644 (file)
@@ -3884,6 +3884,10 @@ Please, create VTK viewer and try again</translation>
         <source>PREF_PRECISION_VALUE</source>
         <translation>Number of digits after point</translation>
     </message>
+    <message>
+        <source>PREF_EQUAL_NODES_TOL</source>
+        <translation>Double nodes tolerance</translation>
+    </message>
     <message>
         <source>PREF_RENUMBER</source>
         <translation>Automatic renumbering</translation>