mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 18:54:18 +05:00
GetNodesId()0020833: EDF 1361 SMESH : Graphical Selection of the boundary faces in one clic
+ FT_CoplanarFaces,
This commit is contained in:
parent
2a4db777c4
commit
36af430a9d
@ -773,6 +773,18 @@ class smeshDC(SMESH._objref_SMESH_Gen):
|
|||||||
else:
|
else:
|
||||||
print "Error: The treshold should be a string."
|
print "Error: The treshold should be a string."
|
||||||
return None
|
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:
|
elif CritType == FT_ElemGeomType:
|
||||||
# Checks the treshold
|
# Checks the treshold
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user