1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0030788: Modeling Algorithms - BRepAlgoAPI_Defeaturing does not propagate progress indicator to underlying algorithms

Added progress indicator to BRepAlgoAPI_Defeaturing
This commit is contained in:
akaftasev
2021-09-07 18:03:20 +03:00
committed by smoskvin
parent 5e76328243
commit 8ab0b859df
5 changed files with 191 additions and 43 deletions

View File

@@ -25,6 +25,7 @@
#include <DBRep.hxx>
#include <Draw.hxx>
#include <Draw_ProgressIndicator.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Compound.hxx>
@@ -98,9 +99,9 @@ Standard_Integer RemoveFeatures(Draw_Interpretor& theDI,
}
aRF.SetToFillHistory(BRepTest_Objects::IsHistoryNeeded());
Handle(Draw_ProgressIndicator) aProgress = new Draw_ProgressIndicator(theDI, 1);
// Perform the removal
aRF.Build();
aRF.Build(aProgress->Start());
// Check for the errors/warnings
BOPTest::ReportAlerts(aRF.GetReport());