/// <summary> /// NOT TESTED! /// </summary> public void AddPoint() { if (dGraph == null) { Debug.LogWarning("No graph to add points to"); return; } Vector2 site = new Vector2((float)(rng.NextDouble() * mapHeight), (float)(rng.NextDouble() * mapWidth)); while (IsTooNear(dGraph.centroids, site)) { site = new Vector2((float)(rng.NextDouble() * mapHeight), (float)(rng.NextDouble() * mapWidth)); } dGraph.AddSite(site); Debug.Log(dGraph.triangles.Count + " triangles"); }