X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fexamples%2Fmeasurements_ex02.py;h=e4d8338c67112589fd7d2b47ed883e3f95c385dd;hb=1ade5b188481247c04b3cecbe8405588f78c6803;hp=33bffbaeaffef23e7b1c550fa6df119ee007b74a;hpb=d1392dc0345fb940899baa1121b9230843e47346;p=modules%2Fsmesh.git diff --git a/doc/examples/measurements_ex02.py b/doc/examples/measurements_ex02.py index 33bffbaea..e4d8338c6 100644 --- 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) -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()