By analyzing the intensity of grating pattern we investigated a technique for automatic 3-D shape measurement. Phase reduction is based on analyzing the intensity of the grating pattern which is produced by divergent illumination. Only one image pattern is sufficient and the technique is very simple. It has the nature of fast and accurate. The paper present theoretical simulation and experimental results.