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 branch 'master' into gni/evolution
[modules/smesh.git]
/
doc
/
salome
/
examples
/
defining_hypotheses_ex05.py
diff --git
a/doc/salome/examples/defining_hypotheses_ex05.py
b/doc/salome/examples/defining_hypotheses_ex05.py
index fcf03d0d65d7a7c6febf9c2eac6d5cbe11d3f1e9..d998447184cc5e6efb400c60ddd83273584d5ac9 100644
(file)
--- a/
doc/salome/examples/defining_hypotheses_ex05.py
+++ b/
doc/salome/examples/defining_hypotheses_ex05.py
@@
-1,8
+1,14
@@
# Maximum Element Area
# Maximum Element Area
-import geompy
-import smesh
-import salome
+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()
# create a face
px = geompy.MakeVertex(100., 0. , 0. )
# create a face
px = geompy.MakeVertex(100., 0. , 0. )
@@
-31,7
+37,7
@@
algo.NumberOfSegments(20)
# assign triangulation algorithm
algo = tria_mesh.Triangle()
# assign triangulation algorithm
algo = tria_mesh.Triangle()
-# a
pply "Max Element Area" hypothesis to each triangle
+# a
ssign "Max Element Area" hypothesis
algo.MaxElementArea(100)
# compute the mesh
algo.MaxElementArea(100)
# compute the mesh