Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-06-22 16:18:37 +0300
committerbubnikv <bubnikv@gmail.com>2017-06-22 16:18:37 +0300
commit39b93413591ed12149127e8aefa3400b7cd07286 (patch)
treeafc2e761a22e2d89cd14732fdfb42da492b39993 /xs/src/libslic3r/GCode.hpp
parent0454cc95f949f1d7818566c466b313f56c352ca4 (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.hpp5
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;