]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Fix Elgafieldtosurface bug esy/fix_bug
authoresy <emmanuel.streby@opencascade.com>
Mon, 16 Dec 2019 14:08:30 +0000 (15:08 +0100)
committeresy <emmanuel.streby@opencascade.com>
Mon, 16 Dec 2019 14:08:30 +0000 (15:08 +0100)
src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx

index 3e4c6c10ddc2b41e80f187e2c716730474bc1235..b6a1759b4ff71f03e9571162a8c4dfdb75e54e91 100644 (file)
@@ -1158,12 +1158,12 @@ bool QuadraticPolygon::haveIAChanceToBeCompletedBy(const QuadraticPolygon& pol1N
           //    - or (more tricky, see testIntersect2DMeshes11()) that pol1 and pol2 have same orientation but 'this' turns in such
           //    a way that it attaches to pol2 on an edge in opposite orientation.
           // To sort this out, inspect localisation of next edge in pol2 wrt pol1NotSplitted.
-          it2.nextLoop();
+          it2.previousLoop();
           cur=it2.current();
           Node *repr=cur->getPtr()->buildRepresentantOfMySelf();
           bool ret=pol1NotSplitted.isInOrOut(repr);
           repr->decrRef();
-          direction = ret;
+          direction = !ret;
           needCleaning = ret; // if true we are in tricky case 2 above, we know that we will produce two consecutive overlapping edges in result
           return ret;
         }
@@ -1172,7 +1172,7 @@ bool QuadraticPolygon::haveIAChanceToBeCompletedBy(const QuadraticPolygon& pol1N
           Node *repr=cur->getPtr()->buildRepresentantOfMySelf();
           bool ret=pol1NotSplitted.isInOrOut(repr);
           repr->decrRef();
-          direction = ret;
+          direction = !ret;
           return ret;
         }
     }