Salome HOME
0023591: [EDF] Add test to check meshing plug-ins to SMESH module
[modules/smesh.git] / doc / salome / examples / filters_ex24.py
1 # Bare border volumes
2
3 # create mesh
4 from SMESH_mechanic import *
5 mesh.Tetrahedron()
6 mesh.Compute()
7 # remove some volumes to have volumes with bare borders
8 mesh.RemoveElements(mesh.GetElementsByType(SMESH.VOLUME)[0:5])
9 # get all volumes with bare borders
10 filter = smesh.GetFilter(SMESH.VOLUME, SMESH.FT_BareBorderVolume)
11 ids = mesh.GetIdsFromFilter(filter)
12 print("Volumes with bare borders:", ids)