From: eap Date: Thu, 16 Feb 2006 13:45:40 +0000 (+0000) Subject: PAL11200. SMESH::HYP_BAD_SUBSHAPE status added X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a32a7716fb1e8dc0ce9c7d8b93012799c031356d;p=modules%2Fsmesh.git PAL11200. SMESH::HYP_BAD_SUBSHAPE status added --- diff --git a/idl/SMESH_Mesh.idl b/idl/SMESH_Mesh.idl index 1fe2f2dd8..a48181ec5 100644 --- a/idl/SMESH_Mesh.idl +++ b/idl/SMESH_Mesh.idl @@ -119,7 +119,8 @@ module SMESH HYP_INCOMPATIBLE, // hypothesis does not fit algo HYP_NOTCONFORM, // not conform mesh is produced appling a hypothesis HYP_ALREADY_EXIST,// such hypothesis already exist - HYP_BAD_DIM // bad dimension + HYP_BAD_DIM, // bad dimension + HYP_BAD_SUBSHAPE // shape is neither the main one, nor its subshape, nor a group }; /*! diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index 17e4b8ac5..4d525cfb1 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -112,6 +112,8 @@ class Mesh_Algorithm: reason = hypType + " mismatches shape" elif status == SMESH.HYP_CONCURENT : reason = "there are concurrent hypotheses on sub-shapes" + elif status == SMESH.HYP_BAD_SUBSHAPE : + reason = "shape is neither the main one, nor its subshape, nor a valid group" else: return hypName = '"' + hypName + '"'