Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[bos #23982] EDF 22984 - aspect ratio of hexa
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex11.py
diff --git
a/doc/salome/examples/quality_controls_ex11.py
b/doc/salome/examples/quality_controls_ex11.py
index dffd85ca249a9ecf622092755d5ac5c641817c33..7c00278dcf1e5f112a4c9d21c28936a838733356 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex11.py
+++ b/
doc/salome/examples/quality_controls_ex11.py
@@
-34,17
+34,17
@@
aFilter = smesh.GetFilter(SMESH.FACE, SMESH.FT_Length2D, SMESH.FT_MoreThan, leng
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
-print
"Criterion: Edges length 2D > ", length_margin, " Nb = ", len(anIds
)
+print
("Criterion: Edges length 2D > ", length_margin, " Nb = ", len(anIds)
)
j = 1
for i in range(len(anIds)):
j = 1
for i in range(len(anIds)):
- if j > 20: j = 1; print
""
- print
anIds[i],
+ if j > 20: j = 1; print
("")
+ print
(anIds[i], end=' ')
j = j + 1
pass
j = j + 1
pass
-print
""
+print
("")
# create a group
# create a group
-aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Faces with length 2D > " +
`length_margin`
)
+aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Faces with length 2D > " +
repr(length_margin)
)
aGroup.Add(anIds)
salome.sg.updateObjBrowser()
aGroup.Add(anIds)
salome.sg.updateObjBrowser()