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_ex02.py
diff --git
a/doc/examples/measurements_ex02.py
b/doc/examples/measurements_ex02.py
index 33bffbaeaffef23e7b1c550fa6df119ee007b74a..e4d8338c67112589fd7d2b47ed883e3f95c385dd 100644
(file)
--- a/
doc/examples/measurements_ex02.py
+++ b/
doc/examples/measurements_ex02.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 bounding box for mesh1
mesh1.BoundingBox()
# compute bounding box for mesh1
mesh1.BoundingBox()