Reverse engineering has an increasing use in shoemaking process for rapid prototyping of shoe lasts. Foot shape reconstruction is one of the most important techniques in custom-made scheme. A system for reconstruction a foot shape from its 2D views using a coded structured light projection combining with the optical triangulation method is presented. A set of multiple gray coded patterns are projected to the target object through a projector and the distorted stripes patterns produced by its surface are captured by a digital camera. By adopting the optical triangulation method with the projector-camera parameters known in advance, the foot shape surface is reconstructed. The results show that the implemented system is able to reconstruct dense and precise 3D foot shapes.