2017-04-26 14:24:31 +02:00
|
|
|
#ifndef slic3r_SpiralVase_hpp_
|
|
|
|
|
#define slic3r_SpiralVase_hpp_
|
|
|
|
|
|
2019-10-25 19:06:40 +02:00
|
|
|
#include "../libslic3r.h"
|
|
|
|
|
#include "../GCodeReader.hpp"
|
2017-04-26 14:24:31 +02:00
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
|
|
class SpiralVase {
|
2020-02-08 21:36:29 +01:00
|
|
|
public:
|
|
|
|
|
bool enable = false;
|
2017-04-26 14:24:31 +02:00
|
|
|
|
2020-02-08 21:36:29 +01:00
|
|
|
SpiralVase(const PrintConfig &config) : m_config(&config)
|
2017-04-26 14:24:31 +02:00
|
|
|
{
|
2020-02-08 21:36:29 +01:00
|
|
|
m_reader.z() = (float)m_config->z_offset;
|
|
|
|
|
m_reader.apply_config(*m_config);
|
2017-04-26 14:24:31 +02:00
|
|
|
};
|
|
|
|
|
std::string process_layer(const std::string &gcode);
|
|
|
|
|
|
2020-02-08 21:36:29 +01:00
|
|
|
private:
|
|
|
|
|
const PrintConfig *m_config;
|
|
|
|
|
GCodeReader m_reader;
|
2017-04-26 14:24:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|