mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 01:40:33 +05:00
Optimize cleanSubMesh( SMESH_subMesh * subMesh ) a bit
This commit is contained in:
parent
e97c496f7d
commit
5f791c80a4
@ -1381,7 +1381,7 @@ static void cleanSubMesh( SMESH_subMesh * subMesh )
|
|||||||
const SMDS_MeshElement * elt = ite->next();
|
const SMDS_MeshElement * elt = ite->next();
|
||||||
//MESSAGE( " RM elt: "<<elt->GetID()<<" ( "<<elt->NbNodes()<<" )" );
|
//MESSAGE( " RM elt: "<<elt->GetID()<<" ( "<<elt->NbNodes()<<" )" );
|
||||||
//meshDS->RemoveElement(elt);
|
//meshDS->RemoveElement(elt);
|
||||||
meshDS->RemoveFreeElement(elt, subMeshDS);
|
meshDS->RemoveFreeElement(elt, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
SMDS_NodeIteratorPtr itn = subMeshDS->GetNodes();
|
SMDS_NodeIteratorPtr itn = subMeshDS->GetNodes();
|
||||||
@ -1389,10 +1389,11 @@ static void cleanSubMesh( SMESH_subMesh * subMesh )
|
|||||||
const SMDS_MeshNode * node = itn->next();
|
const SMDS_MeshNode * node = itn->next();
|
||||||
//MESSAGE( " RM node: "<<node->GetID());
|
//MESSAGE( " RM node: "<<node->GetID());
|
||||||
if ( node->NbInverseElements() == 0 )
|
if ( node->NbInverseElements() == 0 )
|
||||||
meshDS->RemoveFreeNode(node, subMeshDS);
|
meshDS->RemoveFreeNode(node, 0);
|
||||||
else // for StdMeshers_CompositeSegment_1D: node in one submesh, edge in another
|
else // for StdMeshers_CompositeSegment_1D: node in one submesh, edge in another
|
||||||
meshDS->RemoveNode(node);
|
meshDS->RemoveNode(node);
|
||||||
}
|
}
|
||||||
|
subMeshDS->Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user