From dac031030728671403d00af31bb221059e34aa5e Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 15 Aug 2013 12:08:51 +0000 Subject: [PATCH] Fix regression of SMESH_TEST/Grids/smesh/imps6/G0 Reset node data when it is removed + ((SMDS_MeshNode*) n)->SMDS_MeshElement::init( -1, -1, -1 ); // avoid reuse --- src/SMDS/SMDS_Mesh.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SMDS/SMDS_Mesh.cxx b/src/SMDS/SMDS_Mesh.cxx index b27c89703..b7ec35521 100644 --- a/src/SMDS/SMDS_Mesh.cxx +++ b/src/SMDS/SMDS_Mesh.cxx @@ -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(todest)); myNodeIDFactory->ReleaseID(elemId, vtkId); } -- 2.39.2