Exemplo n.º 1
0
        public TrapezoidFace retrieve(TDPoint p)
        {
            TDNode nextNode = root;

            while (nextNode.getType() != TDNode.LEAF)
            {
                nextNode = nextNode.getNext(p);
            }
            return(nextNode.t);
        }
Exemplo n.º 2
0
        public TDNode retrieveNode(TDPoint p)
        {
            //Debug.Log("Retrieving p=("+p.x+","+p.y+")");

            TDNode nextNode = root;
            int    steps    = 0;
            String s        = "";

            while (nextNode.getType() != TDNode.LEAF)
            {
                //Debug.Log( s+nextNode.print());
                nextNode = nextNode.getNext(p);
                steps++;
                s = s + " ";
            }
            //Debug.Log("Steps: "+steps);
            return(nextNode);
        }