Modified octree