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
Merge Python 3 porting.
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex01.py
diff --git
a/doc/salome/examples/quality_controls_ex01.py
b/doc/salome/examples/quality_controls_ex01.py
index 8b869e67c389e558e6f5d56d67263033a3e2f2cb..30648a3ce6fcd3aab297c29f5743fa7be0c8f991 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex01.py
+++ b/
doc/salome/examples/quality_controls_ex01.py
@@
-31,14
+31,14
@@
aFilter = smesh.GetFilter(SMESH.EDGE, SMESH.FT_FreeBorders)
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
-print
"Criterion: Free borders Nb = ", len(anIds
)
+print
("Criterion: Free borders 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
aGroup = mesh.GetMesh().CreateGroup(SMESH.EDGE, "Free borders")
# create a group
aGroup = mesh.GetMesh().CreateGroup(SMESH.EDGE, "Free borders")