mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-10 21:33:08 +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
|
## Current style
|
||||||
def CheckBelongToGeomFilter(theMesh, theShape, theSubShape, theElemType):
|
def CheckBelongToGeomFilter(theMesh, theShape, theSubShape, theElemType):
|
||||||
import geompy
|
import geompy
|
||||||
|
import smesh
|
||||||
if theShape != theSubShape:
|
if theShape != theSubShape:
|
||||||
aName = str(theSubShape)
|
aName = str(theSubShape)
|
||||||
geompy.addToStudyInFather(theShape,theSubShape,aName)
|
geompy.addToStudyInFather(theShape,theSubShape,aName)
|
||||||
|
|
||||||
theMesh.Compute()
|
theMesh.Compute()
|
||||||
aFilter = theMesh.GetFilter(theElemType, smesh.FT_BelongToGeom, theSubShape)
|
aFilter = smesh.GetFilter(theElemType, smesh.FT_BelongToGeom, theSubShape)
|
||||||
return aFilter.GetElementsId(theMesh.GetMesh())
|
return aFilter.GetElementsId(theMesh.GetMesh())
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user