Salome HOME
0023591: [EDF] Add test to check meshing plug-ins to SMESH module
[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))