]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
In MergeNodes():
authoreap <eap@opencascade.com>
Tue, 12 Mar 2013 11:26:10 +0000 (11:26 +0000)
committereap <eap@opencascade.com>
Tue, 12 Mar 2013 11:26:10 +0000 (11:26 +0000)
+        // set _alwaysComputed to a sub-mesh of VERTEX to enable mesh computing
+        // after MergeNodes() w/o creating node in place of merged ones.
+        ...

src/SMESH/SMESH_MeshEditor.cxx

index a6a4d9b715680ca6d52685fa8e2f0df892e30f2f..73ad58659a1e9d2bfcaaf4fcda74b1a8c1923a49 100644 (file)
@@ -7656,6 +7656,12 @@ void SMESH_MeshEditor::MergeNodes (TListOfListOfNodes & theGroupsOfNodes)
         //MESSAGE("  node to remove " << nToRemove->GetID());
         rmNodeIds.push_back( nToRemove->GetID() );
         AddToSameGroups( nToKeep, nToRemove, aMesh );
+        // set _alwaysComputed to a sub-mesh of VERTEX to enable mesh computing
+        // after MergeNodes() w/o creating node in place of merged ones.
+        const SMDS_PositionPtr& pos = nToRemove->GetPosition();
+        if ( pos && pos->GetTypeOfPosition() == SMDS_TOP_VERTEX )
+          if ( SMESH_subMesh* sm = myMesh->GetSubMeshContaining( nToRemove->getshapeId() ))
+            sm->SetIsAlwaysComputed( true );
       }
 
       SMDS_ElemIteratorPtr invElemIt = nToRemove->GetInverseElementIterator();