#include <GEOMImpl_Types.hxx>
+#include <SUIT_MessageBox.h>
#include <SUIT_ResourceMgr.h>
#include <SUIT_Session.h>
#include <SalomeApp_Application.h>
GEOM::GEOM_Object_var anObj = anOper->MakeShell( objlist.in() );
- if ( !anObj->_is_nil() )
+ if ( !anObj->_is_nil() ) {
+ TopoDS_Shape aShell;
+ GEOMBase::GetShape(anObj, aShell, TopAbs_SHELL);
+
+ if (aShell.IsNull()) {
+ SUIT_MessageBox::warning(this,
+ QObject::tr("GEOM_WRN_WARNING"),
+ QObject::tr("GEOM_WRN_FACES_NOT_SHELL"));
+ }
objects.push_back( anObj._retn() );
+ }
return true;
}
<source>GEOM_WRN_WARNING</source>
<translation>Warning</translation>
</message>
+ <message>
+ <source>GEOM_WRN_FACES_NOT_SHELL</source>
+ <translation>Unable to create a shell. Result is a compound of faces.</translation>
+ </message>
<message>
<source>WRN_SHAPE_UNCLOSED</source>
<translation>Unable to create solid from unclosed shape %1</translation>