mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
Fix polyhedral volumes creation
This commit is contained in:
parent
b2ea633d42
commit
ee33969d5b
@ -47,6 +47,8 @@
|
|||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
|
|
||||||
#include <TColStd_MapIteratorOfMapOfInteger.hxx>
|
#include <TColStd_MapIteratorOfMapOfInteger.hxx>
|
||||||
|
#include <TColStd_ListOfInteger.hxx>
|
||||||
|
#include <TColStd_ListIteratorOfListOfInteger.hxx>
|
||||||
|
|
||||||
#include <vtkCell.h>
|
#include <vtkCell.h>
|
||||||
#include <vtkIdList.h>
|
#include <vtkIdList.h>
|
||||||
@ -451,7 +453,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply()
|
|||||||
|
|
||||||
aQuantities->length( myFacesByNodes->count() );
|
aQuantities->length( myFacesByNodes->count() );
|
||||||
|
|
||||||
TColStd_MapOfInteger aNodesIds;
|
TColStd_ListOfInteger aNodesIds;
|
||||||
|
|
||||||
QListBoxItem* anItem;
|
QListBoxItem* anItem;
|
||||||
int aNbQuantities = 0;
|
int aNbQuantities = 0;
|
||||||
@ -459,7 +461,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply()
|
|||||||
QStringList anIds = QStringList::split(" ", anItem->text());
|
QStringList anIds = QStringList::split(" ", anItem->text());
|
||||||
int aNbNodesInFace = 0;
|
int aNbNodesInFace = 0;
|
||||||
for (QStringList::iterator it = anIds.begin(); it != anIds.end(); ++it, ++aNbNodesInFace)
|
for (QStringList::iterator it = anIds.begin(); it != anIds.end(); ++it, ++aNbNodesInFace)
|
||||||
aNodesIds.Add( (*it).toInt() );
|
aNodesIds.Append( (*it).toInt() );
|
||||||
|
|
||||||
aQuantities[aNbQuantities++] = aNbNodesInFace;
|
aQuantities[aNbQuantities++] = aNbNodesInFace;
|
||||||
}
|
}
|
||||||
@ -467,10 +469,10 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply()
|
|||||||
anIdsOfNodes->length(aNodesIds.Extent());
|
anIdsOfNodes->length(aNodesIds.Extent());
|
||||||
|
|
||||||
int aNbIdsOfNodes = 0;
|
int aNbIdsOfNodes = 0;
|
||||||
TColStd_MapIteratorOfMapOfInteger It;
|
TColStd_ListIteratorOfListOfInteger It;
|
||||||
It.Initialize(aNodesIds);
|
It.Initialize(aNodesIds);
|
||||||
for(;It.More();It.Next())
|
for(;It.More();It.Next())
|
||||||
anIdsOfNodes[aNbIdsOfNodes++] = It.Key();
|
anIdsOfNodes[aNbIdsOfNodes++] = It.Value();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user