]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for bug (IPAL13705 Error during execution of "SMESH_BelongToGeom.py" script).
authormzn <mzn@opencascade.com>
Fri, 27 Oct 2006 11:35:07 +0000 (11:35 +0000)
committermzn <mzn@opencascade.com>
Fri, 27 Oct 2006 11:35:07 +0000 (11:35 +0000)
src/SMESH_SWIG/SMESH_BelongToGeom.py

index 39699ae2a5703c6d862c24726239974fd59d210e..83bcb6c6f4502b29cc867a5d6048e62650be810d 100644 (file)
@@ -42,12 +42,13 @@ def CheckBelongToGeomFilterOld(theMeshGen, theMesh, theShape, theSubShape, theEl
 ## Current style
 def CheckBelongToGeomFilter(theMesh, theShape, theSubShape, theElemType):
     import geompy
+    import smesh
     if theShape != theSubShape:
         aName = str(theSubShape)
         geompy.addToStudyInFather(theShape,theSubShape,aName)
 
     theMesh.Compute()
-    aFilter = theMesh.GetFilter(theElemType, smesh.FT_BelongToGeom, theSubShape)
+    aFilter = smesh.GetFilter(theElemType, smesh.FT_BelongToGeom, theSubShape)
     return aFilter.GetElementsId(theMesh.GetMesh())