0019957: EDF 785 SMESH: Convert Quadratic and Group on GEOM

optimize Renumber()
This commit is contained in:
eap 2008-11-21 10:56:30 +00:00
parent b892591624
commit 5231e88856

View File

@ -2530,11 +2530,12 @@ void SMDS_Mesh::Renumber (const bool isNodes, const int startID, const int del
}
// release their ids
map<int,SMDS_MeshElement*>::iterator elemIt = elemMap.begin();
for ( ; elemIt != elemMap.end(); elemIt++ )
{
int id = (*elemIt).first;
idFactory->ReleaseID( id );
}
idFactory->Clear();
// for ( ; elemIt != elemMap.end(); elemIt++ )
// {
// int id = (*elemIt).first;
// idFactory->ReleaseID( id );
// }
// set new IDs
int ID = startID;
elemIt = elemMap.begin();