]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Issue 0020544: EDF 1140 SMESH: Dumpstudy with FindEqualElments function not loadable
authorvsr <vsr@opencascade.com>
Wed, 21 Oct 2009 10:25:24 +0000 (10:25 +0000)
committervsr <vsr@opencascade.com>
Wed, 21 Oct 2009 10:25:24 +0000 (10:25 +0000)
src/SMESH_SWIG/smeshDC.py

index edc7ca5e5bfe5d357d684b49c414771ae2cbf687..05864fcc1197f9bfa993bea643f48983a9eeea89 100644 (file)
@@ -2653,6 +2653,8 @@ class Mesh:
     #  @return a list of groups of equal elements
     #  @ingroup l2_modif_trsf
     def FindEqualElements (self, MeshOrSubMeshOrGroup):
+        if ( isinstance( MeshOrSubMeshOrGroup, Mesh )):
+            MeshOrSubMeshOrGroup = MeshOrSubMeshOrGroup.GetMesh()
         return self.editor.FindEqualElements(MeshOrSubMeshOrGroup)
 
     ## Merges elements in each given group.