A new computer-controlled phase-shifting apparatus based on polarization techniques is developed. This apparatus changes phase only by rotating a polarizer using a precise step motor and a specially designed decelerator. The precision of this method can be higher than other methods because of the accurate control of the rotating angle. Four applications of this technique to optical interferometry and 3-D shape measurements are presented.