Fix for bug (IPAL13705 Error during execution of "SMESH_BelongToGeom.py" script).

This commit is contained in:
mzn 2006-10-27 11:35:07 +00:00
parent 9d30aa7eb9
commit 20424edc38

View 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())