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
'/usr/bin/env python' -> '/usr/bin/env python3'
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex12.py
diff --git
a/doc/salome/examples/quality_controls_ex12.py
b/doc/salome/examples/quality_controls_ex12.py
index 8e81e5130aada8f4b5da561b00402a15cc593266..adedda57db5b67a462ca8f674b8304f6bcaeb43c 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex12.py
+++ b/
doc/salome/examples/quality_controls_ex12.py
@@
-5,11
+5,11
@@
import salome
salome.salome_init()
import GEOM
from salome.geom import geomBuilder
salome.salome_init()
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 a compound of two glued boxes
box1 = geompy.MakeBox(0., 0., 0., 20., 20., 15.)
# create a compound of two glued boxes
box1 = geompy.MakeBox(0., 0., 0., 20., 20., 15.)
@@
-47,4
+47,4
@@
print("")
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Borders at multi-connection 2D = " + repr(nb_conn))
aGroup.Add(anIds)
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Borders at multi-connection 2D = " + repr(nb_conn))
aGroup.Add(anIds)
-salome.sg.updateObjBrowser(
True
)
+salome.sg.updateObjBrowser()