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 tests for connection with SHAPERSTUDY
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex07.py
diff --git
a/doc/salome/examples/quality_controls_ex07.py
b/doc/salome/examples/quality_controls_ex07.py
index a2be029325d6442875bfeb1ec6e022b4ea6553aa..e85b27d73c86131637c50a359b4a6969c6457a09 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex07.py
+++ b/
doc/salome/examples/quality_controls_ex07.py
@@
-1,7
+1,17
@@
# Bare border faces
# Bare border faces
-from smesh import *
-SetCurrentStudy(salome.myStudy)
+
+import salome
+salome.salome_init()
+import GEOM
+from salome.geom import geomBuilder
+geompy = geomBuilder.New()
+
+import SMESH, SALOMEDS
+from salome.smesh import smeshBuilder
+smesh = smeshBuilder.New()
+import salome_notebook
+
box = geompy.MakeBoxDXDYDZ(100, 100, 100)
geompy.addToStudy( box, "box" )
box = geompy.MakeBoxDXDYDZ(100, 100, 100)
geompy.addToStudy( box, "box" )
@@
-12,8
+22,8
@@
mesh.Quadrangle()
mesh.Compute()
# remove 2 faces
mesh.Compute()
# remove 2 faces
-allFaces = mesh.GetElementsByType(FACE)
+allFaces = mesh.GetElementsByType(
SMESH.
FACE)
mesh.RemoveElements( allFaces[0:2])
mesh.RemoveElements( allFaces[0:2])
-bareGroup = mesh.MakeGroup("bare faces",
FACE,
FT_BareBorderFace)
+bareGroup = mesh.MakeGroup("bare faces",
SMESH.FACE, SMESH.
FT_BareBorderFace)
assert(bareGroup.Size() == 3)
assert(bareGroup.Size() == 3)