]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13615 (meshing of a "5 edges quadrangle")
authoreap <eap@opencascade.com>
Wed, 18 Apr 2007 06:59:54 +0000 (06:59 +0000)
committereap <eap@opencascade.com>
Wed, 18 Apr 2007 06:59:54 +0000 (06:59 +0000)
    avoid re-meshing of edges without mesh elements of a quadrangle side

src/StdMeshers/StdMeshers_CompositeSegment_1D.cxx

index 7c949c52718a159cec0f88e6592438936f2ac60e..1820f6fe32a6fe75aa199a5b33e931a7f5e8e623 100644 (file)
@@ -127,7 +127,7 @@ namespace {
       sm->SetEventListener( eListener, listenerData, sm );
       // add edge submesh to the data
       sm->ComputeStateEngine( SMESH_subMesh::CHECK_COMPUTE_STATE );
-      if ( !sm->GetComputeState() != SMESH_subMesh::COMPUTE_OK ) {
+      if ( sm->GetComputeState() != SMESH_subMesh::COMPUTE_OK ) {
         sm->SetIsAlwaysComputed( true );
         listenerData->mySubMeshes.push_back( sm );
       }
@@ -137,7 +137,7 @@ namespace {
         TopoDS_Vertex V = side.FirstVertex( iE );
         sm = side.GetMesh()->GetSubMesh( V );
         sm->ComputeStateEngine( SMESH_subMesh::CHECK_COMPUTE_STATE );
-        if ( !sm->GetComputeState() != SMESH_subMesh::COMPUTE_OK )
+        if ( sm->GetComputeState() != SMESH_subMesh::COMPUTE_OK )
           sm->SetIsAlwaysComputed( true );
         listenerData->mySubMeshes.push_back( sm );
       }