X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fexamples%2Fcreating_meshes_ex04.py;fp=doc%2Fexamples%2Fcreating_meshes_ex04.py;h=405fcd9eeb6af828a92f036f22c7c9b130a4511e;hb=1ade5b188481247c04b3cecbe8405588f78c6803;hp=3298e971c0f0bc5e3d214c568fa74507fc6dcddd;hpb=d1392dc0345fb940899baa1121b9230843e47346;p=modules%2Fsmesh.git diff --git a/doc/examples/creating_meshes_ex04.py b/doc/examples/creating_meshes_ex04.py index 3298e971c..405fcd9ee 100644 --- a/doc/examples/creating_meshes_ex04.py +++ b/doc/examples/creating_meshes_ex04.py @@ -41,19 +41,19 @@ hyp3 = algo_local.Arithmetic1D(1, 6) hyp4 = algo_local.Propagation() # compute the mesh -tria.Compute() +if not tria.Compute(): raise Exception("Error when computing Mesh") PrintMeshInfo(tria) # remove a local hypothesis tria.RemoveHypothesis(hyp4, edge) # compute the mesh -tria.Compute() +if not tria.Compute(): raise Exception("Error when computing Mesh") PrintMeshInfo(tria) # change the value of the 2D hypothesis hyp2.SetMaxElementArea(2.) # compute the mesh -tria.Compute() +if not tria.Compute(): raise Exception("Error when computing Mesh") PrintMeshInfo(tria)