Salome HOME
bos #29171 Refactor testing procedure
[modules/smesh.git] / doc / examples / filters_ex24.py
1 # Bare border volumes
2
3 # create mesh
4 from mechanic import *
5
6 # remove some volumes to have volumes with bare borders
7 mesh.RemoveElements(mesh.GetElementsByType(SMESH.VOLUME)[0:5])
8 # get all volumes with bare borders
9 filter = smesh_builder.GetFilter(SMESH.VOLUME, SMESH.FT_BareBorderVolume)
10 ids = mesh.GetIdsFromFilter(filter)
11 print("Volumes with bare borders:", ids)