Added wrapper for mesh with segmentation