]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13190 (EDF159 SMESH: in Merge Nodes and Merge Elements, visualisze nodes or meshes...
authorakl <akl@opencascade.com>
Tue, 27 Mar 2007 09:46:58 +0000 (09:46 +0000)
committerakl <akl@opencascade.com>
Tue, 27 Mar 2007 09:46:58 +0000 (09:46 +0000)
add FindEqualElements();
add MergeElements().

src/SMESH_SWIG/smesh.py

index 1f84436fbff2d2acbe21bc4eb78d1249b5bd33fe..8eb305217cb3054d21e04bb5137670b3f4eddb8a 100644 (file)
@@ -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()