From 5cb83e99e0c4f1296b2f883c86b3ec3b9ad792f5 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 21 Jul 2008 09:50:39 +0000 Subject: [PATCH] [SALOME platform 0019316]: Need to have a better interface with GHS3D diagnostics fix for algos not needing shapes --- src/SMESH_SWIG/smeshDC.py | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.2