segmentation and pointcloud creation