Salome HOME
0020963: EDF 1528 SMESH: How to combine Netgen1D2D with sizemap with Quadrangle(Mappi...
authoreap <eap@opencascade.com>
Thu, 2 Sep 2010 06:30:53 +0000 (06:30 +0000)
committereap <eap@opencascade.com>
Thu, 2 Sep 2010 06:30:53 +0000 (06:30 +0000)
-              sm->ComputeStateEngine(SMESH_subMesh::COMPUTE);
+              _gen->Compute( theMesh, _mainEdge, /*anUpward=*/true);

sm->ComputeStateEngine() fails if vertices it depends on are not yet created

src/StdMeshers/StdMeshers_Regular_1D.cxx

index 391bd38c3c11df989aa6073ca8e7585582870acd..8273990301c52a873bf4ec4360b8aa5fac8dc166 100644 (file)
@@ -627,7 +627,7 @@ bool StdMeshers_Regular_1D::computeInternalParameters(SMESH_Mesh &     theMesh,
           bool computed = sm->IsMeshComputed();
           if (!computed) {
             if (sm->GetComputeState() == SMESH_subMesh::READY_TO_COMPUTE) {
-              sm->ComputeStateEngine(SMESH_subMesh::COMPUTE);
+              _gen->Compute( theMesh, _mainEdge, /*anUpward=*/true);
               computed = sm->IsMeshComputed();
             }
           }