]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Bug correction of MEDCouplingUMesh::convertExtrudedPolyhedra
authorageay <ageay>
Tue, 2 Apr 2013 16:03:46 +0000 (16:03 +0000)
committerageay <ageay>
Tue, 2 Apr 2013 16:03:46 +0000 (16:03 +0000)
src/MEDCoupling/MEDCouplingUMesh.cxx

index 7e2c6b413be89f08e3cc939b6f739daa61021d95..6f0795151152412565e51745d5a41e82477185a9 100644 (file)
@@ -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;
         }