Salome HOME
Merge from V6_main 28/02/2013
[modules/smesh.git] / doc / salome / examples / filters_ex29.py
1 # Belong to Cylinder
2
3 # create mesh
4 from SMESH_mechanic import *
5 # get all faces which lie on the cylindrical face \a sub_face1
6 filter = smesh.GetFilter(smesh.FACE, smesh.FT_BelongToCylinder, sub_face1)
7 ids = mesh.GetIdsFromFilter(filter)
8 print "Number of faces which lie on the cylindrical surface sub_face1:", len(ids)