From d8a2a690da14fa84e236ab8f02ebfac912b2e360 Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 2 Apr 2013 16:03:46 +0000 Subject: [PATCH] Bug correction of MEDCouplingUMesh::convertExtrudedPolyhedra --- src/MEDCoupling/MEDCouplingUMesh.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 7e2c6b413..6f0795151 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -1006,9 +1006,9 @@ void MEDCouplingUMesh::convertExtrudedPolyhedra() throw(INTERP_KERNEL::Exception newc[j]=c[ci[i]+1+n1+(n1-j)%n1]; newc[n1+5*j]=-1; newc[n1+5*j+1]=c[ci[i]+1+j]; - newc[n1+5*j+2]=c[ci[i]+1+(j+1)%n1]; + newc[n1+5*j+2]=c[ci[i]+1+j+n1]; newc[n1+5*j+3]=c[ci[i]+1+(j+1)%n1+n1]; - newc[n1+5*j+4]=c[ci[i]+1+j+n1]; + newc[n1+5*j+4]=c[ci[i]+1+(j+1)%n1]; } newc+=n1*6; } -- 2.39.2