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); }
public void GenerateEdges() { this.VoronoiEdges = FortunesAlgorithm.Run(this.Sites); }