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 branch 'V9_9_BR'
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex18.py
diff --git
a/doc/salome/examples/quality_controls_ex18.py
b/doc/salome/examples/quality_controls_ex18.py
index 42e4b30e8aa2c6635edd8348cffea3d8a109fb2c..9f6f7a3f333829dfd0e9f80f205ea364d7cc0a83 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex18.py
+++ b/
doc/salome/examples/quality_controls_ex18.py
@@
-1,6
+1,7
@@
# Skew
import SMESH_mechanic
# Skew
import SMESH_mechanic
+import SMESH
smesh = SMESH_mechanic.smesh
mesh = SMESH_mechanic.mesh
smesh = SMESH_mechanic.smesh
mesh = SMESH_mechanic.mesh
@@
-9,22
+10,22
@@
salome = SMESH_mechanic.salome
# Criterion : Skew > 38.
skew_margin = 38.
# Criterion : Skew > 38.
skew_margin = 38.
-aFilter = smesh.GetFilter(
smesh.FACE, smesh.FT_Skew, smesh
.FT_MoreThan, skew_margin)
+aFilter = smesh.GetFilter(
SMESH.FACE, SMESH.FT_Skew, SMESH
.FT_MoreThan, skew_margin)
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
-print
"Criterion: Skew > ", skew_margin, " Nb = ", len(anIds
)
+print
("Criterion: Skew > ", skew_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, "Skew > " + `skew_margin`
)
+aGroup = mesh.CreateEmptyGroup(
SMESH.FACE, "Skew > " + repr(skew_margin)
)
aGroup.Add(anIds)
aGroup.Add(anIds)
-salome.sg.updateObjBrowser(
1
)
+salome.sg.updateObjBrowser()