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

optimize Renumber()
This commit is contained in:
eap 2008-11-21 10:55:53 +00:00
parent 3d14a19f1e
commit 631457134c

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();