]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
make GetNodesId() return sorted ids
authoreap <eap@opencascade.com>
Thu, 14 Oct 2010 11:09:22 +0000 (11:09 +0000)
committereap <eap@opencascade.com>
Thu, 14 Oct 2010 11:09:22 +0000 (11:09 +0000)
src/SMESH_I/SMESH_Mesh_i.cxx

index bb8c8b4971c2b3dd79466ff4a500ca73d7717dd2..de07a09f7e89aa40c746e7bebefaa99e9853e59e 100644 (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();