Constructing Desirable Scalar Fields for Morse Analysis on Meshes