<source>GEOM_SELF_INTERSECTIONS_FOUND</source>
<translation>Some self-intersections detected</translation>
</message>
+ <message>
+ <source>GEOM_CHECK_SELF_INTERSECTIONS_ERRORS</source>
+ <translation>Warning: there were errors during the operation, so the list may be incomplete.</translation>
+ </message>
<message>
<source>GEOM_CIRCLE</source>
<translation>Circle</translation>
#include <BOPCol_ListOfShape.hxx>
#include <BOPDS_DS.hxx>
#include <BOPDS_MapOfPassKey.hxx>
-#include <BRep_Builder.hxx>
#include <BRepBndLib.hxx>
#include <BRepBuilderAPI_Copy.hxx>
#include <BRepCheck_ListIteratorOfListOfStatus.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Edge.hxx>
-#include <TopoDS_Compound.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfIntegerListOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
if (aShape.IsNull()) return isGood;
// 0. Prepare data
- BRep_Builder aBB;
- TopoDS_Compound aCS;
TopoDS_Shape aScopy;
//
GEOMAlgo_AlgoTools::CopyShape(aShape, aScopy);
TopTools_IndexedMapOfShape anIndices;
TopExp::MapShapes(aScopy, anIndices);
- aBB.MakeCompound(aCS);
- aBB.Add(aCS, aScopy);
-
BOPCol_ListOfShape aLCS;
aLCS.Append(aScopy);
//
// 1. Launch the checker
aCSI.Perform();
Standard_Integer iErr = aCSI.ErrorStatus();
- if (iErr) {
- return false; // Error
- }
isGood = true;
//
isGood = false;
}
- SetErrorCode(OK);
+ if (!iErr) {
+ SetErrorCode(OK);
+ }
+
return isGood;
}
isFailed = true;
}
- if (!anOper->IsDone()) {
+ if (!anOper->IsDone() && myInters->length() == 0) {
aMsg += tr(anOper->GetErrorCode());
myGrp->TextView1->setText(aMsg);
return;
else {
aMsg += tr("GEOM_SELF_INTERSECTIONS_FOUND");
}
+
+ if (!anOper->IsDone()) {
+ aMsg += "\n\n";
+ aMsg += tr("GEOM_CHECK_SELF_INTERSECTIONS_ERRORS");
+ }
+
myGrp->TextView1->setText(aMsg);
// Pairs