In this paper, a two-dimensional, binary fringe pattern is designed as structured light for 3D measurement. A feature, i.e., a white cross, is placed in the center of the fringe grating. The cross serves as the axes of a reference frame. White square grids are alternated by black stripes vertically or horizontally elsewhere. The relative position of a given point on the fringe with respect to the center can be identified. When the fringe pattern is projected onto the surface of the object, its image is distorted. Therefore, image processing and pattern recognition algorithms are designed to calculate which row and column the particular point belongs to in the original fringe-frame. The pair of emitting and receiving angles for each point in the fringe and CCD frames, respectively, is acquired. Also the coordinate of each 3D point can be calculated. Compared with traditional digital moire methods, this method achieves an absolute measurement of 3D surfaces because the information contained in the pattern is globally structured. Therefore, discontinuity measurement can be solved more easily. Resolution of the proposed method is higher than that of current methods of coding patterns under the same line width limitation due to the principle of pattern design.