Salome HOME
PAL11200. SMESH::HYP_BAD_SUBSHAPE status added
authoreap <eap@opencascade.com>
Thu, 16 Feb 2006 13:45:40 +0000 (13:45 +0000)
committereap <eap@opencascade.com>
Thu, 16 Feb 2006 13:45:40 +0000 (13:45 +0000)
idl/SMESH_Mesh.idl
src/SMESH_SWIG/smesh.py

index 1fe2f2dd8c10642f7cd64631258545e0fe2a8f0e..a48181ec5ddc3b9b9dca46f3c1263444a4dc0fbd 100644 (file)
@@ -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
   };
 
   /*!
index 17e4b8ac502a92f01dd409a6cbb0dfe9a885a8ce..4d525cfb17bf35de515664c37438d9e45a84ac68 100644 (file)
@@ -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 + '"'