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
Check result of Compute() in test and examples
[modules/smesh.git]
/
doc
/
examples
/
measurements_ex01.py
diff --git
a/doc/examples/measurements_ex01.py
b/doc/examples/measurements_ex01.py
index a0c9991a8a4f314dbe21632c0bc798c97faeeb24..9e1053db2079888c78acb7c2699dabcf9f2632da 100644
(file)
--- a/
doc/examples/measurements_ex01.py
+++ b/
doc/examples/measurements_ex01.py
@@
-27,8
+27,8
@@
mesh2 = smesh_builder.Mesh(box2, 'box2')
mesh2.Segment().NumberOfSegments(5)
mesh2.Triangle().MaxElementArea(20)
mesh2.Segment().NumberOfSegments(5)
mesh2.Triangle().MaxElementArea(20)
-
mesh1.Compute(
)
-
mesh2.Compute(
)
+
if not mesh1.Compute(): raise Exception("Error when computing Mesh"
)
+
if not mesh2.Compute(): raise Exception("Error when computing Mesh"
)
# compute min distance from grp1 to the origin (not available yet)
smesh_builder.MinDistance(mesh1)
# compute min distance from grp1 to the origin (not available yet)
smesh_builder.MinDistance(mesh1)