]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix regression of SMESH_TEST/Grids/smesh/imps6/G0
authoreap <eap@opencascade.com>
Thu, 15 Aug 2013 12:08:51 +0000 (12:08 +0000)
committereap <eap@opencascade.com>
Thu, 15 Aug 2013 12:08:51 +0000 (12:08 +0000)
Reset node data when it is removed
+      ((SMDS_MeshNode*) n)->SMDS_MeshElement::init( -1, -1, -1 ); // avoid reuse

src/SMDS/SMDS_Mesh.cxx

index b27c897030beba6cf8871f805c8e1f3c9f284423..b7ec3552157dbfb81d0fe2d9fc18d1fee4481c4f 100644 (file)
@@ -3370,6 +3370,7 @@ void SMDS_Mesh::RemoveFreeElement(const SMDS_MeshElement * elem)
       myNodes[elemId] = 0;
       myInfo.myNbNodes--;
       ((SMDS_MeshNode*) n)->SetPosition(SMDS_SpacePosition::originSpacePosition());
+      ((SMDS_MeshNode*) n)->SMDS_MeshElement::init( -1, -1, -1 ); // avoid reuse
       myNodePool->destroy(static_cast<SMDS_MeshNode*>(todest));
       myNodeIDFactory->ReleaseID(elemId, vtkId);
     }