]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020053: EDF 868 GEOM: Using sub-meshes
authoreap <eap@opencascade.com>
Thu, 20 Nov 2008 15:50:36 +0000 (15:50 +0000)
committereap <eap@opencascade.com>
Thu, 20 Nov 2008 15:50:36 +0000 (15:50 +0000)
src/SMESH/SMESH_Gen.cxx

index 52c2f9b09c12b841094977ccb1f52c1389aeb060..a745417e7cd6acfbd16750816dfdeb8cc70d1046 100644 (file)
@@ -229,8 +229,8 @@ bool SMESH_Gen::Compute(SMESH_Mesh &         aMesh,
         if ( SMESH_Algo* subAlgo = (SMESH_Algo*) aMesh.GetHypothesis( aSubShape, filter, true )) {
           SMESH_Hypothesis::Hypothesis_Status status;
           if ( subAlgo->CheckHypothesis( aMesh, aSubShape, status ))
-            // mesh a lower smToCompute starting from vertices
-            Compute( aMesh, aSubShape, /*anUpward=*/true );
+            // mesh a lower smToCompute
+            Compute( aMesh, aSubShape );
         }
       }
     }
@@ -241,10 +241,10 @@ bool SMESH_Gen::Compute(SMESH_Mesh &         aMesh,
       if ( sm->GetComputeState() == SMESH_subMesh::READY_TO_COMPUTE)
         sm->ComputeStateEngine( SMESH_subMesh::COMPUTE );
 
-    // ------------------------
-    // mesh the rest subshapes
-    // ------------------------
-    ret = Compute( aMesh, aShape );
+    // -----------------------------------------------
+    // mesh the rest subshapes starting from vertices
+    // -----------------------------------------------
+    ret = Compute( aMesh, aShape, /*anUpward=*/true );
   }
 
   MESSAGE( "VSR - SMESH_Gen::Compute() finished, OK = " << ret);