]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Debugging orientCorrectlyPoly. More general implementation (2) without compilation...
authorageay <ageay>
Mon, 28 Jan 2013 08:33:13 +0000 (08:33 +0000)
committerageay <ageay>
Mon, 28 Jan 2013 08:33:13 +0000 (08:33 +0000)
src/MEDCoupling/MEDCouplingUMesh.cxx

index 482f60bd3a872fb7b0a28d1738f6f1b57eee547e..86d81d4d5c317d562c854c1bfad2b1810983bba4 100644 (file)
@@ -6559,11 +6559,8 @@ void MEDCouplingUMesh::TryToCorrectPolyhedronOrientation(int *begin, int *end, c
       bgFace=begin;
       for(std::size_t i=0;i<nbOfFaces;i++)
         {
-          int *endFace=std::find(bgFace+1,end,-1);
-          std::size_t nbOfEdgesInFace=std::distance(bgFace,endFace);
-          std::vector<int> tmp(nbOfEdgesInFace-1);
-          std::copy(bgFace+1,endFace,tmp.rbegin());
-          std::copy(tmp.begin(),tmp.end(),bgFace+1);
+          endFace=std::find(bgFace+1,end,-1);
+          std::reverse(bgFace+1,endFace);
           bgFace=endFace+1;
         }
     }