Salome HOME
Merge branch 'V9_9_BR'
[modules/smesh.git] / doc / salome / examples / filters_ex24.py
index bab47e2a7f5da58fce099f495d322428196db7cc..ffe9226915d2cdda61e0c5517bea0133e8a28e82 100644 (file)
@@ -5,8 +5,8 @@ from SMESH_mechanic import *
 mesh.Tetrahedron()
 mesh.Compute()
 # remove some volumes to have volumes with bare borders
-mesh.RemoveElements( mesh.GetElementsByType(VOLUME)[0:5] )
+mesh.RemoveElements(mesh.GetElementsByType(SMESH.VOLUME)[0:5])
 # get all volumes with bare borders
 filter = smesh.GetFilter(SMESH.VOLUME, SMESH.FT_BareBorderVolume)
 ids = mesh.GetIdsFromFilter(filter)
-print "Volumes with bare borders:", ids
+print("Volumes with bare borders:", ids)