Salome HOME
bos #29171 Refactor testing procedure
[modules/smesh.git] / doc / examples / filters_ex25.py
diff --git a/doc/examples/filters_ex25.py b/doc/examples/filters_ex25.py
new file mode 100644 (file)
index 0000000..2cae3e1
--- /dev/null
@@ -0,0 +1,9 @@
+# Over-constrained volumes
+
+# create mesh
+from mechanic import *
+
+# get all over-constrained volumes
+filter = smesh_builder.GetFilter(SMESH.VOLUME, SMESH.FT_OverConstrainedVolume)
+ids = mesh.GetIdsFromFilter(filter)
+print("Over-constrained volumes:", ids)