<source>GEOM_FACE</source>
<translation>Face</translation>
</message>
+ <message>
+ <source>GEOM_CS</source>
+ <translation>Coordinate system</translation>
+ </message>
+ <message>
+ <source>GEOM_GCS</source>
+ <translation>Global coordinate system</translation>
+ </message>
<message>
<source>GEOM_LCS</source>
<translation>Local coordinate system</translation>
<source>GEOM_PARTITION</source>
<translation>Partition</translation>
</message>
+ <message>
+ <source>GEOM_WRN_PARTITION_RESULT_EMPTY</source>
+ <translation>The partition result is empty, please verify the reconstruction limit parameter.</translation>
+ </message>
<message>
<source>GEOM_PARTITION_HALFSPACE</source>
<translation>Half-space partition</translation>
#include <SUIT_Desktop.h>
#include <SUIT_Session.h>
#include <SUIT_ResourceMgr.h>
+#include <SUIT_MessageBox.h>
#include <SalomeApp_Application.h>
#include <LightApp_SelectionMgr.h>
+#include <TopoDS_Iterator.hxx>
+#include <TopoDS_Shape.hxx>
+
//=================================================================================
// class : OperationGUI_PartitionDlg()
// purpose : Constructs a OperationGUI_PartitionDlg which is a child of 'parent', with the
res = true;
}
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
+ if ( !anObj->_is_nil() ) {
+ TopoDS_Shape aShape;
+ GEOMBase::GetShape(anObj, aShape, TopAbs_SHAPE);
+ TopoDS_Iterator It (aShape, Standard_True, Standard_True);
+ int nbSubshapes=0;
+ for (; It.More(); It.Next())
+ nbSubshapes++;
+
+ if (nbSubshapes)
+ objects.push_back( anObj._retn() );
+ else
+ SUIT_MessageBox::warning(this,
+ QObject::tr("GEOM_ERROR"),
+ QObject::tr("GEOM_WRN_PARTITION_RESULT_EMPTY"));
+ }
return res;
}