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 tag 'V8_3_0a2' into ngr/python3_dev
[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 a20f38f7b23f110337b60e3327838d979da53c50..e0e59b3cd7660d9490b5df8745cfc27dd2192764 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex16.py
+++ b/
doc/salome/examples/quality_controls_ex16.py
@@
-1,6
+1,7
@@
# Minimum Angle
import SMESH_mechanic
# Minimum Angle
import SMESH_mechanic
+import SMESH
smesh = SMESH_mechanic.smesh
mesh = SMESH_mechanic.mesh
smesh = SMESH_mechanic.smesh
mesh = SMESH_mechanic.mesh
@@
-9,23
+10,23
@@
salome = SMESH_mechanic.salome
# Criterion : MINIMUM ANGLE < 35.
min_angle = 35.
# Criterion : MINIMUM ANGLE < 35.
min_angle = 35.
-aFilter = smesh.GetFilter(
smesh.FACE, smesh.FT_MinimumAngle, smesh
.FT_LessThan, min_angle)
+aFilter = smesh.GetFilter(
SMESH.FACE, SMESH.FT_MinimumAngle, SMESH
.FT_LessThan, min_angle)
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)
-salome.sg.updateObjBrowser(
1
)
+salome.sg.updateObjBrowser(
True
)