public void Initialize() { UniformPoissonDiskSampler.Random = new Random(Seed); Points = UniformPoissonDiskSampler.SampleRectangle(new Vector2(0, 0), new Vector2(Width, Height), Radius); Delaunay = Delaunay.from(Points.Select(point => new double[] { point.X, point.Y }).ToArray()); Voronoi = Delaunay.voronoi(new Bounds { x0 = 0.5, y0 = 0.5, x1 = Width - 0.5, y1 = Height - 0.5 }); CellPolygons = Voronoi.cellPolygons().ToList(); }