mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 10:57:26 +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();
|
long nbNodes = NbNodes();
|
||||||
aResult->length( 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++ )
|
for ( int i = 0, n = nbNodes; i < n && anIt->more(); i++ )
|
||||||
aResult[i] = anIt->next()->GetID();
|
aResult[i] = anIt->next()->GetID();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user