mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 16:14:16 +05:00
Fix for bug (IPAL13705 Error during execution of "SMESH_BelongToGeom.py" script).
This commit is contained in:
parent
9d30aa7eb9
commit
20424edc38
@ -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())
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user