- catch(const SALOME::SALOME_Exception& S_ex) {
- wc.suspend();
- SalomeApp_Tools::QtCatchCorbaException(S_ex);
- res = SMESH::HYP_UNKNOWN_FATAL;
+ else if (IObject->hasEntry())
+ {
+ if(MYDEBUG) MESSAGE("IObject entry HAS ENTRY " << IObject->getEntry());
+ SObjectList meshList = GetMeshesUsingAlgoOrHypothesis(anHyp);
+ for ( int i = 0; i < meshList.size(); ++i ) {
+ SMESH::SMESH_Mesh_var aMesh =
+ SMESH::SObjectToInterface<SMESH::SMESH_Mesh>( meshList[ i ]);
+ GEOM::GEOM_Object_var aShape = SMESH::GetShapeOnMeshOrSubMesh( meshList[ i ]);
+ if ( ! aMesh->_is_nil() && !aShape->_is_nil() ) {
+ res = aMesh->RemoveHypothesis(aShape, anHyp);
+ if ( res < SMESH::HYP_UNKNOWN_FATAL )
+ SMESH::ModifiedMesh( meshList[ i ], false);
+ if ( res > SMESH::HYP_OK ) {
+ wc.suspend();
+ processHypothesisStatus( res, anHyp, false );
+ wc.resume();
+ }
+ }
+ }