Version: 6.3.1
Functions | Variables

Package SMESH_BelongToGeom

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.

00048                                                                         :
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.

00028                                                                                        :
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

tuple SMESH_BelongToGeom.anIds = CheckBelongToGeomFilter(mesh,box,box,anElemType)
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS