]> 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:12 +0000 (10:41 +0000)
committereap <eap@opencascade.com>
Fri, 27 Jan 2012 10:41:12 +0000 (10:41 +0000)
  get Tolerance for "Double nodes" from Preferences

src/OBJECT/SMESH_Actor.cxx

index 25766c7b0dbe51f3a673f35a90ded61efdb2e2c7..b0af3e9e33bf2847772442e45aec7a6970213a03 100644 (file)
@@ -692,9 +692,14 @@ SetControlMode(eControl theMode,
       myControlActor = my2DActor;
       break;
     case eCoincidentNodes:
-      myFunctor.reset(new SMESH::Controls::CoincidentNodes());
-      myControlActor = myNodeActor;
-      break;
+      {
+        SMESH::Controls::CoincidentNodes* cn = new SMESH::Controls::CoincidentNodes();
+        double tol = mgr->doubleValue( "SMESH", "equal_nodes_tolerance", 1e-7 );
+        cn->SetTolerance( tol );
+        myFunctor.reset(cn);
+        myControlActor = myNodeActor;
+        break;
+      }
     case eCoincidentElems1D:
       myFunctor.reset(new SMESH::Controls::CoincidentElements1D());
       myControlActor = my1DActor;