diff options
author | bubnikv <bubnikv@gmail.com> | 2017-06-22 16:18:37 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-06-22 16:18:37 +0300 |
commit | 39b93413591ed12149127e8aefa3400b7cd07286 (patch) | |
tree | afc2e761a22e2d89cd14732fdfb42da492b39993 /xs/src/libslic3r/GCode.hpp | |
parent | 0454cc95f949f1d7818566c466b313f56c352ca4 (diff) |
Include the wipe tower print time into the cooling time.
Further refactoring of Extruder class.
Diffstat (limited to 'xs/src/libslic3r/GCode.hpp')
-rw-r--r-- | xs/src/libslic3r/GCode.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xs/src/libslic3r/GCode.hpp b/xs/src/libslic3r/GCode.hpp index 9509cf6ab..3760aae84 100644 --- a/xs/src/libslic3r/GCode.hpp +++ b/xs/src/libslic3r/GCode.hpp @@ -121,6 +121,11 @@ struct ElapsedTime return *this; } + // Potion of the total time, which cannot be stretched to heed the minimum layer print time. + float non_stretchable() const { return this->bridges + this->travel + this->other; } + // Potion of the total time, which could be stretched to heed the minimum layer print time. + float stretchable() const { return this->total - this->non_stretchable(); } + float total; float bridges; float external_perimeters; |