simple mesh
This commit is contained in:
parent
d095171a01
commit
e1ce3419f2
55 changed files with 713 additions and 698 deletions
|
|
@ -143,10 +143,10 @@ namespace MatterHackers.GCodeVisualizer
|
|||
{
|
||||
Vector3Float startF = this.GetStart(renderInfo);
|
||||
Vector3Float endF = this.GetEnd(renderInfo);
|
||||
Vector2 start = new Vector2(startF.x, startF.y);
|
||||
Vector2 start = new Vector2(startF.X, startF.Y);
|
||||
renderInfo.Transform.transform(ref start);
|
||||
|
||||
Vector2 end = new Vector2(endF.x, endF.y);
|
||||
Vector2 end = new Vector2(endF.X, endF.Y);
|
||||
renderInfo.Transform.transform(ref end);
|
||||
|
||||
graphics2DGl.DrawAALineRounded(start, end, extrusionLineWidths / 2, extrusionColor);
|
||||
|
|
@ -163,8 +163,8 @@ namespace MatterHackers.GCodeVisualizer
|
|||
Vector3Float start = this.GetStart(renderInfo);
|
||||
Vector3Float end = this.GetEnd(renderInfo);
|
||||
|
||||
pathStorage.Add(start.x, start.y, ShapePath.FlagsAndCommand.MoveTo);
|
||||
pathStorage.Add(end.x, end.y, ShapePath.FlagsAndCommand.LineTo);
|
||||
pathStorage.Add(start.X, start.Y, ShapePath.FlagsAndCommand.MoveTo);
|
||||
pathStorage.Add(end.X, end.Y, ShapePath.FlagsAndCommand.LineTo);
|
||||
|
||||
graphics2D.Render(stroke, extrusionColor);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue