mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-19 10:43:06 +05:00
Fix for Bug IPAL11386:
HangUp at attempt to create polyhedral volume
This commit is contained in:
parent
b53e81909c
commit
29923cc512
@ -638,6 +638,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::onTextChange(const QString& theNewText)
|
|||||||
buttonOk->setEnabled( false );
|
buttonOk->setEnabled( false );
|
||||||
buttonApply->setEnabled( false );
|
buttonApply->setEnabled( false );
|
||||||
}
|
}
|
||||||
|
if(aListId.count()>1)
|
||||||
displaySimulation();
|
displaySimulation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -692,9 +693,10 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::SelectionIntoArgument()
|
|||||||
|
|
||||||
// get selected nodes/faces
|
// get selected nodes/faces
|
||||||
QString aString = "";
|
QString aString = "";
|
||||||
|
int anbNodes=0,aNbFaces=0;
|
||||||
switch(GetConstructorId()){
|
switch(GetConstructorId()){
|
||||||
case 0:{
|
case 0:{
|
||||||
int anbNodes = SMESH::GetNameOfSelectedNodes(mySelector, myActor->getIO(), aString);
|
anbNodes = SMESH::GetNameOfSelectedNodes(mySelector, myActor->getIO(), aString);
|
||||||
if (anbNodes >= 3)
|
if (anbNodes >= 3)
|
||||||
AddButton->setEnabled(true);
|
AddButton->setEnabled(true);
|
||||||
else if (anbNodes < 3){
|
else if (anbNodes < 3){
|
||||||
@ -707,7 +709,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::SelectionIntoArgument()
|
|||||||
}
|
}
|
||||||
case 1:{
|
case 1:{
|
||||||
// get selected faces
|
// get selected faces
|
||||||
int aNbFaces = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
|
aNbFaces = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
|
||||||
if (aNbFaces<=1){
|
if (aNbFaces<=1){
|
||||||
buttonOk->setEnabled( false );
|
buttonOk->setEnabled( false );
|
||||||
buttonApply->setEnabled( false );
|
buttonApply->setEnabled( false );
|
||||||
@ -725,7 +727,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::SelectionIntoArgument()
|
|||||||
}
|
}
|
||||||
default: return;
|
default: return;
|
||||||
}
|
}
|
||||||
|
if(anbNodes>2 || aNbFaces>1)
|
||||||
displaySimulation();
|
displaySimulation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user