Back to index

salome-smesh  6.5.0
Functions | Variables
SMESH_BelongToGeom Namespace Reference

Functions

def CheckBelongToGeomFilterOld
 Old style.
def CheckBelongToGeomFilter
 Current style.

Variables

 anElemType = smesh.FACE;
tuple anIds = CheckBelongToGeomFilter(mesh,box,box,anElemType)

Function Documentation

def SMESH_BelongToGeom.CheckBelongToGeomFilter (   theMesh,
  theShape,
  theSubShape,
  theElemType 
)

Current style.

Definition at line 47 of file SMESH_BelongToGeom.py.

00047 
00048 def CheckBelongToGeomFilter(theMesh, theShape, theSubShape, theElemType):
00049     import geompy
00050     import smesh
00051     if theShape != theSubShape:
00052         aName = str(theSubShape)
00053         geompy.addToStudyInFather(theShape,theSubShape,aName)
00054 
00055     theMesh.Compute()
00056     aFilter = smesh.GetFilter(theElemType, smesh.FT_BelongToGeom, theSubShape)
00057     return aFilter.GetElementsId(theMesh.GetMesh())
00058     

def SMESH_BelongToGeom.CheckBelongToGeomFilterOld (   theMeshGen,
  theMesh,
  theShape,
  theSubShape,
  theElemType 
)

Old style.

Definition at line 27 of file SMESH_BelongToGeom.py.

00027 
00028 def CheckBelongToGeomFilterOld(theMeshGen, theMesh, theShape, theSubShape, theElemType):
00029     import geompy
00030     if theShape != theSubShape:
00031         aName = str(theSubShape)
00032         geompy.addToStudyInFather(theShape,theSubShape,aName)
00033 
00034     theMeshGen.Compute(theMesh,theShape)
00035 
00036     aFilterMgr = theMeshGen.CreateFilterManager()
00037     aFilter = aFilterMgr.CreateFilter()
00038    
00039     aBelongToGeom = aFilterMgr.CreateBelongToGeom()
00040     aBelongToGeom.SetGeom(theSubShape)
00041     aBelongToGeom.SetElementType(theElemType)
00042     
00043     aFilter.SetPredicate(aBelongToGeom)
00044     aFilterMgr.UnRegister()
00045     return aFilter.GetElementsId(theMesh)


Variable Documentation

Definition at line 59 of file SMESH_BelongToGeom.py.

Definition at line 62 of file SMESH_BelongToGeom.py.