Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / basic_shaper_smesh_without_session.py
index 54594a19448632239395f27a33a4a813f212de79..16a7a679594e109f63182c224746429083bc4205 100644 (file)
@@ -64,7 +64,8 @@ NETGEN_3D_Parameters_1.SetFuseEdges( 1 )
 NETGEN_3D_Parameters_1.SetQuadAllowed( 0 )
 NETGEN_3D_Parameters_1.SetCheckChartBoundary( 152 )
 isDone = Mesh_1.Compute()
-
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 ## Set names of Mesh objects
 smesh.SetName(NETGEN_1D_2D_3D.GetAlgorithm(), 'NETGEN 1D-2D-3D')