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
[tuleap26358] : non regression test
[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..c5a5ce205706caa382e9592b21d67a8d5fc84127 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 and Number of Segments
-import geompy
-import smesh
+import salome
+salome.salome_init_without_session()
+import GEOM
+from salome.geom import geomBuilder
+geompy = geomBuilder.New()
+
+import SMESH, SALOMEDS
+from salome.smesh import smeshBuilder
+smesh = smeshBuilder.New()
# 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. )