seg(hull) revised back to the original version: with plane segmentation