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 .py extension to tests filenames
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex17.py
diff --git
a/doc/salome/examples/quality_controls_ex17.py
b/doc/salome/examples/quality_controls_ex17.py
index fcc596c75b67c813b671a3dfda1f1de755702002..75566f416fa2b2c6e51893c11ba4d2dc1d9a2192 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex17.py
+++ b/
doc/salome/examples/quality_controls_ex17.py
@@
-1,6
+1,7
@@
# Warping
import SMESH_mechanic
# Warping
import SMESH_mechanic
+import SMESH
smesh = SMESH_mechanic.smesh
mesh = SMESH_mechanic.mesh
smesh = SMESH_mechanic.smesh
mesh = SMESH_mechanic.mesh
@@
-9,7
+10,7
@@
salome = SMESH_mechanic.salome
# Criterion : WARP ANGLE > 1e-15
wa_margin = 1e-15
# Criterion : WARP ANGLE > 1e-15
wa_margin = 1e-15
-aFilter = smesh.GetFilter(
smesh.FACE, smesh.FT_Warping, smesh
.FT_MoreThan, wa_margin)
+aFilter = smesh.GetFilter(
SMESH.FACE, SMESH.FT_Warping, SMESH
.FT_MoreThan, wa_margin)
anIds = mesh.GetIdsFromFilter(aFilter)
anIds = mesh.GetIdsFromFilter(aFilter)
@@
-24,8
+25,8
@@
for i in range(len(anIds)):
print ""
# create a group
print ""
# create a group
-aGroup = mesh.CreateEmptyGroup(
smesh
.FACE, "Warp > " + `wa_margin`)
+aGroup = mesh.CreateEmptyGroup(
SMESH
.FACE, "Warp > " + `wa_margin`)
aGroup.Add(anIds)
aGroup.Add(anIds)
-salome.sg.updateObjBrowser(
1)
+salome.sg.updateObjBrowser(
)