Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / doc / examples / split_biquad.py
index 90d544e364d69aa563faf8fa2c0545ef2ae7e643..a8e51ed2437effabad910fda86ccdbd9a0e418b7 100644 (file)
@@ -24,7 +24,7 @@ mesh = smesh_builder.Mesh( shape )
 mesh.Segment().NumberOfSegments(1)
 mesh.Quadrangle()
 mesh.Triangle( ff[1] )
-mesh.Compute()
+if not mesh.Compute(): raise Exception("Error when computing Mesh")
 
 # make group of quadrangles and extrude them into a hexahedron
 quadGroup = mesh.Group( ff[0], "quads")