mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0025116: BRepTools - do not force Message_ProgressIndicator updates on each minor iteration
This commit is contained in:
@@ -180,11 +180,7 @@ void TopTools_LocationSet::Write(Standard_OStream& OS) const
|
||||
|
||||
//OCC19559
|
||||
Message_ProgressSentry PS(GetProgress(), "Locations", 0, nbLoc, 1);
|
||||
|
||||
for (i = 1; i <= nbLoc && PS.More(); i++, PS.Next()) {
|
||||
if ( !GetProgress().IsNull() )
|
||||
GetProgress()->Show();
|
||||
|
||||
TopLoc_Location L = myMap(i);
|
||||
|
||||
|
||||
@@ -261,9 +257,6 @@ void TopTools_LocationSet::Read(Standard_IStream& IS)
|
||||
//OCC19559
|
||||
Message_ProgressSentry PS(GetProgress(), "Locations", 0, nbLoc, 1);
|
||||
for (i = 1; i <= nbLoc&& PS.More(); i++, PS.Next()) {
|
||||
if ( !GetProgress().IsNull() )
|
||||
GetProgress()->Show();
|
||||
|
||||
Standard_Integer typLoc;
|
||||
IS >> typLoc;
|
||||
|
||||
|
@@ -499,11 +499,7 @@ void TopTools_ShapeSet::Write(Standard_OStream& OS)
|
||||
if ( !myProgress.IsNull() )
|
||||
myProgress->NewScope ( 15, "Shapes" );
|
||||
Message_ProgressSentry PS(myProgress, "Shapes", 0, nbShapes, 1);
|
||||
|
||||
for (i = 1; i <= nbShapes && PS.More(); i++, PS.Next()) {
|
||||
if ( !myProgress.IsNull() )
|
||||
myProgress->Show();
|
||||
|
||||
const TopoDS_Shape& S = myShapes(i);
|
||||
|
||||
// Type
|
||||
@@ -687,8 +683,6 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS)
|
||||
myProgress->NewScope ( 15, "Shapes" );
|
||||
Message_ProgressSentry PS(myProgress, "Shapes", 0, nbShapes, 1);
|
||||
for (i = 1; i <= nbShapes && PS.More(); i++, PS.Next() ) {
|
||||
if ( !myProgress.IsNull() )
|
||||
myProgress->Show();
|
||||
TopoDS_Shape S;
|
||||
|
||||
//Read type and create empty shape.
|
||||
|
Reference in New Issue
Block a user