Salome HOME
bos #29171 Refactor testing procedure
[modules/smesh.git] / doc / examples / filters_ex26.py
diff --git a/doc/examples/filters_ex26.py b/doc/examples/filters_ex26.py
new file mode 100644 (file)
index 0000000..71bfc4b
--- /dev/null
@@ -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))