From c6edb52c8e44b767cfd6b8603fabd75ca56b06c0 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 27 Jan 2012 10:41:12 +0000 Subject: [PATCH] 0021338: EDF 1926 SMESH: New controls and filters get Tolerance for "Double nodes" from Preferences --- src/OBJECT/SMESH_Actor.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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; -- 2.39.2