add seg_hull function to get only plane