From edb06ffb1b31b41e6a6476e5ee7c1a2e8467f8b6 Mon Sep 17 00:00:00 2001 From: Zhuravlev Kirill Date: Fri, 9 Apr 2021 16:23:54 +0300 Subject: [PATCH] Nothing? just test Signed-off-by: Zhuravlev Kirill --- src/BOPAlgo/BOPAlgo_BuilderSolid.cxx | 10 ++++++++-- src/TopoDS/TopoDS_Builder.lxx | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/BOPAlgo/BOPAlgo_BuilderSolid.cxx b/src/BOPAlgo/BOPAlgo_BuilderSolid.cxx index f95f3dd877..f85bd2e053 100644 --- a/src/BOPAlgo/BOPAlgo_BuilderSolid.cxx +++ b/src/BOPAlgo/BOPAlgo_BuilderSolid.cxx @@ -43,6 +43,7 @@ #include #include +#include #include #include @@ -114,6 +115,8 @@ BOPAlgo_BuilderSolid::~BOPAlgo_BuilderSolid() //======================================================================= void BOPAlgo_BuilderSolid::Perform(const Message_ProgressRange& theRange) { + //Message_ProgressRange aRootRange=theRange->Start(); + Message_ProgressScope aPS(theRange, "Perform Builder Solid", 100); //Timer construction //--------------------------------------------------------------------- OSD_Timer DurationTimer; @@ -134,6 +137,8 @@ void BOPAlgo_BuilderSolid::Perform(const Message_ProgressRange& theRange) DurationTimer.Stop(); std::cout << "Prelim. duration: " << DurationTimer.ElapsedTime() << std::endl; + aPS.Next(1); + TopoDS_Compound aC; BRep_Builder aBB; @@ -143,12 +148,12 @@ void BOPAlgo_BuilderSolid::Perform(const Message_ProgressRange& theRange) aBB.MakeCompound(aC); DurationTimer.Stop(); std::cout << "MakeCompound duration: " << DurationTimer.ElapsedTime() << std::endl; - + aPS.Next(1); DurationTimer.Restart(); aIt.Initialize(myShapes); DurationTimer.Stop(); std::cout << "Initialize duration: " << DurationTimer.ElapsedTime() << std::endl; - + aPS.Next(1); DurationTimer.Restart(); for(; aIt.More(); aIt.Next()) { const TopoDS_Shape& aF=aIt.Value(); @@ -179,6 +184,7 @@ void BOPAlgo_BuilderSolid::Perform(const Message_ProgressRange& theRange) PerformLoops(); DurationTimer.Stop(); std::cout << "PerformLoops duration: " << DurationTimer.ElapsedTime() << std::endl; + aPS.Next(97); if (HasErrors()) { return; } diff --git a/src/TopoDS/TopoDS_Builder.lxx b/src/TopoDS/TopoDS_Builder.lxx index b5286e506c..5937a262c6 100644 --- a/src/TopoDS/TopoDS_Builder.lxx +++ b/src/TopoDS/TopoDS_Builder.lxx @@ -81,4 +81,4 @@ inline void TopoDS_Builder::MakeCompound (TopoDS_Compound& C) const { Handle(TopoDS_TCompound) TC = new TopoDS_TCompound(); MakeShape(C,TC); -} +} \ No newline at end of file -- 2.39.5