Salome HOME
23440: [CEA 2093] : Merge nodes failed (test case bug_1796_mergenodes)
[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)