Geodesics in piecewise linear manifolds