]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug NPAL19757
authorapo <apo@opencascade.com>
Thu, 22 May 2008 14:19:03 +0000 (14:19 +0000)
committerapo <apo@opencascade.com>
Thu, 22 May 2008 14:19:03 +0000 (14:19 +0000)
 - Post-pro: field with profil can't be built

src/CONVERTOR/VISU_MedConvertor.cxx

index 35b7570d5b4cb5535882413bfc11d1f0306abda7..4097baad2b08fc602716251968d0f8bc3dd84068 100644 (file)
@@ -216,7 +216,7 @@ namespace
          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;
@@ -226,7 +226,7 @@ namespace
            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++){