Salome HOME
bos #29171 Refactor testing procedure
[modules/smesh.git] / doc / examples / filters_ex19.py
diff --git a/doc/examples/filters_ex19.py b/doc/examples/filters_ex19.py
new file mode 100644 (file)
index 0000000..b55a08a
--- /dev/null
@@ -0,0 +1,9 @@
+# Borders at multi-connection 2D
+
+# create mesh
+from mechanic import *
+
+# get faces which consist of edges belonging to 2 mesh elements
+filter = smesh_builder.GetFilter(SMESH.FACE, SMESH.FT_MultiConnection2D, 2)
+ids = mesh.GetIdsFromFilter(filter)
+print("Number of faces consisting of edges belonging to 2 faces:", len(ids))