3 import SMESH_mechanic_tetra
6 smesh = SMESH_mechanic_tetra.smesh
7 mesh = SMESH_mechanic_tetra.mesh
8 salome = SMESH_mechanic_tetra.salome
10 # Criterion : ASPECT RATIO 3D > 4.5
13 aFilter = smesh.GetFilter(SMESH.VOLUME, SMESH.FT_AspectRatio3D, SMESH.FT_MoreThan, ar_margin)
15 anIds = mesh.GetIdsFromFilter(aFilter)
18 print "Criterion: Aspect Ratio 3D > ", ar_margin, " Nb = ", len(anIds)
20 for i in range(len(anIds)):
21 if j > 20: j = 1; print ""
28 aGroup = mesh.CreateEmptyGroup(SMESH.VOLUME, "Aspect Ratio 3D > " + `ar_margin`)
32 salome.sg.updateObjBrowser()