Gaussian curvature of piecewise flat manifolds