3 # create mesh with volumes
6 # get volumes with aspect ratio < 2.0
7 filter = smesh_builder.GetFilter(SMESH.VOLUME, SMESH.FT_AspectRatio3D, SMESH.FT_LessThan, 2.0)
8 ids = mesh.GetIdsFromFilter(filter)
9 print("Number of volumes with aspect ratio < 2.0:", len(ids))