From: eap Date: Fri, 27 Jan 2012 10:41:12 +0000 (+0000) Subject: 0021338: EDF 1926 SMESH: New controls and filters X-Git-Tag: V6_5_0a1~161 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c6edb52c8e44b767cfd6b8603fabd75ca56b06c0;p=modules%2Fsmesh.git 0021338: EDF 1926 SMESH: New controls and filters get Tolerance for "Double nodes" from Preferences --- diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index 25766c7b0..b0af3e9e3 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -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;