Added class GCodeViewer -> basic render of gcode toolpaths using dedicated shaders

This commit is contained in:
enricoturri1966 2020-04-14 10:02:08 +02:00
parent 4df141815b
commit c3eb65c461
18 changed files with 652 additions and 13 deletions

View file

@ -39,17 +39,6 @@ namespace Slic3r {
Relative
};
enum class EMoveType : unsigned char
{
Noop,
Retract,
Unretract,
Tool_change,
Travel,
Extrude,
Num_Types
};
struct CachedPosition
{
AxisCoords position; // mm
@ -67,6 +56,17 @@ namespace Slic3r {
};
public:
enum class EMoveType : unsigned char
{
Noop,
Retract,
Unretract,
Tool_change,
Travel,
Extrude,
Count
};
struct MoveVertex
{
EMoveType type{ EMoveType::Noop };
@ -98,8 +98,9 @@ namespace Slic3r {
struct Result
{
static unsigned int id;
std::vector<MoveVertex> moves;
void reset() { moves = std::vector<MoveVertex>(); }
void reset() { ++id; moves = std::vector<MoveVertex>(); }
};
private: