From: eap Date: Mon, 11 Feb 2008 08:42:12 +0000 (+0000) Subject: // PAL18941(a saved study with a mesh belong Z is opened and the mesh is... X-Git-Tag: V3_2_10~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=51bffaa32f72836f227a449e4f2d5c68ab8200ed;p=modules%2Fsmesh.git // 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; + } } --- diff --git a/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx b/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx index 21b1b41c9..f5370662b 100644 --- a/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx +++ b/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx @@ -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();