mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-16 03:40:32 +05:00
To update MergeEqualElements() interface in accordance with PAL13190 improvement.
This commit is contained in:
parent
f899a9e718
commit
88935cd2fb
@ -561,8 +561,11 @@ bool SMESHGUI_SewingDlg::ClickOnApply()
|
|||||||
}
|
}
|
||||||
aResult = (anError == SMESH::SMESH_MeshEditor::SEW_OK);
|
aResult = (anError == SMESH::SMESH_MeshEditor::SEW_OK);
|
||||||
|
|
||||||
if (toMerge && aResult)
|
if (toMerge && aResult) {
|
||||||
aMeshEditor->MergeEqualElements();
|
SMESH::array_of_long_array_var aGroupsOfElementsID = new SMESH::array_of_long_array;
|
||||||
|
aMeshEditor->FindEqualElements(myMesh, aGroupsOfElementsID);
|
||||||
|
aMeshEditor->MergeEqualElements(aGroupsOfElementsID.inout());
|
||||||
|
}
|
||||||
|
|
||||||
QApplication::restoreOverrideCursor();
|
QApplication::restoreOverrideCursor();
|
||||||
|
|
||||||
|
@ -1319,7 +1319,10 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::Concatenate(const SMESH::mesh_array& theMeshe
|
|||||||
aNewEditor.FindCoincidentNodes( aMeshNodes, theMergeTolerance, aGroupsOfNodes );
|
aNewEditor.FindCoincidentNodes( aMeshNodes, theMergeTolerance, aGroupsOfNodes );
|
||||||
aNewEditor.MergeNodes( aGroupsOfNodes );
|
aNewEditor.MergeNodes( aGroupsOfNodes );
|
||||||
// merge elements
|
// merge elements
|
||||||
aNewEditor.MergeEqualElements();
|
set<const SMDS_MeshElement*> aMeshElements; // no input elements
|
||||||
|
SMESH_MeshEditor::TListOfListOfElementsID aGroupsOfElementsID;
|
||||||
|
aNewEditor.FindEqualElements(aMeshElements, aGroupsOfElementsID);
|
||||||
|
aNewEditor.MergeEqualElements(aGroupsOfElementsID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user