From: ageay Date: Mon, 28 Jan 2013 08:33:13 +0000 (+0000) Subject: Debugging orientCorrectlyPoly. More general implementation (2) without compilation... X-Git-Tag: V6_main_FINAL~409 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=10d266216669c0a312c7e70aec5875e22e69fab0;p=tools%2Fmedcoupling.git Debugging orientCorrectlyPoly. More general implementation (2) without compilation warnings. --- diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 482f60bd3..86d81d4d5 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -6559,11 +6559,8 @@ void MEDCouplingUMesh::TryToCorrectPolyhedronOrientation(int *begin, int *end, c bgFace=begin; for(std::size_t i=0;i 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; } }