mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-05-01 21:41:28 +08:00
画图画板示例完事
This commit is contained in:
@@ -30,6 +30,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
thisAngle = thisAngle + item.Item2;
|
||||
}
|
||||
|
||||
|
||||
return points;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,11 +44,9 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
var figure = new PathFigure { StartPoint = Points[0] };
|
||||
geometry.Figures.Add(figure);
|
||||
|
||||
foreach (var point in Points)
|
||||
for (int i = 1; i < Points.Count; i++)
|
||||
{
|
||||
if (Points[0] == point) continue;
|
||||
|
||||
LineSegment arc = new LineSegment(point, true);
|
||||
LineSegment arc = new LineSegment(Points[i], true);
|
||||
geometry.Figures[0].Segments.Add(arc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user