Example #1
0
        private OcTree <TObject> CreateNode(BoundingBox boundingBox, TObject item)
        {
            OcTree <TObject> ret = new OcTree <TObject>(boundingBox, new[] { item }, this.MinimumSize);

            ret.parent = this;
            return(ret);
        }
Example #2
0
        private OcTree <TObject> CreateNode(BoundingBox boundingBox, IEnumerable <TObject> objList) //complete & tested
        {
            if (!objList.Any())
            {
                return(null);
            }

            OcTree <TObject> ret = new OcTree <TObject>(boundingBox, objList, this.MinimumSize);

            ret.parent = this;

            return(ret);
        }