# 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"])
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())