]> SALOME platform Git repositories - modules/smesh.git/blobdiff - doc/examples/transforming_meshes_ex09.py
Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / doc / examples / transforming_meshes_ex09.py
index 19ab5ed9514d4aad61552156cfbc9cd5671c2a13..7941b29f9257fc8a2f9279c597544689f8740aaa 100644 (file)
@@ -24,7 +24,7 @@ mesh = smesh_builder.Mesh(shape, "Two faces : quadrangle mesh")
 mesh.Segment().Arithmetic1D( 0.1, 0.4 )
 mesh.Segment(q1).NumberOfSegments( 5 )
 mesh.Quadrangle()
-mesh.Compute()
+if not mesh.Compute(): raise Exception("Error when computing Mesh")
 
 # sew free borders