1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0024952: Possibility to break Boolean operations algorithm by user request

class: BOPAlgo_Algo
method:
void BOPAlgo_Algo::SetProgressIndicator
  (const Handle(Message_ProgressIndicator)& theObj)
Purpose: Set the Progress Indicator object <theObj>.

method:
void BOPAlgo_Algo::UserBreak() const
Purpose: Breaks the execution if the break signal is indicated.
This commit is contained in:
pkv
2014-06-02 12:09:10 +04:00
committed by apn
parent 9b0fb8cdd0
commit 36f4947b8d
20 changed files with 387 additions and 218 deletions

View File

@@ -199,20 +199,29 @@ void BOPAlgo_BuilderSolid::Perform()
aBB.Add(aC, aF);
}
//
UserBreak();
//
PerformShapesToAvoid();
if (myErrorStatus) {
return;
}
//
UserBreak();
//
PerformLoops();
if (myErrorStatus) {
return;
}
//
UserBreak();
//
PerformAreas();
if (myErrorStatus) {
return;
}
//
UserBreak();
//
PerformInternalShapes();
if (myErrorStatus) {
return;