Three-dimensional (3D) vision measurement technology based on encoding structured light plays an important role and has become the main development trend in the field of 3D non-contact measurement. However, how to synthetically improve measurement speed, accuracy and sampling density is still a difficult problem. Thus in the present work, a novel 3D measurement method based on temporal encoding structured light by combining trapezoidal phase-shifting pattern and cyclic code pattern is proposed. Due to trapezoidal phase-shifting has the advantages of high sampling density and high-speed, the proposed method can maintain these advantages by using cyclic code to expand the range of trapezoidal phase-shifting. In addition, the correction scheme is designed to solve the problem of cycle dislocation. Finally, simulation experimental platform is built with 3ds max and MATLAB. Experimental analyses and results show that, the maximal error is less than 3 mm in the range from 400 mm to 1100 mm, cycle dislocation correction has a good effect.