]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Minor changes
authorapo <apo@opencascade.com>
Thu, 21 Jul 2005 13:50:19 +0000 (13:50 +0000)
committerapo <apo@opencascade.com>
Thu, 21 Jul 2005 13:50:19 +0000 (13:50 +0000)
src/CONVERTOR/VISU_Convertor_impl.hxx
src/CONVERTOR/VISU_MedConvertor.cxx

index c1d97dbfe718d98463c46275e3c8fdea3ddd29f5..a8193838e4c8546495c443ba3492dbf4a97dfc17 100644 (file)
@@ -55,7 +55,6 @@ namespace VISU
   struct TPoints: virtual TBaseStructure
   {
     vtkIdType myDim;
-
     TPointsCoord myCoord;
 
   public:
@@ -143,6 +142,7 @@ namespace VISU
   {
     TGaussSubMeshImpl();
 
+    TPoints myPoints;
     ESubMeshStatus myStatus;
   };
 
index 8b27ec3d540a936b3e86c5b6ccc76e69f7daeeb1..f9d9dbdbb95d3ffba48d9f184619dadef0ceba10 100644 (file)
@@ -265,7 +265,6 @@ namespace{
       vtkIdType aVNbNodes = VTKGeom2NbNodes(aVGeom);
 
       PMEDGaussSubMesh aGaussSubMesh(new TMEDGaussSubMesh());
-      aGaussSubMesh->myStatus = eAddAll;
 
       TGeom2SubProfile::iterator anIter2 = aGeom2SubProfile.find(aVGeom);
       if(anIter2 == aGeom2SubProfile.end()){
@@ -273,8 +272,10 @@ namespace{
        continue;
       }
 
-      aGaussSubMesh->mySubProfile = anIter2->second;
+      PMEDSubProfile aSubProfile = anIter2->second;
+      aGaussSubMesh->mySubProfile = aSubProfile;
+      aGaussSubMesh->myStatus = aSubProfile->myStatus;
+
       PMEDGauss aGauss(new TMEDGauss());
       aGaussSubMesh->myGauss = aGauss;
 
@@ -284,9 +285,7 @@ namespace{
       TInt aNbGauss = 0;
 
       TGeom2Size::const_iterator aTimeStampIter = theGeom2Size.find(aMGeom);
-      if(aTimeStampIter == theGeom2Size.end())
-       aGaussSubMesh->myStatus = eRemoveAll;
-      else{
+      if(aTimeStampIter != theGeom2Size.end()){
        TGeom2Gauss::const_iterator aGaussIter = aGeom2Gauss.find(aMGeom);
        TInt aNbCells = aTimeStampIter->second;
        if(aGaussIter != aGeom2Gauss.end()){
@@ -300,8 +299,6 @@ namespace{
 
          aGaussSubMesh->myNbCells = aNbCells*aNbGauss;
          aGaussSubMesh->myCellsSize = aGaussSubMesh->myNbCells*2;
-
-         aGaussSubMesh->myStatus = eAddPart;
        }else{
          aGaussSubMesh->myNbCells = aNbCells;
          aGaussSubMesh->myCellsSize = aGaussSubMesh->myNbCells*(aVNbNodes+1);
@@ -1143,6 +1140,7 @@ LoadGaussMesh(MED::TTimeStampVal& theTimeStampVal,
 
       INITMSG(MYDEBUG,
              "- aVGeom = "<<aVGeom<<
+             "; aStatus = "<<aGaussSubMesh->myStatus<<
              "; aNbCells = "<<aSubProfile->mySubMeshID.size()<<
              endl);
     }