Salome HOME
0020431: EDF 1020 SMESH : Radial Mesh of a cylinder
authoreap <eap@opencascade.com>
Wed, 16 Sep 2009 12:23:28 +0000 (12:23 +0000)
committereap <eap@opencascade.com>
Wed, 16 Sep 2009 12:23:28 +0000 (12:23 +0000)
  pb: only the 1st algo is applied

     // apply the algos that do not require descretized boundaries
     // ----------------------------------------------------------
     for ( subIt = smWithAlgoSupportingSubmeshes.rbegin(); subIt != subEnd; ++subIt )
+    {
+      sm = *subIt;
       if ( sm->GetComputeState() == SMESH_subMesh::READY_TO_COMPUTE)
       {

src/SMESH/SMESH_Gen.cxx

index 505230676da775d9559a8fc7596f0b4aaafa59e3..a68aac8c7d6515a1cdcc9f7f340b830db14fddc2 100644 (file)
@@ -237,9 +237,11 @@ bool SMESH_Gen::Compute(SMESH_Mesh &         aMesh,
     // apply the algos that do not require descretized boundaries
     // ----------------------------------------------------------
     for ( subIt = smWithAlgoSupportingSubmeshes.rbegin(); subIt != subEnd; ++subIt )
+    {
+      sm = *subIt;
       if ( sm->GetComputeState() == SMESH_subMesh::READY_TO_COMPUTE)
         sm->ComputeStateEngine( SMESH_subMesh::COMPUTE );
-
+    }
     // -----------------------------------------------
     // mesh the rest subshapes starting from vertices
     // -----------------------------------------------