Salome HOME
Fix polyhedral volumes creation
authorjfa <jfa@opencascade.com>
Fri, 11 Mar 2005 10:59:04 +0000 (10:59 +0000)
committerjfa <jfa@opencascade.com>
Fri, 11 Mar 2005 10:59:04 +0000 (10:59 +0000)
src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx

index d234be6623190d8f659cf44b625259aed33cc09f..8adc8ac050fde8a40797ccfd27ecbc7a7ef891f1 100644 (file)
@@ -47,6 +47,8 @@
 #include "utilities.h"
 
 #include <TColStd_MapIteratorOfMapOfInteger.hxx>
+#include <TColStd_ListOfInteger.hxx>
+#include <TColStd_ListIteratorOfListOfInteger.hxx>
 
 #include <vtkCell.h>
 #include <vtkIdList.h>
@@ -451,7 +453,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply()
 
          aQuantities->length( myFacesByNodes->count() );
 
-         TColStd_MapOfInteger aNodesIds;
+         TColStd_ListOfInteger aNodesIds;
 
          QListBoxItem* anItem;
          int aNbQuantities = 0;
@@ -459,19 +461,19 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply()
            QStringList anIds = QStringList::split(" ", anItem->text());
            int aNbNodesInFace = 0;
            for (QStringList::iterator it = anIds.begin(); it != anIds.end(); ++it, ++aNbNodesInFace)
-             aNodesIds.Add( (*it).toInt() );
-           
+             aNodesIds.Append( (*it).toInt() );
+
            aQuantities[aNbQuantities++] = aNbNodesInFace;
          }
-         
+
          anIdsOfNodes->length(aNodesIds.Extent());
 
          int aNbIdsOfNodes = 0;
-         TColStd_MapIteratorOfMapOfInteger It;
+         TColStd_ListIteratorOfListOfInteger It;
          It.Initialize(aNodesIds);
          for(;It.More();It.Next())
-           anIdsOfNodes[aNbIdsOfNodes++] = It.Key();
-           
+           anIdsOfNodes[aNbIdsOfNodes++] = It.Value();
+
          try
            {
              SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();