Salome HOME
0022108: EDF 2547 SMESH: Duplicate elements only
[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)