#include <NCollection_Vector.hxx>
#include <Message_ProgressIndicator.hxx>
+#include <Message_ProgressScope.hxx>
#include <TColStd_MapIntegerHasher.hxx>
#include <TopAbs.hxx>
//=======================================================================
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;
DurationTimer.Stop();
std::cout << "Prelim. duration: " << DurationTimer.ElapsedTime() << std::endl;
+ aPS.Next(1);
+
TopoDS_Compound aC;
BRep_Builder aBB;
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();
PerformLoops();
DurationTimer.Stop();
std::cout << "PerformLoops duration: " << DurationTimer.ElapsedTime() << std::endl;
+ aPS.Next(97);
if (HasErrors()) {
return;
}