Garment simulation method and apparatus

By expanding garment patterns with margin meshes, mapping yarn vertices, and considering deformation states, the method addresses the challenge of simulating knitted garments' softness and flexibility, achieving more realistic computer-based simulations.

HK40134848APending Publication Date: 2026-07-10CLO VIRTUAL FASHION INC

Patent Information

Authority / Receiving Office
HK · HK
Patent Type
Applications
Current Assignee / Owner
CLO VIRTUAL FASHION INC
Filing Date
2026-06-02
Publication Date
2026-07-10

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The invention discloses a clothes simulation method and device. A garment simulation method of a knitted garment according to an embodiment may include the steps of: expanding a garment pattern by adding an edge mesh in the garment pattern corresponding to the knitted garment; a vertex (vertex) of a yarn (yarn) corresponding to the knitted garment is mapped to a grid of the expanded garment pattern; and based on the mapping relationship between the vertexes and the grids of the garment pattern, generating rendering information of the knitted garment by simulating the garment pattern where the yarns are located.
Need to check novelty before this filing date? Find Prior Art

Description

(19) State Intellectual Property Office (12) Invention Patent Application (10) Application Publication Number (43) Application Publication Date (21) Application Number 202580002614.X (22) Application Date 2025.07.18 (30) Priority Data 10-2024-0080615 2024.06.20 KR 10-2025-0082141 2025.06.20 KR (85) PCT International Application Entering National Phase Date 2025.11.13 (86) PCT International Application Application Data PCT / IB2025 / 057278 2025.07.18 (87) PCT International Application Publication Data WO2025 / 262676 KO 2025.12.26 (71) Applicant: KOL Virtual Fashion Co., Ltd. Address: Seoul, South Korea (72) Inventors: S. George, Lee Jae-hyun, Kim Yoon-jae (74) Patent Agency: Longtian Intellectual Property Agency Co., Ltd. 72003 Patent Attorney: Che Lingling (51) Int.Cl. G06T 15 / 00 (2011.01) G06T 15 / 04 (2011.01) G06T 17 / 20 (2006.01) G06T 19 / 00 (2011.01) (54) Invention Title: Clothing Simulation Method and Apparatus (57) Abstract: A clothing simulation method and apparatus are disclosed. A method for simulating knitted garments according to an embodiment may include the following steps: expanding a garment pattern by adding a margin mesh to a garment pattern corresponding to the knitted garment; mapping the vertices of the yarn corresponding to the knitted garment onto the mesh of the expanded garment pattern; and generating rendering information of the knitted garment by simulating the garment pattern in which the yarn is located, based on the mapping relationship between the vertices and the mesh of the garment pattern. Claims 3 pages, Description 16 pages, Drawings 23 pages, CN 121620780 A 2026.03.06 CN 1 21 62 07 80 A 1. A method for simulating knitted garments, characterized in that it includes the following steps: expanding the garment pattern by adding a margin mesh to a garment pattern corresponding to the knitted garment; mapping the vertices of the yarn corresponding to the knitted garment onto the mesh of the expanded garment pattern; and generating rendering information of the knitted garment by simulating the garment pattern in which the yarn is located, based on the mapping relationship between the vertices and the mesh of the garment pattern.2. The method according to claim 1, wherein the step of mapping the vertex onto the mesh of the extended garment pattern comprises the following steps: obtaining parameters corresponding to the deformation state of the material space corresponding to the garment pattern; obtaining the displacement of the vertex corresponding to the parameters by interpolating a pre-calculated displacement based on the parameters corresponding to the deformation state sample; and determining the position of the vertex in the material space corresponding to the deformation state based on the obtained displacement. 3. The method according to claim 2, wherein the step of generating rendering information for the knitted garment comprises the following steps: obtaining the position of the vertex in the world space corresponding to the knitted garment based on the position of the vertex in the material space corresponding to the deformation state; and generating rendering information for the knitted garment based on the obtained position in the world space. 4. The method according to claim 1, wherein the edge mesh is added to the outer region of the boundary line of the garment pattern with a certain width. 5. The method according to claim 1, wherein the step of extending the garment pattern comprises the following steps: adding the edge mesh with a certain curvature to the garment pattern corresponding to the knitted garment. 6. The method according to claim 1, wherein the step of expanding the garment pattern comprises the following steps: adding the edge mesh to the garment pattern based on the physical property data of the knitted garment, wherein the physical property data of the knitted garment includes at least one of setting information on whether the edge mesh is added, size information of the area where the edge mesh is generated, and curvature information of the edge mesh. 7. The method according to claim 1, wherein the vertex includes at least one vertex located on the center line of the yarn. 8. The method according to claim 1, wherein the step of generating rendering information of the knitted garment comprises the following steps: tessell the center line of the yarn into a cylindrical mesh; and generating rendering information of the knitted garment by simulating the garment pattern with the tessellated yarn placed on it, based on the mapping relationship between the vertex and the mesh of the garment pattern. 9. The method according to claim 1, wherein the step of mapping the vertex onto the mesh of the expanded garment pattern comprises the following steps: copying the vertices of the yarn mapped to the overlapping area of ​​the first and second meshes in the garment pattern, and mapping each copied vertex to the first and second meshes. Claims 1 / 3 page 2 CN 121620780 A 10. The method according to claim 9, wherein the edge grid comprises the first grid and the second grid.11. The method of claim 1, wherein the step of mapping the vertices onto the grid of the extended garment pattern comprises the following steps: moving the vertices of the yarn located outside the extended garment pattern to the boundary line of the extended garment pattern. 12. The method of claim 1, wherein the step of mapping the vertices onto the grid of the extended garment pattern comprises the following steps: rotating the yarn based on orientation information of the knitted structure corresponding to the knitted garment; and mapping the vertices of the rotated yarn onto the grid of the extended garment pattern. 13. A computer program stored on a computer-readable medium for performing the method of claim 1 in conjunction with hardware. 14. An electronic device, characterized in that it comprises: at least one processor including processing circuitry; and a memory storing instructions, wherein, when the at least one processor executes the instructions individually or collectively, the instructions cause the electronic device to perform the following operations: expanding a garment pattern by adding an edge mesh to a garment pattern corresponding to a knitted garment; mapping vertices of yarns corresponding to the knitted garment onto the mesh of the expanded garment pattern; and generating rendering information of the knitted garment by simulating the garment pattern in which the yarns are located, based on the mapping relationship between the vertices and the mesh of the garment pattern. 15. The electronic device of claim 14, characterized in that the operation of mapping the vertices onto the mesh of the expanded garment pattern comprises the following operations: acquiring parameters corresponding to a deformation state in a material space corresponding to the garment pattern; acquiring a displacement of the vertex corresponding to the parameters by interpolating a pre-calculated displacement based on the parameters corresponding to a sample of the deformation state; and determining the position of the vertex in the material space corresponding to the deformation state based on the acquired displacement. 16. The electronic device according to claim 15, wherein the operation of generating rendering information of the knitted garment includes the following operations: obtaining the position of the vertex in the world space corresponding to the knitted garment based on the position of the vertex in the material space corresponding to the deformation state; and generating rendering information of the knitted garment based on the obtained position in the world space. 17. The electronic device according to claim 14, wherein the operation of expanding the garment pattern includes the following operations: adding the edge mesh with a certain curvature to the garment pattern corresponding to the knitted garment.18. The electronic device according to claim 14, characterized in that the operation of expanding the garment pattern includes the following operations: Based on the physical property data of the knitted garment, adding the edge mesh to the garment pattern, wherein the physical property data of the knitted garment includes at least one of setting information on whether the edge mesh is added, size information of the area where the edge mesh is generated, and curvature information of the edge mesh. 19. The electronic device according to claim 14, characterized in that the operation of generating rendering information of the knitted garment includes the following operations: tessell the center lines of the yarn into a cylindrical mesh; and based on the mapping relationship between the vertices and the mesh of the garment pattern, generating rendering information of the knitted garment by simulating the garment pattern with the tessellated yarn. 20. The electronic device according to claim 14, characterized in that the operation of mapping the vertex to the grid of the extended garment pattern includes the following operations: copying the vertices of the yarn mapped to the overlapping area of ​​the first grid and the second grid in the garment pattern, and mapping each copied vertex to the first grid and the second grid. Claims 3 / 3 Page 4 CN 121620780 A Garment Simulation Method and Apparatus Technical Field

[0001] The following embodiments relate to a garment simulation method and apparatus, and more specifically, to a knitted garment simulation method and apparatus. Background Art

[0002] Although clothing worn on the body appears in 3D form, in reality, since clothing corresponds to a combination of fabrics cut according to a 2D pattern, it is closer to a 2D form. Fabrics as garment materials are relatively soft (flexible), so their shape can change according to the wearer's body shape or movement. In addition, fabrics can have a variety of physical properties such as strength, elasticity and shrinkage rate, and even if the garments adopt the same design, the differences in these properties will present different forms and feels. In the fashion industry, computer-based garment simulation technology is widely used in developing practical garment designs. Therefore, the demand for garment simulation technology that can realistically represent garments based on the characteristics of clothing materials is growing.

[0003] Technical Method for Solving the Problem

[0004] A method for simulating knitted garments according to an embodiment includes the following steps: expanding the garment pattern by adding a margin mesh to the garment pattern corresponding to the knitted garment; mapping the vertices of the yarn corresponding to the knitted garment onto the mesh of the expanded garment pattern; and generating rendering information of the knitted garment by simulating the garment pattern where the yarn is located based on the mapping relationship between the vertices and the mesh of the garment pattern.

[0005] The step of mapping the vertices onto the mesh of the expanded garment pattern may include the following steps: obtaining parameters corresponding to the deformation state of the material space corresponding to the garment pattern; obtaining the displacement of the vertex corresponding to the parameters by interpolating the pre-calculated displacement based on the parameters corresponding to the deformation state sample; and determining the position of the vertex in the material space corresponding to the deformation state based on the obtained displacement.

[0006] The step of generating rendering information for the knitted garment may include the following steps: obtaining the position of the vertex in the world space corresponding to the knitted garment based on the position of the vertex in the material space corresponding to the deformation state; and generating rendering information for the knitted garment based on the obtained position in the world space.

[0007] The edge mesh can be added to the outer region of the boundary line of the garment pattern with a certain width.

[0008] The step of expanding the garment pattern may include the following steps: adding the edge mesh with a certain curvature to the garment pattern corresponding to the knitted garment.

[0009] The step of expanding the garment pattern may include the following steps: adding the edge mesh to the garment pattern based on the physical property data of the knitted garment.

[0010] The physical property data of the knitted garment may include at least one of the following: setting information on whether the edge mesh is added or not, size information of the region where the edge mesh is generated, and curvature information of the edge mesh.

[0011] The vertex may include at least one vertex located on the centerline of the yarn.

[0012] The step of generating rendering information for the knitted garment may include the following steps: tessellation of the center line of the yarn into a cylindrical mesh; and generating rendering information for the knitted garment by simulating the garment pattern with the tessellated yarn placed on it, based on the mapping relationship between the vertices and the mesh of the garment pattern.

[0013] The step of mapping the vertex onto the grid of the extended garment pattern may include the following steps: copying the vertices of the yarn mapped to the overlapping area of ​​the first and second grids in the garment pattern, and mapping each copied vertex onto the first grid and the second grid.

[0014] The edge grid may include the first grid and the second grid.

[0015] The step of mapping the vertex onto the grid of the extended garment pattern may include the following steps: moving the vertices of the yarn located outside the extended garment pattern to the boundary line of the extended garment pattern.

[0016] The step of mapping the vertex onto the grid of the extended garment pattern may include the following steps: rotating the yarn based on the orientation information of the knitted structure corresponding to the knitted garment; and mapping the vertices of the rotated yarn onto the grid of the extended garment pattern.

[0017] An electronic device according to one embodiment includes: at least one processor including processing circuitry; and a memory storing instructions, wherein, when the at least one processor executes the instructions individually or jointly, the instructions cause the electronic device to perform the following operations: expanding the garment pattern by adding an edge mesh to the garment pattern corresponding to the knitted garment; mapping vertices of the yarn corresponding to the knitted garment onto the mesh of the expanded garment pattern; and generating rendering information of the knitted garment by simulating the garment pattern in which the yarn is located, based on the mapping relationship between the vertices and the mesh of the garment pattern.

[0018] The operation of mapping the vertices onto the mesh of the expanded garment pattern may include the following operations: obtaining parameters corresponding to a deformation state of a material space corresponding to the garment pattern; obtaining the displacement of the vertex corresponding to the parameters by interpolating a pre-calculated displacement based on the parameters corresponding to the deformation state sample; and determining the position of the vertex in the material space corresponding to the deformation state based on the obtained displacement.

[0019] The operation of generating rendering information for the knitted garment may include the following operations: obtaining the position of the vertex in the world space corresponding to the knitted garment based on the position of the vertex in the material space corresponding to the deformation state; and generating rendering information for the knitted garment based on the obtained position in the world space.

[0020] The operation of expanding the garment pattern may include the following operations: adding the edge mesh with a certain curvature to the garment pattern corresponding to the knitted garment.

[0021] The operation of expanding the garment pattern may include the following operations: adding the edge mesh to the garment pattern based on the physical property data of the knitted garment.

[0022] The physical property data of the knitted garment may include at least one of the following: setting information on whether the edge mesh is added or not, size information of the area where the edge mesh is generated, and curvature information of the edge mesh.

[0023] The operation of generating rendering information of the knitted garment may include the following operations: tessell the center line of the yarn into a cylindrical mesh; and generating rendering information of the knitted garment by simulating the garment pattern with the tessellated yarn placed on it, based on the mapping relationship between the vertices and the mesh of the garment pattern.

[0024] The operation of mapping the vertices onto the mesh of the expanded garment pattern may include the following operations: copying the vertices of the yarn mapped to the overlapping area of ​​the first and second meshes in the garment pattern, and mapping each copied vertex to the first mesh and the second mesh. Instruction Manual 2 / 16 Page 6 CN 121620780 A Description of Drawings

[0025] FIG1 is an operation flowchart of a knitted garment simulation method according to an embodiment.

[0026] FIG2a and FIG2b are drawings showing the area of ​​adding a margin mesh to a garment pattern according to an embodiment.

[0027] FIG3a to FIG3c are drawings showing the operation of mapping each copied vertex to an overlapping first and second mesh according to an embodiment.

[0028] FIG4a and FIG4b are drawings showing the operation of adjusting the position of yarn vertices mapped to the outside of the garment pattern according to an embodiment.

[0029] FIG5a to FIG5c are drawings showing an example of the shape of a knitted garment based on knit structure orientation information according to an embodiment.

[0030] FIG6 is a drawing showing a user interface screen for setting the physical property data of a knitted garment according to an embodiment.

[0031] FIG7a to FIG12 are drawings showing a yarn-based knitted fabric simulation method according to an embodiment.

[0032] FIG13 is a schematic diagram illustrating the configuration of an electronic device according to an embodiment. Detailed Description

[0033] The specific structural or functional descriptions of the disclosed embodiments are for illustrative purposes only, and various modifications can be made to the embodiments. Therefore, the embodiments are not limited or restricted to the particular form of disclosure, and all variations, equivalents, or substitutions of the embodiments are included within the scope of the claims.

[0034] In the description of the drawings, similar reference numerals may be used to denote similar or related parts. Unless the context clearly indicates otherwise, the singular form of a noun corresponding to an item may include one or more of the items stated therein.

[0035] In this specification, expressions such as “A or B,” “at least one of A and B,” “at least one of A or B,” “A, B or C,” “at least one of A, B and C,” and “at least one of A, B or C” may include any of the items listed together, or all possible combinations thereof.

[0036] Terms such as “first” or “second” can be used only to distinguish one component from other components and do not limit the component in any other respect (e.g., importance or order). For example, a first component can be named a second component, and similarly, a second component can also be named a first component.

[0037] When describing a component (e.g., a first) as “coupled” or “connected” to another component (e.g., a second), whether or not the terms “functionally” or “communically” are used, it means that these components can be connected to the other component directly (e.g., wired), wirelessly, or via a third component.

[0038] Unless otherwise specified in the text, singular expressions include plural meanings. In this specification, terms such as "comprising" or "having" are used to express the presence of features, numbers, steps, operations, constituent elements, accessories, or combinations thereof described in the specification, and do not exclude the presence of one or more other features, numbers, steps, operations, constituent elements, accessories, or combinations thereof, or additional functions.

[0039] Unless otherwise defined, all terms used herein, including technical or scientific terms, have the ordinary meaning as understood by one of ordinary skill in the art. Terms that are commonly used and are identical to dictionary definitions should be understood to have a meaning consistent with the ordinary content of the related art, and should not be overly idealized or interpreted as having a formal meaning unless explicitly stated in this application.

[0040] Embodiments will be described in detail below with reference to the accompanying drawings. In the process of description with reference to the drawings, the same constituent elements are given the same reference numerals as those in the drawings, and repeated descriptions thereto are omitted.

[0041] FIG1 is an operation flowchart of a knitted garment simulation method according to an embodiment.

[0042] The operations of steps 110 to 130 in the knitted garment simulation method described in FIG1 can be performed sequentially, but not necessarily sequentially. For example, the order of steps 110 to 130 can be changed, or at least two steps can be performed in parallel.

[0043] The knitted garment simulation method described in FIG1 can be executed by an electronic device. The detailed configuration of the electronic device hardware structure is described below.

[0044] Hereinafter, the knitted garment simulation method according to an embodiment can be simply referred to as "method" or "garment simulation method".

[0045] Generally, a garment pattern refers to a paper template used for cutting fabric when making garments.In this specification, a garment pattern may correspond to a two-dimensional (2D) garment pattern virtually generated by a computer program. For example, a garment pattern may be a pattern used to create a virtual garment that a user wishes to drape over a three-dimensional (3D) doll. A garment may be made using one or more garment patterns.

[0046] According to one embodiment, a garment pattern may be a virtual 2D garment pattern, which is modeled as a combination of multiple polygonal meshes for simulating a 3D virtual garment. Each vertex of the mesh is a point mass, and each edge of the mesh may be represented as an elastic spring connecting the vertex mass. The garment may be modeled using a mass-spring model. Here, the spring may have its own resistance values ​​in terms of stretching, shearing, and bending, depending on the physical properties of the fabric used. Each vertex may move under the action of external forces such as gravity and internal forces such as stretching, shearing, and bending. By calculating external and internal forces, the force applied to each vertex can be obtained, and thus the movement speed and displacement of each vertex can be obtained. Furthermore, the movement of the virtual garment can be simulated by the movement of the vertices of the mesh in each time step. By overlaying a 2D pattern formed by a triangular mesh onto a 3D replica, a physically based, seemingly natural-looking 3D virtual garment can be presented.

[0047] The complex geometry of knitted fabric can lead to visual and physical complexity during rendering or simulation. A method according to one embodiment may include a method for simulating virtual garments, the virtual garment comprising knitted fabrics made by interlacing or crossing yarns. Virtual garments comprising knitted fabrics may be referred to as knitwear.

[0048] A garment simulation method according to one embodiment may include step 110: expanding a garment pattern by adding a margin mesh to a garment pattern corresponding to knitwear. The margin mesh may include a mesh added to the outer region of the boundary line of the garment pattern. For example, the margin mesh may be added with a certain width to the outer region of the boundary line of the garment pattern. The addition of the margin mesh can expand the edge region of the garment pattern.

[0049] For example, referring to FIG2a, an edge grid can be added to the outer region 220 of the boundary line of the garment pattern 210. The outer region 220 to which the edge grid is added can have a certain size. Alternatively, the size of the outer region 220 to which the edge grid is added can be determined based on user input.

[0050] According to one embodiment, an edge grid can be added to the outer area of ​​the garment pattern and the edge line to be sewn, which are different from the boundary lines of the garment pattern. In other words, an edge grid can be added to the seam allowance area along the seam line of the garment pattern. For example, referring to FIG2b, when the first boundary line 231, the second boundary line 232, and the third boundary line 233 of the garment pattern 230 correspond to the seam line sewn to another garment pattern, while the fourth boundary line 234 does not correspond to the seam line, an edge grid can be added to the outer area 240 of the first boundary line 231, the second boundary line 232, and the third boundary line 233. The edge area of ​​the fourth boundary line 234 can remain unextended. Specification 4 / 16 pages 8 CN 121620780 A

[0051] Adding an edge grid can prevent gaps or blank areas from appearing at the seam lines where garment patterns are connected in a virtual garment.

[0052] Referring again to FIG1, according to one embodiment, step 110 of expanding a garment pattern may include adding an edge mesh with a certain curvature to the garment pattern corresponding to the knitted garment. The edge mesh added to the garment pattern may have a certain curvature. When rendering or simulating a garment including the garment pattern, the curvature of the edge mesh may be set so that the fabric corresponding to the edge mesh curls inward toward the inside of the garment. For example, the curvature of the edge mesh may be set to bend in the opposite direction to the normal vector of the garment pattern in the simulated virtual garment.

[0053] According to one embodiment, step 110 of expanding a garment pattern may include adding an edge mesh to the garment pattern based on the physical property data of the knitted garment. The physical property data of the knitted garment may refer to information indicating the physical properties of the knitted garment. For example, the physical property data of a knitted garment may include at least one of the following: knitted garment structure (stitching) type information, knitted garment density (gauge) information, knitted structure direction information, yarn thickness information, yarn color information, whether or not an edge mesh of the knitted garment is added, size information of the area (or seam area) where the edge mesh is generated, and curvature information of the edge mesh. The physical property data of the knitted garment will be described in detail below.

[0054] A garment simulation method according to one embodiment may include step 120: mapping the vertices of the yarn corresponding to the knitted garment onto a grid of an extended garment pattern. The vertices of the yarn may include at least one vertex located on the centerline of the yarn. For example, the yarn may be modeled as vertices and edges of adjacent vertices distributed at regular intervals along the centerline of the yarn.For example, yarn can be modeled as a discrete elastic rod. The modeling of yarn will be described in detail below.

[0055] The mesh of the extended garment pattern may include the mesh included in the original garment pattern and the edge mesh added in step 110. Mapping the vertices of the yarn onto the mesh of the extended garment pattern may refer to determining the position of the vertex of each yarn constituting the knitted garment on the garment pattern. Mapping the vertices of the yarn onto the mesh of the extended garment pattern may refer to storing the position of each vertex of the yarn in the garment pattern as a positional relationship with the mesh of the garment pattern. Each vertex of the yarn may be arranged at a corresponding mapped position on the garment pattern. As described below, when simulating a garment including the garment pattern, the yarn may be located at the mapped position on the garment pattern and the simulation is based on the mesh.

[0056] According to one embodiment, step 120 of mapping the vertices of the yarn onto the mesh of the extended garment pattern may include the step of determining the position of the yarn in the material-space corresponding to the deformed state. More specifically, step 120, which maps the vertices of the yarn onto the grid of the extended garment pattern, may include the following steps: obtaining parameters corresponding to the deformation state of the material space corresponding to the garment pattern; obtaining the displacement of the vertex corresponding to the parameters by interpolating a pre-calculated displacement based on the parameters corresponding to the deformation state sample; and determining the position of the vertex in the material space corresponding to the deformation state based on the obtained displacement. The specific operation of determining the position of the yarn in the material space corresponding to the deformation state will be described in detail below.

[0057] According to one embodiment, step 120, which maps the vertices of the yarn onto the grid of the extended garment pattern, may include the following steps: copying the vertices of the yarn mapped to the overlapping area of ​​the first and second grids in the garment pattern, and mapping each copied vertex to the first and second grids. For example, the edge grid may include the first and second grids. In other words, since adding the edge grid may cause the grids in the garment pattern to overlap, the overlapping grids may correspond to the edge grids.

[0058] For example, referring to FIG3a, an edge mesh can be added to a first region 311, which is the outer region of the first boundary line 301 of the garment pattern, and an edge mesh can also be added to a second region, which is the outer region of the second boundary line 302. The first region 311 and the second region 312 with the added edge mesh can partially overlap. The vertices of the yarn can be located on the garment pattern. The vertices 321 of the yarn can be located in the overlapping area of ​​the first region 311 and the second region 312. Vertex 321 can be duplicated.When one of the copied vertices 321 is designated as the first vertex and the other as the second vertex, the first vertex can be mapped to the mesh of the first region 311, while the second vertex can be mapped to the mesh of the second region 312. For example, referring to Figure 3b, which only shows the first region 311 of the garment pattern, the first vertex 322 can be located in the first region 311; referring to Figure 3c, which only shows the second region 312 of the garment pattern, the second vertex 323 can be located in the second region 312. In a two-dimensional garment pattern, the first region 311 and the second region 312 can overlap, but in a virtual garment, the first region 311 and the second region 312 may not overlap. Since the vertices 321 are copied, and each copied vertex 321 is mapped to the mesh of the first region 311 and the mesh of the second region 312, yarn can be simulated in the first region 311 and the second region 312 of the virtual garment.

[0059] Referring again to FIG1, according to one embodiment, step 120 of mapping vertices onto the grid of an extended garment pattern may include the step of moving vertices of yarns located outside the extended garment pattern to the boundary of the extended garment pattern. For example, in knitted garments, the yarns may have a periodically repeating shape. When yarn vertices with periodically repeating shapes are arranged in a garment pattern, some vertices may be located outside the garment pattern.

[0060] For example, referring to FIG4a, when yarn 401 has a periodically repeating shape, among the vertices distributed at regular intervals along the center line of yarn 401, a first vertex 420 may be located outside the garment pattern 410. The first vertex 420 located outside the garment pattern 410 may be moved to the boundary of the garment pattern 410. For example, the position of the first vertex 420 may be changed to the intersection of the edge 430 connected to the first vertex 420 and the boundary of the garment pattern. For example, referring to FIG4b, the position of the first vertex may be changed to the intersection of the edge connected to the first vertex and the boundary of the garment pattern 440.

[0061] Referring again to FIG1, according to one embodiment, step 120 of mapping vertices onto the grid of an extended garment pattern may include the following steps: rotating the yarn based on the orientation information of the knitted structure corresponding to the knitted garment, and mapping the vertices of the rotated yarn onto the grid of the extended garment pattern. For example, the orientation information of the knitted structure may be included in the physical property data of the knitted garment. The orientation information of the knitted structure is information indicating the positioning direction of the yarn in the garment or garment pattern, and may include, for example, a specific angle, direction vector, or rotation value. For example, the orientation information of the knitted structure may include information indicating the degree of rotation and / or direction of rotation of the yarn relative to its default state. The yarn may be rotated from its default state according to the orientation information of the knitted structure and then placed in the garment pattern. For example, when the orientation information of the knitted structure indicates 0 degrees or a horizontal direction, the yarn may be arranged in its default direction in the garment pattern.For example, when the orientation information of the knitted structure indicates a vertical direction or 90 degrees, the yarn can be rotated 90 degrees from its default state and then arranged in the garment pattern.

[0062] For example, referring to Figures 5a to 5c, garments with knitted structures of different shapes can be rendered according to the orientation information of the knitted structure. For example, the knitted structure 510 of the garment shown in Figure 5a can have a shape corresponding to the orientation information of the knitted structure 510 (indicating the default state or 0 degrees of the yarn). Referring to Figure 5b, when the orientation information of the knitted structure 520 indicates a 45-degree rotation, the knitted structure 510 in Figure 5a can be rendered as a knitted structure 520 with a shape rotated by 45 degrees. Referring to Figure 5c, when the orientation information of the knitted structure 530 indicates a 90-degree rotation, the knitted structure 510 in Figure 5a can be rendered as a knitted structure 530 with a shape rotated by 90 degrees.

[0063] A garment simulation method according to one embodiment may include step 130: generating rendering information of the knitted garment by simulating the garment pattern in which the yarn is located, based on the mapping relationship between vertices and the mesh of the garment pattern. Rendering information for knitted garments can be generated by simulating the garment pattern where the yarn is located. The rendering information for knitted garments may include information for outputting the shape of the 3D knitted structure by overlaying the garment pattern where the yarn is located onto a 3D object.

[0064] According to one embodiment, step 130 of generating rendering information for knitted garments may include tessellation of the center lines of the yarn into a cylindrical mesh, and generating rendering information for knitted garments by tessellation of the garment pattern where the yarn is located based on the mapping relationship between the vertices and the mesh of the garment pattern. The center lines of the yarn, which have no volume, may be tessellated into a cylindrical mesh with volume. The center lines of the yarn may be tessellated into a cylindrical mesh with a certain thickness. For example, the thickness of the cylindrical mesh may be determined according to the physical property data of the knitted garment.

[0065] According to one embodiment, step 130 of generating rendering information for knitted garments may include simulating the yarn in the garment pattern in the world space corresponding to the deformation state. More specifically, the steps of simulating the yarn of a garment pattern in the world space corresponding to the deformed state can include: obtaining the world space position of the knitted garment corresponding to the yarn vertices based on the vertex positions in the material space corresponding to the deformed state, and generating rendering information of the knitted garment based on the obtained world space position. The world space can correspond to the 3D garment obtained by superimposing a 2D garment pattern onto a 3D object. Garment simulation can obtain 2D mesh information in the material space corresponding to the garment pattern and mesh information in the 3D world space. The specific operations for simulating the yarn on the garment pattern corresponding to the deformed state in world space are described below.

[0066] FIG6 is a drawing showing a user interface screen for setting the physical property data of a knitted garment according to an embodiment.

[0067] Referring to screen 600 of FIG6, setting values ​​for the physical property data of the knitted garment can be input through the user interface. For example, a user can input setting values ​​for the physical property data of the knitted garment through the user interface on a terminal.

[0068] For example, the physical property data of the knitted garment may include yarn thickness information. The yarn thickness value can be set through the yarn thickness input window 610 of the user interface. A knitted garment including yarn with the set thickness value can be simulated.

[0069] For example, the physical property data of the knitted garment may include setting information on whether to add edge mesh (e.g., generate seams). Whether to add edge mesh can be set through the edge mesh addition / distraction setting window 620. When setting to add edge mesh, the edge mesh can be added to the garment pattern as described above.

[0070] For example, the physical property data of a knitted garment may include dimensional information (e.g., seam length) of the area where an edge mesh is added (e.g., seam area). The size of the area where the edge mesh is added can be set through the dimension input window 630. The size of the area where the edge mesh is added to the garment pattern can be determined based on the size input through the input window 630.

[0071] For example, the physical property data of a knitted garment may include curvature information of the edge mesh (e.g., seam curvature). The curvature of the edge mesh can be set through the edge mesh curvature input window 640. The curvature of the edge mesh added to the garment pattern can be determined based on the value input through the input window 640.

[0072] For example, the physical property data of a knitted garment may include orientation information of the knitted structure (e.g., knitting direction). The orientation of the knitted structure can be set through the knitted structure orientation input window 650. The knitted garment can be simulated through the orientation of the knitted structure input through the input window 650.

[0073] Furthermore, the physical property data of a knitted garment may include information indicating the characteristics of the knitted garment. For example, the physical property data of knitted garments may include knitting structure type information (e.g., needle type), density information (e.g., stitch pitch), and color information (e.g., ply color). The interface may include a knitting structure type setting window 660, a density input window 670, and a color input window 680.

[0074] Figures 7a to 12 are drawings illustrating a yarn-based knitted fabric simulation method according to an embodiment.

[0075] Hereinafter, the yarn-based knitted fabric simulation method according to an embodiment may be simply referred to as the knitted fabric simulation method.The yarn-based fabric simulation method can correspond to steps 120 to 130 above. More specifically, it can correspond to the step of determining the position of the yarn in the material space corresponding to the above-described deformation state, and the step of simulating the yarn in the garment pattern in the world space corresponding to the deformation state.

[0076] The fabric simulation method according to one embodiment can include a method of animate (or simulate) the yarn-level fabric (or knitted fabric) geometry on the deforming underlying mesh in a mechanics-aware fashion manner. The fabric simulation method according to one embodiment can be a method of reproducing phenomena such as the tightening of knitted loops during stretching by interpolating the pre-calculated yarn geometry using triangle strain. For example, referring to FIG7a, an example of the yarn geometry of the knitted fabric before deformation is shown. The simulation result of the knitted fabric without considering the deformation of the yarn level when the knitted fabric is stretched is shown in FIG7b. Referring to Figure 7b, a knitted fabric can be simulated such that yarn stretching occurs uniformly due to the stretching of the knitted fabric, unaffected by the yarn geometry. Furthermore, the simulation result of the knitted fabric considering yarn-level deformation when stretched is shown in Figure 7c. In other words, the simulation result in Figure 7c can be a simulation result of a knitted fabric generated using a knitted fabric simulation method according to one embodiment. Referring to Figure 7c, considering the yarn geometry, a knitted fabric can be simulated such that the yarn loops tighten when the knitted fabric is stretched.

[0077] The knitted fabric simulation method according to one embodiment can be a simulation method that adds yarn-level deformation to a mesh-based fabric simulation. The behavior of a periodic yarn pattern can be pre-calculated based on the large-scale deformation of the underlying cloth. The yarn pattern can refer to the garment pattern where the yarn is located. By interpolating the deformed yarn pattern at runtime based on the deformation state of the fabric mesh, a yarn-level geometry rearranged according to the yarn-level mechanism can be generated in real time.

[0078] According to one embodiment, the knitted fabric simulation method can receive an undeformed yarn pattern and large-scale surface deformation as input for simulating the geometry of yarn pattern deformation. The large-scale surface deformation can correspond to data encoded by a first fundamental form I and a second fundamental form II.As will be described in detail below, large-scale surface deformation can be used to define boundary conditions and optimize the elastostatic equilibrium configuration of the yarn pattern.

[0079] As mentioned above, the yarn can be modeled as a discrete elastic rod. The yarn can be modeled as a linked list of vertices, where each vertex has a position x along the centerline. Each edge connecting the vertices can include a twist angle θ and a reference director vector d1. Each vertex can be represented as a four-dimensional vector q = (xT, θ)T, which includes position information and twist information. Wherein, θ represents the twist angle associated with a single adjacent edge. The reference director vector d1 may not be included in the degrees of freedom. In other words, the reference director vector d1 of the edge can be freely changed during optimization or simulation, or may not be included in the calculation variables.

[0080] The kinematics of the position of the yarn vertices during optimization can be represented by the following mathematical formulas 1 and 2.

[0081] [Mathematical Formula 1]

[0082] [Mathematical Formula 2]

[0083] In Mathematical Formula 1 and Mathematical Formula 2, X = (X1, X2, X3)T is the material-space coordinate of the undeformed yarn pattern, (X1, X2) represents the orthogonal and periodic directions along the yarn pattern, and X3 represents the height coordinate. represents the large-scale deformation composed of the first basic form I and the second basic form II. The first basic form can be simply referred to as I, and the second basic form can be simply referred to as II. I represents in-plane deformation, and II represents bending deformation. From I and II, the midsurface and the normal n of the midsurface can be obtained, where I = ▽ T▽, II = -▽ T▽n.

[0084] The intermediate surface can be defined by I and II. From the perspective of least-squares, it can be calculated as ≈RS. For example, for a single curvature, =RS can hold. For calculation, the rotation matrix R and the in-plane deformation matrix S indicating the curvature can be calculated according to the two basic forms I and II.The 3×2 matrix S can be calculated using the principal square root of I, as shown in Equation 3 below.

[0085] [Equation 3]

[0086] To calculate the rotation matrix R, the derivative n of the normal vector can be calculated, as shown in Equation 4 below.

[0087] [Equation 4]

[0088] As shown in Equation 5, a, b, and r can be calculated.

[0089] [Equation 5]

[0090] As shown in Equation 6, R(X1, X2) can be calculated.

[0091] [Equation 6]

[0092] The Poisson equation 2 = RS can be discretized on a mesh with natural boundary conditions, and thus calculated. The constraints according to Equation 7 can be set.

[0093] The yarn configuration that minimizes elastic energy can be calculated. The optimization variables include fluctuations and torsion θ, representing local displacements of large-scale deformation. Referring to Figure 8, when the undeformed torsion value is represented as Θ, the concatenated coordinates are undeformed Q=(XT,Θ)T, large-scale deformed, and optimized q=(xT, θ)T. In the case of pure in-plane deformation, it is assumed that Θ is not affected by large-scale mapping. Bending deformation may also cause local twist, depending on the yarn relative to the second basic form II and the direction of curvature.

[0094] For example, referring to Figure 8, by applying various large-scale surface deformations to the undeformed yarn pattern Q 810, the deformed yarn pattern 820 can be obtained. Using optimization techniques, the elastostatic rest shape q 830 can be optimized for each deformation. q 830 can be pulled back to the undeformed material space to obtain 840. By subtracting the undeformed initial state Q 810 from 840, the displacement Q 850 can be obtained.Since displacement Q850 represents the local yarn-level deformation corresponding to large-scale deformation, a mapping relationship between large-scale deformation and the corresponding local yarn-level deformation can be constructed based on Q850. As will be described in detail below, Q850 corresponding to sampled deformation states (hereinafter referred to as "deformation state samples") can be pre-calculated and stored.

[0095] The optimization process according to one embodiment may include a null space along which the yarn can slide. In other words, the elastic energy E of the periodic yarn curve x(s) represented by parameter s will not change even if it slides with a parametric shift Δ. In other words, E(x(s)) = E(x(s + s)). Geometrically, the sliding displacement can correspond to the tangential sliding of the yarn while maintaining the same periodic shape. The optimizer can treat all sliding displacement states as the same and can arbitrarily select the actual result according to the internal parameters of the numeric solver. By definition, the null space may not affect homogenized energies. When interpolating between two states via sliding displacement, completely different yarn shapes may be generated.

[0096] For example, the two curves 910 and 930 shown in Figures 9a and 9c represent yarns of the same shape. Curve 930 shown in Figure 9c can be obtained by moving the starting position of curve 910 shown in Figure 9a by a certain distance. When interpolating curves 910 shown in Figure 9a and 930 shown in Figure 9c, a new curve 920 that is significantly different from curves 910 shown in Figure 9a and 930 shown in Figure 9c can be generated, as shown in Figure 9b. The reason for this phenomenon is that although the two curves 910 and 930 shown in Figures 9a and 9c have the same shape mathematically, their representation (or parameterization) is different, resulting in distortion during the interpolation process.

[0097] Even in almost identical deformed states, null space can lead to the introduction of distracing interpolation artifacts. By adding constraints during the optimization process, parametric yarn sliding can be eliminated, thereby effectively eliminating null space. More specifically, constraints can include fixing a single vertex of each periodic yarn to the boundary of the garment pattern, as shown in Equation 7.

[0098] [Mathematical Formula 7]

[0099] In Mathematical Formula 7, N represents the undeformed normal vector of the boundary of the garment pattern, which is either N = (1, 0)T or N = (0, 1)T. The sparse combination of vertex constraints can effectively eliminate interpolation artifacts. With the constraints, a physically realistic yarn shape can be obtained for large-scale deformations described by the first and second basic forms I, II.

[0100] For example, if the tangential sliding of the yarn is not considered in the geometric interpolation of the yarn, unrealistic deformations of the yarn may occur in the knitted fabric, as shown in Figure 9d. For example, twisting may occur, such as yarn self-collision or floating loops. In addition, by introducing a sliding constraint, a natural and physically reasonable interpolation result can be obtained, as shown in Figure 9e.

[0101] The geometry of the yarn corresponding to the representative deformation state sample can be pre-calculated, and the geometry of the yarn corresponding to the actual deformation state can be obtained by interpolation between the pre-calculated geometry at runtime. Since I and II are both 2×2 symmetric tensors, directly using I and II to parameterize the deformation will generate a 6D function, which may be very time-consuming during pre-calculation, storage and runtime retrieval. Therefore, the dimensionality of the deformation can be reduced by using as few variables as possible to parameterize the deformation.

[0102] Using in-plane strain, the first basic form I can be reparameterized into a three-dimensional function, as shown in Equation 8.

[0103] [Mathematical Formula 8]

[0104] Although II can be parameterized similarly to Mathematical Formula 4 by introducing additional curvature variables and increasing the dimension of the dataset, it will be shown below that bending deformation can be reasonably approximated using only stretching variables. The entire large-scale deformation space can be sampled using only three variables, sx, sa, and sy, thereby significantly reducing memory and computational overhead. Deformation state samples can be collected on a regular 3D grid.

[0105] At runtime, the geometry of the yarn obtained by interpolation can be mapped onto the deformed grid (e.g., a triangle mesh).The deformation of the mapped mesh can be naturally transferred to the geometry of the yarn. During the precomputation stage, the deformation state samples can be stored as material-space displacements.

[0106] In order to pull back or deform the optimized yarn geometry q to the yarn geometry in material space, it is necessary to find the corrected material space coordinates that produce the required world space deformation x when applying large-scale deformation. In other words, the problem of pulling back the optimized yarn geometry q to the yarn geometry in material space can correspond to the problem of finding a satisfying condition.

[0107] The problem of finding a satisfying condition can be solved using Newton's method or Newton iteration. Newton iteration can be applied to a function, in which case a gradient f is required.

[0108] The mapping can be defined using Equation 9.

[0109] [Equation 9]

[0110] In Equation 9, represents the midsurface of the deformation, and n represents the normal vector of the midsurface.

[0111] The gradient can be defined using mathematical formula 10.

[0112] [Mathematical formula 10]

[0113] According to the definition, it can be represented by mathematical formula 11.

[0114] [Mathematical formula 11] Page 11 / 16 of the specification 15 CN 121620780 A n can be calculated using mathematical formula 4. Newton's iteration can be represented by mathematical formula 12, and the initial value can be the rest configuration X, i.e., it can be.

[0115] [Mathematical formula 12]

[0116] The result of Newton's iteration can converge to a value within the yarn radius range within three iterations. Compared with elastostatic optimization, the computational cost of Newton's iteration is negligible. For pure in-plane deformations, since II=0, R=Id, and in this case, the pullback can be simplified to a constant expression, as shown in mathematical formula 13.

[0117] [Mathematical Formula 13]

[0118] After concatenation, the displacement ΔQ can be obtained by subtracting the initial material state. In other words, ΔQ can be represented by Mathematical Formula 14.

[0119] [Mathematical Formula 14]

[0120] In the rest pose, I=Id, II=0, and ΔQ=0.

[0121] For each vertex i in the yarn pattern and various in-plane deformation state samples j: ΔQi(sxj,saj,syj), a database of yarn displacement ΔQ in material space can be constructed. The ΔQ database can correspond to the grid of esample deformations. Alternatively, the ΔQ database can correspond to the 3D displacement texture of each yarn vertex. After interpolating the displacement of the deformation state samples, a yarn-level displacement map can be obtained for a given in-plane deformation sxj,saj,syj. For deformation rates sampled directly in the ΔQ database, an accurate yarn pattern can be reconstructed; while for intermediate deformation rates between the sampled deformation rates, an approximate pattern can be generated.

[0122] The yarn pattern displacement database corresponding to various deformation states can be applied to the tiling yarn pattern on the animation triangular mesh.

[0123] For example, referring to FIG10, Q 1010 can correspond to the undeformed coordinates in material space, 1030 can correspond to the coordinates after deformation by local displacement, and q 1040 can correspond to the final world space coordinates. The deformed yarn-level geometry 1030 can be obtained by applying the material displacement Q1020 to the undeformed yarn-level geometry Q 1010 tiled on the triangular mesh in material space. 1030 can be mapped onto the mesh and converted into the deformed q 1040 in world space.

[0124] For example, the algorithm 1 shown in FIG11 may include a process of rendering q based on mesh animation, yarn pattern, and displacement Q.

[0125] An initial undeformed yarn mesh corresponding to the undeformed mesh (e.g., triangular mesh) can be generated by pre-computation. A two-dimensional background mesh can be generated in the UV coordinate system of the mesh, where the cell size is equal to the size of the periodic pattern. For example, the geometry of the yarn can be replicated on all cells that overlap with the undeformed mesh. For example, yarn vertices outside the mesh can be removed. For example, yarn segments shorter than the user-specified length can be removed for aesthetic reasons. The barycentric coordinates of each yarn vertex in the material space can be pre-calculated.

[0126] Discrete fundamental forms I and II can be calculated for each mesh in each animation frame, as shown in Equation 15.

[0127] [Mathematical Expression 15]

[0128] In Mathematical Expression 15, F represents the deformation gradient of the mesh, and Λ represents the triangle-averaged shape operator. I and II can be assigned to the vertices of the triangular mesh using modified Shepard weights. Finally, the actual deformation state of the yarn vertex can be estimated by interpolating the I and II values ​​of the triangular mesh where the yarn vertex is located.

[0129] According to one embodiment, the effect of bending behavior can be approximated by adding stretching and compression based on surface curvature.

[0130] The full domain of the thin shell x represented by the mid-surface surface with normal vector n is shown in Mathematical Expression 16 below.

[0131] [Mathematical Formula 16]

[0132] In Mathematical Formula 16, h∈[-H / 2,H / 2] is the normal coordinate with respect to the thickness H of the shell. In this case, the Cauchy-Green deformation tensor can be represented by the following Mathematical Formula 17.

[0133] [Mathematical Formula 17]

[0134] Mathematical Formula 17 can be interpreted as the first fundamental form I(h) quadratically related to h. The quadratic terms in Mathematical Formula 17 can usually be ignored. Furthermore, the fundamental form is T = I, and similarly, it is T n = nT = -II. Therefore, the linearized expression is shown in Mathematical Formula 18.

[0135] [Mathematical Formula 18]

[0136] And, using the pre-calculated in-plane deformation s data ΔQs(s), the linearized bending model can be represented by the following Mathematical Formula 19.

[0137] [Mathematical Formula 19]

[0138] In other words, as described in Mathematical Formula 18, the first basic form I can be enhanced by changing along the surface normal direction, as shown in Mathematical Formula 20 below.

[0139] [Mathematical Formula 20] Specification 13 / 16 pages 17 CN 121620780 A

[0140] For example, referring to FIG12, the extruded volume 1220 around the intermediate surface 1210 bent by the bending model can be approximated by a linearized volume 1230, wherein the upper part of the intermediate surface 1210 is stretched and the lower part is compressed.

[0141] Like most elastic materials, fabrics may buckle (or twist) out of plane when compressed. To prevent abnormal deformation (buckling) of the yarn caused by compression, the eigenvalue λ of the first basic form I can be constrained to a lower limit before querying the yarn displacement. This allows buckling to be reduced in a user-controllable manner.

[0142] For example, a minimum value λmin (e.g., 0.8) can be set for the eigenvalue of I(Z). An eigenvalue λ < 1 can indicate a state of compression. Q converges to 0 when I converges to the identity matrix Id. Therefore, the clamping technique can reduce only local deformation while preserving the overall large-scale deformation defined by the triangular mesh.

[0143] After clamping I, it can be converted into deformation rates sx, sa, and sz according to Equation 8. The yarn displacement Q (sx, sa, sz) can be obtained by trilinear interpolation. The coordinates of the yarn in the deformed material space can be calculated as shown in Equation 21 below.

[0144] [Mathematical Formula 21]

[0145] Deformation rates outside the sampling range can be clamped to the nearest neighbor in the Q(sx, sa, sz) dataset. Similar to compression clamping, constant extrapolation can restrict local deformation while still allowing large-scale deformation to be inherited from the mesh embedding.

[0146] Mathematical Formula 22 can be used to map yarn vertices to world space x.

[0147] [Mathematical Formula 22]

[0148] Mathematical Formula 22 can correspond to the mesh surface squeezed into world space along the normal vector n. To avoid piecewise linear embedding artifacts, the shell-volume can be generated more smoothly by applying Phong deformation and using interpolated vertex normals.

[0149] The mapping of yarn twist can be simply handled by copying the updated twist value. The edge normals can be co-transformed using the approximate mapping of the Jacobian matrix in Mathematical Formula 22.

[0150] Since the deformation calculation of the yarn vertices and the mapping of world space can be easily parallelized, a GPU compute shader can be used to implement it. The interpolation of ΔQ can be achieved by performing a single 3D texture interpolation operation on each yarn vertex.

[0151] The deformed yarn can be tessellated into a cylindrical mesh in the geometry shader.Ply and fiber-level details can be approximated by sequentially using twistable normal maps and ambient occlusion maps. Volume conservation can be approximated by locally readjusting the yarn radius during stretching.

[0152] FIG13 is a schematic diagram illustrating the configuration of an electronic device according to an embodiment.

[0153] Referring to FIG13, an electronic device 1300 according to an embodiment may include a processor 1301, a memory 1303, and an input / output device (I / O) 1305. An electronic device 1300 according to an embodiment may include means for performing the knitted garment simulation method described above with reference to FIG1 to FIG12. For example, electronic device 1300 may include at least one of a server and user terminal specification 14 / 16 pages 18 CN 121620780 A (e.g., personal computer, mobile phone, tablet computer, wearable device, etc.).

[0154] According to one embodiment, processor 1301 may include at least one processor comprising processing circuitry.

[0155] According to one embodiment, processor 1301 may perform at least one operation included in the knitted garment simulation method described above with reference to FIGS. 1 to 12. For example, processor 1301 may perform at least one of the following operations: expanding a garment pattern by adding a margin mesh to a garment pattern corresponding to a knitted garment; mapping the vertices of the yarn corresponding to the knitted garment to the mesh of the expanded garment pattern; and generating rendering information of a knitted garment by simulating a garment pattern with yarn configured based on the mapping relationship between the vertices and the mesh of the garment pattern.

[0156] According to one embodiment, memory 1303 may be volatile memory or non-volatile memory, and may store data related to the knitted garment simulation method described above with reference to FIGS. 1 to 12. For example, memory 1003 may store data generated during the execution of the knitted garment simulation method described above with reference to Figures 1 to 12, or data required for executing the knitted garment simulation method described above with reference to Figures 1 to 12.

[0157] According to one embodiment, memory 1303 may not be a component of electronic device 1300, but may be included in an external device accessible to electronic device 1300. In this case, electronic device 1300 may receive data from memory 1303 included in external device via communication device, and may send data to be stored in memory 1303.

[0158] According to one embodiment, memory 1303 may store a program for implementing the knitted garment simulation method described above with reference to Figures 1 to 12.Processor 1301 can execute programs stored in memory 1303 and control electronic device 1300. The program code executed by processor 1301 can be stored in memory 1303.

[0159] For example, memory 1303 can store instructions. When processor 1301 executes instructions stored in memory 1303 individually or collectively, these instructions can cause electronic device 1300 to perform the following operations: expand a garment pattern by adding a margin mesh to the garment pattern corresponding to the knitted garment; map the vertices of the yarn corresponding to the knitted garment onto the mesh of the expanded garment pattern; and generate rendering information of the knitted garment by simulating the garment pattern with the yarn configured based on the mapping relationship between the vertices and the mesh of the garment pattern.

[0160] According to one embodiment, I / O device 1305 may include input device and output device. For example, user input related to the physical property data of the knitted garment can be received by I / O device 1305. For example, rendering information of the knitted garment can be output by I / O device 1305.

[0161] The electronic device 1300 according to one embodiment may also include other components not shown. For example, the electronic device 1300 may also include a communication device for communicating with other devices (e.g., servers, terminals, networks, etc.). As another example, the electronic device 1300 may also include other components such as a transceiver, various sensors, and a database.

[0162] The embodiments described above can be implemented using hardware components, software components, and / or combinations of hardware and software components. For example, the devices and components described in the embodiments can be implemented using, for example, processors, controllers, arithmetic logic units (ALUs), digital signal processors, microcomputers, field-programmable arrays (FPAs), programmable logic units (PLUs), microprocessors, or any other device capable of executing and responding to instructions, and can be embodied using one or more general-purpose computers or special-purpose computers. The processing device can execute an operating system (OS) and one or more application software executed in said operating system. Furthermore, the processing device responds to the execution of the software, thereby accessing, storing, manipulating, processing, and generating data. For ease of understanding, this is described as having only one processing device, but those skilled in the art will understand that a processing device can include multiple processing elements and / or multiple types of processing elements.For example, the processing device may include multiple processors, or one processor and one controller. Other processing configurations, such as parallel processors, are also possible.

[0163] The software can include computer programs, code, instructions, or a combination thereof, capable of causing the processing device to operate in a desired manner, or individually or collectively commanding the processing device. For interpretation by the processing device or for providing commands or data to the processing device, the software and / or data can be permanently or temporarily embodied in any type of device, component, physical device, virtual equipment, computer storage medium, or device. The software is distributed across a network-connected computer system and can be stored or executed in a distributed manner. The software and data can be stored in more than one computer read / write storage medium.

[0164] The method according to the embodiments is embodied in the form of program commands executable by various computer means and recorded in a computer read / write medium. The computer read / write medium can include program commands, data files, data structures, etc., in a single or combined form. The program instructions recorded on the medium can be instructions specifically designed and configured to implement the embodiments, or instructions that can be used by those skilled in the art of computer software based on commonly known instructions. The computer read / write recording medium can include magnetic media such as hard disks, floppy disks, and magnetic tapes; optical media similar to CD-ROMs and DVDs; magneto-optical media similar to floppy disks; and hardware devices specifically configured to store and execute program commands, similar to read-only memory (ROM), random access memory (RAM), and flash memory. Examples of program instructions include not only machine language code generated by a compiler, but also high-level language code that can be executed by a computer using an interpreter or the like.

[0165] To perform the operations of the embodiments, the hardware device can be configured to implement the operations with one or more software modules, and vice versa.

[0166] In summary, embodiments have been described with limited accompanying drawings, and those skilled in the art can make various modifications and variations based on the description.For example, appropriate results can be obtained by performing the described technology in a different order than the described method, and / or by combining or integrating the described system, structure, device, circuit, and other constituent elements in a different form than the described method, or by replacing or substituting them with other constituent elements or equivalents.

[0167] Thus, other embodiments, other implementations, and equivalents within the scope of the claims all fall within the scope of the claims of this invention.Instruction Manual 16 / 16 Page 20 CN 121620780 A Figure 1 Instruction Manual Figure 1 / 23 Page 21 CN 121620780 A Figure 2a Instruction Manual Figure 2 / 23 Page 22 CN 121620780 A Figure 2b Instruction Manual Figure 3 / 23 Page 23 CN 121620780 A Figure 3a Instruction Manual Figure 4 / 23 Page 24 CN 121620780 A Figure 3b Instruction Manual Figure 5 / 23 Page 25 CN 121620780 A Figure 3c Figure 4a Instruction Manual Figure 6 / 23 Page 26 CN 121620780 A Figure 4b Instruction Manual Figure 7 / 23 Page 27 CN 121620780 A Figure 5a Instruction Manual Figure 8 / 23 Page 28 CN 121620780 A Figure 5b Instruction Manual Figure 9 / 23 Page 29 CN Figure 5c of the instruction manual, page 10 / 23, CN 121620780 A; Figure 6 of the instruction manual, page 11 / 23, CN 121620780 A; Figure 7a of the instruction manual, page 12 / 23, CN 121620780 A; Figure 7b of the instruction manual, page 13 / 23, CN 121620780 A; Figure 8 of the instruction manual, page 14 / 23, CN 121620780 A; Figure 9a of the instruction manual, page 15 / 23, CN 121620780 A; Figure 9b of the instruction manual, page 16 / 23, CN 121620780 A; Figure 9c of the instruction manual, page 17 / 23, CN 121620780 A; Figure 9d of the instruction manual, page 18 / 23, CN 121620780 A Figure 9e: Appendix to the instruction manual, page 19 / 23, 39 CN 121620780 A Figure 10: Appendix to the instruction manual, page 20 / 23, 40 CN 121620780 A Figure 11: Appendix to the instruction manual, page 21 / 23, 41 CN 121620780 A Figure 12: Appendix to the instruction manual, page 22 / 23, 42 CN 121620780 A Figure 13: Appendix to the instruction manual, page 23 / 23, 43 CN 121620780 A

Claims

1. A method for simulating a knitted garment, the method comprising: extending a garment pattern corresponding to the knitted garment by adding an edge mesh to the garment pattern; mapping vertices of a yarn corresponding to the knitted garment onto a mesh of the extended garment pattern; and generating rendering information of the knitted garment by simulating the garment pattern on which the yarn is placed based on a mapping relationship between the vertices and the mesh of the garment pattern. 2.The method of claim 1, wherein the step of mapping the vertices onto the mesh of the extended garment pattern comprises: obtaining a parameter corresponding to a deformation state of a material space corresponding to the garment pattern; obtaining a displacement of the vertices corresponding to the parameter by interpolating a pre-computed displacement based on parameters corresponding to deformation state samples; and determining positions of the vertices in the material space corresponding to the deformation state based on the obtained displacement. 3.The method of claim 2, wherein the step of generating the rendering information of the knitted garment comprises: obtaining positions of the vertices in a world space corresponding to the knitted garment based on the positions of the vertices in the material space corresponding to the deformation state; and generating the rendering information of the knitted garment based on the obtained positions in the world space. 4.The method of claim 1, wherein the edge mesh is added to an area outside a boundary line of the garment pattern with a certain width. 5.The method of claim 1, wherein the step of extending the garment pattern comprises: adding the edge mesh with a certain curvature to the garment pattern corresponding to the knitted garment. 6.The method of claim 1, wherein the step of extending the garment pattern comprises: adding the edge mesh to the garment pattern based on physical property data of the knitted garment, wherein the physical property data of the knitted garment comprises at least one of setting information of whether to add the edge mesh, size information of an area in which the edge mesh is generated, and curvature information of the edge mesh. 7.The method of claim 1, wherein the vertices include at least one vertex located on a center line of the yarn. 8.The method of claim 1, wherein the step of generating the rendering information of the knitted garment comprises: tessellating the center line of the yarn into a cylindrical mesh; and generating the rendering information of the knitted garment by simulating the garment pattern on which the tessellated yarn is placed based on the mapping relationship between the vertices and the mesh of the garment pattern. 9.The method of claim 1, wherein the step of mapping the vertices onto the mesh of the extended garment pattern comprises: ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ copying vertices of the yarns that are mapped to an overlapping area of the first mesh and the second mesh in the garment pattern, and mapping each of the copied vertices to the first mesh and the second mesh.

10. The method of claim 9, wherein, the edge mesh comprises the first mesh and the second mesh.

11. The method of claim 1, wherein, the step of mapping the vertices onto the mesh of the extended garment pattern comprises the steps of: moving vertices of the yarns that are located outside of the extended garment pattern to a boundary line of the extended garment pattern.

12. The method of claim 1, wherein, the step of mapping the vertices onto the mesh of the extended garment pattern comprises the steps of: rotating the yarns based on direction information of a knit structure corresponding to the knit garment; and mapping vertices of the rotated yarns onto the mesh of the extended garment pattern.

13. A computer program stored on a computer readable medium for performing the method of claim 1 in conjunction with hardware.

14. An electronic device, comprising: at least one processor comprising processing circuitry; and a memory storing instructions, wherein when the at least one processor executes the instructions alone or collectively, the instructions cause the electronic device to perform operations of: extending a garment pattern corresponding to a knit garment by adding an edge mesh to the garment pattern; mapping vertices of yarns corresponding to the knit garment onto a mesh of the extended garment pattern; and generating rendering information of the knit garment by simulating the garment pattern with the yarns based on mapping relationships between the vertices and the mesh of the garment pattern.

15. The electronic device of claim 14, wherein, the operation of mapping the vertices onto the mesh of the extended garment pattern comprises the operations of: obtaining a parameter corresponding to a deformation state of a material space corresponding to the garment pattern; obtaining a displacement of the vertices corresponding to the parameter by interpolating pre-computed displacements based on parameters corresponding to deformation state samples; and determining positions of the vertices in the material space corresponding to the deformation state based on the obtained displacements.

16. The electronic device of claim 15, wherein, the operation of generating the rendering information of the knit garment comprises the operations of: obtaining positions of the vertices in a world space corresponding to the knit garment based on the positions of the vertices in the material space corresponding to the deformation state; and generating the rendering information of the knit garment based on the obtained positions in the world space.

17. The electronic device of claim 14, wherein, the operation of extending the garment pattern comprises the operation of: adding the edge mesh with a certain curvature to the garment pattern corresponding to the knit garment.

18. The electronic device of claim 14, wherein, ​ ​ ​ The operation of expanding the garment pattern includes the following operations: adding the edge mesh to the garment pattern based on the property data of the knitted garment, wherein the property data of the knitted garment includes at least one of setting information of whether to add the edge mesh, size information of a region where the edge mesh is generated, and curvature information of the edge mesh.

19. The electronic device of claim 14, wherein the operation of generating the rendering information of the knitted garment includes the following operations: tessellating the center line of the yarn into a cylindrical mesh; and generating the rendering information of the knitted garment by simulating the garment pattern with the tessellated yarn placed thereon based on the mapping relationship between the vertices and the mesh of the garment pattern.

20. The electronic device of claim 14, wherein the operation of mapping the vertices to the mesh of the expanded garment pattern includes the following operations: copying the vertices of the yarn that are mapped to an overlapping region of a first mesh and a second mesh in the garment pattern, and mapping each copied vertex to the first mesh and the second mesh.