From: eap Date: Mon, 21 Jul 2008 09:50:39 +0000 (+0000) Subject: [SALOME platform 0019316]: Need to have a better interface with GHS3D diagnostics X-Git-Tag: V4_1_4a1~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5cb83e99e0c4f1296b2f883c86b3ec3b9ad792f5;p=modules%2Fsmesh.git [SALOME platform 0019316]: Need to have a better interface with GHS3D diagnostics fix for algos not needing shapes --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index dfeeb306c..9b77ceaa5 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -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