]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0023134: EDF GEOM: Regression with getinplace V7_7_0a1
authorskv <skv@opencascade.com>
Wed, 2 Sep 2015 10:53:03 +0000 (13:53 +0300)
committerskv <skv@opencascade.com>
Wed, 2 Sep 2015 10:53:03 +0000 (13:53 +0300)
src/GEOMAlgo/GEOMAlgo_GetInPlaceAPI.cxx

index c7abe5e96484b9c0830233c0842cf5be47d6c63b..878faf172d5e9cdb34dac68b476f257f5f3c1b7f 100644 (file)
@@ -182,7 +182,7 @@ Standard_Integer GEOMAlgo_GetInPlaceAPI::GetInPlaceOld
       if (fabs(tab_aWhat[3] - tab_aWhere[3]) <= aMassTol && aPnt_aWhat.Distance(aPnt) <= aTolConf)
         isFound = true;
       else {
-        if ((tab_aWhat[3] - tab_aWhere[3]) > aMassTol) {
+        if (tab_aWhat[3] > tab_aWhere[3]) {
           aPntShape = BRepBuilderAPI_MakeVertex( aPnt ).Shape();
           aVertex   = TopoDS::Vertex( aPntShape );
           BRepExtrema_DistShapeShape aWhereDistance ( aVertex, Exp_aWhere.Current() );