From b772d132ea094790c592907066cc065cd63d8801 Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 27 Mar 2007 09:46:58 +0000 Subject: [PATCH] PAL13190 (EDF159 SMESH: in Merge Nodes and Merge Elements, visualisze nodes or meshes twice): add FindEqualElements(); add MergeElements(). --- src/SMESH_SWIG/smesh.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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() -- 2.39.2