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
Merge from BR_plugins_pbyacs 03/04/2013
[modules/smesh.git]
/
doc
/
salome
/
examples
/
defining_hypotheses_ex02.py
diff --git
a/doc/salome/examples/defining_hypotheses_ex02.py
b/doc/salome/examples/defining_hypotheses_ex02.py
index b0726a1ca0bb5246ef5418c4f17272bd0cc9cae2..3662d5632b1bc457caa14acb2c4e3c1af77a8b65 100644
(file)
--- a/
doc/salome/examples/defining_hypotheses_ex02.py
+++ b/
doc/salome/examples/defining_hypotheses_ex02.py
@@
-1,7
+1,14
@@
# Deflection 1D and Number of Segments
# Deflection 1D and Number of Segments
-import geompy
-import smesh
+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)
# create a face from arc and straight segment
px = geompy.MakeVertex(100., 0. , 0. )
# create a face from arc and straight segment
px = geompy.MakeVertex(100., 0. , 0. )