]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
+ // PAL16857(SMESH not conform to the MED convention):
authoreap <eap@opencascade.com>
Tue, 11 Sep 2007 06:52:16 +0000 (06:52 +0000)
committereap <eap@opencascade.com>
Tue, 11 Sep 2007 06:52:16 +0000 (06:52 +0000)
+        if ( aMeshDimension == 2 && anIsZDimension ) // 2D only if mesh is in XOY plane
+          aMeshDimension = 3;

src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx

index 1043e55949fb7047fc7a6860accb0b795ffc1440..cf9381ce9b1519bbe3c1dd95920f74a49c84f6cf 100644 (file)
@@ -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();