]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Correction of bug on buildDescendingConnectivity2 on 3D mesh with shared faces.
authorageay <ageay>
Mon, 20 Feb 2012 16:21:50 +0000 (16:21 +0000)
committerageay <ageay>
Mon, 20 Feb 2012 16:21:50 +0000 (16:21 +0000)
src/INTERP_KERNEL/CellModel.cxx

index 4c1ea74ddad4eeb3837dbc9037057fe913fe7c7d..f57dcab21a47175a78303e6792dd74d04b9423b8 100644 (file)
@@ -438,6 +438,9 @@ namespace INTERP_KERNEL
         if(it==tmp.begin())
           return true;
         if(it!=tmp.end())
+          return _dim!=1;
+        std::vector<int>::reverse_iterator it2=std::search(tmp.rbegin(),tmp.rend(),conn2,conn2+lgth);
+        if(it2!=tmp.rend())
           return false;
         throw INTERP_KERNEL::Exception("CellModel::getOrientationStatus : Request of orientation status of non equal connectively cells !");
       }