Salome HOME
// PAL18941(a saved study with a mesh belong Z is opened and the mesh is...
authoreap <eap@opencascade.com>
Mon, 11 Feb 2008 08:41:34 +0000 (08:41 +0000)
committereap <eap@opencascade.com>
Mon, 11 Feb 2008 08:41:34 +0000 (08:41 +0000)
         if ( aMeshDimension == 1 && !anIsXDimension ) // 1D only if mesh is along OX
-          aMeshDimension = 3;
+          if ( anIsYDimension ) {
+            aMeshDimension = 2;
+            anIsXDimension = true;
+          } else {
+            aMeshDimension = 3;
+          }
       }

src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx

index 21b1b41c9e8e1a04e69c7f0c4c4b7dbcfd0ed38a..f5370662b8c79d07566f61206a240e6992369f86 100644 (file)
@@ -285,7 +285,12 @@ Driver_Mesh::Status DriverMED_W_SMESHDS_Mesh::Perform()
           aMeshDimension = 3;
         // PAL18941(a saved study with a mesh belong Z is opened and the mesh is belong X)
         if ( aMeshDimension == 1 && !anIsXDimension ) // 1D only if mesh is along OX
-          aMeshDimension = 3;
+          if ( anIsYDimension ) {
+            aMeshDimension = 2;
+            anIsXDimension = true;
+          } else {
+            aMeshDimension = 3;
+          }
       }
 
       SMDS_NodeIteratorPtr aNodesIter = myMesh->nodesIterator();