Refactoring Octree Iteration