CN-122020757-A - Clothing multi-code automatic calculation method based on parameterized modeling
Abstract
The invention provides a garment multi-code automatic calculation method based on parametric modeling, which comprises the steps of analyzing various size layout files of a garment, extracting and standardizing size parameters, position parameters and rotation angles of cut pieces in layout canvas, constructing a unified cut piece parameter data model, and establishing a cut piece scaling model reflecting non-equal proportion change characteristics of the cut pieces according to the size change relation of the same cut piece between different sizes on the basis. And under the target size, automatically calculating the size of the positioning frame according to the size scaling model of the cutting piece and the size pushing strategy of the positioning frame, and recalculating the position of the positioning frame in the cutting piece by combining the alignment mode parameter after finishing size calculation.
Inventors
- Jing Zexiang
- XU JING
Assignees
- 深圳菁泽科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260205
Claims (10)
- 1. The clothing multi-code automatic calculation method based on parameterized modeling is characterized by comprising the following steps of: S1, analyzing all the layout files of a piece of clothing, selecting a reference size, respectively extracting the cutting piece width, the cutting piece height, the cutting piece coordinate position and the cutting piece rotation angle of each cutting piece in a layout canvas aiming at each cutting piece of each size, and packaging the cutting piece width, the cutting piece height, the cutting piece coordinate position and the cutting piece rotation angle into a standardized cutting piece parameter data packet corresponding to the cutting piece; S2, respectively calculating a width scaling factor in the width direction of the cut piece and a height scaling factor in the height direction of the cut piece aiming at the same cut piece between a reference size and a target size, and determining a maximum scaling factor and a minimum scaling factor for representing the cross-size dimension change characteristic of the cut piece based on the width scaling factor and the height scaling factor to form a cut piece scaling model; s3, establishing at least one positioning frame model bound with the cut pieces on each cut piece under the reference size, wherein the positioning frame model at least comprises a position parameter, a size parameter, an alignment mode parameter and a size push strategy parameter of a positioning frame in the cut pieces, and establishing a one-to-one association relation between the positioning frame model and the corresponding cut pieces in a structural parameter mode; S4, based on the size pushing strategy parameters of the cut-piece scaling model and the positioning frame, performing size calculation on the width and the height of the positioning frame under the reference size according to a preset size pushing rule and aiming at the target size cut-pieces to obtain the size parameters of the positioning frame under the target size; S5, after the size parameters of the positioning frame under the target size are determined, according to the alignment mode parameters of the positioning frame and the cut piece parameters of the cut pieces of the target size, carrying out position recalculation on the positioning frame according to a preset horizontal alignment rule and a preset vertical alignment rule, and determining the target coordinate position of the positioning frame under the target size in the cut pieces.
- 2. The automatic calculation method of clothing multi-size based on parameterization modeling according to claim 1, further comprising the steps of S6, summarizing target size parameters and target coordinate positions of positioning frames corresponding to the cut pieces under the target sizes, generating positioning frame parameter files corresponding to the target sizes one by one, and automatically generating clothing multi-size material layout results based on the positioning frame parameter files, so that automatic calculation of clothing multi-size is completed.
- 3. The automatic clothing multi-code calculation method based on parameterized modeling of claim 1, wherein S1 specifically is: Reading and analyzing all the layout files corresponding to the garment, identifying the size information corresponding to each layout file, and selecting one size from the size information as a reference size, and the rest sizes as target sizes; Determining a cut piece contour range of each cut piece in a corresponding plate type canvas according to the reference size and each cut piece under each target size, and calculating to obtain a cut piece width and a cut piece height of the cut piece based on the cut piece contour range; and under the layout canvas coordinate system, acquiring the coordinate position of each cut piece in the canvas, and simultaneously acquiring the cut piece rotation angle of the cut pieces relative to the canvas for representing the spatial posture of the cut pieces in the canvas.
- 4. The automatic calculation method of clothes multi-codes based on parameterization modeling according to claim 3, wherein the cutting piece width, the cutting piece height, the cutting piece coordinate position and the cutting piece rotation angle are uniformly packaged to form standardized cutting piece parameter data packages corresponding to the corresponding cutting pieces one by one for the establishment of a subsequent cutting piece scaling model and the calculation of a positioning frame.
- 5. The automatic clothing multi-code calculation method based on parameterized modeling of claim 1, wherein S2 is specifically: For the same cut piece, respectively reading a standardized cut piece parameter data packet under a reference size and a standardized cut piece parameter data packet under a target size; Calculating a width scaling factor of the cut piece in the width direction based on the cut piece width of the cut piece corresponding to the reference size and the target size, and calculating a height scaling factor of the cut piece in the height direction based on the cut piece height; Comparing the width scaling factor with the height scaling factor, selecting a larger scaling factor as a maximum scaling factor and selecting a smaller scaling factor as a minimum scaling factor; And taking the maximum scaling factor and the minimum scaling factor as parameters for describing the cross-size unequal ratio change relation of the cut pieces, and constructing a cut piece scaling model of the corresponding cut pieces for calling when the size of the subsequent positioning frame is calculated.
- 6. The automatic clothing multi-code calculation method based on parameterized modeling of claim 1, wherein S3 specifically comprises: determining at least one positioning frame area for bearing clothing materials in a cut piece area of each cut piece under the reference size; Setting a position parameter and a size parameter of each positioning frame in the cut-parts for each positioning frame respectively, wherein the position parameter is used for describing the coordinate position of the positioning frame in the cut-parts, and the size parameter is used for describing the width and the height of the positioning frame; And setting an alignment mode parameter and a size pushing strategy parameter for each positioning frame respectively, wherein the alignment mode parameter is used for indicating the position alignment rule of the positioning frame in the cut-parts, and the size pushing strategy parameter is used for indicating the size change mode of the positioning frame in cross-size calculation.
- 7. The automatic calculation method of clothes multi-code based on parameterization modeling according to claim 6, wherein each parameter of the positioning frame is packaged in a structured parameter form, and a one-to-one association relation is established between each parameter and a corresponding cut piece, so as to form a positioning frame model set under a reference size.
- 8. The automatic clothing multi-code calculation method based on parameterized modeling of claim 1, wherein S4 is specifically: Reading a cut piece scaling model corresponding to each cut piece and a positioning frame model associated with the cut piece under the reference size aiming at each cut piece under the target size; determining a size pushing rule adopted by the current positioning frame in the cross-size calculation process according to the size pushing strategy parameters in the positioning frame model; Based on a cut-piece scaling model, respectively carrying out size calculation on the width and the height of the positioning frame under the reference size according to a size pushing rule to obtain the target width and the target height of the positioning frame under the target size; And taking the target width and the target height as the size parameters of the positioning frame under the target size, and providing a size foundation for recalculating the position of the subsequent positioning frame.
- 9. The automatic clothing multi-code calculation method based on parameterized modeling of claim 1, wherein S5 specifically comprises: reading a standardized cut piece parameter data packet corresponding to the target size cut piece after finishing the determination of the size parameter of the positioning frame under the target size; Determining a horizontal alignment rule and a vertical alignment rule adopted by the current positioning frame in the target size cut piece according to the alignment mode parameters in the positioning frame model; Based on the cut-part parameters of the target size cut-parts, combining the horizontal alignment rule and the vertical alignment rule, respectively carrying out position recalculation on the transverse position and the longitudinal position of the positioning frame in the cut-parts; And taking the transverse coordinate and the longitudinal coordinate obtained by recalculating the position as target coordinate positions of the positioning frame in the cut-parts under the target size.
- 10. The automatic clothing multi-code calculation method based on parameterized modeling of claim 2, wherein S6 is specifically: Respectively acquiring target size parameters and target coordinate positions of corresponding positioning frames for each cut piece under the target size; Uniformly summarizing the target size parameters and the target coordinate positions of the positioning frames corresponding to all the cut pieces under the same target size, and generating positioning frame parameter files corresponding to the target sizes one by one; Based on the positioning frame parameter file, automatically configuring the layout position and the size of the clothing material in each cut piece to generate clothing material layout results under the target size, outputting the clothing material layout results, and completing the automatic calculation of the clothing multiple sizes.
Description
Clothing multi-code automatic calculation method based on parameterized modeling Technical Field The invention relates to the technical field of Computer Aided Design (CAD) and garment digital design, in particular to a garment multi-code automatic calculation method based on fashion design service parameterization modeling. Background With the rapid development of the fashion design service industry and the increasing demand for flexible production, computer Aided Design (CAD) technology has become a core tool in the garment development process. In the process of providing efficient fashion design service, the CAD-based pattern design and multi-size automatic calculation link are of great importance, the existing clothing CAD system generally supports pattern design on a single pattern, and pattern enlargement or reduction among different sizes is realized through a preset pushing rule, so that generation of multi-size patterns is completed. However, in actual clothing production, besides the cut-piece version, various material contents such as patterns, characters, numbers, marks and the like are required to be superimposed on the clothing, and the positions, sizes and relative relations of the materials on different cut-pieces are usually required to be adjusted synchronously along with the change of the sizes. In the prior art, multi-size estimation usually only focuses on the dimensional change of the outline of a cut piece, and a unified and computable modeling mode is lacking in the layout of materials in the cut piece, so that the layout of the materials is highly dependent on manual experience adjustment in the cross-size estimation process. Therefore, we propose a garment multi-code automatic estimation method based on parametric modeling, and the above information disclosed in the background section is only for enhancing understanding of the background of the disclosure, so it may include information that does not constitute prior art known to those of ordinary skill in the art. Disclosure of Invention The invention aims to provide a clothing multi-code automatic calculation method based on parameterized modeling aiming at the defects of the prior art, and solves the technical problems in the background art. In order to achieve the above purpose, the present invention provides the following technical solutions: a clothing multi-code automatic calculation method based on parameterized modeling comprises the following steps: S1, analyzing all layout files of a piece of clothing, selecting a reference size, respectively extracting a cut piece width, a cut piece height, a cut piece coordinate position and a cut piece rotation angle of a cut piece in a layout canvas for each cut piece of each size, and packaging the cut piece width, the cut piece height, the cut piece coordinate position and the cut piece rotation angle into a standardized cut piece parameter data packet of a corresponding cut piece; S2, respectively calculating a width scaling factor in the width direction of the cut piece and a height scaling factor in the height direction of the cut piece between a reference size and a target size for the same cut piece, and determining a maximum scaling factor and a minimum scaling factor for representing the size-across size change characteristics of the cut piece based on the width scaling factor and the height scaling factor to form a cut piece scaling model reflecting the non-equal proportion change relation of the cut piece, wherein the cut piece scaling model is used for a subsequent positioning frame size calculation process; S3, establishing at least one positioning frame model bound with the cut pieces on each cut piece under the reference size, wherein the positioning frame model at least comprises a position parameter, a size parameter, an alignment mode parameter and a size push strategy parameter of a positioning frame in the cut pieces, and establishing a one-to-one association relation between the positioning frame model and the corresponding cut pieces in a structural parameter mode; S4, based on the size pushing strategy parameters of the cut-piece scaling model and the positioning frame, performing size calculation on the width and the height of the positioning frame under the reference size according to a preset size pushing rule and aiming at the target size cut-pieces to obtain the size parameters of the positioning frame under the target size; s5, after the size parameters of the positioning frame under the target size are determined, according to the alignment mode parameters of the positioning frame and the cut piece parameters of the cut pieces of the target size, carrying out position recalculation on the positioning frame according to a preset horizontal alignment rule and a preset vertical alignment rule, and determining the target coordinate position of the positioning frame under the target size in the cut pieces; And S6, summarizing target size parameters and target