]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Minor changes
authorapo <apo@opencascade.com>
Wed, 31 Aug 2005 07:37:35 +0000 (07:37 +0000)
committerapo <apo@opencascade.com>
Wed, 31 Aug 2005 07:37:35 +0000 (07:37 +0000)
src/CONVERTOR/VISU_MedConvertor.cxx
src/CONVERTOR/VISU_MedConvertor.hxx

index eaae6fdfe9ef766c1ed1e57dd41da6d6d8c2ec64..5fc96d78cd63598abc4b9f85f0624ad02c13f5fe 100644 (file)
@@ -1011,7 +1011,11 @@ VISU_MedConvertor
     }
     
     TGeom2SubMesh& aGeom2SubMesh = aMeshOnEntity->myGeom2SubMesh;
-    PSubMeshImpl aSubMesh = aGeom2SubMesh[VTK_VERTEX];
+    PMEDSubMesh aSubMesh = aGeom2SubMesh[VTK_VERTEX](new TMEDSubMesh());
+         
+    aSubMesh->myIsElemNum = aNodeInfo->IsElemNum();
+    aSubMesh->myElemNum = aNodeInfo->myElemNum;
+    
     TCell2Connect& aCell2Connect = aSubMesh->myCell2Connect;
     aCell2Connect.resize(aNbElem);
     for (int iElem = 0; iElem < aNbElem; iElem++)
@@ -1115,7 +1119,11 @@ VISU_MedConvertor
        MED::PPolygoneInfo aPolygoneInfo = theMed->GetPPolygoneInfo(aMeshInfo,aMEntity,aMGeom);
        TInt aNbElem = aPolygoneInfo->GetNbElem();
        if(aNbElem > 0){
-         PSubMeshImpl aSubMesh = aGeom2SubMesh[aVGeom];
+         PMEDSubMesh aSubMesh = aGeom2SubMesh[aVGeom](new TMEDSubMesh());
+         
+         aSubMesh->myIsElemNum = aPolygoneInfo->IsElemNum();
+         aSubMesh->myElemNum = aPolygoneInfo->myElemNum;
+
          TCell2Connect& aCell2Connect = aSubMesh->myCell2Connect;
          aCell2Connect.resize(aNbElem);
          
@@ -1135,7 +1143,11 @@ VISU_MedConvertor
        TInt aNbElem = aPolyedreInfo->GetNbElem();
        
        if(aNbElem > 0){
-         PSubMeshImpl aSubMesh = aGeom2SubMesh[aVGeom];
+         PMEDSubMesh aSubMesh = aGeom2SubMesh[aVGeom](new TMEDSubMesh());
+         
+         aSubMesh->myIsElemNum = aPolyedreInfo->IsElemNum();
+         aSubMesh->myElemNum = aPolyedreInfo->myElemNum;
+
          TCell2Connect& aCell2Connect = aSubMesh->myCell2Connect;
          aCell2Connect.resize(aNbElem);
          
@@ -1172,7 +1184,11 @@ VISU_MedConvertor
        TInt aNbElem = aCellInfo->GetNbElem();
        
        if(aNbElem > 0){
-         PSubMeshImpl aSubMesh = aGeom2SubMesh[aVGeom];
+         PMEDSubMesh aSubMesh = aGeom2SubMesh[aVGeom](new TMEDSubMesh());
+         
+         aSubMesh->myIsElemNum = aCellInfo->IsElemNum();
+         aSubMesh->myElemNum = aCellInfo->myElemNum;
+
          TCell2Connect& aCell2Connect = aSubMesh->myCell2Connect;
          aCell2Connect.resize(aNbElem);
        
@@ -1376,8 +1392,7 @@ LoadProfile(const MED::PWrapper& theMed,
                                          aMGeom);
       
       aSubProfile->myIsElemNum = anElemInfo->IsElemNum();
-      if(aSubProfile->myIsElemNum)
-       aSubProfile->myElemNum = anElemInfo->myElemNum;
+      aSubProfile->myElemNum = anElemInfo->myElemNum;
     }
   }
   aProfile->myNamedPointCoords = theMesh->myNamedPointCoords;
@@ -1427,8 +1442,7 @@ LoadGaussMesh(const MED::PWrapper& theMed,
                                                    aMGeom);
       
     aGaussSubMesh->myIsElemNum = aCellInfo->IsElemNum();
-    if(aGaussSubMesh->myIsElemNum)
-      aGaussSubMesh->myElemNum = aCellInfo->myElemNum;
+    aGaussSubMesh->myElemNum = aCellInfo->myElemNum;
 
     std::string aName;
     MED::TGaussCoord aGaussCoord;
index d63622095174d67ec1ab8abd6d538f024e1296fa..3ae1891ffd11d4f3bc7f8df5a88e2359cd62095f 100644 (file)
@@ -75,6 +75,15 @@ namespace VISU
   typedef SharedPtr<TMEDGaussMesh> PMEDGaussMesh;
 
 
+  //---------------------------------------------------------------
+  struct TMEDSubMesh: virtual TSubMeshImpl
+  {
+    MED::EBooleen myIsElemNum;
+    MED::TElemNum myElemNum;
+  };
+  typedef SharedPtr<TMEDSubMesh> PMEDSubMesh;
+
+
   //---------------------------------------------------------------
   struct TMEDMeshOnEntity: virtual TMeshOnEntityImpl
   {