Implemented fast, pre-calculated octree lookup.