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
Add a new test for sessionless mode to check that creating a mesh on a shaperstudy...
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex14.py
diff --git
a/doc/salome/examples/quality_controls_ex14.py
b/doc/salome/examples/quality_controls_ex14.py
index 379affdbdda62973aadd30804739c1c97eaf023a..ab939bae8c1cd16ae425cd0c09a8117107390405 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex14.py
+++ b/
doc/salome/examples/quality_controls_ex14.py
@@
-1,6
+1,7
@@
# Taper
import SMESH_mechanic
# Taper
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 : Taper > 3e-20
taper_margin = 3e-20
# Criterion : Taper > 3e-20
taper_margin = 3e-20
-aFilter = smesh.GetFilter(
smesh.FACE, smesh.FT_Taper, smesh
.FT_MoreThan, taper_margin)
+aFilter = smesh.GetFilter(
SMESH.FACE, SMESH.FT_Taper, SMESH
.FT_MoreThan, taper_margin)
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
-print
"Criterion: Taper > ", taper_margin, " Nb = ", len(anIds
)
+print
("Criterion: Taper > ", taper_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, "Taper > " + `taper_margin`
)
+aGroup = mesh.CreateEmptyGroup(
SMESH.FACE, "Taper > " + repr(taper_margin)
)
aGroup.Add(anIds)
aGroup.Add(anIds)
-salome.sg.updateObjBrowser(
1
)
+salome.sg.updateObjBrowser()