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
[PY3] 2to3 results
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex16.py
diff --git
a/doc/salome/examples/quality_controls_ex16.py
b/doc/salome/examples/quality_controls_ex16.py
index e80e91f48c9f0e25f8be9fa8068b7d52a9731644..e0e59b3cd7660d9490b5df8745cfc27dd2192764 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex16.py
+++ b/
doc/salome/examples/quality_controls_ex16.py
@@
-15,17
+15,17
@@
aFilter = smesh.GetFilter(SMESH.FACE, SMESH.FT_MinimumAngle, SMESH.FT_LessThan,
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
-print
"Criterion: Minimum Angle < ", min_angle, " Nb = ", len(anIds
)
+print
("Criterion: Minimum Angle < ", min_angle, " 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, "Minimum Angle < " +
`min_angle`
)
+aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Minimum Angle < " +
repr(min_angle)
)
aGroup.Add(anIds)
aGroup.Add(anIds)