Abstract
For a given closed surface, we study height functions with three critical values associated with immersions of the surface into 3-space, where the critical points may not be non-degenerate. We completely characterize the numbers of critical points corresponding to the three critical values that can be realized by such height functions. We also study the cases where the immersion can be replaced by an embedding or the critical points are all non-degenerate. Similar problems are studied for distance functions as well.