6 smesh = SMESH_mechanic.smesh
7 mesh = SMESH_mechanic.mesh
8 salome = SMESH_mechanic.salome
10 # Criterion : ELEMENT DIAMETER 2D > 10
13 aFilter = smesh.GetFilter(SMESH.FACE, SMESH.FT_MaxElementLength2D, SMESH.FT_MoreThan, mel_2d_margin)
15 anIds = mesh.GetIdsFromFilter(aFilter)
18 print "Criterion: Element Diameter 2D Ratio > ", mel_2d_margin, " Nb = ", len(anIds)
20 for i in range(len(anIds)):
21 if j > 20: j = 1; print ""
28 aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Element Diameter 2D > " + `mel_2d_margin`)
31 salome.sg.updateObjBrowser(1)