From 10d266216669c0a312c7e70aec5875e22e69fab0 Mon Sep 17 00:00:00 2001 From: ageay Date: Mon, 28 Jan 2013 08:33:13 +0000 Subject: [PATCH] Debugging orientCorrectlyPoly. More general implementation (2) without compilation warnings. --- src/MEDCoupling/MEDCouplingUMesh.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; } } -- 2.39.2