Salome HOME
fix PAL8330. Orient volumes as for MED
authoreap <eap@opencascade.com>
Fri, 1 Apr 2005 11:23:40 +0000 (11:23 +0000)
committereap <eap@opencascade.com>
Fri, 1 Apr 2005 11:23:40 +0000 (11:23 +0000)
src/GHS3DPlugin_GHS3D.cxx

index c2bf7275078c2959436fcd89a7027ead058b19ed..e14f52b3f89983fa7e72fdc34ce7399687470bdf 100644 (file)
@@ -298,8 +298,8 @@ static bool readResult(FILE *                          theFile,
         node[ iNode ] = (*IdNode).second;
       }
     }
-    // create a tetrahedron
-    SMDS_MeshElement* aTet = theMesh->AddVolume( node[0], node[1], node[2], node[3] );
+    // create a tetrahedron with orientation as for MED
+    SMDS_MeshElement* aTet = theMesh->AddVolume( node[1], node[0], node[2], node[3] );
     theMesh->SetMeshElementOnShape( aTet, theShape );
   }