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