Moved extruder offsets from passing to MS to being part of stream processing

Made '; NO_PROCESSING' track printer position correctly
issue: MatterHackers/MCCentral#4658
Create setting for ZOffset for extruder 2
This commit is contained in:
Lars Brubaker 2018-12-04 13:28:38 -08:00
parent 8b6ea26d35
commit 1a434b6388
17 changed files with 68 additions and 205 deletions

View file

@ -68,12 +68,6 @@ namespace MatterHackers.GCodeVisualizer
{
Vector3 position = new Vector3(this.position);
if (renderInfo.CurrentRenderType.HasFlag(RenderType.HideExtruderOffsets))
{
Vector3 offset = renderInfo.GetExtruderOffset(extruderIndex);
position = position + offset;
}
// retract and unretract are the extruder color
Color color = renderInfo.GetMaterialColor(extruderIndex);
// except for extruder 0 where they are the red and blue we are familiar with
@ -108,12 +102,6 @@ namespace MatterHackers.GCodeVisualizer
double radius = Radius(renderInfo.LayerScale);
Vector2 position = new Vector2(this.position.x, this.position.y);
if (renderInfo.CurrentRenderType.HasFlag(RenderType.HideExtruderOffsets))
{
Vector3 offset = renderInfo.GetExtruderOffset(extruderIndex);
position = position + new Vector2(offset);
}
renderInfo.Transform.transform(ref position);
Color retractionColor = new Color(Color.Red, 200);