5 smesh = SMESH_mechanic.smesh
6 mesh = SMESH_mechanic.mesh
7 salome = SMESH_mechanic.salome
9 # Criterion : ASPECT RATIO > 1.8
12 aFilter = smesh.GetFilter(smesh.FACE, smesh.FT_AspectRatio, smesh.FT_MoreThan, ar_margin)
14 anIds = mesh.GetIdsFromFilter(aFilter)
17 print "Criterion: Aspect Ratio > ", ar_margin, " Nb = ", len(anIds)
19 for i in range(len(anIds)):
20 if j > 20: j = 1; print ""
27 aGroup = mesh.CreateEmptyGroup(smesh.FACE, "Aspect Ratio > " + `ar_margin`)
30 salome.sg.updateObjBrowser(1)