Ellipse segmentation working in 3D