mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
make GetNodesId() return sorted ids
This commit is contained in:
parent
c9fbd2bbf8
commit
2a4db777c4
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user