Beispiel #1
0
        internal static Tree NewTree(IShape[] shapes)
        {
            Console.Out.WriteLine("Building k-d tree: " + shapes.Length);
            var box  = Box.BoxForShapes(shapes);
            var node = Node.NewNode(shapes);

            node.Split(0);
            return(new Tree(box, node));
        }