From: ageay Date: Tue, 2 Apr 2013 16:03:46 +0000 (+0000) Subject: Bug correction of MEDCouplingUMesh::convertExtrudedPolyhedra X-Git-Tag: V6_main_FINAL~219 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d8a2a690da14fa84e236ab8f02ebfac912b2e360;p=tools%2Fmedcoupling.git Bug correction of MEDCouplingUMesh::convertExtrudedPolyhedra --- 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; }