0031504: Data Exchange - Wrong output of progress indicator when writing to stl
authorakaftasev <akaftasev@opencascade.com>
Fri, 22 May 2020 10:04:49 +0000 (13:04 +0300)
committerbugmaster <bugmaster@opencascade.com>
Tue, 9 Jun 2020 16:53:08 +0000 (19:53 +0300)
commit1fc1a207b019b530df115b4299b10707e55e2751
tree32388d2d94e3470e41896f43da9cf7f52e47a3ad
parent59ec2ccec98845ed8f0f56b6bd36c649b2ed2b60
0031504: Data Exchange - Wrong output of progress indicator when writing to stl

Added new condition for first indicated element at Draw_ProgressIndicator::Show(),
because it’s more logical that at start progress starts at 0
Changed usage of Next() to Next(step) for increment progress to IND_THRESHOLD in RWStl::writeASCII() and RWStl::writeBinary()
Changed condition for continuation of writing and add interrupt to this function
Added possibility to use Progress indicator in writestl
Changed paremeter in constructor Message_ProgressSentry aPS() IND_THRESHOLD to 1
Changed test
src/Draw/Draw_ProgressIndicator.cxx
src/RWStl/RWStl.cxx
src/StlAPI/StlAPI_Writer.cxx
src/StlAPI/StlAPI_Writer.hxx
src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx
tests/bugs/fclasses/bug28478
tests/bugs/fclasses/bug31092
tests/de_mesh/shape_write_stl/B1 [new file with mode: 0644]