The invariant manifolds of a finite straight segment