]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
adjust for shaperBuilder
authoreap <eap@opencascade.com>
Thu, 23 Jan 2020 18:56:19 +0000 (21:56 +0300)
committereap <eap@opencascade.com>
Thu, 23 Jan 2020 18:56:19 +0000 (21:56 +0300)
src/SMESH_SWIG/smeshBuilder.py
src/SMESH_SWIG/smesh_algorithm.py

index 8fd7b6166febc11fef4e5f938ad5ca0b99b54e6d..696d4f3cc2155efd86426cfec444e62d2443b398 100644 (file)
@@ -305,7 +305,7 @@ def AssureGeomPublished(mesh, geom, name=''):
     """
     if not mesh.smeshpyD.IsEnablePublish():
         return
-    if not isinstance( geom, geomBuilder.GEOM._objref_GEOM_Object ):
+    if not hasattr( geom, "GetShapeType" ):
         return
     if not geom.GetStudyEntry():
         ## get a name
index d962b4548007a74235ee8d9665e88a63c723660d..be5552d8ecb640dd0d0d4bf47ccc0caad8352a7b 100644 (file)
@@ -396,7 +396,7 @@ class Mesh_Algorithm:
         geompy = self.mesh.geompyD
         for i in reverseList:
             if isinstance( i, int ):
-                s = geompy.SubShapes(self.mesh.geom, [i])[0]
+                s = geompy.GetSubShape(self.mesh.geom, [i])
                 if s.GetShapeType() != geomBuilder.GEOM.EDGE:
                     raise TypeError("Not EDGE index given")
                 resList.append( i )