From ee33969d5bee1e756758ff88d893b128498891d4 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 11 Mar 2005 10:59:04 +0000 Subject: [PATCH] Fix polyhedral volumes creation --- .../SMESHGUI_CreatePolyhedralVolumeDlg.cxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx b/src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx index d234be662..8adc8ac05 100644 --- a/src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx @@ -47,6 +47,8 @@ #include "utilities.h" #include +#include +#include #include #include @@ -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(); -- 2.39.2