From 36af430a9d12fbd976c2b7628690fe7c131aa92c Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 14 Oct 2010 11:09:48 +0000 Subject: [PATCH] GetNodesId()0020833: EDF 1361 SMESH : Graphical Selection of the boundary faces in one clic + FT_CoplanarFaces, --- src/SMESH_SWIG/smeshDC.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: -- 2.39.2