Salome HOME
IPAL15174 (Dump study works wrong for Concatenate):
[modules/smesh.git] / 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())