3 def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
4 aFilterMgr = smesh.CreateFilterManager()
5 aFilter = aFilterMgr.CreateFilter()
7 aLyingOnGeom = aFilterMgr.CreateLyingOnGeom()
8 aLyingOnGeom.SetGeom(theShape)
9 aLyingOnGeom.SetElementType(theElemType)
11 aFilter.SetPredicate(aLyingOnGeom)
12 anIds = aFilter.GetElementsId(theMesh)
14 aGroup = theMesh.CreateGroup(theElemType, theName)
18 from SMESH_test1 import *
20 smesh.Compute(mesh, box)
21 BuildGroupLyingOn(mesh, SMESH.FACE, "Group of faces lying on edge", edge )
23 salome.sg.updateObjBrowser(1);