X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=doc%2Fexamples%2Ffilters_ex41.py;fp=doc%2Fexamples%2Ffilters_ex41.py;h=30fec54523266752701d9ac776feb899f7d464cf;hp=0000000000000000000000000000000000000000;hb=66c7e4a32db7714e0215a1b1edce997759e5d573;hpb=af0dc2754afae71506ece0af14ace77df076612a diff --git a/doc/examples/filters_ex41.py b/doc/examples/filters_ex41.py new file mode 100644 index 000000000..30fec5452 --- /dev/null +++ b/doc/examples/filters_ex41.py @@ -0,0 +1,9 @@ +# Warping 3D + +# create mesh +from mechanic import * + +# get faces with warping angle = 2.0e-13 with tolerance 5.0e-14 +filter = smesh_builder.GetFilter(SMESH.VOLUME, SMESH.FT_Warping3D, "=", 2.0e-13, Tolerance=5.0e-14) +ids = mesh.GetIdsFromFilter(filter) +print("Number of volumes with warping = 2.0e-13 (tolerance 5.0e-14):", len(ids))