Salome HOME
bos #29171 Refactor testing procedure
[modules/smesh.git] / doc / examples / filters_ex03.py
diff --git a/doc/examples/filters_ex03.py b/doc/examples/filters_ex03.py
new file mode 100644 (file)
index 0000000..c10c1eb
--- /dev/null
@@ -0,0 +1,9 @@
+# Warping angle
+
+# create mesh
+from mechanic import *
+
+# get faces with warping angle = 2.0e-13 with tolerance 5.0e-14
+filter = smesh_builder.GetFilter(SMESH.FACE, SMESH.FT_Warping, "=", 2.0e-13, Tolerance=5.0e-14)
+ids = mesh.GetIdsFromFilter(filter)
+print("Number of faces with warping angle = 2.0e-13 (tolerance 5.0e-14):", len(ids))