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
Update copyrights
[modules/smesh.git]
/
doc
/
salome
/
examples
/
defining_hypotheses_ex14.py
diff --git
a/doc/salome/examples/defining_hypotheses_ex14.py
b/doc/salome/examples/defining_hypotheses_ex14.py
index 6c93e3d270f0f322d705f42b484da1c7ff66e49b..b0ef9f6af9b8f0054d65f6d70dd033ca5fc64fba 100644
(file)
--- a/
doc/salome/examples/defining_hypotheses_ex14.py
+++ b/
doc/salome/examples/defining_hypotheses_ex14.py
@@
-1,7
+1,14
@@
# Quadrangle Parameters example 1 (meshing a face with 3 edges)
# Quadrangle Parameters example 1 (meshing a face with 3 edges)
-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()
# Get 1/4 part from the disk face.
Box_1 = geompy.MakeBoxDXDYDZ(100, 100, 100)
# Get 1/4 part from the disk face.
Box_1 = geompy.MakeBoxDXDYDZ(100, 100, 100)