Beispiel #1
0
 public void PaintEdges(IEnumerable<int> edgeIndices, Color color)
 {
     Link[] links = new Link[lay.LinkCount];
     lay.LinksBuffer.GetData(links);
     foreach (int index in edgeIndices)
     {
         links[index].color = color.ToVector4();
     }
     lay.LinksBuffer.SetData(links);
 }
Beispiel #2
0
 public void PaintAllEdges(Color color)
 {
     Link[] links = new Link[lay.LinkCount];
     lay.LinksBuffer.GetData(links);
     for ( int i = 0; i < lay.LinkCount; ++i )
     {
         links[i].color = color.ToVector4();
     }
     lay.LinksBuffer.SetData(links);
 }