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 : VOLUME < 7.
13 aFilter = smesh.GetFilter(SMESH.VOLUME, SMESH.FT_Volume3D, SMESH.FT_LessThan, volume_margin)
15 anIds = mesh.GetIdsFromFilter(aFilter)
19 print "Criterion: Volume < ", volume_margin, " Nb = ", len(anIds)
21 for i in range(len(anIds)):
22 if j > 20: j = 1; print ""
29 aGroup = mesh.CreateEmptyGroup(SMESH.VOLUME, "Volume < " + `volume_margin`)
33 salome.sg.updateObjBrowser(1)