Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / doc / examples / radial_prism_3d_algo.py
index a2623d8462c66d6daf68185261ab51766bdac6c3..a84ecc829301e631e14dc7aaaadc6c3484251653 100644 (file)
@@ -33,4 +33,4 @@ mesh.Projection1D2D( faces[1] ).SourceFace( faces[0] ) # projection faces[0] ->
 prism_algo.NumberOfSegments( 4, 5. )
 
 # compute the mesh
-mesh.Compute()
+if not mesh.Compute(): raise Exception("Error when computing Mesh")