mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-01 09:35:37 +05:00
in Mesh.Compute(), report hypothesis errors even if compute() returns OK
This commit is contained in:
parent
570bbfb2ff
commit
95f6a1059b
@ -732,7 +732,7 @@ class Mesh:
|
|||||||
import traceback
|
import traceback
|
||||||
print "Mesh computation failed, exception caught:"
|
print "Mesh computation failed, exception caught:"
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
if not ok:
|
if True:#not ok:
|
||||||
errors = self.smeshpyD.GetAlgoState( self.mesh, geom )
|
errors = self.smeshpyD.GetAlgoState( self.mesh, geom )
|
||||||
allReasons = ""
|
allReasons = ""
|
||||||
for err in errors:
|
for err in errors:
|
||||||
@ -768,7 +768,8 @@ class Mesh:
|
|||||||
if allReasons != "":
|
if allReasons != "":
|
||||||
print '"' + GetName(self.mesh) + '"',"has not been computed:"
|
print '"' + GetName(self.mesh) + '"',"has not been computed:"
|
||||||
print allReasons
|
print allReasons
|
||||||
else:
|
ok = False
|
||||||
|
elif not ok:
|
||||||
print '"' + GetName(self.mesh) + '"',"has not been computed."
|
print '"' + GetName(self.mesh) + '"',"has not been computed."
|
||||||
pass
|
pass
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user