GCodeViewer -> Coloring of travel paths

This commit is contained in:
enricoturri1966 2020-04-24 08:46:31 +02:00
parent 90d5cf1735
commit 81a29169ae
4 changed files with 26 additions and 8 deletions

View file

@ -582,7 +582,8 @@ void GCodeProcessor::store_move_vertex(EMoveType type)
MoveVertex vertex;
vertex.type = type;
vertex.extrusion_role = m_extrusion_role;
vertex.position = Vec3f(m_end_position[0], m_end_position[1], m_end_position[2]) + m_extruder_offsets[m_extruder_id];
vertex.position = Vec3f(m_end_position[X], m_end_position[Y], m_end_position[Z]) + m_extruder_offsets[m_extruder_id];
vertex.delta_extruder = m_end_position[E] - m_start_position[E];
vertex.feedrate = m_feedrate;
vertex.width = m_width;
vertex.height = m_height;

View file

@ -76,6 +76,7 @@ namespace Slic3r {
unsigned char extruder_id{ 0 };
unsigned char cp_color_id{ 0 };
Vec3f position{ Vec3f::Zero() }; // mm
float delta_extruder{ 0.0f }; // mm
float feedrate{ 0.0f }; // mm/s
float width{ 0.0f }; // mm
float height{ 0.0f }; // mm