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
23305: [EDF 10301] Extrusion with scaling
[modules/smesh.git]
/
doc
/
salome
/
examples
/
defining_hypotheses_ex09.py
diff --git
a/doc/salome/examples/defining_hypotheses_ex09.py
b/doc/salome/examples/defining_hypotheses_ex09.py
index 9956e4ba506208770f493f7247db08a2a45595d5..8490a4b8c753ba679727cab2ec80da62818640b8 100644
(file)
--- a/
doc/salome/examples/defining_hypotheses_ex09.py
+++ b/
doc/salome/examples/defining_hypotheses_ex09.py
@@
-1,13
+1,20
@@
# Defining Meshing Algorithms
# Defining Meshing Algorithms
-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 box
box = geompy.MakeBoxDXDYDZ(10., 10., 10.)
geompy.addToStudy(box, "Box")
# create a box
box = geompy.MakeBoxDXDYDZ(10., 10., 10.)
geompy.addToStudy(box, "Box")
-#
1.
Create a hexahedral mesh on the box
+# Create a hexahedral mesh on the box
hexa = smesh.Mesh(box, "Box : hexahedrical mesh")
# create a Regular 1D algorithm for edges
hexa = smesh.Mesh(box, "Box : hexahedrical mesh")
# create a Regular 1D algorithm for edges