]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
use '=', '<' and '>' as Compare arg of predicate BR_PLEIADES
authoreap <eap@opencascade.com>
Thu, 28 Dec 2006 08:47:03 +0000 (08:47 +0000)
committereap <eap@opencascade.com>
Thu, 28 Dec 2006 08:47:03 +0000 (08:47 +0000)
src/SMESH_SWIG/smesh.py

index 1d73edf00b8309b6919699be58c1ca4e46b436e9..a8a21aaf607863ee329a6ab7d71c356af9c5dda6 100644 (file)
@@ -241,6 +241,12 @@ def GetCriterion(elementType,
         
     if Compare in [FT_LessThan, FT_MoreThan, FT_EqualTo]:
         aCriterion.Compare = EnumToLong(Compare)
+    elif Compare == "=" or Compare == "==":
+        aCriterion.Compare = EnumToLong(FT_EqualTo)
+    elif Compare == "<":
+        aCriterion.Compare = EnumToLong(FT_LessThan)
+    elif Compare == ">":
+        aCriterion.Compare = EnumToLong(FT_MoreThan)
     else:
         aCriterion.Compare = EnumToLong(FT_EqualTo)
         aTreshold = Compare