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
Fix regressions
[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..3f55844cff79e68af6171aa669e98dcff52a7b0b 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(salome.myStudy)
+
+import SMESH, SALOMEDS
+from salome.smesh import smeshBuilder
+smesh = smeshBuilder.New(salome.myStudy)
# 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)