6 smesh = SMESH_mechanic.smesh
7 mesh = SMESH_mechanic.mesh
8 salome = SMESH_mechanic.salome
10 # Criterion : MINIMUM ANGLE < 35.
13 aFilter = smesh.GetFilter(SMESH.FACE, SMESH.FT_MinimumAngle, SMESH.FT_LessThan, min_angle)
15 anIds = mesh.GetIdsFromFilter(aFilter)
18 print "Criterion: Minimum Angle < ", min_angle, " Nb = ", len(anIds)
20 for i in range(len(anIds)):
21 if j > 20: j = 1; print ""
28 aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Minimum Angle < " + `min_angle`)
32 salome.sg.updateObjBrowser()