#include <BOPAlgo_WireEdgeSet.hxx>
#include <BOPAlgo_WireSplitter.hxx>
+#include <BOPAlgo_Alerts.hxx>
#include <BOPCol_IndexedDataMapOfShapeListOfShape.hxx>
#include <BOPCol_IndexedMapOfShape.hxx>
#include <BOPCol_ListOfShape.hxx>
//=======================================================================
void BOPAlgo_WireSplitter::CheckData()
{
- myErrorStatus=0;
if (!myWES) {
- myErrorStatus=10;
+ AddError (new BOPAlgo_AlertNullInputShapes);
return;
}
}
//=======================================================================
void BOPAlgo_WireSplitter::Perform()
{
- myErrorStatus=0;
+ GetReport()->Clear();
//
CheckData();
- if (myErrorStatus) {
+ if (HasErrors()) {
return;
}
//