The node at the beginning of the queue (the head node) is popped and its refinement flags examined. If refinement is needed, the node is split, and its right child is prepended to the queue.
The node at the beginning ofthe queue (the head node) is popped and its refinement flagsexamined. If refinement is needed, the node is split, and its rightchild is prepended to the queue.