X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test%2FSMESH_GroupFromGeom2.py;h=d980821bb54229e6dcf16c2e51a54a14594cb299;hb=c9294ee68826be2746e5cc00291a8641731d6e29;hp=7dfb236a7903fc99e66b1aaf70354b7abe9f8e9b;hpb=4cf07a14111e98e8889620ee7e6371574c31a50c;p=modules%2Fsmesh.git diff --git a/test/SMESH_GroupFromGeom2.py b/test/SMESH_GroupFromGeom2.py index 7dfb236a7..d980821bb 100644 --- a/test/SMESH_GroupFromGeom2.py +++ b/test/SMESH_GroupFromGeom2.py @@ -34,7 +34,9 @@ from SMESH_test1 import * # Compute the mesh created in SMESH_test1 -mesh.Compute() +isDone = mesh.Compute() +if not isDone: + raise Exception("Error when computing Mesh") # Create geometry groups on plane: aGeomGroup1 = geompy.CreateGroup(face , geompy.ShapeType["FACE"]) @@ -70,7 +72,10 @@ print("aGroupOnShell ids :", aGroupOnShell.GetListOfID()) print(" ") print("Re-compute mesh, contents of aGroupOnShell changes again:") -mesh.Compute() +isDone = mesh.Compute() +if not isDone: + raise Exception("Error when computing Mesh") + print("aGroupOnShell size =", aGroupOnShell.Size()) print("aGroupOnShell ids :", aGroupOnShell.GetListOfID())