]> OCCT Git - occt-copy.git/commitdiff
Updating BRepAlgoAPI...
authorakaftasev <akaftasev@opencascade.com>
Thu, 6 May 2021 09:32:54 +0000 (12:32 +0300)
committerakaftasev <akaftasev@opencascade.com>
Thu, 6 May 2021 09:32:54 +0000 (12:32 +0300)
src/BRepAlgoAPI/BRepAlgoAPI_BooleanOperation.cxx
src/BRepAlgoAPI/BRepAlgoAPI_BuilderAlgo.cxx
src/BRepAlgoAPI/BRepAlgoAPI_Splitter.cxx

index 3cc64283c98ea8ddbe2f01ad08d857c3fec31839..3789c5b202d912a4b682abfbfd2a45383caa3b17 100644 (file)
@@ -167,7 +167,7 @@ void BRepAlgoAPI_BooleanOperation::Build(const Message_ProgressRange& theRange)
     }
   }
 
-  Message_ProgressScope aPS(theRange, NULL, myIsIntersectionNeeded ? 10 : 1);
+  Message_ProgressScope aPS(theRange, NULL, myIsIntersectionNeeded ? 100 : 30);
   // If necessary perform intersection of the argument shapes
   if (myIsIntersectionNeeded)
   {
@@ -177,7 +177,7 @@ void BRepAlgoAPI_BooleanOperation::Build(const Message_ProgressRange& theRange)
       aLArgs.Append(it.Value());
 
     // Perform intersection
-    IntersectShapes(aLArgs, aPS.Next(9));
+    IntersectShapes(aLArgs, aPS.Next(70));
     if (HasErrors())
     {
       if (aDumpOper.IsDump())
@@ -204,7 +204,7 @@ void BRepAlgoAPI_BooleanOperation::Build(const Message_ProgressRange& theRange)
   }
 
   // Build the result
-  BuildResult(aPS.Next(1));
+  BuildResult(aPS.Next(30));
   if (HasErrors())
   {
     return;
index 824bcddc265c001af050d6dc2f748586d6ec9003..b87c69720ea0a6ced5828de588fe0ea84d1c9e01 100644 (file)
@@ -93,9 +93,9 @@ void BRepAlgoAPI_BuilderAlgo::Build(const Message_ProgressRange& theRange)
   NotDone();
   // Destroy the tools if necessary
   Clear();
-  Message_ProgressScope aPS(theRange, NULL, 2);
+  Message_ProgressScope aPS(theRange, "Performing General Fuse operation", 100);
   // If necessary perform intersection of the argument shapes
-  IntersectShapes(myArguments, aPS.Next());
+  IntersectShapes(myArguments, aPS.Next(70));
   if (HasErrors())
     return;
 
@@ -104,7 +104,7 @@ void BRepAlgoAPI_BuilderAlgo::Build(const Message_ProgressRange& theRange)
   // Set arguments to builder
   myBuilder->SetArguments(myArguments);
   // Build the result basing on intersection results
-  BuildResult(aPS.Next());
+  BuildResult(aPS.Next(30));
 }
 
 //=======================================================================
index 3ccfbfd2b98e52b15b12ffc866df222d470b02b9..bd5a978792842187ba837641b2558a7026e21a8c 100644 (file)
@@ -50,7 +50,7 @@ void BRepAlgoAPI_Splitter::Build(const Message_ProgressRange& theRange)
   }
 
   // If necessary perform intersection of the argument shapes
-  Message_ProgressScope aPS(theRange, "Performing Split operation", myIsIntersectionNeeded ? 10 : 1);
+  Message_ProgressScope aPS(theRange, "Performing Split operation", myIsIntersectionNeeded ? 100 : 30);
   if (myIsIntersectionNeeded)
   {
     // Combine Arguments and Tools for intersection into a single list
@@ -59,7 +59,7 @@ void BRepAlgoAPI_Splitter::Build(const Message_ProgressRange& theRange)
       aLArgs.Append(it.Value());
 
     // Perform intersection
-    IntersectShapes(aLArgs, aPS.Next(9));
+    IntersectShapes(aLArgs, aPS.Next(70));
     if (HasErrors())
       return;
   }
@@ -70,5 +70,5 @@ void BRepAlgoAPI_Splitter::Build(const Message_ProgressRange& theRange)
   ((BOPAlgo_Splitter*)myBuilder)->SetTools(myTools);
 
   // Build result shape basing on the intersection results
-  BuildResult(aPS.Next(1));
+  BuildResult(aPS.Next(30));
 }