diff options
Diffstat (limited to 'src/libslic3r/GCode/SpiralVase.hpp')
-rw-r--r-- | src/libslic3r/GCode/SpiralVase.hpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libslic3r/GCode/SpiralVase.hpp b/src/libslic3r/GCode/SpiralVase.hpp index 496c1425c..5353901fe 100644 --- a/src/libslic3r/GCode/SpiralVase.hpp +++ b/src/libslic3r/GCode/SpiralVase.hpp @@ -8,18 +8,26 @@ namespace Slic3r { class SpiralVase { public: - bool enable = false; - SpiralVase(const PrintConfig &config) : m_config(&config) { m_reader.z() = (float)m_config->z_offset; m_reader.apply_config(*m_config); }; + + void enable(bool en) { + m_transition_layer = en && ! m_enabled; + m_enabled = en; + } + std::string process_layer(const std::string &gcode); private: const PrintConfig *m_config; GCodeReader m_reader; + + bool m_enabled = false; + // First spiral vase layer. Layer height has to be ramped up from zero to the target layer height. + bool m_transition_layer = false; }; } |