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
52976: Find Elements by Point - All does not find Ball element
[modules/smesh.git]
/
doc
/
salome
/
examples
/
defining_hypotheses_ex07.py
diff --git
a/doc/salome/examples/defining_hypotheses_ex07.py
b/doc/salome/examples/defining_hypotheses_ex07.py
index c2dc2cfb080f4c8c935de053f65422220e92216b..1630a9047e757f61e3c2b606c565c7de857f12f9 100644
(file)
--- a/
doc/salome/examples/defining_hypotheses_ex07.py
+++ b/
doc/salome/examples/defining_hypotheses_ex07.py
@@
-24,12
+24,13
@@
tria = smesh.Mesh(face1, "Face : triangle 2D mesh")
# Define 1D meshing
algo1D = tria.Segment()
# Define 1D meshing
algo1D = tria.Segment()
-algo1D.
NumberOfSegments(2
)
+algo1D.
LocalLength(3.
)
# create and assign the algorithm for 2D meshing with triangles
algo2D = tria.Triangle()
# create and assign the algorithm for 2D meshing with triangles
algo2D = tria.Triangle()
-# create and assign "LengthFromEdges" hypothesis to build triangles based on the length of the edges taken from the wire
+# create and assign "LengthFromEdges" hypothesis to build triangles with
+# linear size close to the length of the segments generated on the face wires (3.)
algo2D.LengthFromEdges()
# compute the mesh
algo2D.LengthFromEdges()
# compute the mesh