Salome HOME
Merge branch 'abn/configuration'
[modules/smesh.git] / doc / salome / examples / filters_ex29.py
index c256724b3dc5937a86ce711c0c53e214718d524f..b4a454ad72eb0ed3a2a8983031e2da958e4c9fa3 100644 (file)
@@ -3,6 +3,6 @@
 # create mesh
 from SMESH_mechanic import *
 # get all faces which lie on the cylindrical face \a sub_face1
-filter = smesh.GetFilter(smesh.FACE, smesh.FT_BelongToCylinder, sub_face1)
+filter = smesh.GetFilter(SMESH.FACE, SMESH.FT_BelongToCylinder, sub_face1)
 ids = mesh.GetIdsFromFilter(filter)
 print "Number of faces which lie on the cylindrical surface sub_face1:", len(ids)