From: eap Date: Tue, 11 Sep 2007 06:52:16 +0000 (+0000) Subject: + // PAL16857(SMESH not conform to the MED convention): X-Git-Tag: T_24092007~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d0372de7bef9dbc5ee6cc8ee6402a66ba02a850;p=modules%2Fsmesh.git + // PAL16857(SMESH not conform to the MED convention): + if ( aMeshDimension == 2 && anIsZDimension ) // 2D only if mesh is in XOY plane + aMeshDimension = 3; --- diff --git a/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx b/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx index 1043e5594..cf9381ce9 100644 --- a/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx +++ b/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx @@ -262,6 +262,9 @@ Driver_Mesh::Status DriverMED_W_SMESHDS_Mesh::Perform() aMeshDimension = anIsXDimension + anIsYDimension + anIsZDimension; if(!aMeshDimension) aMeshDimension = 3; + // PAL16857(SMESH not conform to the MED convention): + if ( aMeshDimension == 2 && anIsZDimension ) // 2D only if mesh is in XOY plane + aMeshDimension = 3; } SMDS_NodeIteratorPtr aNodesIter = myMesh->nodesIterator();