Salome HOME
bos #29171 Refactor testing procedure
[modules/smesh.git] / doc / examples / filters_ex19.py
1 # Borders at multi-connection 2D
2
3 # create mesh
4 from mechanic import *
5
6 # get faces which consist of edges belonging to 2 mesh elements
7 filter = smesh_builder.GetFilter(SMESH.FACE, SMESH.FT_MultiConnection2D, 2)
8 ids = mesh.GetIdsFromFilter(filter)
9 print("Number of faces consisting of edges belonging to 2 faces:", len(ids))