occt: master 1fc1a207

Author Committer Branch Timestamp Parent
akaftasev bugmaster master 2020-05-22 10:04:49 master 59ec2cce
Affected Issues  0031504: Data Exchange - Wrong output of progress indicator when writing to stl.
Changeset 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
mod - src/Draw/Draw_ProgressIndicator.cxx Diff File
mod - src/RWStl/RWStl.cxx Diff File
mod - src/StlAPI/StlAPI_Writer.cxx Diff File
mod - src/StlAPI/StlAPI_Writer.hxx Diff File
mod - src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx Diff File
mod - tests/bugs/fclasses/bug28478 Diff File
mod - tests/bugs/fclasses/bug31092 Diff File
add - tests/de_mesh/shape_write_stl/B1 Diff File