Use new path stroke properties

This commit is contained in:
John Lewin 2019-01-15 07:46:56 -08:00
parent 007b51eb9b
commit 216bd91dc3
4 changed files with 7 additions and 7 deletions

View file

@ -157,8 +157,8 @@ namespace MatterHackers.GCodeVisualizer
VertexSourceApplyTransform transformedPathStorage = new VertexSourceApplyTransform(pathStorage, renderInfo.Transform);
Stroke stroke = new Stroke(transformedPathStorage, extrusionLineWidths / 2);
stroke.line_cap(LineCap.Round);
stroke.line_join(LineJoin.Round);
stroke.LineCap = LineCap.Round;
stroke.LineJoin = LineJoin.Round;
Vector3Float start = this.GetStart(renderInfo);
Vector3Float end = this.GetEnd(renderInfo);

View file

@ -101,8 +101,8 @@ namespace MatterHackers.GCodeVisualizer
VertexSourceApplyTransform transformedPathStorage = new VertexSourceApplyTransform(pathStorage, renderInfo.Transform);
Stroke stroke = new Stroke(transformedPathStorage, movementLineWidth);
stroke.line_cap(LineCap.Round);
stroke.line_join(LineJoin.Round);
stroke.LineCap = LineCap.Round;
stroke.LineJoin = LineJoin.Round;
Vector3Float start = this.GetStart(renderInfo);
Vector3Float end = this.GetEnd(renderInfo);

View file

@ -180,7 +180,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
Arc.Direction.CounterClockWise);
var arcStroke = new Stroke(ringArc);
arcStroke.width(outerRingStrokeWidth);
arcStroke.Width = outerRingStrokeWidth;
graphics2D.Render(
arcStroke.Rotate(90, AngleType.Degrees).Translate(bounds.Center),
primaryAccentShade);
@ -193,7 +193,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
0,
Arc.Direction.CounterClockWise);
arcStroke = new Stroke(ringArc);
arcStroke.width(innerRingStrokeWidth);
arcStroke.Width = innerRingStrokeWidth;
graphics2D.Render(
arcStroke.Rotate(90, AngleType.Degrees).Translate(bounds.Center),
primaryAccentColor);

@ -1 +1 @@
Subproject commit c7f95927d2ded956426acf5ff891d47d9a962cd7
Subproject commit 510ccddd954a5ea66faf1e226e4bf2c41cf3f983