From: akl Date: Tue, 27 Mar 2007 09:46:58 +0000 (+0000) Subject: PAL13190 (EDF159 SMESH: in Merge Nodes and Merge Elements, visualisze nodes or meshes... X-Git-Tag: V3_2_6pre3~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b772d132ea094790c592907066cc065cd63d8801;p=modules%2Fsmesh.git PAL13190 (EDF159 SMESH: in Merge Nodes and Merge Elements, visualisze nodes or meshes twice): add FindEqualElements(); add MergeElements(). --- diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index 1f84436fb..8eb305217 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -2427,6 +2427,17 @@ class Mesh: def MergeNodes (self, GroupsOfNodes): self.editor.MergeNodes(GroupsOfNodes) + ## Find elements built on the same nodes. + # @param MeshOrSubMeshOrGroup Mesh or SubMesh, or Group of elements for searching + # @return a list of groups of equal elements + def FindEqualElements (self, MeshOrSubMeshOrGroup): + return self.editor.FindEqualElements(MeshOrSubMeshOrGroup) + + ## Merge elements in each given group. + # @param GroupsOfElementsID groups of elements for merging + def MergeElements(self, GroupsOfElementsID): + self.editor.MergeElements(GroupsOfElementsID) + ## Remove all but one of elements built on the same nodes. def MergeEqualElements(self): self.editor.MergeEqualElements()