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 from BR_plugins_pbyacs 03/04/2013
[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..50f87fbf7413089b90523934b1ae1930ae0fc18c 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,7
+10,7
@@
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)
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, "Taper > " + `taper_margin`)
+aGroup = mesh.CreateEmptyGroup(
SMESH
.FACE, "Taper > " + `taper_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)