make GetNodesId() return sorted ids

This commit is contained in:
eap 2010-10-14 11:09:22 +00:00
parent c9fbd2bbf8
commit 2a4db777c4

View File

@ -2788,7 +2788,7 @@ SMESH::long_array* SMESH_Mesh_i::GetNodesId()
long nbNodes = NbNodes();
aResult->length( nbNodes );
SMDS_NodeIteratorPtr anIt = aSMESHDS_Mesh->nodesIterator();
SMDS_NodeIteratorPtr anIt = aSMESHDS_Mesh->nodesIterator(/*idInceasingOrder=*/true);
for ( int i = 0, n = nbNodes; i < n && anIt->more(); i++ )
aResult[i] = anIt->next()->GetID();