Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check result of Compute() in test and examples
[modules/smesh.git]
/
test
/
SMESH_GroupFromGeom2.py
diff --git
a/test/SMESH_GroupFromGeom2.py
b/test/SMESH_GroupFromGeom2.py
index 7dfb236a7903fc99e66b1aaf70354b7abe9f8e9b..d980821bb54229e6dcf16c2e51a54a14594cb299 100644
(file)
--- 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
# 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"])
# 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:")
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())
print("aGroupOnShell size =", aGroupOnShell.Size())
print("aGroupOnShell ids :", aGroupOnShell.GetListOfID())