| Virtual shoe trial plays an important role in the development and iterative upgrade of footwear products in shoemaking enterprises.Data management,foot last matching and foot model deformation are key technologies in virtual test shoe.In this thesis,a virtual test shoe system is constructed by combining database technology,computer graphics knowledge and differential domain deformation technology,and the key technologies of virtual test shoes are studied and implemented.The main research contents of this thesis are :Connect MySQL database in C + + and PHP development environment,through the establishment of database,data table to realize the effective management of shoe model,foot model and shoe last model data;increase the authentication program to ensure user data security;update and maintain the database on the web page through PHP.A foot last matching algorithm based on the combination of OBB bounding box and plane recognition is proposed.Firstly,the approximate direction of the foot model is determined by the OBB bounding box.Then,through the plane recognition,the sole plane is accurately positioned to obtain the data information of the foot model.The key information is compared with the information in the shoe last database to determine the last model of the same size.Then,the foot model and the shoe last model are moved to the same spatial position with the center of the sole plane as the feature point.The model plane is overlapped by rotation transformation to complete the foot last matching.The matching algorithm is independent of the initial posture of the foot model and the length of the ankle part,and has good universality.A foot model deformation method combining characteristic curve and differential coordinates is proposed.The correlation points between the characteristic curve of the shoe last model and the foot model characteristic curve and the correlation triangular mesh of each point on the foot model characteristic curve in the foot model are obtained respectively.The rotation transformation between the local orthogonal frames of each correlation point on the characteristic curve is transformed into the change of the gradient field of the triangular mesh.By constructing the Poisson equation,the vertex coordinates of the foot model mesh after the gradient field change are solved,and the deformed foot model is obtained.The deformation method combined with the differential domain deformation method can better maintain the geometric details of the foot model.Based on MFC program,OpenGL function library and MySQL database are integrated to build a virtual shoe test platform.The key functions such as data management,model file reading and 3D display,foot last model matching and foot model deformation in virtual shoe test are realized. |