2017-04-26 12:24:31 +00:00
|
|
|
#ifndef slic3r_SpiralVase_hpp_
|
|
|
|
#define slic3r_SpiralVase_hpp_
|
|
|
|
|
|
|
|
#include "libslic3r.h"
|
|
|
|
#include "GCodeReader.hpp"
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
class SpiralVase {
|
|
|
|
public:
|
|
|
|
bool enable;
|
|
|
|
|
|
|
|
SpiralVase(const PrintConfig &config)
|
|
|
|
: enable(false), _config(&config)
|
|
|
|
{
|
2018-01-03 16:29:49 +00:00
|
|
|
this->_reader.z() = this->_config->z_offset;
|
2017-04-26 12:24:31 +00:00
|
|
|
this->_reader.apply_config(*this->_config);
|
|
|
|
};
|
|
|
|
std::string process_layer(const std::string &gcode);
|
|
|
|
|
|
|
|
private:
|
|
|
|
const PrintConfig* _config;
|
|
|
|
GCodeReader _reader;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|