Shape from shadows: theoretical and computational aspects