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

0031190: Modeling Algorithms - progress indication in GeomPlate is inconsistent

Added ability to display progress indicator in plate commands
Added tests
This commit is contained in:
akaftasev
2021-03-29 19:15:54 +03:00
committed by bugmaster
parent 51c21d1fe4
commit 00e9052bee
9 changed files with 162 additions and 11 deletions

View File

@@ -470,7 +470,7 @@ void GeomPlate_BuildPlateSurface::Perform(const Message_ProgressRange& theProgre
//======================================================================
// Initial Surface
//======================================================================
Message_ProgressScope aPS(theProgress, NULL, 100, Standard_True);
Message_ProgressScope aPS(theProgress, "Calculating the surface filled", 100, Standard_True);
if (!mySurfInitIsGive)
{
ComputeSurfInit (aPS.Next(10));
@@ -1716,7 +1716,8 @@ void GeomPlate_BuildPlateSurface::ComputeSurfInit(const Message_ProgressRange& t
//====================================================================
// Construction of the surface
//====================================================================
myPlate.SolveTI(2, ComputeAnisotropie(), theProgress);
Message_ProgressScope aPS(theProgress, "ComputeSurfInit", 1);
myPlate.SolveTI(2, ComputeAnisotropie(), aPS.Next());
if (theProgress.UserBreak())
{
return;