ENABLE_GCODE_VIEWER_AS_STATE -> Load gcode from file and process it
This commit is contained in:
parent
bd5a5bf78f
commit
ca17948f87
12 changed files with 46 additions and 138 deletions
src/libslic3r/GCode
|
@ -104,9 +104,9 @@ namespace Slic3r {
|
|||
|
||||
struct Result
|
||||
{
|
||||
static unsigned int id;
|
||||
unsigned int id;
|
||||
std::vector<MoveVertex> moves;
|
||||
void reset() { ++id; moves = std::vector<MoveVertex>(); }
|
||||
void reset() { moves = std::vector<MoveVertex>(); }
|
||||
};
|
||||
|
||||
private:
|
||||
|
@ -134,6 +134,7 @@ namespace Slic3r {
|
|||
CpColor m_cp_color;
|
||||
|
||||
Result m_result;
|
||||
static unsigned int s_result_id;
|
||||
|
||||
public:
|
||||
GCodeProcessor() { reset(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue