Insertion strip simulation method and system, medium and computer

By generating and synchronizing the embedding grid in clothing simulation, the problem that the embedding cannot follow the changes in the clothing model is solved, and the synchronous design and rendering of the embedding and clothing model is realized, improving the simulation quality and efficiency.

CN119206129APending Publication Date: 2024-12-27GUANGZHOU XINJING INFORMATION TECH SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411199958.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the existing 3D clothing simulation technology, the embedding cannot be synchronously simulated with the clothing model, resulting in cumbersome design and lack of realism, and the actual purpose of virtual clothing simulation cannot be achieved.

Method used

By obtaining the flat plate of the clothing, determining the inlay curve, generating a flat grid and constraining its vertices, converting it into a spatial plate and grid, inserting a cross-sectional figure to form a inlay model, so that it can be generated and changed synchronously with the clothing model.

Benefits of technology

The synchronous design and rendering of the inlay and the clothing model is realized, which reduces the design difficulty, improves the rendering quality and efficiency of the clothing model, and makes the inlay model more realistic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119206129A_ABST
    Figure CN119206129A_ABST
Patent Text Reader

Abstract

The invention relates to an insertion strip simulation method and system, a medium and a computer, and has the following beneficial effects that according to the insertion strip simulation method provided by the invention, in a model design process, insertion strip grids are correspondingly generated on a preset board, and a model with insertion strips is generated by utilizing the insertion strip grids and board grids. The insertion strip and the model can be generated synchronously, the insertion strip can change in real time along with the model, and compared with a traditional insertion strip generation method, the model is more vivid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of clothing simulation, and more specifically, to a fillet simulation method, system, medium and computer. Background Art

[0002] Virtual clothing simulation technology has entered a rapid development stage in recent years. Most mainstream clothing simulation technologies are grid-based modeling simulation. Clothing simulation not only includes the simulation of clothing patterns, but also the simulation of clothing craftsmanship. As one of the clothing crafts, the welt edge process plays a role in decorating clothing and enriches the styles of clothing. In the existing 3D clothing simulation, the welt cannot be synchronized with the clothing model for simulation. It is necessary to set the welt model on the clothing model after generating the welt model. Once the clothing model is changed, the welt model needs to be set on the clothing model again. The steps are cumbersome, and the welt model styles are scarce and lack of realism, which cannot achieve the actual purpose of 3D virtual clothing simulation. Summary of the invention

[0003] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a fillet simulation method, system, medium and computer to overcome the disadvantage that the fillet in the prior art cannot change with the clothing simulation model.

[0004] The above technical objectives of the present invention are achieved through the following technical solutions: A fillet simulation method, comprising:

[0005] S1, obtaining a plane pattern of clothing, recorded as a first plane pattern, and determining a curve of a welt on the first plane pattern according to a predetermined clothing design, recorded as a first curve;

[0006] S2, generating a plane mesh on the first plane plate, recorded as a first plane mesh; and constraining the first plane mesh using the first curve so that some vertices of the first plane mesh are located on the first curve, and recording the mesh vertices located on the first curve as first vertices;

[0007] S3, according to a predetermined rule, transforming the first plane plate into a spatial plate, recorded as a first spatial plate, transforming the first plane grid into a three-dimensional grid, recorded as a first three-dimensional grid; according to the topological relationship of the grid, determining grid vertices corresponding to the plurality of first vertices one by one, recorded as second vertices;

[0008] S4, obtaining a cross-sectional figure of the welt, inserting a cross-sectional figure at each second vertex respectively, connecting several of the cross-sectional figures in sequence to form a welt model, rendering the welt model and the first spatial pattern, and obtaining a clothing simulation model with welts.

[0009] Optionally, determining a curve of the welt on the first plane plate according to a predetermined clothing design, recorded as a first curve, includes:

[0010] Acquire all the pattern curves of the first plane pattern, wherein the pattern curves include pattern outer contour curves and pattern inner curves;

[0011] Calculate the intersection points between any two pattern curves respectively, and record them as the first intersection points;

[0012] All the pattern curves are segmented according to the first intersection point to obtain a number of pattern curve segments, and a first intersection point is set at both ends of each pattern curve segment; the length of each pattern curve segment is calculated respectively, recorded as the first length, and a corresponding relationship between each pattern curve segment and the first length is established;

[0013] The starting point and the ending point of the fillet are obtained, both of which are located on the pattern curve, and the shortest path from the starting point to the ending point is obtained according to the first length corresponding to the pattern curve segment, and the shortest path is recorded as the first curve.

[0014] Optionally, it also includes: determining whether the fillet crosses the stitching edge between the first plane panels, and if so, obtaining the intersection points between the stitching edge of the two first plane panels and the fillet respectively, and recording them as the second intersection point and the third intersection point respectively, connecting the second intersection point and the third intersection point, and recording the length of the line segment between the second intersection point and the third intersection point as the second length.

[0015] Optionally, obtaining a cross-sectional graph of the fillet includes:

[0016] Obtaining a plane plate of the side surface of the fillet, recorded as a second plane plate, and generating a discrete point matrix on the second plane plate according to the accuracy of the first plane grid; the number of discrete points in the long axis direction of the discrete point matrix is ​​equal to the number of the second vertices;

[0017] Each row of discrete points distributed along the minor axis direction on the discrete point matrix is ​​obtained and recorded as a discrete point group. The discrete points in the discrete point group are sequentially connected and transformed into a cross-sectional figure of the fillet according to a predetermined rule.

[0018] Optionally, the normalized coordinates of the discrete point matrix are calculated, and the spatial coordinates of each cross-sectional figure are determined using the normalized coordinates of the discrete point matrix and the spatial coordinates of the second vertex.

[0019] Optionally, the step of sequentially connecting a plurality of the cross-sectional figures to form a fillet model includes:

[0020] Connect all the discrete points in the discrete point matrix according to a predetermined rule to generate a second plane grid accordingly;

[0021] According to the topological relationship of the second plane grid, each discrete point on all the cross-sectional figures is connected in sequence to obtain a corresponding second three-dimensional grid, and a fillet model is generated according to the second three-dimensional grid.

[0022] Optionally, the step of obtaining a cross-sectional figure of the fillet and inserting the cross-sectional figure at each second vertex includes:

[0023] It is determined whether the first curve is at the edge of the garment. If so, the coordinates of the cross-sectional figure are calculated by extruding along the boundary direction of the first spatial pattern. If not, the coordinates of the cross-sectional figure are calculated by extruding along the normal direction of the first spatial pattern.

[0024] A fillet simulation system, comprising:

[0025] A fillet curve calculation module is used to obtain a plane pattern of a garment, which is recorded as a first plane pattern, and determine a curve of a fillet on the first plane pattern according to a predetermined garment design, which is recorded as a first curve;

[0026] A first vertex calculation module is used to generate a plane mesh on the first plane plate, which is recorded as a first plane mesh; and to constrain the first plane mesh using the first curve so that some vertices of the first plane mesh are located on the first curve, and the mesh vertices located on the first curve are recorded as first vertices;

[0027] The second vertex calculation module is used to transform the first plane plate into a spatial plate according to a predetermined rule, which is recorded as the first spatial plate, and transform the first plane grid into a three-dimensional grid, which is recorded as the first three-dimensional grid; according to the topological relationship of the grid, determine the grid vertices corresponding to the first vertices one by one, which are recorded as the second vertices;

[0028] Simulation model generation module: used to obtain the cross-sectional graphics of the inlay, insert the cross-sectional graphics on each second vertex respectively, connect several of the cross-sectional graphics in sequence to form an inlay model, render the inlay model and the first spatial pattern, and obtain a clothing simulation model with inlay.

[0029] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0030] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0031] In summary, the present invention has the following beneficial effects: the present application proposes a method for simulating an inlay, in the process of designing a clothing model, a corresponding inlay grid is generated on a predetermined clothing pattern, and a clothing model with an inlay is generated by using the inlay grid and the pattern grid. By using the method of the present application, the inlay can be generated synchronously with the clothing model, and the inlay can change in real time with the clothing model. Compared with the traditional inlay generation method, the clothing model is more realistic. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A flow chart of a fillet simulation method of the present invention;

[0033] Figure 2 A structural diagram of a fillet simulation system of the present invention;

[0034] Figure 3 is an internal structure diagram of a computer device in an embodiment of the present invention;

[0035] Figure 4 It is a schematic diagram of the pattern curve and the first vertex on the pattern;

[0036] Figure 5 A schematic diagram of connecting line segments of the second intersection point and the third intersection point between the plates;

[0037] Figure 6 A schematic diagram of a welt crossing the stitched edge of a pattern piece;

[0038] Figure 7 Develop the pattern image for the side surface of the fillet;

[0039] Figure 8 It is a schematic diagram of extruding a cross-section figure along the direction of the plate;

[0040] Fig. 9 A schematic diagram of extruding a cross-section figure along the normal direction of the plate;

[0041] Fig.10 A schematic diagram of a welt located at the edge of a garment;

[0042] Fig.11 Schematic diagram of the welt being located at a non-edge position of the garment.

[0043] In the figure: 1. fillet curve calculation module; 2. first vertex calculation module; 3. second vertex calculation module; 4. simulation model generation module. DETAILED DESCRIPTION

[0044] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. Several embodiments of the present invention are shown in the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein.

[0045] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0046] In the present invention, unless otherwise clearly specified and limited, the first feature being "above" or "below" the second feature may include the first and second features being in direct contact, or may include the first and second features being in contact not directly but through another feature between them. Moreover, the first feature being "above", "above" and "above" the second feature includes the first feature being directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. The first feature being "below", "below" and "below" the second feature includes the first feature being directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature. The terms "vertical", "horizontal", "left", "right", "above", "below" and similar expressions are for illustrative purposes only, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0047] The present invention is described in detail below in conjunction with the accompanying drawings and embodiments.

[0048] The present invention provides a fillet simulation method, such as Figure 1 As shown, including:

[0049] S1, obtaining a plane pattern of clothing, recorded as a first plane pattern, and determining a curve of a welt on the first plane pattern according to a predetermined clothing design, recorded as a first curve;

[0050] S2, generating a plane mesh on the first plane plate, recorded as a first plane mesh; and constraining the first plane mesh using the first curve so that some vertices of the first plane mesh are located on the first curve, and recording the mesh vertices located on the first curve as first vertices;

[0051] S3, according to a predetermined rule, transforming the first plane plate into a spatial plate, recorded as a first spatial plate, transforming the first plane grid into a three-dimensional grid, recorded as a first three-dimensional grid; according to the topological relationship of the grid, determining grid vertices corresponding to the plurality of first vertices one by one, recorded as second vertices;

[0052] S4, obtaining a cross-sectional figure of the welt, inserting a cross-sectional figure at each second vertex respectively, connecting several of the cross-sectional figures in sequence to form a welt model, rendering the welt model and the first spatial pattern, and obtaining a clothing simulation model with welts.

[0053] In practical applications, an inlay refers to a decorative strip on a clothing model, which is usually set at the edge of the clothing, the sewing line of the clothing, or the middle of the clothing. First, it is necessary to obtain the plane plate of the clothing, and determine the trajectory of the inlay, that is, the first curve, along the setting direction of the inlay on the first plane plate. Since clothing is usually composed of multiple plates combined, the inlay can either cross the plate or be set on only one plate. The inlay that crosses multiple plates can be regarded as the merging of the inlay on a certain plate. Therefore, in this application, the inlay setting on one plate is mainly explained. After obtaining the first curve, it is necessary to generate a first plane grid on the first plane plate, wherein the first grid is constrained by the first curve mainly to make the two endpoints of the first curve coincide with the vertices of the first grid, and to make the vertices of the first grid fall on the first curve as much as possible, and then the first curve is divided by the vertices of the first grid. When converting a plane pattern into a three-dimensional pattern, the plane grid will also be converted into a space grid, and the first curve will also be converted from the plane pattern into a three-dimensional space to form a space curve. Since the topological relationship of the grid will not change, the position of each second vertex can be determined on the space curve according to the original ratio between the first vertices, and the space coordinates of the second vertex are determined accordingly. By determining the space coordinates of the second vertex, the direction of the fillet model in space is determined. By inserting the cross-sectional figure of the fillet at each second vertex, in this application, the cross-sectional figure takes a circle as an example, and of course other shapes such as a teardrop shape can also be used. For a plane figure, its edge contour can be replaced by a polygon approximation. The shape of the fillet is a uniform columnar shape. The vertices between multiple polygons are connected to each other to obtain a space grid that constitutes the fillet. According to the space grid of the fillet, the fillet model can be constructed. The fillet model and the first space pattern are rendered synchronously to obtain a clothing model with fillets.

[0054] By adopting the above method, the inlay model can be designed synchronously when designing the clothing pattern, and the inlay model can be generated simultaneously when rendering the clothing model. The inlay model can change with the clothing model, which reduces the design difficulty of the clothing inlay model and improves the rendering quality and rendering efficiency of the clothing model.

[0055] Furthermore, the step of determining the curve of the welt on the first plane plate according to the predetermined clothing design, recorded as the first curve, includes:

[0056] Acquire all the pattern curves of the first plane pattern, wherein the pattern curves include pattern outer contour curves and pattern inner curves;

[0057] The intersection points between any two plate curves are calculated separately and recorded as the first intersection points. Since the first curve is used to constrain the first plane grid in the process of generating the grid, it is necessary to further add constraints when calculating the first intersection points so that all the first intersection points coincide with some vertices of the first plane grid. In this way, the coordinates of the first intersection points before and after being transformed into spatial graphics can be further determined.

[0058] All the pattern curves are segmented according to the first intersection point to obtain a number of pattern curve segments, and a first intersection point is set at both ends of each pattern curve segment; the length of each pattern curve segment is calculated respectively, recorded as the first length, and a corresponding relationship between each pattern curve segment and the first length is established;

[0059] The starting point and the ending point of the fillet are obtained, both of which are located on the pattern curve, and the shortest path from the starting point to the ending point is obtained according to the first length corresponding to the pattern curve segment, and the shortest path is recorded as the first curve.

[0060] In practical applications, pattern curves mainly include the bending curves, cutting curves, stitching curves, etc. of the pattern. Similarly, the curves of the fillet trajectory are also included. The curves are divided into several pattern curve segments through the intersections between the curves. The pattern curve segments can be regarded as the smallest unit of the pattern curve. Generally speaking, the design of the fillet is continuous, such as Fig.10 , Fig.11 This is one of the 3D virtual garments designed for the application of the welt edge technology. As can be seen from the figure, the welt on the garment is usually smooth and continuous, and generally speaking, the distance between the starting point and the end point is the shortest. Therefore, in the process of calculating the path, the path with the shortest distance is usually calculated. In this application, the shortest path is calculated using the Dijkstra algorithm, which is the shortest path algorithm from one vertex to the remaining vertices, and solves the shortest path problem in the weighted graph. The main feature of the Dijkstra algorithm is that it starts from the starting point and adopts the strategy of the greedy algorithm. Each time, it traverses to the adjacent nodes of the vertex that is closest to the starting point and has not been visited, until it expands to the end point. The weight of each curve segment is the length of the pattern curve segment, that is, the first length. Using this algorithm, the shortest path between the starting point and the end point can be quickly calculated.

[0061] Furthermore, it also includes: determining whether the fillet crosses the stitching edge between the first plane plates, and if so, obtaining the intersection points between the stitching edge of the two first plane plates and the fillet respectively, and recording them as the second intersection point and the third intersection point respectively, connecting the second intersection point and the third intersection point, and recording the length of the line segment between the second intersection point and the third intersection point as the second length.

[0062] In practical applications, if the fillet crosses the stitching edge between the panels, an independent fillet can be set on each of the two adjacent panels, and then a fillet across the panels is generated at the connection point. When the second intersection and the third intersection are determined, theoretically, the second intersection and the third intersection are the same overlapping point, but because the fillet has a certain thickness, that is, the fillet will produce a certain deformation when crossing the stitching edge of the panel, so a very short curve segment can be set between the second intersection and the third intersection to avoid the fillet from suddenly changing at this position, affecting the generation effect of the fillet. The length of the curve segment should be as short as possible, and the length corresponding to the minimum length unit can be used as the length of the curve segment. When the fillet passes through the stitching gap, the curve segment can be used as a transition path to connect the fillets on the two panels to form a smooth transition.

[0063] Furthermore, the step of obtaining the cross-sectional graph of the fillet includes:

[0064] Obtaining a plane plate of the side surface of the fillet, recorded as a second plane plate, and generating a discrete point matrix on the second plane plate according to the accuracy of the first plane grid; the number of discrete points in the long axis direction of the discrete point matrix is ​​equal to the number of the second vertices;

[0065] Each row of discrete points distributed along the minor axis direction on the discrete point matrix is ​​obtained and recorded as a discrete point group. The discrete points in the discrete point group are sequentially connected and transformed into a cross-sectional figure of the fillet according to a predetermined rule.

[0066] In practical applications, since the fillet can be regarded as a uniform columnar body, a cross-section point can be set at any position of the fillet path, and the cross-section figures are completely consistent, and the fillet surface can also be unfolded into a plane plate with equal short axis length. In order to facilitate the unfolding of the plate, in this application, it is necessary to unfold it with the tangent between the fillet and the plate as the unfolding path. Once the coordinates of the unfolding path are determined, the position of the plate is determined. In order to form the grid of the fillet model, a plane plate of the fillet model can be set first, and a discrete point matrix can be set on the plane plate of the fillet model. The distance between the discrete points in the long axis direction of the discrete point matrix is ​​consistent with the distance between the vertices of the first plane grid, such as Figure XAs shown, the distance between each column of discrete points can correspond to a first vertex. Taking the distance between the discrete points in the long axis direction as the standard, the distance between the discrete points in the short axis direction is determined. For example, when the fillet is cylindrical, the distance between the discrete points in the short axis direction is uniform. Then, the distance between the discrete points in the long axis direction and the length in the short axis direction can be referred to to determine the number of discrete points in the short axis direction, and then evenly distribute them on the circumference. When the fillet is not cylindrical, the distance between the discrete points in the short axis direction can be appropriately adjusted according to a predetermined ratio, so as to form the outline of the fillet cross-section figure as the standard.

[0067] Furthermore, the step of sequentially connecting a plurality of the cross-sectional figures to form a fillet model comprises:

[0068] Connect all the discrete points in the discrete point matrix according to a predetermined rule to generate a second plane grid accordingly;

[0069] According to the topological relationship of the second plane grid, each discrete point on all the cross-sectional figures is connected in sequence to obtain a corresponding second three-dimensional grid, and a fillet model is generated according to the second three-dimensional grid.

[0070] In practical applications, since the cross-sectional figures are the same, the points on each cross-sectional figure are one-to-one corresponding, so it is only necessary to connect the points on the cross-sectional figures to obtain a three-dimensional grid. According to the second three-dimensional grid, a fillet model located on the garment can be generated.

[0071] Furthermore, the step of obtaining the cross-sectional figure of the fillet and inserting the cross-sectional figure at each second vertex includes:

[0072] It is determined whether the first curve is at the edge of the garment. If so, the coordinates of the cross-sectional figure are calculated by extruding along the boundary direction of the first spatial pattern. If not, the coordinates of the cross-sectional figure are calculated by extruding along the normal direction of the first spatial pattern.

[0073] There are two main directions of the fillet model, such as Fig.10 As shown, one is a welt located at the edge of the garment, such as Fig.11 As shown in the figure, the other type is the welt located inside the garment. The welt located inside the garment also includes the welts at the seam between the patterns. In other words, regardless of whether the welt is located at the edge of the pattern, it is only necessary to determine whether the welt is located at the edge of the garment. If it is located at the edge of the garment, the model extrusion algorithm is used, such as Fig. 9 As shown, along the edge direction of the pattern, extrude the cross-section of the welt. If it is not located at the edge of the garment, such as Fig.10As shown, the cross-sectional figure of the fillet is extruded along the normal direction of the plate. In other words, the spatial coordinates of the fillet are determined by the relative position relationship between the fillet and the plate.

[0074] like Figure 2 As shown, the present invention also provides a fillet simulation system, comprising:

[0075] A fillet curve calculation module is used to obtain a plane pattern of a garment, which is recorded as a first plane pattern, and determine a curve of a fillet on the first plane pattern according to a predetermined garment design, which is recorded as a first curve;

[0076] A first vertex calculation module is used to generate a plane mesh on the first plane plate, which is recorded as a first plane mesh; and to constrain the first plane mesh using the first curve so that some vertices of the first plane mesh are located on the first curve, and the mesh vertices located on the first curve are recorded as first vertices;

[0077] The second vertex calculation module is used to transform the first plane plate into a spatial plate according to a predetermined rule, which is recorded as the first spatial plate, and transform the first plane grid into a three-dimensional grid, which is recorded as the first three-dimensional grid; according to the topological relationship of the grid, determine the grid vertices corresponding to the first vertices one by one, which are recorded as the second vertices;

[0078] Simulation model generation module: used to obtain the cross-sectional graphics of the inlay, insert the cross-sectional graphics on each second vertex respectively, connect several of the cross-sectional graphics in sequence to form an inlay model, render the inlay model and the first spatial pattern, and obtain a clothing simulation model with inlay.

[0079] The specific definition of a fillet simulation system can be found in the definition of a fillet simulation method above, which will not be repeated here. Each module in the above-mentioned fillet simulation system can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0080] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a fillet simulation method is implemented.

[0081] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0082] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0083] S1, obtaining a plane pattern of clothing, recorded as a first plane pattern, and determining a curve of a welt on the first plane pattern according to a predetermined clothing design, recorded as a first curve;

[0084] S2, generating a plane mesh on the first plane plate, recorded as a first plane mesh; and constraining the first plane mesh using the first curve so that some vertices of the first plane mesh are located on the first curve, and recording the mesh vertices located on the first curve as first vertices;

[0085] S3, according to a predetermined rule, transforming the first plane plate into a spatial plate, recorded as a first spatial plate, transforming the first plane grid into a three-dimensional grid, recorded as a first three-dimensional grid; according to the topological relationship of the grid, determining grid vertices corresponding to the plurality of first vertices one by one, recorded as second vertices;

[0086] S4, obtaining a cross-sectional figure of the welt, inserting a cross-sectional figure at each second vertex respectively, connecting several of the cross-sectional figures in sequence to form a welt model, rendering the welt model and the first spatial pattern, and obtaining a clothing simulation model with welts.

[0087] In one embodiment, the step of determining the curve of the panel on the first plane plate according to the predetermined clothing design, recorded as the first curve, includes:

[0088] Acquire all the pattern curves of the first plane pattern, wherein the pattern curves include pattern outer contour curves and pattern inner curves;

[0089] Calculate the intersection points between any two pattern curves respectively, and record them as the first intersection points;

[0090] All the pattern curves are segmented according to the first intersection point to obtain a number of pattern curve segments, and a first intersection point is set at both ends of each pattern curve segment; the length of each pattern curve segment is calculated respectively, recorded as the first length, and a corresponding relationship between each pattern curve segment and the first length is established;

[0091] The starting point and the ending point of the fillet are obtained, both of which are located on the pattern curve, and the shortest path from the starting point to the ending point is obtained according to the first length corresponding to the pattern curve segment, and the shortest path is recorded as the first curve.

[0092] In one embodiment, it also includes: determining whether the fillet crosses the stitching edge between the first plane panels, and if so, obtaining the intersection points between the stitching edge of the two first plane panels and the fillet respectively, and recording them as the second intersection point and the third intersection point respectively, connecting the second intersection point and the third intersection point, and recording the length of the line segment between the second intersection point and the third intersection point as the second length.

[0093] In one embodiment, obtaining a cross-sectional graph of the fillet includes:

[0094] Obtaining a plane plate of the side surface of the fillet, recorded as a second plane plate, and generating a discrete point matrix on the second plane plate according to the accuracy of the first plane grid; the number of discrete points in the long axis direction of the discrete point matrix is ​​equal to the number of the second vertices;

[0095] Each row of discrete points distributed along the minor axis direction on the discrete point matrix is ​​obtained and recorded as a discrete point group. The discrete points in the discrete point group are sequentially connected and transformed into a cross-sectional figure of the fillet according to a predetermined rule.

[0096] In one embodiment, the normalized coordinates of the discrete point matrix are calculated, and the spatial coordinates of each cross-sectional figure are determined using the normalized coordinates of the discrete point matrix and the spatial coordinates of the second vertex.

[0097] In one embodiment, the step of sequentially connecting a plurality of the cross-sectional patterns to form a fillet model comprises:

[0098] Connect all the discrete points in the discrete point matrix according to a predetermined rule to generate a second plane grid accordingly;

[0099] According to the topological relationship of the second plane grid, each discrete point on all the cross-sectional figures is connected in sequence to obtain a corresponding second three-dimensional grid, and a fillet model is generated according to the second three-dimensional grid.

[0100] In one embodiment, the step of obtaining a cross-sectional figure of the fillet and inserting the cross-sectional figure at each second vertex includes:

[0101] It is determined whether the first curve is at the edge of the garment. If so, the coordinates of the cross-sectional figure are calculated by extruding along the boundary direction of the first spatial pattern. If not, the coordinates of the cross-sectional figure are calculated by extruding along the normal direction of the first spatial pattern.

[0102] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0103] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0104] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A fillet simulation method, characterized in that: include: S1, obtaining a plane pattern of clothing, recorded as a first plane pattern, and determining a curve of a welt on the first plane pattern according to a predetermined clothing design, recorded as a first curve; S2, generating a plane mesh on the first plane plate, recorded as a first plane mesh; and constraining the first plane mesh using the first curve so that some vertices of the first plane mesh are located on the first curve, and recording the mesh vertices located on the first curve as first vertices; S3, according to a predetermined rule, transforming the first plane plate into a spatial plate, recorded as a first spatial plate, transforming the first plane grid into a three-dimensional grid, recorded as a first three-dimensional grid; according to the topological relationship of the grid, determining grid vertices corresponding to the plurality of first vertices one by one, recorded as second vertices; S4, obtaining a cross-sectional figure of the welt, inserting a cross-sectional figure at each second vertex respectively, connecting several of the cross-sectional figures in sequence to form a welt model, rendering the welt model and the first spatial pattern, and obtaining a clothing simulation model with welts.

2. A fillet simulation method according to claim 1, characterized in that: The step of determining the curve of the panel on the first plane plate according to the predetermined clothing design, recorded as the first curve, includes: Acquire all the pattern curves of the first plane pattern, wherein the pattern curves include pattern outer contour curves and pattern inner curves; Calculate the intersection points between any two pattern curves respectively, and record them as the first intersection points; All the pattern curves are segmented according to the first intersection point to obtain a number of pattern curve segments, and a first intersection point is set at both ends of each pattern curve segment; the length of each pattern curve segment is calculated respectively, recorded as the first length, and a corresponding relationship between each pattern curve segment and the first length is established; The starting point and the ending point of the fillet are obtained, both of which are located on the pattern curve, and the shortest path from the starting point to the ending point is obtained according to the first length corresponding to the pattern curve segment, and the shortest path is recorded as the first curve.

3. A fillet simulation method according to claim 2, characterized in that: Also includes: Determine whether the fillet crosses the stitching edge between the first plane plates. If so, obtain the intersection points between the stitching edge of the two first plane plates and the fillet respectively, and record them as the second intersection point and the third intersection point respectively, connect the second intersection point and the third intersection point, and record the length of the line segment between the second intersection point and the third intersection point as the second length.

4. A fillet simulation method according to claim 1, characterized in that: The step of obtaining the cross-sectional graph of the fillet includes: Obtaining a plane plate of the side surface of the fillet, recorded as a second plane plate, and generating a discrete point matrix on the second plane plate according to the accuracy of the first plane grid; the number of discrete points in the long axis direction of the discrete point matrix is ​​equal to the number of the second vertices; Each row of discrete points distributed along the minor axis direction on the discrete point matrix is ​​obtained and recorded as a discrete point group. The discrete points in the discrete point group are sequentially connected and transformed into a cross-sectional figure of the fillet according to a predetermined rule.

5. A fillet simulation method according to claim 4, characterized in that: The normalized coordinates of the discrete point matrix are calculated, and the spatial coordinates of each cross-sectional figure are determined using the normalized coordinates of the discrete point matrix and the spatial coordinates of the second vertex.

6. A fillet simulation method according to claim 5, characterized in that: The step of sequentially connecting a plurality of the cross-sectional figures to form a fillet model comprises: Connect all the discrete points in the discrete point matrix according to a predetermined rule to generate a second plane grid accordingly; According to the topological relationship of the second plane grid, each discrete point on all the cross-sectional figures is connected in sequence to obtain a corresponding second three-dimensional grid, and a fillet model is generated according to the second three-dimensional grid.

7. A fillet simulation method according to claim 1, characterized in that: The step of obtaining the cross-sectional figure of the fillet and inserting the cross-sectional figure at each second vertex respectively includes: It is determined whether the first curve is at the edge of the garment. If so, the coordinates of the cross-sectional figure are calculated by extruding along the boundary direction of the first spatial pattern. If not, the coordinates of the cross-sectional figure are calculated by extruding along the normal direction of the first spatial pattern.

8. A fillet simulation system, characterized in that: include: A fillet curve calculation module is used to obtain a plane pattern of a garment, which is recorded as a first plane pattern, and determine a curve of a fillet on the first plane pattern according to a predetermined garment design, which is recorded as a first curve; A first vertex calculation module is used to generate a plane mesh on the first plane plate, which is recorded as a first plane mesh; and to constrain the first plane mesh using the first curve so that some vertices of the first plane mesh are located on the first curve, and the mesh vertices located on the first curve are recorded as first vertices; The second vertex calculation module is used to transform the first plane plate into a spatial plate according to a predetermined rule, which is recorded as the first spatial plate, and transform the first plane grid into a three-dimensional grid, which is recorded as the first three-dimensional grid; according to the topological relationship of the grid, determine the grid vertices corresponding to the first vertices one by one, which are recorded as the second vertices; Simulation model generation module: used to obtain the cross-sectional graphics of the inlay, insert the cross-sectional graphics on each second vertex respectively, connect several of the cross-sectional graphics in sequence to form an inlay model, render the inlay model and the first spatial pattern, and obtain a clothing simulation model with inlay.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.