Discharge map generation method and device, electronic equipment, storage medium and program product
By adding a background pattern to the outer area of the printing plate and automatically generating a nesting diagram, the problems of low material utilization and low efficiency in traditional nesting systems are solved, achieving efficient material utilization and the most cost-effective heat transfer process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LINGDI (ZHEJIANG) TECHNOLOGY CO LTD
- Filing Date
- 2025-12-29
- Publication Date
- 2026-07-24
Smart Images

Figure CN121457153B_ABST
Abstract
Description
[0001] This application claims priority to Chinese Patent Application No. 202511439137.1, filed on October 9, 2025, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This specification relates to one or more embodiments in the field of computer technology, and more particularly to a method, apparatus, electronic device, storage medium, and program product for generating nesting diagrams. Background Technology
[0003] In traditional garment cutting, in order to maximize the utilization of fabric, pattern makers often temporarily exclude some small pieces (such as pockets, sleeve tabs, etc.) from the pattern layout when generating the pattern layout. They plan to use the remaining fabric after cutting the main pattern (such as garment pieces, sleeve pieces, etc.) to cut these small pieces.
[0004] However, traditional nesting systems only support the arrangement of pattern outlines. When using heat transfer printing to transfer patterns onto fabric before cutting, because the heat transfer process occurs before cutting, the transferred fabric only has the pattern printed in the corresponding area of the main pattern, while the rest of the fabric is blank and cannot be cut into usable small patterns. Furthermore, although tools like Photoshop can be used to create nesting diagrams with background patterns, using these tools requires manual design of the pattern arrangement, which is inefficient. At the same time, due to the lack of automated algorithms, fabric utilization is often low, making it difficult to achieve optimal cost. Summary of the Invention
[0005] In view of the above, one or more embodiments of this specification provide the following technical solutions:
[0006] According to a first aspect of one or more embodiments of this specification, a method for generating a material layout diagram is provided, the method comprising:
[0007] Identify the plates to be filled in the plates used for material layout;
[0008] For each piece of material to be filled, determine the outer expansion area and background pattern of the piece of material to be filled, and fill the background pattern into the outer expansion area of the piece of material to be filled;
[0009] After filling is complete, generate the panel layout diagram.
[0010] Optionally, determining the plate to be filled in the plate used for layout includes:
[0011] In response to the opening operation of the plate linkage switch control, all plates used for material layout are identified as the plates to be filled.
[0012] Optionally, determining the plate to be filled in the plate used for layout includes:
[0013] In response to an input operation to the plate identifier input control, the plate corresponding to the plate identifier specified by the input operation is determined as the plate to be filled.
[0014] Optionally, the plate identification input control includes one or more of the following:
[0015] An input box for entering the identifier of the plate to be filled, a drop-down list for selecting the plate to be filled, a checkbox for selecting the plate to be filled, and a search box for searching the plate to be filled.
[0016] Optionally, determining the plate to be filled in the plate used for layout includes:
[0017] In response to a selection operation for any of the plates used for nesting, the selected plate is determined as the plate to be filled.
[0018] Optionally, determining the outer expansion area of the plate to be filled includes:
[0019] The area between the bounding box of the plate to be filled and the outline of the plate to be filled is defined as the outer expansion area.
[0020] Optionally, determining the outer expansion area of the plate to be filled includes:
[0021] Obtain the outward expansion distance value of the plate to be filled;
[0022] The expansion area is determined based on the expansion distance value.
[0023] Optionally, the outward expansion distance value can be set via an outward expansion distance setting control.
[0024] Optionally, determining the outward expansion area based on the outward expansion distance value includes:
[0025] Based on the bounding box of the plate to be filled, the outward expansion distance value is offset outward to generate the outward expansion region.
[0026] Optionally, determining the outward expansion area based on the outward expansion distance value includes:
[0027] Based on the outline of the plate to be filled, the outward expansion distance value is offset outward to generate the outward expansion area.
[0028] Optionally, determining the outer expansion area of the plate to be filled includes:
[0029] In response to a user's movement operation on the bounding box of the piece to be filled, the outer expansion area is determined based on the positional change of the bounding box.
[0030] Optionally, when the panel linkage switch control is in the open state, it further includes:
[0031] In response to a setting operation for the expansion area of any sheet to be filled, the setting operation is synchronized to other sheets to be filled.
[0032] Optionally, determining the background texture of the plate to be filled includes:
[0033] In response to the addition operation of the background, the image to be added is determined as the background of the plate to be filled.
[0034] Optionally, when the panel linkage switch control is in the on state, it also includes:
[0035] In response to a shading addition operation for any piece to be filled, the added image is determined as the shading for all pieces to be filled.
[0036] Optionally, determining the background texture of the plate to be filled includes:
[0037] The image of the plate to be filled is determined as the background texture.
[0038] Optionally, before generating the panel layout diagram, the following steps are also included:
[0039] In response to a scaling operation on the background texture of the extended region, the background texture in the extended region is enlarged or reduced.
[0040] Optionally, the generation of the layout diagram includes:
[0041] For the plate to be filled, the outer boundary of its outer expansion area is used as the collision unit to participate in the plate layout collision, so as to generate the plate layout diagram.
[0042] Optionally, the step of using the outer boundary of the expanded region of the plate to be filled as the collision unit to participate in the plate layout collision includes:
[0043] When the collision switch corresponding to the outer expansion area is in the open state, the plate to be filled participates in the plate layout collision with the outer boundary of its outer expansion area as the collision unit.
[0044] Optionally, the generation of the layout diagram includes:
[0045] The plate boundary frame is used as the collision unit to participate in plate layout collision;
[0046] When the outer expansion areas of different boards to be filled overlap, obtain the priority of the overlapping outer expansion areas;
[0047] Place the high-priority overlapping outer regions on the upper layer to generate the panel layout diagram.
[0048] Optionally, the generation of the layout diagram includes:
[0049] Obtain the initial layout position of the plate for layout;
[0050] A panel layout diagram is generated based on the initial layout position.
[0051] According to a second aspect of one or more embodiments of this specification, a material layout diagram generation apparatus is provided, the apparatus comprising:
[0052] The plate determination unit determines the plate to be filled from the plates used for material layout;
[0053] The background filling unit determines the outer expansion area and background pattern of each plate to be filled, and fills the background pattern into the outer expansion area of the plate to be filled.
[0054] The layout diagram generation unit generates the layout diagram of the plate after filling in the information.
[0055] According to a third aspect of one or more embodiments of this specification, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor performs the steps of the method as described above by executing the executable instructions.
[0056] According to a fourth aspect of one or more embodiments of this specification, a computer-readable storage medium is provided that stores computer instructions thereon, which, when executed by a processor, implement the steps of the method described above.
[0057] According to a fifth aspect of one or more embodiments of this specification, a computer program product is provided, comprising a computer program / instructions that, when executed by a processor, implement the steps of the method as described above.
[0058] As described above, the nesting diagram generation scheme provided in this manual allows for the identification of filling plates within the nesting plates. For each filling plate, its outer expansion area and background pattern are determined, and then the background pattern is filled into the corresponding outer expansion area. After the background pattern is filled, the nesting diagram is generated. This adds a background pattern to the area outside the plate outline, thus generating a nesting diagram with a background pattern. After the main plate is cut according to the nesting diagram, the remaining fabric with the background pattern can be used to cut out usable smaller plates, supporting nesting methods using heat transfer printing. Furthermore, the scheme described in this manual automatically arranges the plates to generate the nesting diagram, significantly improving fabric utilization and generating efficiency compared to manual arrangement. Attached Figure Description
[0059] Figure 1 This is a flowchart of a method for generating a material layout diagram, provided in an exemplary embodiment.
[0060] Figure 2 This is a schematic diagram of an extended region provided in an exemplary embodiment.
[0061] Figure 3 This is a schematic diagram of another extended region provided in an exemplary embodiment.
[0062] Figure 4 This is a schematic diagram of an initial material layout provided in an exemplary embodiment.
[0063] Figure 5 This is a schematic diagram of an operating area provided in an exemplary embodiment.
[0064] Figure 6 This is a schematic diagram of a texture filling effect provided in an exemplary embodiment.
[0065] Figure 7 This is a schematic diagram illustrating another texture filling effect provided in an exemplary embodiment.
[0066] Figure 8 This is a schematic diagram illustrating another texture filling effect provided in an exemplary embodiment.
[0067] Figure 9 This is a schematic diagram illustrating the effect of a material layout provided in an exemplary embodiment.
[0068] Figure 10 This is a schematic diagram of the structure of a device provided in an exemplary embodiment.
[0069] Figure 11 This is a block diagram of a nesting diagram generation apparatus provided in an exemplary embodiment. Detailed Implementation
[0070] In traditional garment cutting, in order to maximize the utilization of fabric, pattern makers often temporarily exclude some small pieces (such as pockets, sleeve tabs, etc.) from the pattern layout when generating the pattern layout. They plan to use the remaining fabric after cutting the main pattern (such as garment pieces, sleeve pieces, etc.) to cut these small pieces.
[0071] However, traditional nesting systems only support the arrangement of pattern outlines. When using heat transfer printing to transfer patterns onto fabric before cutting, because the heat transfer process occurs before cutting, the transferred fabric only has the pattern printed in the corresponding area of the main pattern, while the rest of the fabric is blank and cannot be cut into usable small patterns. Furthermore, although tools like Photoshop can be used to create patterned nesting diagrams, using these tools requires manual design of the pattern arrangement, which is inefficient. At the same time, due to the lack of automated algorithms, fabric utilization is often low, making it difficult to achieve optimal cost.
[0072] To address the aforementioned issues, this specification provides a nesting diagram generation solution that adds a background texture to the outer area of the printing plate to generate a nesting diagram with a background texture, thereby supporting nesting methods using heat transfer printing technology. Simultaneously, it can automatically arrange the printing plates, significantly improving the efficiency of nesting diagram generation and greatly increasing fabric utilization compared to manual arrangement.
[0073] The image editing solutions provided in this manual can be applied to electronic devices, such as PCs, mobile phones, tablets, laptops, and PDAs (Personal Digital Assistants), and this manual does not impose any special limitations on them.
[0074] The following section explains the industry terms used in this manual.
[0075] Pattern layout: A pattern layout is a technical drawing made at a 1:1 scale. It scientifically arranges all the patterns or main patterns of one or more garments within a specified fabric width, in order to save fabric and meet the process requirements. It serves as the basis for guiding the cutting process.
[0076] Figure 1 This is a flowchart of a method for generating a material layout diagram, provided in an exemplary embodiment.
[0077] Please refer to Figure 1 The method for generating the layout diagram may include the following steps:
[0078] Step 102: Identify the plate to be filled in the plate used for material layout.
[0079] In this specification, the pattern pieces used for layout can be garment pattern pieces, bag pattern pieces, home textile pattern pieces, etc. Taking garment pattern pieces as an example, the pattern pieces used for layout can be all the pattern pieces for one garment, all the pattern pieces for multiple garments, the main pattern piece for one garment, or the main pattern pieces for multiple garments, etc. The main pattern piece typically refers to a pattern piece with a larger area, such as a garment piece or sleeve piece. In addition to the main pattern piece, a garment may also include some smaller pattern pieces, such as pockets, sleeve tabs, and shoulder straps.
[0080] In this instruction manual, before determining the pattern to be filled, patterns for layout can be obtained first, and then the pattern to be filled that needs to be filled can be determined from these patterns for layout.
[0081] In one example, the blanks for nesting can be obtained from the initial nesting diagram; that is, the blanks for nesting are the blanks that have been initially arranged in the initial nesting diagram. The initial nesting diagram is generated by arranging the blanks using a nesting diagram generation scheme provided in related technologies.
[0082] In another example, the pattern used for layout is an un-layout pattern, such as a pattern to be laid out in one or more garments, etc. This instruction manual does not impose any special restrictions on this.
[0083] In this specification, the plate to be filled can be determined from the plates used for layout. The plate to be filled is the plate around which a background texture needs to be added, and can be set by the user according to actual needs.
[0084] For example, a plate linkage switch control can be displayed in the operation interface used to generate the nesting diagram. In response to the user's operation of turning on the plate linkage switch control, all plates used for nesting can be identified as the plates to be filled. For instance, in the operation interface, the plate linkage switch control can be in a closed state by default. The user can turn on the plate linkage switch control through mouse clicks, finger clicks, or other operations to identify all plates used for nesting as the plates to be filled.
[0085] For example, a plate identifier input control can be displayed in the operation interface used to generate the nesting diagram. In response to the user's input operation on the plate identifier input control, the plate corresponding to the plate identifier specified by the input operation is determined as the plate to be filled. For plates not specified by the input operation, no background filling is required subsequently.
[0086] The plate identifier input control can be an input box for inputting the identifier of the plate to be filled. Users can enter the name, number, and other identifier information of the plate to be filled with the background pattern in this input box. For example, users can enter the names of one or more plates to be filled in this input box to identify the plate corresponding to that name as the plate to be filled.
[0087] The plate identifier input control can also be used to select a drop-down list of plates to be filled. The drop-down list can display the identifiers of all plates, and the user can select one or more plates as plates to be filled.
[0088] The plate identifier input control can also be a checkbox for selecting plates to be filled, from which the user can select one or more plates to be filled.
[0089] The plate identifier input control can also be a search box for searching for plates to be filled. Users can enter the name or other identifier of the plate to be filled in the search box to search, and then select the plate to be filled from the search results.
[0090] For example, a user can select a pattern to be filled through a selection operation. In response to a selection operation on any pattern used for nesting, the selected pattern is designated as the pattern to be filled. For instance, all patterns used for nesting can be displayed in the interface, and the user can select one or more patterns to be filled by clicking with the mouse or finger. Specifically, a selection switch for the pattern to be filled can be displayed. When this switch is turned on, the pattern clicked by the user is designated as the pattern to be filled. The user can turn off the selection switch after selecting all patterns. Alternatively, the user can right-click to select one or more patterns and then select the "Fill Texture" button from the displayed operation list to set them as the pattern to be filled.
[0091] Of course, the above-described method of setting the plate to be filled is only an example. In other examples, users may also use other interactive methods to set the plate to be filled, and this manual does not impose any special restrictions on this.
[0092] In this manual, it can be assumed that all plates used for layout are plates to be filled, without requiring user settings, and this manual does not impose any special restrictions on this.
[0093] Step 104: For each plate to be filled, determine the outer expansion area and background pattern of the plate to be filled, and fill the background pattern into the outer expansion area of the plate to be filled.
[0094] In this specification, for each plate to be filled, it is necessary to determine the outer expansion area of the plate to be filled. The outer expansion area is the area outside the outline of the plate to be filled where the background texture needs to be added, located outside the outline of the plate.
[0095] In one example, the area between the bounding box of the plate to be filled and the outline of the plate to be filled can be defined as the outer expansion area.
[0096] The bounding box, also known as the boundary box, is a rectangle that can completely enclose (contain) a plate. It can be the smallest rectangle. The bounding box is a collision unit used in related technologies to generate plate nesting diagrams. The outline of the plate to be filled represents the actual outline of the plate to be filled. There is a blank area between the outline and the bounding box. In this example, this blank area can be defined as the outer expansion area of the plate to be filled.
[0097] In practical implementation, users can define the area between the bounding box and the outline of the piece to be filled as the expansion area using preset controls. For example, a default control for the expansion area can be provided in the user interface. This default control sets the area between the bounding box and the outline of the piece to be filled as the expansion area, eliminating the need for manual setting by the user. This default control can apply to all pieces to be filled. For instance, when the piece linkage switch is on, it can be considered that the default control applies to all pieces to be filled. Of course, it can also be set individually for a specific piece or a subset of pieces to be filled; this manual does not impose any special limitations on this.
[0098] In another example, the outward extension distance value of the plate to be filled can be obtained, and then its outward extension area can be determined based on the outward extension distance value.
[0099] The outward expansion distance value can be set by the user through the operation interface. For example, an outward expansion distance input box can be displayed in the operation interface, where the user can enter the outward expansion distance value. Alternatively, a slider corresponding to the outward expansion distance value can be displayed in the operation interface, allowing the user to adjust the outward expansion distance value using the up arrow and the down arrow, etc. Of course, the outward expansion distance value can also be the system default distance value; this specification does not limit this.
[0100] After obtaining the outward expansion distance value, the outward expansion area can be generated by offsetting the outward expansion distance value outward based on the bounding box of the piece to be filled. In this way, the outer boundary shape of the expansion area is the same as the shape of the bounding box, which is rectangular. Please refer to [reference needed]. Figure 2 Example, Figure 2 The bounding box of the front piece of the top shown is a dashed rectangle. Based on this dashed rectangle, an outward expansion distance d is offset to obtain a solid rectangle ABCD. The area between this rectangle ABCD and the outline of the front piece of the top is the expansion area.
[0101] After obtaining the outward expansion distance value, the outward expansion area can also be generated by offsetting the outward expansion distance value outward based on the outline of the plate to be filled. In this way, the outer boundary shape of the outward expansion area is the same as the outline shape of the plate to be filled. Please refer to... Figure 3 Example, Figure 3 The outline of the front piece of the top shown is an irregular shape. Based on this irregular shape, an outward expansion distance d is offset to obtain an irregular solid line shape ABCDEFGH. The area between this irregular shape and the outline of the front piece of the top is the outward expansion area.
[0102] In yet another example, in response to a user's movement of the bounding box of the sheet to be filled, the expansion area is determined based on the change in the position of the bounding box.
[0103] The movement operation can be applied to the entire bounding box. Taking mouse drag as an example, after the user selects an edge or vertex of the bounding box, if the user drags the edge or vertex outward, the entire bounding box expands outward; if the user drags the edge or vertex inward, the bounding box shrinks inward. When the user releases the mouse, the area between the current position of the bounding box and the outline of the area to be filled can be defined as the expansion area.
[0104] The movement operation can also be applied to an edge or a vertex within the bounding box. Taking mouse drag as an example, if the user selects an edge of the bounding box and drags it outwards, the edge moves outwards, and correspondingly, the two adjacent edges of that edge lengthen, while the edge opposite to that edge remains unchanged. Similarly, if the user selects a vertex of the bounding box and drags it outwards, the two adjacent edges change accordingly, while other edges and vertices remain unchanged. When the user releases the mouse, the area between the current position of the bounding box and the outline of the area to be filled can be defined as the expansion area.
[0105] It is worth noting that in this approach, the movement operation of the bounding box is only used to determine the outer expansion area; the actual position of the bounding box does not change.
[0106] Of course, the above method for determining the outer expansion area is only an example. In other examples, users may also be allowed to draw the outer expansion area themselves, for example, users may use a pen to draw the required outer expansion area, etc. This specification does not impose any special restrictions on this.
[0107] In this specification, for all plates to be filled, the outer expansion area of these plates can be set all at once using one of the methods described above. That is, the outer expansion area of each plate to be filled is the same. For example, when the plate linkage switch control is in the on state, in response to the user's setting operation on the outer expansion area of any plate to be filled, the setting operation can be synchronized to other plates to be filled, that is, the user's operation of setting the outer expansion area of one plate to be filled is synchronized to other plates to be filled. Of course, the outer expansion area of all plates to be filled can also be set uniformly through other controls.
[0108] In this manual, the outer expansion area can also be set separately for each plate to be filled. The method for determining the outer expansion area of different plates to be filled can be the same or different, depending on the user's setting method. For example, one or more plates to be filled can be selected first, and then the outer expansion area can be set for them. After the setting is completed, one or more remaining plates to be filled can be selected for setting, etc. This manual does not impose any special restrictions on this.
[0109] In this specification, for each plate to be filled, it is also necessary to determine the background pattern of the plate to be filled, which is the pattern used to fill the outer expansion area.
[0110] In one example, users can customize the background texture. In response to the addition of a background texture, the added image can be designated as the background texture for the area to be filled. For instance, a user can select the image they want to add through the background texture addition operation, and then the added image can be designated as the background texture for the corresponding area to be filled.
[0111] In another example, the user may not set a background shading, and the system will default to using the image of the plate to be filled as the background shading.
[0112] In this manual, the background texture of all plates to be filled can be determined at once, meaning that each plate will have the same background texture. For example, when the plate linkage switch control is on, in response to the user's addition of a background texture for any plate to be filled, the added image can be determined as the background texture for all plates to be filled, thus synchronizing the user-defined background texture to all plates to be filled. Of course, if the user does not define a custom background texture, the default background texture for all plates to be filled will be the plate image.
[0113] In this manual, you can also set background shading for each plate to be filled separately. The background shading for different plates to be filled can be different. For example, you can first select one or more plates to be filled and then set background shading for them. After setting the background shading, you can then select one or more remaining plates to be filled to set background shading. Alternatively, you can not set background shading for the remaining plates to be filled and use the plate image by default. This manual does not impose any special restrictions on this.
[0114] This manual does not restrict the order in which the outer area and background shading of the image to be filled are set. For example, the outer area of the image to be filled can be set first, and then the background shading can be set. Alternatively, the background shading of the image to be filled can be set first, and then its outer area set. Another example is that the outer area and background shading can be set for a single image to be filled, and then for the next image to be filled, the outer area and background shading can be set, etc. This manual does not impose any special restrictions on this. Accordingly, after the user has completed the settings, the corresponding outer area and background shading can be determined based on the user settings.
[0115] In this specification, once the outer expansion area and background pattern of the plate to be filled are determined, the background pattern can be filled into the outer expansion area. This background pattern filling can be performed uniformly on all plates to be filled, or it can be performed separately on one or more plates. For example, after the user sets the outer expansion area and background pattern of a certain plate to be filled, the background pattern is filled into the corresponding outer expansion area; after the user sets the outer expansion area and background pattern of the next plate to be filled, the background pattern is filled into the corresponding outer expansion area, and so on.
[0116] In this specification, after the background pattern is filled into the outer expansion area, in response to a scaling operation on the background pattern in the outer expansion area, the background pattern in the outer expansion area can be enlarged or reduced based on a preset scale. This scaling operation can be applied to the background patterns in the outer expansion areas of all plates to be filled, or it can be applied to the background patterns in the outer expansion areas of one or more selected plates to be filled; this specification does not impose any special limitations on this.
[0117] In this instruction manual, after filling the outer area with the background texture, the size and / or shape of the outer area can be adjusted as needed. For example, if the outer area feels too large, it can be reduced; if it feels too small, it can be enlarged. The method for adjusting the size / shape can be referenced in the aforementioned method for setting the outer area. After adjusting the size or shape of the outer area, the background texture will be updated accordingly.
[0118] Therefore, by adopting the above-mentioned solution provided in this manual, users can easily set the pattern to be filled, its outer area, and the background texture through simple interaction. The operation is simple, intuitive, efficient, and provides a good user experience.
[0119] Step 106: After filling is complete, generate the plate layout diagram.
[0120] In this manual, after all the background patterns of the plates to be filled have been filled, the nesting diagram can be generated. In the nesting diagram generated in this way, the area outside the plate outline will have a background pattern and will not be completely blank.
[0121] In one example, when generating the layout diagram, for the plate to be filled, the outer boundary of its outer expansion area can be used as a collision unit to participate in the plate layout collision in order to generate the plate layout diagram.
[0122] The collision unit is an important calculation unit when automatically arranging the plates to generate the nesting diagram. During the automatic nesting process, collision detection is performed through the collision unit. If the collision units of two plates do not overlap, then the two plates definitely do not overlap.
[0123] In this example, when generating the nesting diagram, the outer boundary of the area to be filled can be used as a collision unit for collision detection to ensure that the area to be filled is displayed in the nesting diagram and is not covered. Of course, if the sheets used for nesting include sheets that do not need to be filled, their bounding boxes can still be used as collision units for collision detection.
[0124] The algorithm used to automatically arrange the plates to generate the nesting diagram can refer to relevant technologies, and this manual does not impose any special restrictions on it.
[0125] In another example, when generating the nesting diagram, all boards used for nesting, whether they are already filled or do not need to be filled, can still participate in the nesting collision using the board boundary frame as the collision unit. Using this method, the outer expansion areas of different boards to be filled may overlap, thus allowing the setting of priorities for each board to be filled; the outer expansion areas of boards with higher priority will be placed on top.
[0126] In this example, it is possible to detect whether the outer expansion areas of different plates to be filled overlap. If overlap occurs, the priority of the overlapping areas can be obtained. The priority of the overlapping areas is the priority of the plates to which the at least two overlapping outer expansion areas belong. Then, the overlapping outer expansion areas with higher priority can be placed on top to generate the nesting diagram. For example, when generating the nesting diagram, if the first outer expansion area of the first plate to be filled and the second outer expansion area of the second plate to be filled overlap, and if the priority of the first plate to be filled is higher than that of the second plate to be filled, then the first outer expansion area of the first plate to be filled can be placed on top of the second outer expansion area of the second plate to be filled to generate the nesting diagram.
[0127] Of course, if two overlapping expansion areas of the plates to be filled have no priority set, or have the same priority, one of the expansion areas can be randomly placed on the upper layer. This manual does not impose any special restrictions on this.
[0128] In this manual, collision units can be determined using the collision switch corresponding to the expansion area provided in the user interface. If the collision switch corresponding to the expansion area is in the open state, the collision unit is determined to be the outer boundary of the expansion area of the plate to be filled; if the collision switch is in the closed state, the collision unit is determined to be the bounding box of the plate to be filled. The user can adjust the state of the collision switch as needed. Of course, in other examples, other controls can also be used to set the collision units.
[0129] In this specification, if the plates used for layout are from the initial layout diagram, meaning these plates have already been initially arranged, it is not necessary to automatically rearrange these layouts after the background filling. Specifically, the initial arrangement position of each plate in the initial layout diagram can be obtained, and then the plate layout diagram can be generated directly based on the initial layout position.
[0130] As described above, the nesting diagram generation scheme provided in this manual allows for the identification of filling plates within the nesting plates. For each filling plate, its outer expansion area and background pattern are determined, and then the background pattern is filled into the corresponding outer expansion area. After the background pattern is filled, the nesting diagram is generated. This adds a background pattern to the area outside the plate outline, thus generating a nesting diagram with a background pattern. After the main plate is cut according to the nesting diagram, the remaining fabric with the background pattern can be used to cut out usable smaller plates, supporting nesting methods using heat transfer printing. Furthermore, the scheme described in this manual automatically arranges the plates to generate the nesting diagram, significantly improving fabric utilization and generating efficiency compared to manual arrangement.
[0131] Figure 4 This is a schematic diagram of an initial material layout provided in an exemplary embodiment.
[0132] Please refer to Figure 4 This shows the initial layout diagram generated after initial layout of two garment patterns. The rectangular area circled by the gray lines around these two garment patterns is the fabric area.
[0133] Suppose that the user wants to... Figure 4 The two top patterns shown have added textures and can be opened. Figure 5 The "All Plates" linkage switch control shown in the operation area is used to identify all plates used for layout in the initial layout diagram as plates to be filled. Figure 4 Both of the top patterns shown are identified as patterns to be filled.
[0134] Furthermore, assuming the user has not set a background shading for the area to be filled, the image of the area to be filled can be used as the background shading. The outer area of the area to be filled also uses the system default area, or it can be set by the user through interactive controls such as the outer distance setting control provided in the operation area. Figure 5 The distances shown, such as "distance from the left side of the plate" and "distance from the right side of the plate," are the outward expansion distance values, which users can edit themselves. Once the outward expansion area and background pattern are determined, background pattern filling can be performed to generate... Figure 6 The diagram shows the filling effect.
[0135] Please continue to refer to this. Figure 5 , Figure 5 The shown operation area also includes a "Pattern Name" setting control. When the "All Patterns" linkage switch control is turned off, the user can use this "Pattern Name" setting control to specify the patch to be filled with the background pattern, for example: patch 2. In this case, the background pattern will be filled only for the user-specified patch 2, generating... Figure 7 The diagram shows the fill effect. (Reference) Figure 7 The second top pattern is surrounded by a background pattern, while the first top pattern is not.
[0136] Please refer to Figure 8 Users can also customize the outer expansion area of the plate to be filled. Figure 8 The extended area of the second top pattern shown can be formed by the user stretching the top left vertex of the pattern's bounding box, or it can be drawn by the user.
[0137] Optionally, when the "All Plates" linkage switch control is turned on, the background texture settings and outer expansion area settings for any plate to be filled can be synchronized to other plates to be filled, so as to realize the linkage settings of all plates, which is simple and convenient for users.
[0138] After filling the background texture of the outer area of the plate to be filled, the nesting diagram can be regenerated. The operation area provides a "Outer Area Participates in Collision" switch control (not shown). When the switch is turned on, the outer boundary of the outer area is determined as the collision unit to participate in the plate nesting collision to generate the nesting diagram. When the switch is turned off, the plate boundary frame is still used as the collision unit to participate in the plate nesting collision to generate the nesting diagram.
[0139] Figure 9 This is a layout pattern generated after adding a background pattern. Please refer to it. Figure 9 The area outside the outline of the pattern sheet is also filled with the same background pattern as the pattern sheet. After the pattern sheet is cut, the remaining fabric can be used to cut out other small pattern sheets as needed, so as to maximize the fabric utilization rate.
[0140] It should be noted that, in order to clearly show the operation controls in the operating area, this manual will... Figure 5 The operating area is shown separately; generally speaking... Figure 5 The operating area shown and Figure 4 , Figures 6-9 The material discharge areas shown are usually located in the same interactive interface.
[0141] Therefore, using the nesting diagram generation solution provided in this manual, users can easily set the filling plate, its outer expansion area, and background texture through simple interaction. The operation is simple, intuitive, efficient, and provides a good user experience. Furthermore, the generated nesting diagram includes a background texture. After cutting the main plate according to the nesting diagram, the remaining fabric with the background texture can be used to cut out usable smaller plates, thus supporting nesting methods using heat transfer printing.
[0142] Figure 10 This is a schematic structural diagram of a device provided in an exemplary embodiment. Please refer to... Figure 10 At the hardware level, the device includes a processor 1002, an internal bus 1004, a network interface 1006, memory 1008, and non-volatile memory 1010, and may also include other hardware required for its functions. One or more embodiments of this specification can be implemented in software, for example, the processor 1002 reads the corresponding computer program from the non-volatile memory 1010 into memory 1008 and then runs it. Of course, besides software implementation, one or more embodiments of this specification do not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. That is to say, the execution entity of the following processing flow is not limited to individual logic units, but can also be hardware or logic devices.
[0143] Please refer to Figure 11 The material layout diagram generation device 1100 can be applied to, for example... Figure 10 The device shown is used to implement the technical solution of this specification. The material layout generating device 1100 may include:
[0144] Plate determination unit 1101 determines the plate to be filled from the plates used for material layout;
[0145] The background filling unit 1102 determines the outer expansion area and background pattern of each plate to be filled, and fills the background pattern into the outer expansion area of the plate to be filled.
[0146] The layout diagram generation unit 1103 generates the layout diagram of the plate after the filling is completed.
[0147] Optionally, determining the plate to be filled in the plate used for layout includes:
[0148] In response to the opening operation of the plate linkage switch control, all plates used for material layout are identified as the plates to be filled.
[0149] Optionally, determining the plate to be filled in the plate used for layout includes:
[0150] In response to an input operation to the plate identifier input control, the plate corresponding to the plate identifier specified by the input operation is determined as the plate to be filled.
[0151] Optionally, the plate identification input control includes one or more of the following:
[0152] An input box for entering the identifier of the plate to be filled, a drop-down list for selecting the plate to be filled, a checkbox for selecting the plate to be filled, and a search box for searching the plate to be filled.
[0153] Optionally, determining the plate to be filled in the plate used for layout includes:
[0154] In response to a selection operation for any of the plates used for nesting, the selected plate is determined as the plate to be filled.
[0155] Optionally, determining the outer expansion area of the plate to be filled includes:
[0156] The area between the bounding box of the plate to be filled and the outline of the plate to be filled is defined as the outer expansion area.
[0157] Optionally, determining the outer expansion area of the plate to be filled includes:
[0158] Obtain the outward expansion distance value of the plate to be filled;
[0159] The expansion area is determined based on the expansion distance value.
[0160] Optionally, the outward expansion distance value can be set via an outward expansion distance setting control.
[0161] Optionally, determining the outward expansion area based on the outward expansion distance value includes:
[0162] Based on the bounding box of the plate to be filled, the outward expansion distance value is offset outward to generate the outward expansion region.
[0163] Optionally, determining the outward expansion area based on the outward expansion distance value includes:
[0164] Based on the outline of the plate to be filled, the outward expansion distance value is offset outward to generate the outward expansion area.
[0165] Optionally, determining the outer expansion area of the plate to be filled includes:
[0166] In response to a user's movement operation on the bounding box of the piece to be filled, the outer expansion area is determined based on the positional change of the bounding box.
[0167] Optionally, when the panel linkage switch control is in the open state, it further includes:
[0168] In response to a setting operation for the expansion area of any sheet to be filled, the setting operation is synchronized to other sheets to be filled.
[0169] Optionally, determining the background texture of the plate to be filled includes:
[0170] In response to the addition operation of the background, the image to be added is determined as the background of the plate to be filled.
[0171] Optionally, when the panel linkage switch control is in the on state, it also includes:
[0172] In response to a shading addition operation for any piece to be filled, the added image is determined as the shading for all pieces to be filled.
[0173] Optionally, determining the background texture of the plate to be filled includes:
[0174] The image of the plate to be filled is determined as the background texture.
[0175] Optionally, before generating the panel layout diagram, the following steps are also included:
[0176] In response to a scaling operation on the background texture of the extended region, the background texture in the extended region is enlarged or reduced.
[0177] Optionally, the generation of the layout diagram includes:
[0178] For the plate to be filled, the outer boundary of its outer expansion area is used as the collision unit to participate in the plate layout collision, so as to generate the plate layout diagram.
[0179] Optionally, the step of using the outer boundary of the expanded region of the plate to be filled as the collision unit to participate in the plate layout collision includes:
[0180] When the collision switch corresponding to the outer expansion area is in the open state, the plate to be filled participates in the plate layout collision with the outer boundary of its outer expansion area as the collision unit.
[0181] Optionally, the generation of the layout diagram includes:
[0182] The plate boundary frame is used as the collision unit to participate in plate layout collision;
[0183] When the outer expansion areas of different boards to be filled overlap, obtain the priority of the overlapping outer expansion areas;
[0184] Place the high-priority overlapping outer regions on the upper layer to generate the panel layout diagram.
[0185] Optionally, the generation of the layout diagram includes:
[0186] Obtain the initial layout position of the plate for layout;
[0187] A panel layout diagram is generated based on the initial layout position.
[0188] Based on the same concept as the methods described above, this specification also provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor performs the steps of the method as described in any of the above embodiments by executing the executable instructions.
[0189] Based on the same concept as the methods described above, this specification also provides a computer-readable storage medium having computer instructions stored thereon that, when executed by a processor, implement the steps of the methods as described in any of the above embodiments.
[0190] Based on the same concept as the methods described above, this specification also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the methods as described in any of the above embodiments.
Claims
1. A method for generating a layout diagram for a heat transfer printing process, characterized in that, The method includes: Identify the plates to be filled in the plates used for material layout; For each piece of fabric to be filled, determine the outer expansion area and the background pattern of the piece of fabric to be filled, and fill the background pattern into the outer expansion area of the piece of fabric to be filled. The outer expansion area is located outside the outline of the piece of fabric and within the specified width of the fabric. After filling is completed, a layout diagram is generated so that when heat transfer is performed according to the generated layout diagram, the fabric area corresponding to the outer expansion area has a pattern corresponding to the background texture, which can be used for cutting small plates. Determining the background texture of the plate to be filled includes: In response to the addition operation of the background, the image to be added is determined as the background of the plate to be filled.
2. The method according to claim 1, characterized in that, The step of determining the plate to be filled in the plate used for material layout includes: In response to the opening operation of the plate linkage switch control, all plates used for material layout are identified as the plates to be filled.
3. The method according to claim 1, characterized in that, The step of determining the plate to be filled in the plate used for material layout includes: In response to an input operation to the plate identifier input control, the plate corresponding to the plate identifier specified by the input operation is determined as the plate to be filled.
4. The method according to claim 3, characterized in that, The plate identifier input control includes one or more of the following: An input box for entering the identifier of the plate to be filled, a drop-down list for selecting the plate to be filled, a checkbox for selecting the plate to be filled, and a search box for searching the plate to be filled.
5. The method according to claim 1, characterized in that, The step of determining the plate to be filled in the plate used for material layout includes: In response to a selection operation for any of the plates used for nesting, the selected plate is determined as the plate to be filled.
6. The method according to claim 1, characterized in that, Determining the outer expansion area of the plate to be filled includes: The area between the bounding box of the plate to be filled and the outline of the plate to be filled is defined as the outer expansion area.
7. The method according to claim 1, characterized in that, Determining the outer expansion area of the plate to be filled includes: Obtain the outward expansion distance value of the plate to be filled; The expansion area is determined based on the expansion distance value.
8. The method according to claim 7, characterized in that, The outward expansion distance value is set through the outward expansion distance setting control.
9. The method according to claim 7, characterized in that, Determining the extended region based on the extended distance value includes: Based on the bounding box of the plate to be filled, the outward expansion distance value is offset outward to generate the outward expansion region.
10. The method according to claim 7, characterized in that, Determining the extended region based on the extended distance value includes: Based on the outline of the plate to be filled, the outward expansion distance value is offset outward to generate the outward expansion area.
11. The method according to claim 1, characterized in that, Determining the outer expansion area of the plate to be filled includes: In response to a user's movement operation on the bounding box of the piece to be filled, the outer expansion area is determined based on the positional change of the bounding box.
12. The method according to claim 2, characterized in that, When the panel linkage switch control is in the open state, it also includes: In response to a setting operation for the expansion area of any sheet to be filled, the setting operation is synchronized to other sheets to be filled.
13. The method according to claim 1, characterized in that, When the panel linkage switch control is in the on state, it also includes: In response to a shading addition operation for any piece to be filled, the added image is determined as the shading for all pieces to be filled.
14. The method according to claim 1, characterized in that, Determining the background texture of the plate to be filled includes: The image of the plate to be filled is determined as the background texture.
15. The method according to claim 1, characterized in that, Before generating the panel layout diagram, the following steps are also included: In response to a scaling operation on the background texture of the extended region, the background texture in the extended region is enlarged or reduced.
16. The method according to claim 1, characterized in that, The generated layout diagram includes: For the plate to be filled, the outer boundary of its outer expansion area is used as the collision unit to participate in the plate layout collision, so as to generate the plate layout diagram.
17. The method according to claim 16, characterized in that, The step of using the outer boundary of the expanded region of the plate to be filled as the collision unit to participate in the plate layout collision includes: When the collision switch corresponding to the outer expansion area is in the open state, the plate to be filled participates in the plate layout collision with the outer boundary of its outer expansion area as the collision unit.
18. The method according to claim 1, characterized in that, The generated layout diagram includes: The plate boundary frame is used as the collision unit to participate in plate layout collision; When the outer expansion areas of different boards to be filled overlap, obtain the priority of the overlapping outer expansion areas; Place the high-priority overlapping outer regions on the upper layer to generate the panel layout diagram.
19. The method according to claim 1, characterized in that, The generated layout diagram includes: Obtain the initial layout position of the plate for layout; A panel layout diagram is generated based on the initial layout position.
20. A nesting pattern generation device for a heat transfer printing process, characterized in that, The device includes: The plate determination unit determines the plate to be filled from the plates used for material layout; The background filling unit determines the outer expansion area and background pattern of each piece to be filled, and fills the background pattern into the outer expansion area of the piece to be filled. The outer expansion area is located outside the outline of the piece and within the specified fabric width. The layout diagram generation unit generates a layout diagram after filling is completed, so that when heat transfer is performed according to the generated layout diagram, the fabric area corresponding to the outer expansion area has a pattern corresponding to the background texture, which can be used for cutting small plates. Determining the background texture of the plate to be filled includes: In response to the addition operation of the background, the image to be added is determined as the background of the plate to be filled.
21. An electronic device, characterized in that, include: processor; A memory for storing processor-executable instructions; wherein the processor implements the steps of the method as described in any one of claims 1-19 by executing the executable instructions.
22. A computer-readable storage medium, characterized in that, It stores computer instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1-19.
23. A computer program product, characterized in that, Includes a computer program / instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1-19.