Salome HOME
Merge from V6_main 28/02/2013
[modules/smesh.git] / doc / salome / examples / filters_ex01.py
1 # Aspect ratio
2
3 # create mesh
4 from SMESH_mechanic import *
5 # get faces with aspect ratio > 6.5
6 filter = smesh.GetFilter(smesh.FACE, smesh.FT_AspectRatio, smesh.FT_MoreThan, 6.5)
7 ids = mesh.GetIdsFromFilter(filter)
8 print "Number of faces with aspect ratio > 6.5:", len(ids)