mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 17:40:34 +05:00
PAL9844 - SMESH: union of triangles - correction of common edge presentation
This commit is contained in:
parent
63dec6763c
commit
544a24fb7f
@ -350,10 +350,10 @@ void SMESHGUI_SingleEditDlg::onTextChange (const QString& theNewText)
|
|||||||
// find a triangle and an edge nb
|
// find a triangle and an edge nb
|
||||||
const SMDS_MeshElement* tria[2];
|
const SMDS_MeshElement* tria[2];
|
||||||
allOk &= a2Nodes[0] != a2Nodes[1] && findTriangles(a2Nodes[0],a2Nodes[1],tria[0],tria[1]);
|
allOk &= a2Nodes[0] != a2Nodes[1] && findTriangles(a2Nodes[0],a2Nodes[1],tria[0],tria[1]);
|
||||||
if(allOk){
|
myBusy = true; // block onSelectionDone()
|
||||||
myBusy = true; // block onSelectionDone()
|
if(allOk)
|
||||||
|
{
|
||||||
newIndices.Add(tria[0]->GetID());
|
newIndices.Add(tria[0]->GetID());
|
||||||
mySelector->AddOrRemoveIndex(anIO,newIndices, true);
|
|
||||||
|
|
||||||
const SMDS_MeshNode* a3Nodes [3];
|
const SMDS_MeshNode* a3Nodes [3];
|
||||||
SMDS_ElemIteratorPtr it;
|
SMDS_ElemIteratorPtr it;
|
||||||
@ -369,16 +369,15 @@ void SMESHGUI_SingleEditDlg::onTextChange (const QString& theNewText)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
newIndices.Clear();
|
|
||||||
newIndices.Add(-edgeInd-1);
|
newIndices.Add(-edgeInd-1);
|
||||||
mySelector->AddOrRemoveIndex(anIO,newIndices,true);
|
|
||||||
myBusy = false;
|
|
||||||
|
|
||||||
myOkBtn->setEnabled(true);
|
myOkBtn->setEnabled(true);
|
||||||
myApplyBtn->setEnabled(true);
|
myApplyBtn->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
mySelector->AddOrRemoveIndex(anIO,newIndices, false);
|
||||||
SMESH::GetViewWindow(mySMESHGUI)->highlight( anIO, true, true );
|
SMESH::GetViewWindow(mySMESHGUI)->highlight( anIO, true, true );
|
||||||
|
|
||||||
|
myBusy = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user