The moiré effect is an optical phenomenon which has a negative influence to the image quality; as such, this effect should be avoided or minimized in displays, especially in autostereoscoipic three-dimensional ones. The structure of the multiview autostereoscoipic displays typically includes two parallel layers with an integer ratio between the cell sizes. In order to provide the minimization of the moiré effect at finite distances, we developed a theory and computer simulation tool which simulates the behavior of the visible moiré waves in a range of parameters (the displacement of an observer, the distance to the screen and the like). Previously, we have made simulation for the sinusoidal waves; however this was not enough to simulate all real-life situations. Recently, the theory was improved and the non-sinusoidal gratings are currently included as well. Correspondingly, the simulation tool is essentially updated. In simulation, parameters of the resulting moiré waves are measured semi-automatically. The advanced theory accompanied by renewed simulation tool ensures the minimization and make it convenient. The tool run in two modes, overview and detailed, and can be controlled in an interactive manner. The computer simulation and physical experiment confirm the theory. The typical normalized RMS deviation is 3 - 5%.