Salome HOME
Redesign SALOME documentation
[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(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