A planar surface reconstruction using RTree