From: eap Date: Wed, 11 Apr 2018 16:53:55 +0000 (+0300) Subject: Regression of SALOME_TESTS/Grids/smesh/mesh_BLSURF_02/C6 X-Git-Tag: V8_5_0rc2^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bbecd75e48654b191888bc15fc2ced32e65b65d9;p=plugins%2Fblsurfplugin.git Regression of SALOME_TESTS/Grids/smesh/mesh_BLSURF_02/C6 --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 1f7e0ea..2fbbd87 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -2568,9 +2568,9 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh& aMesh, nodes[iv] = NULL; if ( tag > 0 && tag <= pmap.Extent() ) { TopoDS_Vertex v = TopoDS::Vertex(pmap(tag)); - double tol = BRep_Tool::Tolerance( v ); - gp_Pnt p = BRep_Tool::Pnt( v ); - if ( p.IsEqual( gp_Pnt( xyz[0], xyz[1], xyz[2]), 2*tol)) + double tol = BRep_Tool::Tolerance( v ); + gp_Pnt p = BRep_Tool::Pnt( v ); + if ( p.IsEqual( gp_Pnt( xyz[0], xyz[1], xyz[2]), 1e3*tol)) xyz[0] = p.X(), xyz[1] = p.Y(), xyz[2] = p.Z(); else tag = 0; // enforced or attracted vertex