General solutions of three-dimensional problems for two-dimensional quasicrystals