From: akaftasev Date: Wed, 14 Apr 2021 10:35:50 +0000 (+0300) Subject: Changed UserBreak message X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=d7f4a2f88e6f59f2ab8d92bb8aa30727b36ce09d;p=occt-copy.git Changed UserBreak message BOPAlgo_ArgumentAnalyzer processes only UserBreak --- diff --git a/src/BOPAlgo/BOPAlgo_Alerts.hxx b/src/BOPAlgo/BOPAlgo_Alerts.hxx index 8b9a2e37da..7a77adee1f 100644 --- a/src/BOPAlgo/BOPAlgo_Alerts.hxx +++ b/src/BOPAlgo/BOPAlgo_Alerts.hxx @@ -19,7 +19,7 @@ #include //! Boolean operation was stoped by user -DEFINE_SIMPLE_ALERT(BOPAlgo_AlertBOPUserBreak) +DEFINE_SIMPLE_ALERT(BOPAlgo_AlertUserBreak) //! Boolean operation of given type is not allowed on the given inputs DEFINE_SIMPLE_ALERT(BOPAlgo_AlertBOPNotAllowed) diff --git a/src/BOPAlgo/BOPAlgo_ArgumentAnalyzer.cxx b/src/BOPAlgo/BOPAlgo_ArgumentAnalyzer.cxx index 76f2c5dd9c..d2385156f1 100644 --- a/src/BOPAlgo/BOPAlgo_ArgumentAnalyzer.cxx +++ b/src/BOPAlgo/BOPAlgo_ArgumentAnalyzer.cxx @@ -175,7 +175,7 @@ void BOPAlgo_ArgumentAnalyzer::Perform(const Message_ProgressRange& theRange) // // 3. Test self-interference if(mySelfInterMode) { - TestSelfInterferences(aPS.Next()); + TestSelfInterferences(); if (UserBreak(aPS)) { return; @@ -350,11 +350,10 @@ void BOPAlgo_ArgumentAnalyzer::TestTypes() //function : TestSelfInterferences //purpose : //======================================================================= -void BOPAlgo_ArgumentAnalyzer::TestSelfInterferences(const Message_ProgressRange& theRange) +void BOPAlgo_ArgumentAnalyzer::TestSelfInterferences() { Standard_Integer ii; // - Message_ProgressScope aPS(theRange, NULL, 2); for(ii = 0; ii < 2; ii++) { const TopoDS_Shape& aS = (ii == 0) ? myShape1 : myShape2; if(aS.IsNull()) { @@ -377,11 +376,8 @@ void BOPAlgo_ArgumentAnalyzer::TestSelfInterferences(const Message_ProgressRange aChecker.SetRunParallel(myRunParallel); aChecker.SetFuzzyValue(myFuzzyValue); // - aChecker.Perform(aPS.Next()); - if (UserBreak(aPS)) - { - return; - } + aChecker.Perform(); + Standard_Boolean hasError = aChecker.HasErrors(); // const BOPDS_DS& aDS=*(aChecker.PDS()); diff --git a/src/BOPAlgo/BOPAlgo_ArgumentAnalyzer.hxx b/src/BOPAlgo/BOPAlgo_ArgumentAnalyzer.hxx index 2c127cf55e..fa2f528da4 100644 --- a/src/BOPAlgo/BOPAlgo_ArgumentAnalyzer.hxx +++ b/src/BOPAlgo/BOPAlgo_ArgumentAnalyzer.hxx @@ -114,7 +114,7 @@ protected: Standard_EXPORT void TestTypes(); - Standard_EXPORT void TestSelfInterferences(const Message_ProgressRange& theRange); + Standard_EXPORT void TestSelfInterferences(); Standard_EXPORT void TestSmallEdge(); diff --git a/src/BOPAlgo/BOPAlgo_Options.cxx b/src/BOPAlgo/BOPAlgo_Options.cxx index 5beda28205..7dbc488c1f 100644 --- a/src/BOPAlgo/BOPAlgo_Options.cxx +++ b/src/BOPAlgo/BOPAlgo_Options.cxx @@ -132,7 +132,7 @@ Standard_EXPORT Standard_Boolean BOPAlgo_Options::UserBreak(const Message_Progre { if (aPS.UserBreak()) { - AddError(new BOPAlgo_AlertBOPUserBreak); + AddError(new BOPAlgo_AlertUserBreak); return Standard_True; } else