X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fexamples%2Ffilters_ex26.py;fp=doc%2Fexamples%2Ffilters_ex26.py;h=71bfc4b15f4c56c755cd2cdce16040aafae9faab;hb=4cf07a14111e98e8889620ee7e6371574c31a50c;hp=0000000000000000000000000000000000000000;hpb=d9f4b53e489dd5857db264ede6acded7b076c9f1;p=modules%2Fsmesh.git diff --git a/doc/examples/filters_ex26.py b/doc/examples/filters_ex26.py new file mode 100644 index 000000000..71bfc4b15 --- /dev/null +++ b/doc/examples/filters_ex26.py @@ -0,0 +1,9 @@ +# Belong to Geom + +# create mesh +from mechanic import * + +# get all faces which nodes lie on the face sub_face3 +filter = smesh_builder.GetFilter(SMESH.FACE, SMESH.FT_BelongToGeom, sub_face3) +ids = mesh.GetIdsFromFilter(filter) +print("Number of faces which nodes lie on sub_face3:", len(ids))