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
Switch to SSL mode for tests : naive approach
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex11.py
diff --git
a/doc/salome/examples/quality_controls_ex11.py
b/doc/salome/examples/quality_controls_ex11.py
index d108ef6d24bc24b5774b149ac0b33d271bebd246..fbc2b7c5f8405019607da8f561825eeeca44d8b8 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex11.py
+++ b/
doc/salome/examples/quality_controls_ex11.py
@@
-2,14
+2,14
@@
import salome
import salome
-salome.salome_init()
+salome.salome_init
_without_session
()
import GEOM
from salome.geom import geomBuilder
import GEOM
from salome.geom import geomBuilder
-geompy = geomBuilder.New(
salome.myStudy
)
+geompy = geomBuilder.New()
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
-smesh = smeshBuilder.New(
salome.myStudy
)
+smesh = smeshBuilder.New()
# create open shell: a box without one plane
box = geompy.MakeBox(0., 0., 0., 20., 20., 15.)
# create open shell: a box without one plane
box = geompy.MakeBox(0., 0., 0., 20., 20., 15.)
@@
-47,4
+47,4
@@
print("")
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Faces with length 2D > " + repr(length_margin))
aGroup.Add(anIds)
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Faces with length 2D > " + repr(length_margin))
aGroup.Add(anIds)
-salome.sg.updateObjBrowser(
True
)
+salome.sg.updateObjBrowser()