We can replace the lens shape with two prisms base to base (plus lens) or two prisms apex to apex (minus lens).

Therefore, the optical axis is the point where there is no prism, is the point where the prisms that make a lens are joined and light that passes through is un-deviated.