From: mzn Date: Fri, 27 Oct 2006 11:35:07 +0000 (+0000) Subject: Fix for bug (IPAL13705 Error during execution of "SMESH_BelongToGeom.py" script). X-Git-Tag: V3_2_3pre1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=20424edc38430717165d00c49833e575834a3980;p=modules%2Fsmesh.git Fix for bug (IPAL13705 Error during execution of "SMESH_BelongToGeom.py" script). --- diff --git a/src/SMESH_SWIG/SMESH_BelongToGeom.py b/src/SMESH_SWIG/SMESH_BelongToGeom.py index 39699ae2a..83bcb6c6f 100644 --- a/src/SMESH_SWIG/SMESH_BelongToGeom.py +++ b/src/SMESH_SWIG/SMESH_BelongToGeom.py @@ -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())