In this paper, we describe a range sensing method by projecting a single pattern of multiple slits. To obtain 3D data by projecting a single pattern, certain codes for identifying each slit must be contained in the patten. In our method, random dots are used to identify each slit. The random dots are given as randomly distributed cuts on each slit. Thus, each slit is divided into many small line segments and using these segments as features, stereo matching is carried out to obtain 3D data. Using adjacent relations among slit-segments, the false matches are reduced and segment pairs, whose adjacent segments also correspond with each other, are extracted and considered to be correct matches. Then, from the resultant matches, the correspondence is propagated by utilizing the adjacency relationships to get an entire range image.