Пример #1
0
 private void InitializeLines()
 {
     GeometryContext.AllocateLines(NumberOfCirclePoints + 1);
     for (var vertexIndex = 0; vertexIndex < NumberOfCirclePoints-1; vertexIndex++)
     {
         var line = new Line(vertexIndex, vertexIndex + 1);
         GeometryContext.SetLine(vertexIndex,line);
     }
     var lastLine = new Line(NumberOfCirclePoints - 1, 0);
     GeometryContext.SetLine(NumberOfCirclePoints-1, lastLine);
 }
Пример #2
0
 public void SetLine(int index, Line line)
 {
     Lines[index] = line;
 }
Пример #3
0
 public void AllocateLines(int count)
 {
     Lines = new Line[count];
 }