From f0f28bd92d337864790e0a073859525f41bc6d46 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 27 Jan 2012 10:41:48 +0000 Subject: [PATCH] 0021338: EDF 1926 SMESH: New controls and filters Add "Double nodes tolerance" preference --- src/SMESHGUI/SMESHGUI.cxx | 5 +++++ src/SMESHGUI/SMESH_msg_en.ts | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 3175c2128..d4960fac5 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -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 ); diff --git a/src/SMESHGUI/SMESH_msg_en.ts b/src/SMESHGUI/SMESH_msg_en.ts index 9dcc32a52..3ed34e9b3 100644 --- a/src/SMESHGUI/SMESH_msg_en.ts +++ b/src/SMESHGUI/SMESH_msg_en.ts @@ -3884,6 +3884,10 @@ Please, create VTK viewer and try again PREF_PRECISION_VALUE Number of digits after point + + PREF_EQUAL_NODES_TOL + Double nodes tolerance + PREF_RENUMBER Automatic renumbering