Salome HOME
bos #32738 [CEA] Scaled Jacobian quality mesh measure for volumetric elements.
[modules/smesh.git] / doc / examples / filters_ex29.py
1 # Belong to Cylinder
2
3 # create mesh
4 from mechanic import *
5
6 # get all faces which lie on the cylindrical face \a sub_face1
7 filter = smesh_builder.GetFilter(SMESH.FACE, SMESH.FT_BelongToCylinder, sub_face1)
8 ids = mesh.GetIdsFromFilter(filter)
9 print("Number of faces which lie on the cylindrical surface sub_face1:", len(ids))