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
/
quad_medial_axis_algo.py
diff --git
a/doc/examples/quad_medial_axis_algo.py
b/doc/examples/quad_medial_axis_algo.py
index 450827bd4decb61072a9da9705e28e1a7fc868ad..669cfd8adcd3b01efd8f2dca22eb6635865ca633 100644
(file)
--- a/
doc/examples/quad_medial_axis_algo.py
+++ b/
doc/examples/quad_medial_axis_algo.py
@@
-29,4
+29,4
@@
algo1d.NumberOfSegments( circNbSeg ) # division of circle edges
algo2d = mesh.Quadrangle( smeshBuilder.QUAD_MA_PROJ )
algo2d.StartEndLength( circleLen2 / circNbSeg, circleLen1 / circNbSeg ) # radial division
-
mesh.Compute(
)
+
if not mesh.Compute(): raise Exception("Error when computing Mesh"
)