mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 11:40:33 +05:00
[SALOME platform 0019316]: Need to have a better interface with GHS3D diagnostics
fix for algos not needing shapes
This commit is contained in:
parent
a995fac75d
commit
5cb83e99e0
@ -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"
|
reason = "it is hidden by an algorithm of an upper dimension, which generates elements of all dimensions"
|
||||||
elif status == HYP_HIDING_ALGO:
|
elif status == HYP_HIDING_ALGO:
|
||||||
reason = "it hides algorithms of lower dimensions by generating elements of all dimensions"
|
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:
|
else:
|
||||||
return
|
return
|
||||||
hypName = '"' + hypName + '"'
|
hypName = '"' + hypName + '"'
|
||||||
@ -574,6 +576,9 @@ class Mesh:
|
|||||||
elif obj != 0:
|
elif obj != 0:
|
||||||
SetName(self.mesh, GetName(obj))
|
SetName(self.mesh, GetName(obj))
|
||||||
|
|
||||||
|
if not self.geom:
|
||||||
|
self.geom = self.mesh.GetShapeToMesh()
|
||||||
|
|
||||||
self.editor = self.mesh.GetMeshEditor()
|
self.editor = self.mesh.GetMeshEditor()
|
||||||
|
|
||||||
## Initializes the Mesh object from an instance of SMESH_Mesh interface
|
## Initializes the Mesh object from an instance of SMESH_Mesh interface
|
||||||
|
Loading…
Reference in New Issue
Block a user