using plane intersection
improved octree construction