Three-dimensional oscillatory piecewise continuous-kernel function method. I - Basic problems. II - Geometrically continuous wings. III - Wings with geometrical discontinuities