An underlying geometrical manifold for Hamiltonian mechanics