MED::PPolygoneInfo aPolygoneInfo =
theMEDWrapper->GetPPolygoneInfo(theMeshInfo,theMEntity,theMGeom);
for(TInt anElemId = 0; anElemId < aNbElem ; anElemId++){
- TInt aNbConn = aPolygoneInfo->GetNbConn(anElemNum[anElemId]);
+ TInt aNbConn = aPolygoneInfo->GetNbConn( anElemNum[ anElemId ] - 1 );
aSubProfile->myCellsSize += aNbConn;
}
break;
theMEDWrapper->GetPPolyedreInfo(theMeshInfo,theMEntity,theMGeom);
for(TInt anElemId = 0; anElemId < aNbElem ; anElemId++){
MED::TCConnSliceArr aConnSliceArr =
- aPolyedreInfo->GetConnSliceArr(anElemNum[anElemId]);
+ aPolyedreInfo->GetConnSliceArr( anElemNum[ anElemId ] - 1 );
TInt aNbFaces = aConnSliceArr.size();
TInt aCellSize = 0;
for(TInt iFace = 0; iFace < aNbFaces; iFace++){