]> OCCT Git - occt-copy.git/commitdiff
Nothing? just test
authorZhuravlev Kirill <kirill.zhuravlev.ext@opencascade.com>
Fri, 9 Apr 2021 13:23:54 +0000 (16:23 +0300)
committerZhuravlev Kirill <kirill.zhuravlev.ext@opencascade.com>
Fri, 9 Apr 2021 13:24:21 +0000 (16:24 +0300)
Signed-off-by: Zhuravlev Kirill <kirill.zhuravlev.ext@opencascade.com>
src/BOPAlgo/BOPAlgo_BuilderSolid.cxx
src/TopoDS/TopoDS_Builder.lxx

index f95f3dd877d8ffadabba1163a66e23cf0311ef9e..f85bd2e053096ad0d5fcf8b00e0075c7994ae32d 100644 (file)
@@ -43,6 +43,7 @@
 #include <NCollection_Vector.hxx>
 
 #include <Message_ProgressIndicator.hxx>
+#include <Message_ProgressScope.hxx>
 
 #include <TColStd_MapIntegerHasher.hxx>
 #include <TopAbs.hxx>
@@ -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;
   }
index b5286e506c9239fff450de08a2450b52f27a827c..5937a262c691b147e3661470d75a62b714fa6df0 100644 (file)
@@ -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