예제 #1
0
        private static ICollection <FortuneSite> LoydIteration(ICollection <FortuneSite> Sites)
        {
            List <FortuneSite> newSites = new List <FortuneSite>();

            foreach (var Site in Sites)
            {
                newSites.Add(new FortuneSite(Compute2DCentroid(Site)));
            }
            FortunesAlgorithm.Run(newSites);
            return(newSites);
        }
예제 #2
0
 public void GenerateEdges()
 {
     this.VoronoiEdges = FortunesAlgorithm.Run(this.Sites);
 }