Added octree collapsing