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 'occ/shaper2smesh'
[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 d2b98f1cc695fbed5ab83aff66c6e793bf1e403b..d998447184cc5e6efb400c60ddd83273584d5ac9 100644
(file)
--- a/
doc/salome/examples/defining_hypotheses_ex05.py
+++ b/
doc/salome/examples/defining_hypotheses_ex05.py
@@
-4,11
+4,11
@@
import salome
salome.salome_init()
import GEOM
from salome.geom import geomBuilder
salome.salome_init()
import GEOM
from salome.geom import geomBuilder
-geompy = geomBuilder.New(
salome.myStudy
)
+geompy = geomBuilder.New()
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
-smesh = smeshBuilder.New(
salome.myStudy
)
+smesh = smeshBuilder.New()
# create a face
px = geompy.MakeVertex(100., 0. , 0. )
# create a face
px = geompy.MakeVertex(100., 0. , 0. )
@@
-37,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