From: eap Date: Thu, 8 Aug 2013 12:38:25 +0000 (+0000) Subject: Optimize cleanSubMesh( SMESH_subMesh * subMesh ) a bit X-Git-Tag: V7_3_0a1~212 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f791c80a493e81f417d6716dedbe0091624846f;p=modules%2Fsmesh.git Optimize cleanSubMesh( SMESH_subMesh * subMesh ) a bit --- diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index 483495be5..cf05b50bc 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -1381,7 +1381,7 @@ static void cleanSubMesh( SMESH_subMesh * subMesh ) const SMDS_MeshElement * elt = ite->next(); //MESSAGE( " RM elt: "<GetID()<<" ( "<NbNodes()<<" )" ); //meshDS->RemoveElement(elt); - meshDS->RemoveFreeElement(elt, subMeshDS); + meshDS->RemoveFreeElement(elt, 0); } SMDS_NodeIteratorPtr itn = subMeshDS->GetNodes(); @@ -1389,10 +1389,11 @@ static void cleanSubMesh( SMESH_subMesh * subMesh ) const SMDS_MeshNode * node = itn->next(); //MESSAGE( " RM node: "<GetID()); if ( node->NbInverseElements() == 0 ) - meshDS->RemoveFreeNode(node, subMeshDS); + meshDS->RemoveFreeNode(node, 0); else // for StdMeshers_CompositeSegment_1D: node in one submesh, edge in another meshDS->RemoveNode(node); } + subMeshDS->Clear(); } } }