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
'/usr/bin/env python' -> '/usr/bin/env python3'
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex17.py
diff --git
a/doc/salome/examples/quality_controls_ex17.py
b/doc/salome/examples/quality_controls_ex17.py
index 8f7f39c488929e89c2d06213bdde4d1eed27cc8b..a22f5e5ff1c6a50df1134c6867adda5b1ecfc64f 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex17.py
+++ b/
doc/salome/examples/quality_controls_ex17.py
@@
-15,18
+15,18
@@
aFilter = smesh.GetFilter(SMESH.FACE, SMESH.FT_Warping, SMESH.FT_MoreThan, wa_ma
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
-print
"Criterion: Warp > ", wa_margin, " Nb = ", len(anIds
)
+print
("Criterion: Warp > ", wa_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, "Warp > " +
`wa_margin`
)
+aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Warp > " +
repr(wa_margin)
)
aGroup.Add(anIds)
aGroup.Add(anIds)
-salome.sg.updateObjBrowser(
True
)
+salome.sg.updateObjBrowser()