The decagonal plane-wave model for 2D and 3D quasicrystals