A method, system, medium and computing device for uniformly bending a plate
By dividing a triangle grid on a flat plate and rotating the vertices in three-dimensional space, the problem of grid distortion and self-intersection in clothing simulation is solved, and the authenticity and simulation effect of clothing simulation are improved.
Patent Information
- Application Number
- CN202211049205.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-08-30
AI Technical Summary
When existing clothing simulation technologies deal with folding along curves, they are prone to grid distortion and excessive stretching, which is difficult to meet the needs of real clothing simulation.
By dividing a triangle mesh on a planar plate, calculate the projection points of the triangle mesh vertices and map them into stereoscopic space, use the tangent of the projected points to determine the rotation plane, rotate the triangle mesh vertices to generate a new topological structure to avoid grid distortion and self-intersection.
The uniformity of grid bent along the curve in clothing simulation is achieved, the simulation effect is improved, the grid distortion and self-intercourse are avoided, and the authenticity of clothing simulation is enhanced.
Smart Images

Figure CN115423976B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of model generation, and more specifically, it relates to a method, system, medium, and computing device for uniformly bending a plate. Background Art
[0002] In the existing field of fashion design, virtual clothing simulation technology has entered a rapid development stage in recent years. Most of the mainstream clothing simulation technologies are based on grid-based modeling and simulation. The grids for clothing simulation are derived from the plates designed by designers or pattern makers. The plates are meshed, and then mapped to 3D grids through a 2D to 3D columnarization algorithm. However, some grids cannot meet the requirements of real clothing simulation after being columnarized to 3D, such as shirt collars, pleating techniques, etc.; we still need to perform further specific folding and deformation processing on these grids.
[0003] Currently, the folding and deformation algorithm can handle the folding deformation along a straight line well. However, for parts that need to be folded along a curve, such as shirt collars and gathers, the simulated deformation effect is relatively poor, and problems such as grid distortion and excessive stretching are likely to occur, making it difficult to meet the needs of clothing simulation. Summary of the Invention
[0004] Aiming at the deficiencies of the existing technology, the purpose of the present invention is to provide a method, system, medium, and computing device for uniformly bending a plate, which has the advantages of uniform bending effect along a curve and no defects such as grid distortion and excessive stretching.
[0005] The above technical objective of the present invention is achieved through the following technical solutions: A method for uniformly bending a plate includes:
[0006] S1. Obtain a planar plate, and determine a first bending line on the planar plate according to a preset bending effect;
[0007] S2. Construct a first triangular mesh corresponding to the planar plate according to a predetermined resolution;
[0008] S3. Traverse all vertices on the first triangular mesh, denoted as first vertices, and generate a first projection point corresponding to each first vertex on the first bending line;
[0009] S4. Calculate the distance length between each first projection point and any endpoint of the first bending line, and correspondingly calculate the ratio of each distance length to the total length of the first bending line;
[0010] S5. Map the flat plate according to the preset three-dimensional mapping relationship to generate a corresponding three-dimensional plate, and map the first triangular mesh and the first bending line according to the three-dimensional mapping relationship to generate the second triangular mesh and the second bending line of the corresponding three-dimensional plate respectively; determine the second vertex corresponding to the first vertex on the second triangular mesh according to the three-dimensional mapping relationship.
[0011] S6. According to the length ratio and the three-dimensional mapping relationship, determine the position of the second projection point corresponding to the first projection point on the second bending line, calculate the tangent of each second projection point, and determine the rotation plane corresponding to the corresponding second vertex according to the direction of the tangent.
[0012] S7. Rotate each second vertex along a predetermined direction on the rotation plane determined by the corresponding second projection point according to a predetermined rotation angle.
[0013] S8. Generate a third triangular mesh correspondingly according to the rotated second vertices and the topological structure of the second triangular mesh to complete the plate bending.
[0014] Optionally, the first triangular mesh and the second triangular mesh have exactly the same topological structure.
[0015] Optionally, some of the first vertices of the first triangular mesh are located on the first bending line; some of the second vertices of the second triangular mesh are located on the second bending line, and the topological structures of the first bending line and the first triangular mesh are the same as those of the second bending line and the second triangular mesh.
[0016] Optionally, the rotation plane is perpendicular to the tangent, and the projection point is located on the rotation plane.
[0017] Optionally, the step S7 includes:
[0018] S71. Connect each second vertex and the corresponding second projection point, denoted as the first connecting line.
[0019] S72. Establish a polar coordinate system on the corresponding rotation plane with each second projection point as the origin and the first connecting line corresponding to each second projection point as the polar axis.
[0020] S73. Control each first connecting line to rotate around the corresponding second projection point in the corresponding polar coordinate system according to a predetermined rotation angle and a predetermined rotation direction.
[0021] S74. Record the coordinates of each rotated second vertex.
[0022] Optionally, step S5 includes: obtaining a corresponding three-dimensional plate by performing cylindrical mapping on the planar plate; obtaining a corresponding second triangular mesh by performing cylindrical mapping on the first triangular mesh; and obtaining a corresponding second folding line by performing cylindrical mapping on the first folding line.
[0023] Optionally, it further includes S9. According to predetermined fabric properties, input the bent three-dimensional plate into physical simulation software to correspondingly generate a bent simulation model.
[0024] A system for uniformly bending a plate includes:
[0025] A planar plate generation module, configured to generate a planar plate to be bent;
[0026] A triangular mesh filling module, configured to generate a triangular mesh inside the planar plate;
[0027] A space mapping module, configured to map the planar plate, the triangular mesh, or the folding line into a 3D space;
[0028] A rotating plane generation module, configured to determine a corresponding rotating plane according to a projection point and the tangent direction of the projection point;
[0029] A triangular mesh generation module: configured to regenerate a corresponding triangular mesh according to a predetermined topological structure of the triangular mesh.
[0030] A computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the above method are implemented.
[0031] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0032] In summary, the present invention has the following beneficial effects: The present invention provides a method for rotating and bending a plate with an arc-shaped folding line. Triangular meshes are divided on the planar plate, and the projection points of the vertices of the triangular meshes relative to the folding line are calculated respectively. Then, the planar plate, the triangular meshes, and the folding line are correspondingly projected into a three-dimensional space. By determining the plane where the projection point is located and the tangent line where the projection point is located, each vertex of the triangular mesh is correspondingly rotated. Then, a triangular mesh is regenerated according to the original topological structure, and the shape of the plate is re-determined according to the regenerated triangular mesh. By using this method, problems such as self-intersection of the plate mesh and excessive distortion in the traditional bending process of clothing simulation plates can be effectively solved, the authenticity of clothing simulation is improved, and the three-dimensional plate generated after rotation can be controlled by the user as needed. Description of the Drawings
[0033] Figure 1Flowchart of a method for uniformly bending a plate of the present invention;
[0034] Figure 2 Flowchart of step S7 of the present invention;
[0035] Figure 3 Structural diagram of a system for uniformly bending a plate of the present invention;
[0036] Figure 4 Schematic diagram of a planar plate of the present invention;
[0037] Figure 5 Schematic diagram of a planar plate filled with triangular meshes of the present invention;
[0038] Figure 6 Schematic diagram of a three-dimensional plate of the present invention;
[0039] Figure 7 Schematic diagram of the bending effect of a three-dimensional plate of the present invention;
[0040] Figure 8 Schematic diagram of the fabric simulation effect generated after simulating a plate of the present invention;
[0041] Figure 9 Internal structural diagram of a computer device in an embodiment of the present invention.
[0042] In the figure: 1. Planar plate generation module; 2. Triangular mesh filling module; 3. Spatial mapping module; 4. Rotating plane generation module; 5. Triangular mesh generation module; 11. Bending line. Detailed implementation manners
[0043] To make the objectives, features, and advantages of the present invention more obvious and understandable, the following provides a detailed description of the specific implementation manners of the present invention with reference to the accompanying drawings. Several embodiments of the present invention are shown in the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein.
[0044] In the present invention, unless otherwise clearly defined and limited, terms such as "installation", "connection", "connection", "fixation", etc. shall be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. The terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0045] In the present invention, unless otherwise clearly defined and limited, the first feature being "on" or "under" the second feature may include the first and second features being in direct contact, or may include the first and second features not being in direct contact but being in contact through additional features therebetween. Moreover, the first feature being "above", "over" and "on top of" the second feature includes the first feature being directly above and obliquely above the second feature, or merely indicating that the first feature has a higher horizontal height than the second feature. The first feature being "under", "beneath" and "underneath" the second feature includes the first feature being directly below and obliquely below the second feature, or merely indicating that the first feature has a lower horizontal height than the second feature. The terms "vertical", "horizontal", "left", "right", "up", "down" and similar expressions are for illustrative purposes only, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as a limitation of the present invention.
[0046] The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
[0047] The present invention provides a method for uniformly bending a plate, as Figure 1 shown, including:
[0048] S1. Obtain a planar plate, and determine a first bending line on the planar plate according to a preset bending effect;
[0049] S2. Construct a first triangular mesh corresponding to the planar plate according to a predetermined resolution;
[0050] S3. Traverse all vertices on the first triangular mesh, denoted as first vertices, and generate a first projection point corresponding to each first vertex on the first bending line;
[0051] S4. Calculate the distance length between each first projection point and either end point of the first bending line, and correspondingly calculate the ratio of each distance length to the total length of the first bending line;
[0052] S5. According to a preset three-dimensional mapping relationship, map the planar plate to generate a corresponding three-dimensional plate, map the first triangular mesh and the first bending line to generate a second triangular mesh and a second bending line of the corresponding three-dimensional plate respectively according to the three-dimensional mapping relationship; determine a second vertex corresponding to the first vertex on the second triangular mesh according to the three-dimensional mapping relationship;
[0053] S6. According to the length ratio and the three-dimensional mapping relationship, determine the position of a second projection point corresponding to the first projection point on the second bending line, calculate the tangent of each second projection point, and determine the rotation plane corresponding to the corresponding second vertex according to the direction of the tangent;
[0054] S7. Rotate each second vertex along a predetermined direction on the rotation plane determined by the corresponding second projection point according to a predetermined rotation angle;
[0055] S8. Generate a third triangular mesh correspondingly according to the topological structure of the second triangular mesh and each rotated second vertex to complete the bending of the plate.
[0056] Specifically, in practical applications, as Figure 3 shown, it is a planar plate of a shirt collar. AB in the figure is the first bending line of the shirt collar. On the planar plate, the bending line is a straight line. As Figure 5 and Figure 6 shown, when the plate is mapped to the 3D space, the bending line correspondingly becomes a curve.
[0057] Then construct the first triangular mesh corresponding to the planar plate according to a predetermined resolution; in practical applications, filling the triangular mesh according to the resolution can divide the planar plate into small triangular patches through the topological structure of the triangular mesh and the vertices of the triangular mesh, so that after the planar plate is mapped to the 3D space, the corresponding 3D mesh can be regenerated according to the corresponding vertex positions and topological structure.
[0058] Then traverse all the vertices on the first triangular mesh, denoted as the first vertices, and generate the first projection points corresponding to each first vertex on the first bending line; generating projection points corresponding to the bending line can determine the relative position relationship between the vertices and the bending line. When the planar plate is mapped to the 3D space, the corresponding vertex positions can be determined again on the three-dimensional plate.
[0059] Then calculate the distance length between each first projection point and any end point of the first bending line, and correspondingly calculate the ratio of each distance length to the total length of the first bending line; by calculating the length ratio, the position of the corresponding second projection point on the second bending line can be determined again, and then the position of the corresponding vertex on the three-dimensional plate can be determined.
[0060] Then map the planar plate to generate a corresponding three-dimensional plate according to a preset three-dimensional mapping relationship, and map the first triangular mesh and the first bending line respectively according to the three-dimensional mapping relationship to generate the second triangular mesh and the second bending line of the corresponding three-dimensional plate; determine the second vertices corresponding to the first vertices on the second triangular mesh according to the three-dimensional mapping relationship.
[0061] In this embodiment, since the shape of the shirt collar is cylindrical, the pattern piece needs to be mapped into the corresponding cylindrical 3D space according to a predetermined size. The first triangular mesh located on the planar pattern piece also needs to be mapped into the 3D space as required, and it is necessary to ensure that the second triangular mesh after mapping has the same topological structure as the first triangular mesh, and the ratio of the vertices of the second triangular mesh corresponding to the solid pattern piece is the same as the ratio of the vertices of the first triangular mesh on the planar pattern piece, which is equivalent to curling the planar pattern piece into a cylindrical shape; (In this application, the problem to be solved is: how to enable the pattern piece to achieve a simulation bending method along an arc-shaped bending line. The bending line in the straight state already has a good simulation state and will not be elaborated in this application. All the second bending lines in this application need to take the arc as an example.)
[0062] Then, according to the length ratio and the three-dimensional mapping relationship, determine the position of the second projection point corresponding to the first projection point on the second bending line, calculate the tangent of each second projection point, and determine the rotation plane corresponding to the corresponding second vertex according to the direction of the tangent; in practical applications, the projection point is located on the bending line. Since the planar pattern piece is mapped into a cylindrical solid pattern piece, for the radial connecting lines, their lengths remain unchanged and they are parallel to each other. Taking the connecting line as the radius and the projection point as the center, rotate, and the plane formed by the rotation is perpendicular to the tangent direction of the arc where the projection point is located.
[0063] Then, according to a predetermined rotation angle, rotate each second vertex on the rotation plane determined by the corresponding second projection point along a predetermined direction; when the connecting line rotates to a certain angle, the vertex will have new three-dimensional coordinates; and since the rotation axes around which each connecting line rotates are different, the relative positions between the rotated vertices will change; for example, when the solid pattern piece is cylindrical and the solid pattern piece is turned outward, if the pattern piece does not have ductility, it will cause the pattern piece to tear or be overly distorted. When the solid pattern piece is turned inward, if the pattern piece does not have retractility, the solid pattern pieces will squeeze each other and form wrinkles, that is, the self-intersection of the triangular mesh on the pattern piece. Therefore, during the simulation, it is necessary to make the pattern piece have corresponding elasticity so that the pattern piece can adapt to bending along a curve.
[0064] Then, generate a third triangular mesh corresponding to the topological structure of the second triangular mesh and each rotated second vertex to complete the bending of the pattern piece.
[0065] The positional relationship between the rotated vertices will change, but through the original topological relationship, a third triangular mesh with the same topological relationship as the original triangular mesh of the plane sheet can be regenerated, thereby realizing the bending of the plane sheet. Specifically, the third triangular mesh on the sheet corresponds to the plane where the sheet is located, including a curved surface or a plane. That is to say, when the triangular mesh is determined, the state of the sheet is also determined. This belongs to the common technical knowledge known to those skilled in the art, so it will not be elaborated in this application.
[0066] In summary, in practical applications, when people use software to simulate clothing patterns, the plane patterns used usually have difficulty simulating the extensibility or stretchability of fabrics. Therefore, when bending and rotating around a curve, the actual fabric will deform to a certain extent due to its stretchability or extensibility, but the plane pattern in the simulation software is difficult to correspond to the deformation. Therefore, this application proposes a new method for uniformly rotating and bending a pattern with an arc-shaped folding line, so that the pattern will deform correspondingly during the rotation process. On the one hand, it can better simulate the stretchability of clothing, and on the other hand, it can avoid problems such as excessive distortion of the mesh on the pattern or self-intersection of the mesh due to the arc-shaped folding line.
[0067] Furthermore, the first triangular mesh and the second triangular mesh have exactly the same topological structure.
[0068] Specifically, having exactly the same topological structure means that the connection relationship between the vertices and connecting lines of the triangles in the second triangular mesh is exactly the same as the connection relationship between the vertices and connecting lines in the first triangular mesh, so as to ensure that the triangular patches in the triangular mesh will not be severely deformed.
[0069] Furthermore, some of the first vertices of the first triangular mesh are located on the first folding line; some of the second vertices of the second triangular mesh are located on the second folding line, and the topological structures of the first folding line and the first triangular mesh are the same as those of the second folding line and the second triangular mesh.
[0070] Specifically, as Figure 5 shown, during the generation of the triangular mesh, no triangular mesh vertices can be set on the first folding line. In this way, in step S5, it is necessary to map the first folding line correspondingly into the three-dimensional space according to the three-dimensional mapping relationship; if some of the first vertices on the first triangular mesh are set on the first folding line, when the first folding line corresponds to generating the second folding line, the position and structure of the second folding line can be determined through the topological structure of the first triangular mesh, which improves the generation speed of the second folding line.
[0071] Furthermore, the rotation plane is perpendicular to the tangent, and the projection point is located on the rotation plane.
[0072] Further, the step S7 includes:
[0073] S71. Connect each second vertex and its corresponding second projection point, denoted as the first connection line;
[0074] S72. With each second projection point as the origin and the first connection line corresponding to each second projection point as the polar axis, establish a polar coordinate system on the corresponding rotation plane;
[0075] S73. According to a predetermined rotation angle and a predetermined rotation direction, control each first connection line to rotate around its corresponding second projection point in the corresponding polar coordinate system;
[0076] S74. Record the coordinates of each rotated second vertex.
[0077] In the step S71, when connecting each second vertex and its corresponding second projection point, in practical applications, no matter what the three-dimensional space the first bending line is mapped to, the arc part on the second bending line is a part of a certain circle, that is to say, there is a corresponding tangent line at the second projection point. Using the tangent line direction and the plane where the second projection point is located as the rotation plane, since there is a projection relationship between the vertex and the corresponding second projection point, the second vertex will also be located on the rotation plane determined by the second projection point. That is to say, the first connection line is also on the rotation plane; in this way, through different second projection points, a number of mutually parallel or non-parallel rotation planes with the same quantity will be correspondingly generated (specifically, the plane needs to be determined according to the tangent line direction). That is to say, when the second vertex rotates on the rotation plane, the distance between them will change. By establishing a polar coordinate system on the rotation plane, the coordinates of the new second vertex can be calculated through the original coordinates and the rotation angle.
[0078] In practical applications, by establishing a polar coordinate system, based on the original three-dimensional coordinates of the vertex and the changing angle in the coordinate system, the three-dimensional coordinates of the rotated vertex can be quickly calculated, and then the spatial position where the rotated vertex is located can be determined.
[0079] Further, the step S5 includes: mapping the planar sheet using a cylinder to obtain a corresponding three-dimensional sheet; mapping the first triangular mesh using a cylinder to obtain a corresponding second triangular mesh; mapping the first bending line using a cylinder to obtain a corresponding second bending line.
[0080] Further, it also includes S9. According to a predetermined fabric property, input predetermined physical parameters to the vertices on the third triangular mesh, and input the third triangular mesh into physical simulation software to correspondingly generate a bent simulation model.
[0081] In practical applications, such as Figure 9 shown, according to the needs of clothing simulation, vertices on the triangular mesh can be input with corresponding physical parameters to realize the simulation from the pattern piece to the clothing.
[0082] Such as Figure 3 shown, the present invention also provides a system for uniformly bending a pattern piece, including:
[0083] A planar pattern piece generation module for generating a planar pattern piece to be bent;
[0084] A triangular mesh filling module for generating a triangular mesh inside the planar pattern piece;
[0085] A space mapping module for mapping the planar pattern piece, triangular mesh or bending line into 3D space;
[0086] A rotating plane generation module for determining the corresponding rotating plane according to the projection point and the tangent direction of the projection point;
[0087] A triangular mesh generation module: for regenerating a corresponding triangular mesh according to a predetermined topological structure of the triangular mesh.
[0088] For the specific limitations of the system for uniformly rotating and bending a pattern piece, reference can be made to the limitations of the system for uniformly rotating and bending a pattern piece in the above text, which will not be elaborated here. Each module in the above system for uniformly rotating and bending a pattern piece can be implemented in whole or in part by software, hardware and their combination. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so as to facilitate the processor to call and execute the operations corresponding to the above modules.
[0089] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 9 shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a method for uniformly bending a pattern piece is realized.
[0090] Those skilled in the art can understand, Figure 9The structure shown is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.
[0091] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented: including:
[0092] S1. Obtain a flat plate, and determine a first folding line on the flat plate according to a preset folding effect;
[0093] S2. Construct a first triangular mesh corresponding to the flat plate according to a predetermined resolution;
[0094] S3. Traverse all vertices on the first triangular mesh, denoted as first vertices, and generate a first projection point corresponding to each first vertex on the first folding line;
[0095] S4. Calculate the distance length between each first projection point and any endpoint of the first folding line, and correspondingly calculate the ratio of each distance length to the total length of the first folding line;
[0096] S5. According to a preset three-dimensional mapping relationship, map the flat plate to generate a corresponding three-dimensional plate, map the first triangular mesh and the first folding line to generate a second triangular mesh and a second folding line of the corresponding three-dimensional plate respectively according to the three-dimensional mapping relationship; determine a second vertex corresponding to the first vertex on the second triangular mesh according to the three-dimensional mapping relationship;
[0097] S6. According to the length ratio and the three-dimensional mapping relationship, determine the position of the second projection point corresponding to the first projection point on the second folding line, calculate the tangent of each second projection point, and determine the rotation plane corresponding to the corresponding second vertex according to the direction of the tangent;
[0098] S7. According to a predetermined rotation angle, rotate each second vertex along a predetermined direction on the rotation plane determined by the corresponding second projection point;
[0099] S8. Generate a third triangular mesh corresponding to the topological structure of the second triangular mesh and each rotated second vertex to complete the folding of the plate;
[0100] In one embodiment, the first triangular mesh and the second triangular mesh have exactly the same topological structure.
[0101] In one embodiment, some of the first vertices of the first triangular mesh are located on the first bending line; some of the second vertices of the second triangular mesh are located on the second bending line, and the topological structures of the first bending line and the first triangular mesh are the same as those of the second bending line and the second triangular mesh.
[0102] In one embodiment, the rotation plane is perpendicular to the tangent line, and the projection point is located on the rotation plane.
[0103] In one embodiment, step S7 includes:
[0104] S71. Connect each second vertex and the corresponding second projection point, denoted as the first connection line;
[0105] S72. Taking each second projection point as the origin and the first connection line corresponding to each second projection point as the polar axis, establish a polar coordinate system on the corresponding rotation plane;
[0106] S73. According to the predetermined rotation angle and the predetermined rotation direction, control each first connection line to rotate around the corresponding second projection point in the corresponding polar coordinate system;
[0107] S74. Record the coordinates of each rotated second vertex.
[0108] In one embodiment, step S5 includes: obtaining the corresponding three-dimensional plate by using cylindrical mapping of the planar plate; obtaining the corresponding second triangular mesh by using cylindrical mapping of the first triangular mesh; obtaining the corresponding second bending line by using cylindrical mapping of the first bending line.
[0109] In one embodiment, it further includes S9. According to the predetermined fabric properties, input the bent three-dimensional plate into physical simulation software to correspondingly generate a bent simulation model.
[0110] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0111] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.
[0112] The above is only the preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions falling within the idea of the present invention belong to the protection scope of the present invention. It should be noted that for those of ordinary skill in the art of this technology, several improvements and refinements made without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A method for uniformly bending a plate, characterized in that, Including: S1. Obtain a flat plate, and determine a first folding line on the flat plate according to a preset folding effect; S2. Construct a first triangular mesh corresponding to the flat plate according to a predetermined resolution; S3. Traverse all vertices on the first triangular mesh, denoted as first vertices, and generate a first projection point corresponding to each first vertex on the first folding line; S4. Calculate the distance length between each first projection point and any endpoint of the first folding line, and correspondingly calculate the ratio of each distance length to the total length of the first folding line; S5. According to a preset three-dimensional mapping relationship, map the flat plate to generate a corresponding three-dimensional plate, map the first triangular mesh and the first folding line to generate a second triangular mesh and a second folding line of the corresponding three-dimensional plate respectively according to the three-dimensional mapping relationship; determine a second vertex corresponding to the first vertex on the second triangular mesh according to the three-dimensional mapping relationship; S6. According to the length ratio and the three-dimensional mapping relationship, determine the position of a second projection point corresponding to the first projection point on the second folding line, calculate the tangent of each second projection point, and determine the rotation plane corresponding to the corresponding second vertex according to the direction of the tangent; S7. According to a predetermined rotation angle, rotate each second vertex along a predetermined direction on the rotation plane determined by the corresponding second projection point; S8. Generate a third triangular mesh correspondingly according to the topological structure of the second triangular mesh and each rotated second vertex to complete the folding of the plate.
2. The method for uniformly bending a plate according to claim 1, characterized in that, The first triangular mesh and the second triangular mesh have exactly the same topological structure.
3. A method for uniformly bending a plate according to claim 2, characterized in that, Some first vertices of the first triangular mesh are located on the first folding line; some second vertices of the second triangular mesh are located on the second folding line, and the topological structures of the first folding line and the first triangular mesh are the same as those of the second folding line and the second triangular mesh.
4. A method for uniformly bending a plate according to claim 1, characterized in that, The rotation plane is perpendicular to the tangent, and the projection point is located on the rotation plane.
5. A method for uniformly bending a plate according to claim 1, characterized in that, The step S7 includes: S71. Connect each second vertex and the corresponding second projection point, denoted as a first connecting line; S72. Take each second projection point as the origin and the first connecting line corresponding to each second projection point as the polar axis to establish a polar coordinate system on the corresponding rotation plane; S73. According to a predetermined rotation angle and a predetermined rotation direction, control each first connecting line to rotate around the corresponding second projection point in the corresponding polar coordinate system; S74. Record the coordinates of each rotated second vertex.
6. A method for uniformly bending a plate according to claim 1, characterized in that, The step S5 includes: mapping the flat plate using cylindrical mapping to obtain a corresponding three-dimensional plate; mapping the first triangular mesh using cylindrical mapping to obtain a corresponding second triangular mesh; mapping the first folding line using cylindrical mapping to obtain a corresponding second folding line.
7. A method for uniformly bending a plate according to claim 1, characterized in that, It further includes S9. Input the folded three-dimensional plate into physical simulation software according to a predetermined fabric property to correspondingly generate a folded simulation model.
8. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method for matching clothes curved surface grids with different resolutions based on grid mapping
CN113987610A
Systems, apparatuses and methods for image mesh warping
US10055812B1