Convex non-convex segmentation of scalar fields over arbitrary triangulated surfaces