From: eap Date: Thu, 14 Oct 2010 11:09:48 +0000 (+0000) Subject: GetNodesId()0020833: EDF 1361 SMESH : Graphical Selection of the boundary faces in... X-Git-Tag: V5_1_5rc1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=36af430a9d12fbd976c2b7628690fe7c131aa92c;p=modules%2Fsmesh.git GetNodesId()0020833: EDF 1361 SMESH : Graphical Selection of the boundary faces in one clic + FT_CoplanarFaces, --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index e81b4b75f..14fa2b714 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -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: