Salome HOME
[bos #32739][CEA] 3D warp
[modules/smesh.git] / doc / examples / filters_ex41.py
1 # Warping 3D
2
3 # create mesh
4 from mechanic import *
5
6 # get faces with warping angle = 2.0e-13 with tolerance 5.0e-14
7 filter = smesh_builder.GetFilter(SMESH.VOLUME, SMESH.FT_Warping3D, "=", 2.0e-13, Tolerance=5.0e-14)
8 ids = mesh.GetIdsFromFilter(filter)
9 print("Number of volumes with warping = 2.0e-13 (tolerance 5.0e-14):", len(ids))