A three-dimensional clothing parameter editing method, system, electronic device and storage medium

CN116305361BActive Publication Date: 2026-09-11NANJING UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310298544.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2026-09-11
Estimated Expiration
2043-03-24

AI Technical Summary

Technical Problem

操作难度高,不适宜普通用户,因此,需要一种是以普通用户的量体定衣的方法

Benefits of technology

[0039] This invention obtains a source file describing a garment pattern; the source file includes the topology of the garment pattern, the stitching relationship of the garment panels, and garment adjustment parameters; it determines the two-dimensional outline of the garment pattern based on the source file and determines a simulation triangular mesh based on the two-dimensional outline of the garment pattern; it performs physical simulation on a human body model using the simulation triangular mesh to obtain garment dynamics simulation results; it determines optimal garment parameters based on the editing mode, the source file, and the garment dynamics simulation results; the editing mode includes a UI control editing mode and a simulation interface interaction mode; it performs retriangulation based on the optimal garment parameters and the source file to obtain a garment model. This invention is designed for ordinary users, allowing them to edit garments more intuitively, thus enabling them to customize garments to their own bodies and solving the cost problem of custom-made clothing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116305361B_ABST
    Figure CN116305361B_ABST
Patent Text Reader

Abstract

The application discloses a three-dimensional clothes parameter editing method and system, electronic equipment and storage medium, and relates to the technical field of computer-aided design. The method comprises the following steps: acquiring a source file describing a clothes pattern; the source file comprises the topology of the clothes pattern, the seaming relationship of clothes panels and clothes adjustment parameters; determining a two-dimensional clothes pattern contour according to the source file and determining a simulation triangular mesh according to the two-dimensional clothes pattern contour; performing physical simulation of the simulation triangular mesh on a human body model to obtain clothes dynamics simulation results; determining optimal clothes parameters according to an editing mode, the source file and the clothes dynamics simulation results; the editing mode comprises a UI control editing mode and a simulation interface interaction mode; and performing re-triangulation according to the optimal clothes parameters and the source file to obtain a clothes model. The application can enable ordinary users to realize clothes tailoring and reduce the cost of clothes tailoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer-aided design technology, and in particular to a method, system, electronic device, and storage medium for editing three-dimensional clothing parameters. Background Technology

[0002] Currently, garment factories mass-produce finished clothes according to certain specifications and sizing standards. However, because ready-to-wear garments are designed based on standard human anatomy models while real-world body shapes vary, they often cannot fully meet the needs of all consumers. From a clothing design perspective, for a garment to achieve the ideal fit, its size needs to be specifically tailored to the user's body measurements (such as waist circumference, shoulder width, and arm length)—this is called custom tailoring. Custom tailoring is a widespread demand, but currently, due to its high cost, only a small number of consumers can afford it.

[0003] Traditional garment production processes can be broadly divided into pattern design, garment size design, and garment making and sewing. Pattern design is relatively fixed, but to achieve the ideal fit, garment sizes need repeated modifications, pattern making, sewing, and fitting tests. The entire process of size modification, pattern making, sewing, and fitting consumes a significant amount of manpower, a major factor limiting productivity and increasing costs. With the continuous development of computer technology, computer-aided design (CAD) technology is widely used in various industries. In the field of garment design, CAD software assists garment designers in completing the entire manufacturing process—including garment design, cutting, styling, and fitting—on a computer.

[0004] Current garment CAD software is primarily geared towards designers, requiring users to have relevant industry experience. Users must edit garment patterns in a two-dimensional space and then simulate them in three-dimensional space. This is technically challenging and unsuitable for ordinary users. Therefore, a method for custom-made garments that allows ordinary users to take measurements is needed. Summary of the Invention

[0005] The purpose of this invention is to provide a method, system, electronic device, and storage medium for editing three-dimensional clothing parameters, enabling ordinary users to achieve body measurement and clothing customization, thereby reducing the cost of body measurement and clothing customization.

[0006] To achieve the above objectives, the present invention provides the following solution:

[0007] A method for editing three-dimensional clothing parameters, comprising:

[0008] Obtain the source file describing the garment pattern; the source file includes the topology of the garment pattern, the stitching relationship of the garment panels, and the garment adjustment parameters;

[0009] The two-dimensional pattern outline of the clothing is determined based on the source file, and a simulation triangular mesh is determined based on the two-dimensional pattern outline of the clothing.

[0010] The simulated triangular mesh was used to perform physical simulation on a human body model to obtain the clothing dynamics simulation results.

[0011] The optimal clothing parameters are determined based on the editing mode, the source file, and the clothing dynamics simulation results; the editing mode includes a UI control editing mode and a simulation interface interaction mode.

[0012] The clothing model is obtained by retriangulation based on the optimal clothing parameters and the source file.

[0013] Optionally, the simulated triangular mesh is used to perform physical simulation on a human body model to obtain clothing dynamics simulation results, specifically including:

[0014] Initialize the simulated triangular mesh;

[0015] The initialized simulation triangular mesh was used to simulate the human body model. An iterative optimization-based simulation method was used, and the Barzilai-Borwein algorithm was used to select the iteration step size to obtain the simulation results of clothing dynamics.

[0016] Optionally, the optimal clothing parameters are determined based on the editing mode, the source file, and the clothing dynamics simulation results, specifically including:

[0017] Obtain the editing mode;

[0018] When the editing mode is the UI control editing mode, the UI control is determined according to the source file and the clothing parameters of the UI control are obtained; the optimal clothing parameters are determined according to the clothing parameters and the clothing dynamics simulation results.

[0019] When the editing mode is the simulation interface interaction mode, a mapping relationship between pattern space points and simulation space points is established using a fitting algorithm based on the clothing dynamics simulation results; the corresponding vector in the three-dimensional simulation space is determined based on the mapping relationship; the projection length is determined based on the corresponding vector in the three-dimensional simulation space; and the optimal clothing parameters are determined based on the projection length.

[0020] The present invention also provides a three-dimensional clothing parameter editing system, comprising:

[0021] The acquisition module is used to acquire source files describing the garment pattern; the source files include the topology of the garment pattern, the stitching relationship of the garment panels, and the garment adjustment parameters.

[0022] The clothing 2D pattern outline and simulation triangular mesh determination module is used to determine the clothing 2D pattern outline based on the source file and to determine the simulation triangular mesh based on the clothing 2D pattern outline;

[0023] The physical simulation module is used to perform physical simulation of the simulation triangular mesh on the human body model to obtain clothing dynamics simulation results.

[0024] The optimal clothing parameter determination module is used to determine the optimal clothing parameters based on the editing mode, the source file, and the clothing dynamics simulation results; the editing mode includes a UI control editing mode and a simulation interface interaction mode.

[0025] The retriangulation module is used to perform retriangulation based on the optimal clothing parameters and the source file to obtain the clothing model.

[0026] Optionally, the physical simulation module specifically includes:

[0027] An initialization unit is used to initialize the simulated triangular mesh;

[0028] The simulation unit is used to simulate the initialized simulation triangular mesh on the human body model. It uses an iterative optimization-based simulation method and the Barzilai-Borwein algorithm to select the iteration step size to obtain the simulation results of clothing dynamics.

[0029] Optionally, the optimal clothing parameter determination module specifically includes:

[0030] Acquisition unit, used to acquire the editing mode;

[0031] The UI control editing unit is used to determine the UI control based on the source file and obtain the clothing parameters of the UI control when the editing mode is UI control editing mode; and to determine the optimal clothing parameters based on the clothing parameters and the clothing dynamics simulation results.

[0032] The simulation interface interaction unit is used to, when the editing mode is the simulation interface interaction mode, establish a mapping relationship between pattern space points and simulation space points based on the clothing dynamics simulation results using a fitting algorithm; determine the corresponding vector in the three-dimensional simulation space based on the mapping relationship; determine the projection length based on the corresponding vector in the three-dimensional simulation space; and determine the optimal clothing parameters based on the projection length.

[0033] The present invention also provides an electronic device, comprising:

[0034] One or more processors;

[0035] A storage device on which one or more programs are stored;

[0036] When the one or more programs are executed by the one or more processors, the one or more processors implement the methods described above.

[0037] The present invention also provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-described method.

[0038] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0039] This invention obtains a source file describing a garment pattern; the source file includes the topology of the garment pattern, the stitching relationship of the garment panels, and garment adjustment parameters; it determines the two-dimensional outline of the garment pattern based on the source file and determines a simulation triangular mesh based on the two-dimensional outline of the garment pattern; it performs physical simulation on a human body model using the simulation triangular mesh to obtain garment dynamics simulation results; it determines optimal garment parameters based on the editing mode, the source file, and the garment dynamics simulation results; the editing mode includes a UI control editing mode and a simulation interface interaction mode; it performs retriangulation based on the optimal garment parameters and the source file to obtain a garment model. This invention is designed for ordinary users, allowing them to edit garments more intuitively, thus enabling them to customize garments to their own bodies and solving the cost problem of custom-made clothing. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is a flowchart illustrating the method for editing 3D clothing parameters.

[0042] Figure 2 This is a schematic diagram of a parametric skirt model;

[0043] Figure 3 Initialize the position map for the facets;

[0044] Figure 4 This is an illustration of editing by directly modifying clothing parameters;

[0045] Figure 5 This is a diagram illustrating editing through direct interaction with a clothing model in three-dimensional space.

[0046] Figure 6 This is a schematic diagram of projecting editing vectors from the 3D simulation space onto the layout space.

[0047] Figure 7 Flowchart of the method for editing 3D clothing parameters. Detailed Implementation

[0048] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0049] The purpose of this invention is to provide a method, system, electronic device, and storage medium for editing three-dimensional clothing parameters, enabling ordinary users to achieve body measurement and clothing customization, thereby reducing the cost of body measurement and clothing customization.

[0050] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0051] like Figure 7 As shown, the present invention provides a method for editing three-dimensional clothing parameters, characterized in that it includes:

[0052] Step 701: Obtain the source file describing the garment pattern; the source file includes the topology of the garment pattern, the stitching relationship of the garment panels, and the garment adjustment parameters.

[0053] Step 702: Determine the two-dimensional pattern outline of the clothing based on the source file and determine the simulation triangular mesh based on the two-dimensional pattern outline of the clothing.

[0054] Step 703: Perform physical simulation on the human body model using the simulated triangular mesh to obtain the clothing dynamics simulation results.

[0055] Step 703 specifically includes:

[0056] The simulation triangular mesh is initialized; the initialized simulation triangular mesh is then simulated on the human body model. An iterative optimization-based simulation method is used, and the iteration step size is selected using the Barzilai-Borwein algorithm to obtain the clothing dynamics simulation results.

[0057] Step 704: Determine the optimal clothing parameters based on the editing mode, the source file, and the clothing dynamics simulation results; the editing mode includes UI control editing mode and simulation interface interaction mode.

[0058] Step 704 specifically includes:

[0059] Obtain the edit mode.

[0060] When the editing mode is the UI control editing mode, the UI control is determined according to the source file and the clothing parameters of the UI control are obtained; the optimal clothing parameters are determined according to the clothing parameters and the clothing dynamics simulation results.

[0061] In this editing mode, users can edit clothing by directly modifying clothing parameters (such as skirt length, waist circumference, etc.). Specifically, the system automatically generates editable clothing UI controls through DSL source files, and users can manipulate clothing parameters through these UI controls.

[0062] When the editing mode is the simulation interface interaction mode, a mapping relationship between pattern space points and simulation space points is established using a fitting algorithm based on the clothing dynamics simulation results; the corresponding vector in the three-dimensional simulation space is determined based on the mapping relationship; the projection length is determined based on the corresponding vector in the three-dimensional simulation space; and the optimal clothing parameters are determined based on the projection length.

[0063] In this editing mode, users edit clothing by interacting with the clothing model in three-dimensional space, specifically including:

[0064] By using the surface fitting method, a mapping from a two-dimensional template space to a three-dimensional simulation space is first established. In this example, the moving least squares method is used.

[0065] Using the theory of tangent vector mapping in differential geometry, the editing vector provided by the user on the 3D control is projected onto the 2D template space. Let the user-specified editing vector... Represents the set of real numbers. Let E1 = (10) and E2 = (01) be the set of values ​​for three-dimensional real vectors. Then, the corresponding vectors E1 and E2 in the three-dimensional simulation space are:

[0066]

[0067] Where φ is the mapping of the fabric point from the two-dimensional pattern space coordinates to the three-dimensional simulation space coordinates, v is the coordinate of the fabric point in the two-dimensional pattern space, E1 and E2 are the tangent planes of the surface spanned by E1 and E2, and r' is the projection length on E1 and E2. They are respectively

[0068]

[0069]

[0070] After obtaining the edit vector r in the pattern space, the clothing parameter values ​​θ are updated. If we assume the process by which the DSL interpreter generates the pattern based on the clothing parameters θ is f(θ), the optimal solution for the clothing parameters is...

[0071]

[0072] Step 705: Perform retriangulation based on the optimal clothing parameters and the source file to obtain the clothing model.

[0073] Replace the clothing adjustment parameters in the source file with the optimal clothing parameters; generate a new two-dimensional clothing pattern outline based on the replaced source file; compare the new two-dimensional clothing pattern outline with the original two-dimensional clothing pattern outline to obtain newly added or removed points; generate a new spring-mass system based on the newly added or removed points; determine the two-dimensional pattern coordinates of the newly added points based on the coordinates of the original mass points, and determine the initial position of the newly added points in the simulation space; determine the simulation triangular mesh based on the initial position of the newly added points in the simulation space and the new spring-mass system, and then perform the simulation.

[0074] This invention significantly lowers the barrier to entry for clothing pattern design and modification. Users can choose to modify clothing patterns through parameters or by interacting with the simulated clothing mesh. The edited pattern will be re-simulated to obtain a real-time preview result.

[0075] To optimize existing clothing CAD editing methods and enable ordinary users to participate in the process of taking measurements and custom-making clothing, this invention develops a DSL (Domain-Driven Language) syntax for describing clothing patterns. A source file describing the geometry and stitching relationships of the clothing pattern is written based on the DSL syntax. A corresponding DSL interpreter is used to generate the 2D outline line segment information of the clothing pattern. Based on the outline line segment information, a simulated triangular mesh of the clothing facets is generated. The clothing model is then physically simulated on a human body model, and an initial simulation result is obtained based on the physical simulation algorithm. Users can edit the clothing in two ways: by directly modifying clothing parameters (such as skirt length, waist circumference, etc.) and by directly interacting with the clothing model in 3D space.

[0076] In the first method, the system locates the variable parameters of the clothing through the DSL source file and automatically generates UI controls (such as sliders) to control these parameters. Users then edit the clothing parameters by interacting with these UI controls.

[0077] The second method involves users interacting directly with the clothing model, dragging control points or lines on the clothing model's outline in the simulation interface, and using algorithms to find the optimal parameters.

[0078] After obtaining the optimal parameters, the garment outline is updated, and retriangulation is performed based on the outline. During the retriangulation process, new points and triangles are introduced into the 2D pattern space. Surface fitting (e.g., moving least squares method) is used to set the initial values ​​of these points in the 3D space, and finally, simulation is performed. An interpolation algorithm is used to interpolate the newly generated points into the 3D space after modifying the garment pattern parameters and retriangulating, providing an initial value for the simulation.

[0079] like Figure 1 As shown, the method for editing 3D clothing parameters includes the following steps in practical applications:

[0080] Step 101: The designer provides a DSL source file describing the pattern, which specifies the topology of the garment pattern, the stitching relationship of the garment panels, and adjustable garment parameters.

[0081] The DSL interpreter has forward reasoning and backward automatic differentiation capabilities. The DSL syntax mainly includes variable declaration and assignment, basic arithmetic operators, functions and lists, etc. Functions can return numbers or lists. In addition, DSL also includes keywords for specifying editable parameters and garment stitching relationships.

[0082] Figure 2 This is a schematic diagram of a parametric skirt model. Assume the relationships between the parameters of the skirt pattern model are as follows:

[0083] r = W / 2π

[0084]

[0085]

[0086]

[0087] Where W represents waist length, L represents skirt length, and h is a parameter that controls the shape of the skirt. These three parameters are specified by the designer and are variable parameters that users can set. The remaining parameters are intermediate variables.

[0088] Here is an example of describing a skirt using DSL syntax:

[0089]

[0090] In the DSL source file, l_ is l', L is L, and alpha is α. lineByTheta is a function that determines the coordinates of a point along a straight line. lineByTheta(a, b) means moving a length a in the direction b from the current point.

[0091] curve_fit_circle is a function that determines the coordinates of a point along an arc. curve_fit_circle(a, b, c) means determining the coordinates of a point along a circle of radius a, starting from angle b and ending at angle c.

[0092] SewInfo is used to specify stitching information. Skirt() returns the coordinates of each point in the skirt pattern, and the system automatically connects the point coordinates in sequence to form the outline of the garment pattern.

[0093] Step 102: The system calculates the positions of each vertex of the clothing 2D pattern in the 2D pattern space using the DSL source file, and determines the outline by connecting the vertices. The outline is a closed polygon in 2D space. This polygon can be triangulated to generate a triangular mesh for simulation. This invention uses the background mesh method for triangulation.

[0094] A garment pattern patch is described by a list of DSLs. Each element in the list represents the coordinates of a vertex of the pattern in the two-dimensional pattern space. Connecting the vertices in sequence yields the pattern outline, which is used for generating the simulation mesh in the next step.

[0095] Step 103: Generate a simulated triangular mesh using the two-dimensional outline of the clothing pattern.

[0096] There are many methods for triangulation in two-dimensional template space, such as Delaunay triangulation. This invention employs a regular triangulation method, suitable for parallel computation, enabling the system to achieve real-time editing.

[0097] Step 104: Simulation initialization. After obtaining the clothing simulation triangular mesh in step 103:

[0098] Step 1041: Establish a mass-spring system based on the simulated triangular mesh, using the vertices of the mesh as the masses and the edges as the springs. Generate stitching springs between the facets based on the stitching information provided in the DSL source file for subsequent simulation.

[0099] Step 1042: As Figure 3 As shown, to ensure that the simulated clothing can be worn on a human body, the triangular mesh facets of the clothing, which have not yet been simulated, need to be placed in a reasonable initial position on the human body model through operations such as rotation and translation. This position serves as the X-axis in the iterative formula of step 105. (0) .

[0100] Step 105: Based on the simulated triangular mesh, perform physical simulation on the human body model using the simulated triangular mesh.

[0101] Physical simulation specifically includes:

[0102] A spring-mass model was established based on the simulated triangular mesh topology. The energy function of the clothing was then established based on the spring-mass model, and the optimal solution was obtained iteratively using a first-order numerical optimization algorithm. The iteration step size was determined by the Barzilai-Borwein algorithm.

[0103] Simulation of a spring-mass system, assuming... Let X be the number of vertices in the clothing mesh, N be the number of vertices in the clothing mesh, E(X,Q) represent the total energy of the internal and external forces of the system, Q represent the human body point set, U(X) be the elastic potential energy, G(X) be the gravitational potential energy, and Φ(X,Q) be the collision potential energy. Then, the simulation steady-state X... * This can be solved by the following optimization problem.

[0104]

[0105] E(X,Q)=U(X)+G(X)+Φ(X,Q)

[0106] All of these functions, U(X)+G(X)+Φ(X,Q), are differentiable with respect to X.

[0107] Iterative optimization numerical solution, where k represents the number of iterations.

[0108]

[0109] The iterations for each mass point are independent, making them well-suited for parallel implementation on a GPU. The iteration step size α is calculated using the Barzilai-Borwein algorithm. When the iterative optimization process converges to a steady state, the final dynamic simulation result of the clothing is obtained. Obtaining the dynamic simulation result yields the coordinates of all points in the simulated triangular mesh. Rendering this triangular mesh allows it to be displayed on the user's screen.

[0110] Step 106: Two editing modes are available: The system locates the variable parameters of the clothing through the DSL source file and automatically generates UI controls (such as sliders) to control these parameters. Users edit the clothing parameters by manipulating these UI controls; alternatively, users interact directly with the clothing model, dragging control points or lines on the clothing model's outline in the simulation interface to find the optimal parameters through algorithms.

[0111] Step 1061: As Figure 4 As shown, in the first editing mode, the DSL syntax provides keywords to indicate variable parameters of clothing. Fashion designers specify these variable parameters when writing the DSL source file. These parameters include skirt length, waist circumference, etc. The system locates the variable parameters in the DSL source file provided by the designer and automatically generates UI controls (such as sliders) to manage them.

[0112] The process of users editing clothing parameters by manipulating UI controls:

[0113] The DSL source file specifies which parameters are variable. Users adjust these parameters (such as skirt length) by interacting with UI controls that control these variable parameters (e.g., dragging a slider with the mouse). The system then changes the pattern parameters accordingly to prepare for subsequent processes.

[0114] Step 1062: As Figure 5 As shown, in the second editing mode, the variable parameters of the clothing are specified by the designer (e.g., L, W, h in the skirt example above). The user interacts directly with the simulated triangular mesh, dragging control points or control lines on the triangular mesh outline in the simulation interface to change the variable parameters and find the optimal parameters through algorithms.

[0115] Since the simulation results are not differentiable, geometry is used to approximate them. A fitting algorithm is used to establish the mapping relationship φ between the pattern space points and the simulation space points. For a three-dimensional real vector, Let be the set of values ​​that a two-dimensional real vector can take.

[0116] like Figure 6 As shown, where Figure 6 In the diagram, (a) represents the local coordinate system within the layout space. Figure 6 In the diagram, (b) represents the local coordinate system of the corresponding point in the simulation space. Let the coordinates of point P in the pattern space be v. P In the three-dimensional simulation space, the coordinates are x P The user specified an edit vector in the 3D simulation space. Given that its starting point is x p Find the corresponding edit vector in the layout space. (starting from v) P ).

[0117] Let the two vectors e1=(10) and e2=(01) originate from P. The corresponding vectors in the three-dimensional simulation space are:

[0118]

[0119] Starting from point P, let the tangent plane of the surface stretched at point P, and the projection lengths of r' onto E1 and E2 be respectively...

[0120]

[0121]

[0122] After obtaining the edit vector r, the clothing parameter value θ is updated. First, assume the pattern described by the DSL source file is f(θ). The DSL interpreter implements backpropagation, i.e. It is possible to determine. T is the transpose.

[0123] Only one point will move during editing, so we'll consider only one point for now. Let p = f(θ), where... m is the number of variable parameters. Assume an edit vector is applied to p. The goal is to change the clothing parameters so that the displacement of point p on the clothing pattern matches the edit vector.

[0124]

[0125] Underdetermined linear systems have infinitely many solutions. In this invention, taking the minimum value among all feasible solutions is a reasonable approach.

[0126]

[0127] That is to ask

[0128]

[0129]

[0130] Solving

[0131]

[0132] θ * =θ+dθ *

[0133] Step 107: After changing the clothing parameters, perform a retriangulation process on the mesh. During the retriangulation process, interpolation is used to find the initial positions of the newly added points. Then, resimulate until convergence. (The process is repeated twice in the original text.)

[0134] Similarly, using the surface fitting method, a mapping φ from the two-dimensional pattern space to the three-dimensional simulation space is first established. In this invention, the moving least squares method is used. Based on the position of the newly inserted point in the pattern coordinate system, a reasonable initial position of the newly inserted point in the three-dimensional coordinate system is calculated for simulation.

[0135] Let the modified clothing parameters be θ. * The new outline f(θ) of the clothing in the two-dimensional pattern space can be obtained from the DSL source file. * The modified clothing parameters replace the original clothing in the source file and regenerate the outline. Since the clothing particles are required to be uniform in the pattern space, new particles will be introduced or the original particles will be reduced compared to the original pattern outline f(θ).

[0136] The mesh is then retriangulated to create a new spring-mass system.

[0137] Using the coordinates of all clothing material points on the clothing triangular mesh before editing and simulation in both pattern space and simulation space, a mapping relationship φ is established using surface fitting. By providing the two-dimensional coordinates x of the newly added mass, the three-dimensional initial position φ(x) of the newly added mass can be found using this relationship. After calculating the initial positions of all new masses in the simulation space and re-establishing the mesh relationship of the spring-mass system, the simulation can proceed to step 105 until convergence.

[0138] This invention proposes a novel method for editing clothing, which greatly lowers the barrier to entry for clothing pattern design and modification. Users can choose to modify the clothing pattern through parameters or by interacting with the simulated clothing mesh. The edited pattern will be re-simulated to obtain a real-time preview result.

[0139] The present invention also provides a three-dimensional clothing parameter editing system, comprising:

[0140] The acquisition module is used to acquire source files describing the garment pattern; the source files include the topology of the garment pattern, the stitching relationship of the garment panels, and the garment adjustment parameters.

[0141] The clothing 2D pattern outline and simulation triangular mesh determination module is used to determine the clothing 2D pattern outline based on the source file and to determine the simulation triangular mesh based on the clothing 2D pattern outline.

[0142] The physical simulation module is used to perform physical simulation of the simulated triangular mesh on the human body model to obtain the clothing dynamics simulation results.

[0143] The optimal clothing parameter determination module is used to determine the optimal clothing parameters based on the editing mode, the source file, and the clothing dynamics simulation results; the editing mode includes a UI control editing mode and a simulation interface interaction mode.

[0144] The retriangulation module is used to perform retriangulation based on the optimal clothing parameters and the source file to obtain the clothing model.

[0145] As an optional implementation, the physical simulation module specifically includes:

[0146] An initialization unit is used to initialize the simulated triangular mesh.

[0147] The simulation unit is used to simulate the initialized simulation triangular mesh on the human body model. It uses an iterative optimization-based simulation method and the Barzilai-Borwein algorithm to select the iteration step size to obtain the simulation results of clothing dynamics.

[0148] As an optional implementation, the optimal clothing parameter determination module specifically includes:

[0149] The acquisition unit is used to acquire the editing mode.

[0150] The UI control editing unit is used to determine the UI control based on the source file and obtain the clothing parameters of the UI control when the editing mode is UI control editing mode; and to determine the optimal clothing parameters based on the clothing parameters and the clothing dynamics simulation results.

[0151] The simulation interface interaction unit is used to, when the editing mode is the simulation interface interaction mode, establish a mapping relationship between pattern space points and simulation space points based on the clothing dynamics simulation results using a fitting algorithm; determine the corresponding vector in the three-dimensional simulation space based on the mapping relationship; determine the projection length based on the corresponding vector in the three-dimensional simulation space; and determine the optimal clothing parameters based on the projection length.

[0152] The present invention also provides an electronic device, comprising:

[0153] One or more processors.

[0154] A storage device on which one or more programs are stored.

[0155] When the one or more programs are executed by the one or more processors, the one or more processors implement the methods described above.

[0156] The present invention also provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-described method.

[0157] This invention includes: a domain-specific language (DSL) syntax for describing the topology of clothing patterns in two-dimensional space, and a corresponding DSL interpreter. To facilitate direct editing by the user in three-dimensional space, the DSL interpreter supports automatic differentiation. A clothing simulation triangular mesh is generated using a fixed background triangular mesh and contour lines. The clothing simulation triangular mesh model is then simulated on a human body model. Users can edit the clothing by directly modifying parameters (e.g., skirt length, waist circumference) or by interacting with the clothing model in three-dimensional space. After editing the clothing parameters, the clothing contour transforms accordingly. After retriangulation, the simulation continues until it converges to a steady state.

[0158] This invention significantly lowers the barrier to entry for clothing pattern design and modification. Users can choose to modify clothing patterns through parameters or by interacting with the simulated clothing mesh. The edited pattern will be re-simulated to obtain a real-time preview result.

[0159] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section.

[0160] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. Furthermore, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for editing three-dimensional clothing parameters, characterized in that, include: Obtain the source file describing the garment pattern; the source file includes the topology of the garment pattern, the stitching relationship of the garment panels, and the garment adjustment parameters; The two-dimensional pattern outline of the clothing is determined based on the source file, and a simulation triangular mesh is determined based on the two-dimensional pattern outline of the clothing. The simulated triangular mesh was used to perform physical simulation on a human body model to obtain the clothing dynamics simulation results. Determining optimal clothing parameters based on the editing mode, the source file, and the clothing dynamics simulation results specifically includes: acquiring the editing mode; when the editing mode is a UI control editing mode, determining the UI control based on the source file and acquiring the clothing parameters edited by the UI control; determining the optimal clothing parameters based on the clothing parameters and the clothing dynamics simulation results; in this editing mode, the user edits the clothing by directly modifying the clothing parameters, specifically, the system automatically generates editable clothing UI controls through the DSL source file, and the user manipulates the clothing parameters through these UI controls; when the editing mode is a simulation interface interaction mode, establishing a mapping relationship between pattern space points and simulation space points using a fitting algorithm based on the clothing dynamics simulation results; determining the corresponding vector in the three-dimensional simulation space based on the mapping relationship; determining the projection length based on the corresponding vector in the three-dimensional simulation space; and determining the optimal clothing parameters based on the projection length; the editing mode includes a UI control editing mode and a simulation interface interaction mode; The simulation interface allows users to edit clothing by interacting with the clothing model in three-dimensional space, specifically including: The surface fitting method is adopted to first establish a mapping from the two-dimensional pattern space to the three-dimensional simulation space, and then the moving least squares method is used. Using the theory of differential geometry tangent vector mapping, the editing vector provided by the user on the three-dimensional control is projected onto the two-dimensional template space; let the user-specified editing vector... , Represents the set of real numbers. Let be the set of values ​​for a three-dimensional real vector, and let the unit vector in the two-dimensional template space be . This corresponds to a vector in the three-dimensional simulation space. , for in, For clothing material points Coordinates of clothing material points in two-dimensional pattern space The tangent plane of the curved surface, exist Projected length , They are respectively Obtain the edit vector in the layout space Next, update the clothing parameter values. Assume the DSL interpreter uses clothing parameters... The process of generating a pattern is The solution for the optimal clothing parameters is The clothing model is obtained by retriangulation based on the optimal clothing parameters and the source file.

2. The three-dimensional clothing parameter editing method according to claim 1, characterized in that, The simulated triangular mesh is then used to perform physical simulation on a human body model to obtain clothing dynamics simulation results, specifically including: Initialize the simulated triangular mesh; The initialized simulation triangular mesh was used to simulate the human body model. An iterative optimization-based simulation method was used, and the Barzilai-Borwein algorithm was used to select the iteration step size to obtain the simulation results of clothing dynamics.

3. A three-dimensional clothing parameter editing system, characterized in that, include: The acquisition module is used to acquire source files describing the garment pattern; the source files include the topology of the garment pattern, the stitching relationship of the garment panels, and the garment adjustment parameters. The clothing 2D pattern outline and simulation triangular mesh determination module is used to determine the clothing 2D pattern outline based on the source file and to determine the simulation triangular mesh based on the clothing 2D pattern outline; The physical simulation module is used to perform physical simulation of the simulation triangular mesh on the human body model to obtain clothing dynamics simulation results. The optimal clothing parameter determination module is used to determine the optimal clothing parameters based on the editing mode, the source file, and the clothing dynamics simulation results; the editing mode includes a UI control editing mode and a simulation interface interaction mode. The optimal clothing parameter determination module specifically includes: an acquisition unit for acquiring the editing mode; a UI control editing unit for, when the editing mode is UI control editing mode, determining UI controls based on the source file and acquiring the clothing parameters edited by the UI controls; determining the optimal clothing parameters based on the clothing parameters and the clothing dynamics simulation results; in this editing mode, the user edits by directly modifying the clothing parameters, specifically, the system automatically generates editable clothing UI controls based on the DSL source file, and the user operates the clothing parameters through these UI controls; and a simulation interface interaction unit for, when the editing mode is simulation interface interaction mode, establishing a mapping relationship between pattern space points and simulation space points based on the clothing dynamics simulation results using a fitting algorithm; determining the corresponding vector in the three-dimensional simulation space based on the mapping relationship; determining the projection length based on the corresponding vector in the three-dimensional simulation space; and determining the optimal clothing parameters based on the projection length. The simulation interface allows users to edit clothing by interacting with the clothing model in three-dimensional space, specifically including: The surface fitting method is adopted to first establish a mapping from the two-dimensional pattern space to the three-dimensional simulation space, and then the moving least squares method is used. Using the theory of differential geometry tangent vector mapping, the editing vector provided by the user on the three-dimensional control is projected onto the two-dimensional template space; let the user-specified editing vector... , Represents the set of real numbers. Let be the set of values ​​for a three-dimensional real vector, and let the unit vector in the two-dimensional template space be . This corresponds to a vector in the three-dimensional simulation space. , for in, For clothing material points Coordinates of clothing material points in two-dimensional pattern space The tangent plane of the curved surface, exist Projected length , They are respectively Obtain the edit vector in the layout space Next, update the clothing parameter values. Assume the DSL interpreter uses clothing parameters... The process of generating a pattern is The solution for the optimal clothing parameters is The retriangulation module is used to perform retriangulation based on the optimal clothing parameters and the source file to obtain the clothing model.

4. The three-dimensional clothing parameter editing system according to claim 3, characterized in that, The physics simulation module specifically includes: An initialization unit is used to initialize the simulated triangular mesh; The simulation unit is used to simulate the initialized simulation triangular mesh on the human body model. It uses an iterative optimization-based simulation method and the Barzilai-Borwein algorithm to select the iteration step size to obtain the simulation results of clothing dynamics.

5. An electronic device, characterized in that, include: One or more processors; A storage device on which one or more programs are stored; When the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method as described in any one of claims 1 to 2.

6. A storage medium, characterized in that, It stores a computer program thereon, wherein the computer program, when executed by a processor, implements the method as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Three-dimensional clothes real-time simulation editing method and system

    CN113076571A