Exemplo n.º 1
0
 private List <GraphEdge> MakeVoronoiGraph(List <PointF> sites, int width, int height)
 {
     double[] xVal = new double[sites.Count];
     double[] yVal = new double[sites.Count];
     for (int i = 0; i < sites.Count; i++)
     {
         xVal[i] = sites[i].X;
         yVal[i] = sites[i].Y;
     }
     return(voronoi.GenerateVoronoi(xVal, yVal, 0, width, 0, height));
 }