Version: 6.3.1
Functions

Package SMESH_GroupLyingOnGeom

Functions

def BuildGroupLyingOn

Function Documentation

def SMESH_GroupLyingOnGeom.BuildGroupLyingOn (   theMesh,
  theElemType,
  theName,
  theShape 
)

Definition at line 29 of file SMESH_GroupLyingOnGeom.py.

00030                                                               :
00031     aFilterMgr = smesh.smesh.CreateFilterManager()
00032     aFilter = aFilterMgr.CreateFilter()
00033    
00034     aLyingOnGeom = aFilterMgr.CreateLyingOnGeom()
00035     aLyingOnGeom.SetGeom(theShape)
00036     aLyingOnGeom.SetElementType(theElemType)
00037     
00038     aFilter.SetPredicate(aLyingOnGeom)
00039     anIds = aFilter.GetElementsId(theMesh)
00040     aFilterMgr.UnRegister()
00041 
00042     aGroup = theMesh.CreateGroup(theElemType, theName)
00043     aGroup.Add(anIds)
00044 
#Example
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