public static DelaunayTriangulation Create()
 {
     DelaunayTriangulation delaunay = new DelaunayTriangulation();
     delaunay.points = Input.Points;
     delaunay.triangles = new Dictionary<Polygon, Triad>();
     delaunay.circles = new Dictionary<Polygon, Path>();
     delaunay.triadsDict = new Dictionary<Triad, Polygon>();
     Triangulator angulator = new Triangulator();
     delaunay.triads = angulator.Triangulation(delaunay.points, true);
     return delaunay;
 }
Ejemplo n.º 2
0
        public static DelaunayTriangulation Create()
        {
            DelaunayTriangulation delaunay = new DelaunayTriangulation();

            delaunay.points     = Input.Points;
            delaunay.triangles  = new Dictionary <Polygon, Triad>();
            delaunay.circles    = new Dictionary <Polygon, Path>();
            delaunay.triadsDict = new Dictionary <Triad, Polygon>();
            Triangulator angulator = new Triangulator();

            delaunay.triads = angulator.Triangulation(delaunay.points, true);
            return(delaunay);
        }
Ejemplo n.º 3
0
 private void GenerateDelaunayTriangulation()
 {
     delaunay = DelaunayTriangulation.Create();
     DrawDelaunayTriangulation();
 }