Cutting piece assembly method, device, electronic device and storage medium

By saving the cut file into queue according to data type in clothing design and combining it, the problem of desktop pop-up windows occupying file handles is solved, the efficiency of cutting and combining is improved, and personalized customized sanctioned film design is supported.

CN114444145BActive Publication Date: 2025-08-26HANGZHOU BEIDU TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111660756.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-08-26
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In traditional clothing design, desktop pop-up windows occupy a large number of file handles when cutting and combining pieces, resulting in inefficiency in combination, and the existing technology has failed to effectively solve this problem.

Method used

By obtaining multiple slice files, extracting and storing them into a preset queue, dividing slice data into header, block and entity data according to the data type, combining them with data link lists, generating target files, avoiding desktop GUI pop-ups, and reducing file handle occupancy.

Benefits of technology

It improves the efficiency of the chipset combination, reduces the system processing pressure, avoids memory overflow, supports the storage of massive files and personalized user-specific custom sanctioned film design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114444145B_ABST
    Figure CN114444145B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, electronic device, and storage medium for combining cut pieces. The method comprises: obtaining multiple cut piece files; extracting cut piece data based on the multiple cut piece files, storing the cut piece data into a preset queue according to data type; and combining the cut piece data in the preset queue to obtain a target file. This application solves the problem in the related art of desktop pop-up windows occupying a large number of file handles during cut piece combination, resulting in low cut piece combination efficiency. The GUI class is eliminated during the cut piece combination process, avoiding the occupation of file handles and improving the cut piece combination efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of clothing design, and in particular to a method, device, electronic device and storage medium for assembling cutting pieces. Background Art

[0002] In the traditional fashion design process, a designer first sketches a garment based on fashion trends and personal inspiration. Then, a standard pattern is created based on the sketch. To accommodate different sizes, the standard pattern is scaled to create patterns of other sizes. Using the pattern, fabric is then made into garments through cutting and sewing.

[0003] With the development of computer science and the application of digital technology in the field of clothing manufacturing, the existing clothing pattern creation process first creates a file for each piece in the clothing design CAD software. After determining the type of clothing and the processing technology, the file for making each piece is obtained. The user opens the piece file through an offline pattern synthesis tool. After the piece file is opened, a pop-up window will appear on the desktop, and the user can manually drag and drop the images to complete the piece combination. When the piece combination changes, the piece file needs to be reopened, and the user must manually combine the pieces again in the desktop window. The piece combination efficiency is low, and the desktop window will occupy a large number of file handles, increasing the processing pressure of the system.

[0004] There is currently no effective solution to the problem in related technologies that desktop pop-up windows occupy a large number of file handles when assembling pieces, resulting in low efficiency of piece assembly. Summary of the Invention

[0005] In this embodiment, a method, device, electronic device and storage medium for combining cutting pieces are provided to solve the problem in the related art that desktop pop-up windows occupy a large number of file handles during cutting piece combination, resulting in low cutting piece combination efficiency.

[0006] In a first aspect, a method for assembling cut pieces is provided in this embodiment. The method for assembling cut pieces includes:

[0007] Get multiple cutting files;

[0008] Extracting piece data based on the plurality of piece files, and storing the piece data into a preset queue according to data type;

[0009] The cut piece data in the preset queue are combined to obtain a target file.

[0010] In one embodiment, extracting the cutting piece data based on the plurality of cutting piece files and storing the cutting piece data into a preset queue according to the data type includes: obtaining the header information, block information and entity information of the cutting piece file; obtaining the header cutting piece data based on the header information, and storing the header cutting piece data into a first queue; obtaining the block cutting piece data based on the block information, and storing the block cutting piece data into a second queue; obtaining the entity cutting piece data based on the entity information, and storing the entity cutting piece data into a third queue.

[0011] In one embodiment, the piece data includes CAD graphic parameters.

[0012] In one embodiment, the preset queue is a data linked list.

[0013] In one embodiment, combining the cut piece data in the preset queue to obtain the target file includes: clearing the cut piece data in the preset queue.

[0014] In one embodiment, combining the cut piece data in the preset queue to obtain a target file includes: uploading the target file to a cloud server and storing the target file.

[0015] In one embodiment, after combining the cutting piece data in the preset queue to obtain the target file, the method further includes: obtaining the user's body data; and adding the cutting piece data in the target file based on the user's body data to generate a customized pattern file.

[0016] In a second aspect, a cutting piece assembly device is provided in this embodiment, and the cutting piece assembly device includes:

[0017] An acquisition module is used to acquire multiple cutting piece files;

[0018] An extraction module, configured to extract piece data based on the plurality of piece files, and store the piece data into a preset queue according to data type;

[0019] The combining module is used to combine the piece data in the preset queue to obtain a target file.

[0020] In a third aspect, an electronic device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the piece combination method described in the first aspect when executing the computer program.

[0021] In a fourth aspect, a storage medium is provided in this embodiment, on which a computer program is stored. When the program is executed by a processor, the method for combining cut pieces described in the first aspect is implemented.

[0022] Compared with the related art, the cutting piece combination method, device, electronic device and storage medium provided in this embodiment obtain multiple cutting piece files; extract cutting piece data based on the multiple cutting piece files, and store the cutting piece data into a preset queue according to the data type; combine the cutting piece data in the preset queue to obtain the target file, eliminate the GUI class in the cutting piece combination process, avoid the occupation of file handles, solve the problem in the related art that desktop pop-up windows occupy a large number of file handles when cutting pieces are combined, resulting in low cutting piece combination efficiency, and improve the cutting piece combination efficiency.

[0023] The details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0025] Figure 1 1 is a hardware structure block diagram of a terminal according to the cut piece assembly method of an embodiment of the present application;

[0026] Figure 2 is a flow chart of a method for assembling cut pieces according to an embodiment of the present application;

[0027] Figure 3 2 is a structural block diagram of a cutting piece assembly device according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0029] Unless otherwise defined, the technical terms or scientific terms involved in this application should have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "an", "a", "the", "these" and the like in this application do not indicate quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "plurality" involved in this application refers to two or more. "And / or" describes the relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, and B exists alone. Generally, the character " / " indicates that the related objects are in an "or" relationship. The terms "first," "second," "third," etc. used in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0030] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 FIG. 1 is a block diagram of the hardware structure of a terminal according to the method for combining pieces of the embodiment of the present application. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown) a processor 102 and a memory 104 for storing data, wherein the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.

[0031] The memory 104 can be used to store computer programs, such as software programs and modules of application software, such as the computer program corresponding to the cutting piece assembly method in this embodiment. The processor 102 executes the computer program stored in the memory 104 to execute various functional applications and data processing, thereby implementing the above-mentioned method. The memory 104 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0032] The transmission device 106 is used to receive or send data via a network. The network may include a wireless network provided by the terminal's telecommunications provider. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0033] As the times progress, people are increasingly pursuing personalized and fashionable clothing styles. As a result, the cycle of style changes is getting shorter and shorter, which forces the clothing industry to speed up production. In this situation, the use of modern design tools - computers, to assist the production process is an inevitable trend.

[0034] With the development of computer science and the application of digital technology in the field of clothing manufacturing, the existing clothing pattern creation process first creates a file for each piece in the clothing design CAD software. After determining the type of clothing and the processing technology, the file for each piece is obtained. The user opens the piece file through an offline pattern synthesis tool. After the piece file is opened, a pop-up window will appear on the desktop, and the user can manually drag and drop the images to complete the piece combination. If the piece combination changes, the piece file needs to be reopened and the user must manually combine the pieces again in the desktop window. Due to the call of the GUI session pop-up window, a large number of file handles are occupied.

[0035] GUI, short for Graphical User Interface, is a computer user interface that uses graphics for display. A graphical user interface is a display format for human-computer communication, allowing users to use input devices such as a mouse to manipulate on-screen icons or menu options to select commands, call files, launch programs, or perform other daily tasks. Compared to character-based interfaces, which require keyboard input of text or character commands to complete routine tasks, graphical user interfaces have many advantages. Graphical user interfaces, consisting of windows, drop-down menus, dialog boxes, and their corresponding control mechanisms, are standardized across modern applications, meaning the same operations are always performed in the same way. In a graphical user interface, users see and manipulate graphical objects, employing computer graphics techniques.

[0036] In this embodiment, a method for assembling cut pieces is provided. Figure 2 is a flow chart of a method for assembling cut pieces according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0037] Step S201: Acquire multiple cutting piece files.

[0038] Specifically, a plurality of cutting piece files are obtained. The cutting piece files are uploaded to the cloud or database by the pattern maker. All cutting piece files can be obtained in the database. Cutting piece files are generally DXF files and RUL files. Preferably, DXF files are used in the embodiment of the present application. DXF (Drawing Exchange Format) files are CAD data file formats used for CAD data exchange between AutoCAD and other software. It is an open vector data format. The DXF file includes data on all garment cutting pieces required for garment production. The above-mentioned garment cutting pieces are garments drawn according to the characterization settings, and the garment pieces are cut but not sewn. The cutting pieces can be pieces of cloth or pieces of paper. In the embodiment of the present application. Garment cutting pieces refer to CAD graphics used to represent garment cutting pieces in garment design drawings, and can be moved, rotated, scaled, copied and pasted in the garment design application software. In the DXF file, the above-mentioned garment cutting pieces are composed of a large number of data pairs, and each set of data pairs includes a code and a value to represent the characteristics of each garment cutting piece.

[0039] Step S202: extracting piece data based on the plurality of piece files, and storing the piece data into a preset queue according to data type.

[0040] Extract the piece data from the piece file using a character stream. A stream is an abstract concept, representing an input / output device. An input stream can be considered an input channel, and an output stream can be considered an output channel. A character stream refers to a stream in which the most basic unit of data transmitted is a character. The piece data extracted from the piece file is stored in a designated queue. A queue is a special linear list that only allows deletions at the front end and insertions at the back end. Like a stack, a queue is a linear list with restricted operations. The end where insertions occur is called the tail, and the end where deletions occur is called the head. The data type of piece data is primarily categorized based on the file structure of the piece file. For example, a DXF piece file consists of three parts: header, block, and entity. The piece data corresponding to these three parts can be categorized as header data, block data, and entity data. Different types of piece data are stored in different queues.

[0041] Step S203: combining the cut piece data in the preset queue to obtain a target file.

[0042] By merging queues in sequence, the piece data in all preset queues are stored in the same queue, and the piece data in the queue are stored in the same file to obtain the target file.

[0043] Through the above steps, this application extracts the data from the cut piece file and stores it in a queue. By integrating the cut piece files together by merging queues, the desktop GUI class is eliminated, and there is no process of generating desktop pop-up windows, which avoids the occupation of a large number of file handles. In addition, queues can be automatically merged according to preset rules. For example, multiple queues can be merged in pairs in sequence, and finally all queues storing cut piece data are merged into a single queue and a cut piece file is generated. This eliminates the need for users to manually select cut piece images and perform drag and drop operations, greatly improving the speed of cut piece merging.

[0044] In one embodiment, extracting the cutting piece data based on the plurality of cutting piece files and storing the cutting piece data into a preset queue according to the data type includes: obtaining the header information, block information and entity information of the cutting piece file; obtaining the header cutting piece data based on the header information, and storing the header cutting piece data into a first queue; obtaining the block cutting piece data based on the block information, and storing the block cutting piece data into a second queue; obtaining the entity cutting piece data based on the entity information, and storing the entity cutting piece data into a third queue.

[0045] DXF is an open vector data format that can be divided into two categories: ASCII and binary. ASCII is highly readable but occupies a large space, while binary takes up less space and is faster to read. A DXF file is constructed from a series of "data pairs" consisting of "codes" and "values." The codes, called "group codes," specify the type and purpose of the following values. Each group code and value must be on a separate line. A DXF file's basic components include a HEADER section, or header, and a HEDEAR section containing overall drawing information. Each parameter has a variable name and a corresponding value. The BLOCKS section, or blocks, includes Block Definition entities, which define the components of each block (also known as block information). The ENTITIES section contains the drawing entity security card, Block References. Block information primarily includes the graphic information contained in the piece data, including points, lines, polylines, arcs, circles, and ellipses. Entity information includes data such as the piece name, piece author, and creation time.

[0046] In one embodiment, the piece data includes CAD graphic parameters.

[0047] Specifically, the CAD graphic parameters are graphic parameters such as points, lines, arcs, and polylines that constitute the graphics of the cut piece.

[0048] In one embodiment, the preset queue is a data linked list.

[0049] Specifically, the data of the cut pieces is stored in a data linked list. A data linked list is a continuous, non-sequential storage structure on a physical storage unit. The logical order of data elements is achieved through the order of pointer links in the linked list. A linked list consists of a series of nodes, which can be dynamically generated at runtime. Each element in the linked list is called a node. Each node consists of two parts: a data field for storing the data element and a pointer field for storing the address of the next node. Compared with the sequential structure of a linear list, the operation is complex. Since it does not have to be stored in order, the linked list can achieve a complexity of O(1) when inserting, which is much faster than another linear list. However, it takes O(n) time to find a node or access a node with a specific number, while the corresponding time complexities of a linear list and a sequential list are O(logn) and O(1), respectively. The most obvious advantage of a linked list is that the way a regular array arranges associated items may be different from the order of these data items in memory or on disk, and data access often requires conversion between different arrangement orders. A contingency table allows the insertion and removal of nodes at any position on the table, but does not allow random access. There are many different types of linked lists: singly, doubly, and circularly linked. Linked lists can be implemented in many programming languages. Using data linked lists can improve the speed of queue merging.

[0050] In one embodiment, combining the cut piece data in the preset queue to obtain the target file includes: clearing the cut piece data in the preset queue.

[0051] Specifically, the piece data in the preset queues are combined in turn, that is, queue combination is performed. Queue combination adopts a combination method. For example, after obtaining multiple piece files, the piece data of each piece is divided into three parts, header data, block data and entity data. The header data of all pieces are stored in the first queue; the block data of all piece data are stored in the second queue; and the entity data of all piece data are stored in the third queue. The first queue is merged with the second queue to generate a first merged queue, and the first merged queue is merged with the third queue to obtain a target queue. The target file is generated according to the piece data in the target queue, and the merging of multiple piece data is completed. After obtaining the target file, the queue variable is set to NULL, and the piece data information in the queue is cleared, which can reduce memory usage and avoid the problem of memory overflow in the prior art due to loading multiple piece files for processing after the piece files are merged.

[0052] In one embodiment, combining the cut piece data in the preset queue to obtain a target file includes: uploading the target file to a cloud server and storing the target file.

[0053] Specifically, after obtaining the target file, the combined target file can be uploaded to a cloud server for storage. As a type of cloud computing, cloud servers allow users to upload massive amounts of data to the server equipment of a cloud computing service provider. Users can then access the target files stored in the cloud server with the help of client software in the terminal. In the actual clothing design and production process, a large number of cut-piece files and target files obtained by combining the cut-piece files are generated. These files are stored in the cloud server. Due to the good scalability of the cloud server, the cut-piece files and target files generated continuously during the production process can be saved. Compared to a local server, this not only ensures sufficient file storage space, but also avoids the removal of some cut-piece files due to insufficient storage space, thereby increasing the file's storage life. In addition, with the help of a cloud server, multiple users can access the cut-piece files and target files in the cloud server through a client at any location, which increases the convenience of file access.

[0054] In one embodiment, after the final target file is pushed to the cloud server, an OTR address is generated. Pushing refers to the process of transferring the packaged content from the acquisition phase to the server. OTR is an abbreviation for the set of clip files corresponding to the target file on the cloud server. The file names are in the formats xxx_O.dxf, xxx_T.dxf, and xxx.rul, respectively.

[0055] In one embodiment, after the target file is pushed to the cloud server, it can be stored using object storage. Object Storage Service (OSS) is a massive, secure, low-cost, and reliable cloud storage service suitable for storing any type of file. Object storage no longer uses a hierarchical structure, but rather features extended metadata. Each storage object is stored at the same level in a flat address space called a storage pool.

[0056] In one embodiment, after combining the cutting piece data in the preset queue to obtain the target file, the method further includes: obtaining the user's body data; and adding the cutting piece data in the target file based on the user's body data to generate a customized pattern file.

[0057] Specifically, by obtaining the user's body data, such as waist circumference, height, chest circumference and other information, the cutting piece data in the target file is added and placed according to the user's body data. The adding and placing process can be to adjust the relevant parameters in the cutting piece data according to preset rules to adjust the size of the cutting piece pattern, and finally generate a customized pattern file including multiple user-customized cutting pieces.

[0058] As material life becomes more and more abundant, consumers' awareness of personalization is also growing, and their pursuit of personalized clothing is also becoming more intense. Currently, in the clothing industry, designers usually design clothes, factories produce clothes based on the designs, and then distributors put the clothes on the market for consumers to purchase. Clothing produced by this production method is no longer able to meet consumers' demand for personalized clothing. In order to meet consumers' demand for personalized clothing, attempts have been made on the market to customize clothing. Usually, store clerks manually measure the body of consumers or tailors obtain individual reminder data of consumers, design clothing sizes based on the individual data of consumers, and then design corresponding clothes according to the clothing style selected by the user, thereby realizing the customization of personalized clothing for consumers. In combination with the cutting piece combination method of the embodiment of the present application, by obtaining the customer's body data, the cutting piece size can be intelligently adjusted, thereby realizing intelligent pattern making. In one embodiment, the user can select multiple sets of cutting piece files to be combined, and apply the cutting piece combination method of the embodiment of the present application to integrate the cutting piece data in all the cutting piece files to obtain a target file. Then, by obtaining the user's body data, the cutting piece data in the target file is adjusted, and finally a customized pattern file adapted to the user's body data is obtained.

[0059] It should be noted that the steps shown in the above process or the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here. In this embodiment, a piece assembly device is also provided, which is used to implement the above embodiments and preferred embodiments, and the details that have been described will not be repeated. The terms "module", "unit", "sub-unit" and the like used below can implement a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and conceivable.

[0060] Figure 3 is a structural block diagram of a cutting piece assembly device according to an embodiment of the present application, such as Figure 3 As shown, the device includes:

[0061] An acquisition module 10 is used to acquire multiple cutting piece files;

[0062] An extraction module 20 is configured to extract piece data based on the plurality of piece files, and store the piece data into a preset queue according to data type;

[0063] The combining module 30 is used to combine the piece data in the preset queue to obtain a target file.

[0064] The extraction module 20 is further used to obtain the header information, block information and entity information of the cutting piece file; obtain the header cutting piece data based on the header information, and store the header cutting piece data in the first queue; obtain the block cutting piece data based on the block information, and store the block cutting piece data in the second queue; obtain the entity cutting piece data based on the entity information, and store the entity cutting piece data in the third queue.

[0065] The extraction module 20 is also used to obtain CAD graphic parameters.

[0066] The extraction module 20 is further configured to store the piece data into a preset queue, which is a data linked list.

[0067] The combining module 30 is further configured to clear the piece data in the preset queue.

[0068] The combining module 30 is further configured to upload the target file to a cloud server and store the target file.

[0069] The combination module 30 is further configured to obtain the user's body shape data; and based on the user's body shape data, add and place the cutting piece data in the target file to generate a customized pattern file.

[0070] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0071] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0072] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0073] Optionally, in this embodiment, the processor may be configured to execute the following steps through a computer program:

[0074] S1, obtain multiple cutting piece files.

[0075] S2, extracting piece data based on the plurality of piece files, and storing the piece data into a preset queue according to data type.

[0076] S3, combining the cut piece data in the preset queue to obtain a target file.

[0077] It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.

[0078] In addition, in conjunction with the cut piece combination method provided in the above embodiments, a storage medium may be provided in this embodiment to implement the method. The storage medium stores a computer program; when the computer program is executed by a processor, any of the cut piece combination methods in the above embodiments is implemented.

[0079] It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0080] Obviously, the accompanying drawings are merely examples or embodiments of the present application. A person skilled in the art can also apply the present application to other similar situations based on these drawings without inventive effort. Furthermore, it is understandable that, although the work involved in this development process may be complex and lengthy, certain design, manufacturing, or production changes based on the technical content disclosed in this application are merely routine technical means for a person skilled in the art and should not be considered to constitute a deficiency in the disclosure of the present application.

[0081] The term "embodiment" as used in this application refers to specific features, structures, or characteristics described in conjunction with the embodiment that can be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily mean that the embodiment is the same, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is understood, either explicitly or implicitly, by those skilled in the art that the embodiments described in this application can be combined with other embodiments when there is no conflict.

[0082] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for assembling cut pieces, characterized in that: include: Get multiple cutting files; Extracting piece data based on the plurality of piece files, and storing the piece data into a preset queue according to data type; Combining the piece data in the preset queue to obtain a target file; Among them, extracting the cutting piece data based on the multiple cutting piece files and storing the cutting piece data into the preset queue according to the data type includes: obtaining the header information, block information and entity information of the cutting piece file; obtaining the header cutting piece data based on the header information, and storing the header cutting piece data into the first queue; obtaining the block cutting piece data based on the block information, and storing the block cutting piece data into the second queue; obtaining the entity cutting piece data based on the entity information, and storing the entity cutting piece data into the third queue.

2. The method for assembling cut pieces according to claim 1, wherein: The piece data includes CAD graphic parameters.

3. The method for assembling cut pieces according to claim 1, wherein: The preset queue is a data linked list.

4. The method for assembling cut pieces according to claim 1, wherein: Combining the cut piece data in the preset queue to obtain a target file includes: Clear the piece data in the preset queue.

5. The method for assembling cut pieces according to claim 1, wherein: Combining the cut piece data in the preset queue to obtain a target file includes: The target file is uploaded to a cloud server and stored.

6. The method for assembling cut pieces according to claim 1, wherein: After combining the cut piece data in the preset queue to obtain the target file, the process further includes: Get user body data; The cutting piece data in the target file is added and placed based on the user's body data to generate a customized pattern file.

7. A cutting piece assembly device, characterized in that: include: An acquisition module is used to acquire multiple cutting piece files; An extraction module, configured to extract piece data based on the plurality of piece files, and store the piece data into a preset queue according to data type; A combining module, configured to combine the piece data in the preset queue to obtain a target file; Among them, the extraction module is also used to extract the cutting piece data based on the multiple cutting piece files, and store the cutting piece data into the preset queue according to the data type, including: obtaining the header information, block information and entity information of the cutting piece file; obtaining the header cutting piece data based on the header information, and storing the header cutting piece data into the first queue; obtaining the block cutting piece data based on the block information, and storing the block cutting piece data into the second queue; obtaining the entity cutting piece data based on the entity information, and storing the entity cutting piece data into the third queue.

8. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the panel assembly method according to any one of claims 1 to 6.

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 panel assembly method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Plate-dividing cutting optimization method based on telescopic rectangle

    CN110826177A