]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
0021238: EDF 1817 SMESH: GHS3D on quadratic meshes
authoreap <eap@opencascade.com>
Fri, 6 May 2011 07:25:19 +0000 (07:25 +0000)
committereap <eap@opencascade.com>
Fri, 6 May 2011 07:25:19 +0000 (07:25 +0000)
  fix orientation of volumes

src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx

index 1074ac97d46f802725e2e1173a3a652b1dfc70c4..72afa568f6987c51e3ffea3d36325c31dd80c5e4 100644 (file)
@@ -1178,7 +1178,7 @@ static bool readGMFFile(const char*                     theFile,
 //         case GmfQuadrilaterals:
 //           theHelper->AddFace( node[0], node[1], node[2], node[3] ); break;
         case GmfTetrahedra:
-          theHelper->AddVolume( node[0], node[1], node[2], node[3], /*id =*/0, /*force3d =*/false );
+          theHelper->AddVolume( node[1], node[0], node[2], node[3], /*id =*/0, /*force3d =*/false );
           break;
 //         case GmfHexahedra:
 //           theHelper->AddVolume( node[0], node[3], node[2], node[1],
@@ -1196,14 +1196,6 @@ static bool readGMFFile(const char*                     theFile,
 
   shapeID = theHelper->GetSubShapeID();
   for ( int i = 0; i < nbVertices; ++i ) {
-#ifdef WITH_SMESH_CANCEL_COMPUTE
-    if(theAlgo->computeCanceled()) {
-      GmfCloseMesh(InpMsh);
-      delete [] GMFNode;
-      delete [] nodeAssigne;
-      return false;
-    }
-#endif
     if ( !nodeAssigne[ i+1 ])
       theMeshDS->SetNodeInVolume( GMFNode[ i+1 ], shapeID );
   }