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
Precise doc on sub-mesh priority
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex21.py
diff --git
a/doc/salome/examples/quality_controls_ex21.py
b/doc/salome/examples/quality_controls_ex21.py
index e64e2fb5556b02c98f1de5cba1929f290bb3a50e..683e314b74ea305812536aaf2088ce274cac8a25 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex21.py
+++ b/
doc/salome/examples/quality_controls_ex21.py
@@
-15,18
+15,18
@@
aFilter = smesh.GetFilter(SMESH.VOLUME, SMESH.FT_Volume3D, SMESH.FT_LessThan, vo
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
-print
""
-print
"Criterion: Volume < ", volume_margin, " Nb = ", len(anIds
)
+print
("")
+print
("Criterion: Volume < ", volume_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.VOLUME, "Volume < " +
`volume_margin`
)
+aGroup = mesh.CreateEmptyGroup(SMESH.VOLUME, "Volume < " +
repr(volume_margin)
)
aGroup.Add(anIds)
aGroup.Add(anIds)