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 'V8_5_asterstudy'
[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..ad6dff1850cfef7d881d7dcc2d525d64e7ebc7f4 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,7
+10,7
@@
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)
anIds = mesh.GetIdsFromFilter(aFilter)
@@
-24,7
+25,7
@@
for i in range(len(anIds)):
print ""
# create a group
print ""
# create a group
-aGroup = mesh.CreateEmptyGroup(
smesh
.FACE, "Skew > " + `skew_margin`)
+aGroup = mesh.CreateEmptyGroup(
SMESH
.FACE, "Skew > " + `skew_margin`)
aGroup.Add(anIds)
aGroup.Add(anIds)
-salome.sg.updateObjBrowser(
1
)
+salome.sg.updateObjBrowser(
True
)