[SALOME platform 0019316]: Need to have a better interface with GHS3D diagnostics

fix for algos not needing shapes
This commit is contained in:
eap 2008-07-21 09:50:39 +00:00
parent a995fac75d
commit 5cb83e99e0

View File

@ -205,6 +205,8 @@ def TreatHypoStatus(status, hypName, geomName, isAlgo):
reason = "it is hidden by an algorithm of an upper dimension, which generates elements of all dimensions"
elif status == HYP_HIDING_ALGO:
reason = "it hides algorithms of lower dimensions by generating elements of all dimensions"
elif status == HYP_NEED_SHAPE:
reason = "Algorithm can't work without shape"
else:
return
hypName = '"' + hypName + '"'
@ -574,6 +576,9 @@ class Mesh:
elif obj != 0:
SetName(self.mesh, GetName(obj))
if not self.geom:
self.geom = self.mesh.GetShapeToMesh()
self.editor = self.mesh.GetMeshEditor()
## Initializes the Mesh object from an instance of SMESH_Mesh interface