Computing the separating surface for segmented data