Rayleigh hypothesis, the extended-boundary condition and point matching