]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
GetNodesId()0020833: EDF 1361 SMESH : Graphical Selection of the boundary faces in...
authoreap <eap@opencascade.com>
Thu, 14 Oct 2010 11:09:48 +0000 (11:09 +0000)
committereap <eap@opencascade.com>
Thu, 14 Oct 2010 11:09:48 +0000 (11:09 +0000)
+    FT_CoplanarFaces,

src/SMESH_SWIG/smeshDC.py

index e81b4b75f131122c277f7e3e67838bdd9c65fd70..14fa2b714ca0bdd020b0a06eec85a1d2a26df75b 100644 (file)
@@ -773,6 +773,18 @@ class smeshDC(SMESH._objref_SMESH_Gen):
             else:
                 print "Error: The treshold should be a string."
                 return None
+        elif CritType == FT_CoplanarFaces:
+            # Checks the treshold
+            if isinstance(aTreshold, int):
+                aCriterion.ThresholdID = "%s"%aTreshold
+            elif isinstance(aTreshold, str):
+                ID = int(aTreshold)
+                if ID < 1:
+                    raise ValueError, "Invalid ID of mesh face: '%s'"%aTreshold
+                aCriterion.ThresholdID = aTreshold
+            else:
+                raise ValueError,\
+                      "The treshold should be an ID of mesh face and not '%s'"%aTreshold
         elif CritType == FT_ElemGeomType:
             # Checks the treshold
             try: