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:
parent
8b6ea26d35
commit
1a434b6388
17 changed files with 68 additions and 205 deletions
|
|
@ -36,19 +36,6 @@ namespace MatterHackers.GCodeVisualizer
|
|||
{
|
||||
public class GCodeRenderInfo
|
||||
{
|
||||
public Vector3[] extruderOffsets;
|
||||
|
||||
public Vector3 GetExtruderOffset(int index)
|
||||
{
|
||||
if (extruderOffsets != null
|
||||
&& extruderOffsets.Length > index)
|
||||
{
|
||||
return extruderOffsets[index];
|
||||
}
|
||||
|
||||
return Vector3.Zero;
|
||||
}
|
||||
|
||||
public Func<int, Color> GetMaterialColor { get; }
|
||||
|
||||
public int StartLayerIndex { get; set; }
|
||||
|
|
@ -74,7 +61,6 @@ namespace MatterHackers.GCodeVisualizer
|
|||
public GCodeRenderInfo(int startLayerIndex, int endLayerIndex,
|
||||
Affine transform, double layerScale,
|
||||
double featureToStartOnRatio0To1, double featureToEndOnRatio0To1,
|
||||
Vector3[] extruderOffsets,
|
||||
Func<RenderType> getRenderType,
|
||||
Func<int, Color> getMaterialColor)
|
||||
{
|
||||
|
|
@ -92,7 +78,6 @@ namespace MatterHackers.GCodeVisualizer
|
|||
|
||||
this.FeatureToStartOnRatio0To1 = featureToStartOnRatio0To1;
|
||||
this.FeatureToEndOnRatio0To1 = featureToEndOnRatio0To1;
|
||||
this.extruderOffsets = extruderOffsets;
|
||||
}
|
||||
|
||||
public void RefreshRenderType()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue