Virtual Garment Piece Design and Stitching Algorithm Based on Virtual Simulation Technology

Modern computer-aided design (CAD) technology is widely used in the field of fashion design. Designers do not have to draw again every time they carry out template design, but can draw and change graphic design drawings directly on the computer using CAD technology. In this way, the designer can see the fitting effect of two-dimensional clothing on the three-dimensional human body in real time in the process of garment graphic design, and the three-dimensional fitting results can change in real time according to the change in two-dimensional clothing pieces. Then, the efficiency of garment design will be greatly improved, and the labor cost and resource time cost will be greatly reduced, and if the cloth of fitting can be highly simulated, the virtual fitting will have more real effect and higher value. Virtual clothing design has always played an important role in the clothing manufacturing industry. In recent years, there are more and more application scenarios of computer-aided design of clothing, and it has good engineering application value to study and realize a reasonable and efficient virtual sewing algorithm for clothing pieces. At home and abroad, the research on 3D clothing fitting technology has gradually deepened, and a series of research results have been achieved in the aspects of clothing piece modeling, clothing piece stitching, and collision detection. However, the traditional collision detection algorithm has an infinite loop in the establishment of the bounding box. At the same time, the time complexity of the collision detection algorithm is high. Based on the “personalized virtual clothing design system platform” independently developed by the research group, this study realizes the interactive design function of clothing pieces and researches and realizes the sewing and folding algorithm of clothing pieces. The clothing piece is triangulated, the generated triangular mesh is used to simulate clothing, finite element analysis is used to simulate the physical movement of clothing, and distance field technology is used to simulate the collision effect between the 3D human model and the clothing piece. To achieve the realistic folding effect of 3D virtual clothes, a seam folding algorithm is suggested, which puts extra bending force limits on patches near the seam, and it works well in the test environment. The stress state of the garment is recreated by assessing the internal and exterior pressures on the fabric. Second, using three-dimensional virtual stitching technology, the two-dimensional clothing is turned into a three-dimensional garment. Finally, the bounding box tree for the clothing and the human body is built. Finally, the bounding box detection algorithm detects and handles the collision between the fabric and the human body during sewing. Finally, texture mapping between fabric and bitmap is used to approximate the garment’s true texture effect. Finally, by investigating the application process of wind force on the fabric, the dynamic impact of cloth under wind is simulated. At present, this technology can simulate the dressing effect of conventional clothing categories, and it can obtain ideal dynamic simulation effect of cloth under the condition of wind blowing.