Salome HOME
PR: synchro V6_main tag mergeto_V7_main_11Feb13
[modules/smesh.git] / doc / salome / examples / filters_ex02.py
1 # Aspect ratio 3D
2
3 # create mesh with volumes
4 from SMESH_mechanic import *
5 mesh.Tetrahedron()
6 mesh.Compute()
7 # get volumes with aspect ratio < 2.0
8 filter = smesh.GetFilter(smesh.VOLUME, smesh.FT_AspectRatio3D, smesh.FT_LessThan, 2.0)
9 ids = mesh.GetIdsFromFilter(filter)
10 print "Number of volumes with aspect ratio < 2.0:", len(ids)