Two-dimensional irregular sheet metal part nesting method and system based on scan line NFP

By using a scan-line NFP-based method and a scan-line fusion mechanism, the problem of excessive time consumption in the sorting process in existing technologies is solved, and an efficient sorting process is achieved.

CN117171827BActive Publication Date: 2026-11-20YANSHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311081413.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2026-11-20
Estimated Expiration
2043-08-25

AI Technical Summary

Technical Problem

Existing technologies require extensive interference detection when inserting each new part during the nesting process, resulting in excessively long nesting times and severely impacting efficiency.

Method used

The method based on scan line NFP is adopted. By initializing the scan line NFP list and the hierarchical container, and utilizing the scan line fusion mechanism, the number of scan lines that need to be detected during the interferometric detection process is reduced, and the sorting time is shortened.

Benefits of technology

It improves sorting efficiency, reduces the number of scan lines for interference detection, and shortens sorting time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117171827B_ABST
    Figure CN117171827B_ABST
Patent Text Reader

Abstract

The application provides a two-dimensional irregular sheet metal part layout method and system based on a scan line NFP, and relates to the technical field of optimization blanking, which comprises the following steps: firstly, obtaining sheet metal part sequences, scan line NFP information and the width of a rectangular mother plate; then, initializing a scan line NFP list and a scan line hierarchy container; then, searching based on the scan line hierarchy container and the width of the rectangular mother plate to obtain non-interference positions of reference points of all sheet metal parts to be laid out; finally, constructing a layout scheme based on the non-interference positions of the reference points of all sheet metal parts to be laid out. The application reduces the number of scan lines that need to be detected in the interference detection process, shortens the layout time and improves the layout efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of optimized blanking technology, and in particular to a two-dimensional irregular sheet metal part layout method and system based on scan line NFP. Background Technology

[0002] In recent years, with the intensification of market competition, enterprises are eager to reduce production costs and improve production efficiency. Against this backdrop, traditional manual nesting methods can no longer meet the production needs of enterprises, and they increasingly require a more efficient nesting method. The two-dimensional irregular nesting problem is a branch of the optimization blanking problem, referring to the placement of a given number and type of irregularly shaped parts on a given sheet metal according to the optimal nesting scheme. Based on the different ways of representing the parts, two-dimensional irregular nesting models can be divided into continuous models, discrete models, and semi-discrete models. Among them, the semi-discrete model based on scanline representation combines the advantages of both continuous and discrete models. Its nesting algorithm is simple and easy to implement, consumes little memory, and provides good nesting results, thus it is widely used.

[0003] For the semi-discrete model of scanline representation, existing technologies require that the scanline representation of each new part be continuously subjected to interference detection with the scanline representations of all other parts already placed within the rectangular plate during the nesting process, until the first interference-free position is found within the rectangular plate. When the number of already placed parts is large, the insertion of a new part requires a large number of interference detections, resulting in an excessively long nesting process and severely impacting nesting efficiency. Summary of the Invention

[0004] The purpose of this invention is to provide a two-dimensional irregular sheet metal part layout method and system based on scan line NFP, which reduces the number of scan lines that need to be detected during interference detection, shortens the layout time, and improves the layout efficiency.

[0005] A two-dimensional irregular sheet metal part layout method based on scan-line NFP, comprising:

[0006] S1, obtain the sheet metal part sequence, scan line NFP information, and rectangular mother plate width; the sheet metal part sequence contains n codes, where n represents the total number of sheet metal parts to be arranged; the code indicates which sheet metal part is which type of sheet metal part; the scan line NFP information includes scan line NFP generated with the i-th type of sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, i∈m, j∈m, where m is the total number of types of sheet metal parts to be arranged;

[0007] S2, initialize the scan line NFP list and scan line hierarchy container; the scan line NFP list is an n-row m-column list; the p-th row and j-th column of the scan line NFP list stores the scan line NFPs generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, denoted as NFP. p,j The scan line hierarchy container contains m first-level sub-containers, and each first-level sub-container of the scan line hierarchy container contains M second-level sub-containers, where M is a constant; the k-th second-level sub-container in the j-th first-level sub-container of the scan line hierarchy container is used to store the scan line NFP generated by the j-th type of sheet metal part as the moving sheet metal part, which is located in the k-th level, where k∈M-1.

[0008] S3, based on the scan line layer container and the width of the rectangular mother plate, search to obtain the non-interference position of the reference point of all the sheet metal parts to be arranged;

[0009] Let the current sheet metal part to be laid out be of type j. Based on the scan lines stored in all the secondary sub-containers of the j-th primary sub-container of the scan line hierarchy container, search for the non-interference position of the reference point of the current sheet metal part to be laid out. At the same time, mark the current sheet metal part to be laid out as a laid-out sheet metal part. Then, update the position of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part in the scan line NFP list. Add the scan lines of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part after the update position to the corresponding secondary sub-container. Then, search for the non-interference position of the reference point of the next sheet metal part to be laid out until the non-interference position of the reference point of all sheet metal parts to be laid out is obtained. The reference point of the sheet metal part to be laid out is the lower left corner of the envelope rectangle of the sheet metal part to be laid out.

[0010] The interference-free position is defined as follows: Let the current sheet metal part to be laid out be the j-th type of sheet metal part, and let the p-th sheet metal part be any already laid out sheet metal part. If the reference point of the current sheet metal part to be laid out is not located at NFP... p,j If the reference point of the current sheet metal part is on the scan line, it means that there is no interference between the scan line representation of the current sheet metal part and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part is located at NFP p,j If the reference point of the current sheet metal part is located within any scan line, it indicates that there is interference between the scan line representation of the current sheet metal part and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part is located at NFP p,j The endpoint of any scan line indicates that the scan line representation of the current sheet metal part to be sampled has one and only point contact with the scan line representation of the p-th sheet metal part, and there is no interference.

[0011] S4, construct a layout scheme based on the non-interference position of the reference points of all sheet metal parts to be laid out.

[0012] Optionally, the step of searching for the non-interference position of the reference point of the current sheet metal part to be arranged specifically includes:

[0013] Let the sheet metal part to be arranged be the j-th type of sheet metal part, starting from the hierarchy y i Initially, traverse all second-level sub-containers within the j-th first-level sub-container of the scanline hierarchy container until the first non-interference position of the reference point of the current sheet metal part to be laid out is found. This first non-interference position is then taken as the non-interference position of the reference point of the current sheet metal part to be laid out. The hierarchy y i This refers to the hierarchy where the first non-interference position of the reference point of the previous j-th type sheet metal part is located; the first non-interference position of the reference point of the current sheet metal part is defined as follows: the reference point of the current sheet metal part is not located inside the scan line of the second sub-container of the j-th first-level sub-container stored in the scan line hierarchy container, and the x-coordinate of the reference point of the current sheet metal part is less than or equal to the width of the rectangular mother plate minus the width of the envelope rectangle of the current sheet metal part.

[0014] Optionally, the subsequent updating of the scan line NFP list includes the positions of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part, specifically as follows:

[0015] Move the scan lines of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part in the scan line NFP list by a displacement vector; the displacement vector refers to the vector that starts from the origin of the coordinate system and ends at the first non-interference position of the reference point of the current sheet metal part to be laid out.

[0016] Optionally, adding all scan lines of the scan lines NFP generated with the current sheet metal part to be arranged as the fixed sheet metal part after the update position to the corresponding secondary sub-container specifically involves:

[0017] Let the current sheet metal part to be laid out be the q-th sheet metal part. For the NFP generated after updating the position, with the current sheet metal part to be laid out as the fixed sheet metal part and the j-th type sheet metal part as the moving sheet metal part, q,j , will NFP q,j All scan lines greater than or equal to level 0 are added to the second-level sub-container of the corresponding level of the j-th first-level sub-container of the scan line level container. For each second-level sub-container after adding scan lines, it is determined whether the number of scan lines in each second-level sub-container is greater than or equal to 10. If the number of scan lines in the second-level sub-container is greater than or equal to 10, a scan line fusion process is performed; otherwise, the scan line fusion process is not performed. The scan line fusion process refers to continuously merging two overlapping scan lines stored in the same second-level sub-container into one scan line until there are no overlapping scan lines in the second-level sub-container.

[0018] Alternatively, the formula for calculating M is as follows:

[0019]

[0020] Among them, h p,j Z represents the number of non-empty scan heights of scan lines NFP generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part. Z represents a positive integer.

[0021] The present invention also provides a two-dimensional irregular sheet metal part layout system based on scan line NFP, which includes:

[0022] The acquisition module is used to acquire the sheet metal part sequence, scan line NFP information, and rectangular mother plate width; the sheet metal part sequence contains n codes, where n represents the total number of sheet metal parts to be laid out; the code indicates which sheet metal part is which type of sheet metal part; the scan line NFP information includes scan line NFPs generated with the i-th type of sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, i∈m, j∈m, where m is the total number of types of sheet metal parts to be laid out;

[0023] The initialization module is used to initialize the scan line NFP list and the scan line hierarchy container; the scan line NFP list is an n-row, m-column list; the p-th row and j-th column of the scan line NFP list stores the scan line NFPs generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, denoted as NFP. p,j The scan line hierarchy container contains m first-level sub-containers, and each first-level sub-container of the scan line hierarchy container contains M second-level sub-containers, where M is a constant; the k-th second-level sub-container in the j-th first-level sub-container of the scan line hierarchy container is used to store the scan line NFP generated by the j-th type of sheet metal part as the moving sheet metal part, which is located in the k-th level, where k∈M-1.

[0024] The search module is used to search based on the scan line hierarchy container and the width of the rectangular mother plate to obtain the non-interference position of the reference point of all the sheet metal parts to be arranged;

[0025] Let the current sheet metal part to be laid out be of type j. Based on the scan lines stored in all the secondary sub-containers of the j-th primary sub-container of the scan line hierarchy container, search for the non-interference position of the reference point of the current sheet metal part to be laid out. At the same time, mark the current sheet metal part to be laid out as a laid-out sheet metal part. Then, update the position of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part in the scan line NFP list. Add the scan lines of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part after the update position to the corresponding secondary sub-container. Then, search for the non-interference position of the reference point of the next sheet metal part to be laid out until the non-interference position of the reference point of all sheet metal parts to be laid out is obtained. The reference point of the sheet metal part to be laid out is the lower left corner of the envelope rectangle of the sheet metal part to be laid out.

[0026] The interference-free position is defined as follows: Let the current sheet metal part to be laid out be the j-th type of sheet metal part, and let the p-th sheet metal part be any already laid out sheet metal part. If the reference point of the current sheet metal part to be laid out is not located at NFP... p,j If the reference point of the current sheet metal part is on the scan line, it means that there is no interference between the scan line representation of the current sheet metal part and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part is located at NFP p,j If the reference point of the current sheet metal part is located within any scan line, it indicates that there is interference between the scan line representation of the current sheet metal part and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part is located at NFP p,j The endpoint of any scan line indicates that the scan line representation of the current sheet metal part to be sampled has one and only point contact with the scan line representation of the p-th sheet metal part, and there is no interference.

[0027] The nesting module is used to construct a nesting scheme based on the non-interference positions of reference points for all sheet metal parts to be nested.

[0028] Optionally, the step of searching for the non-interference position of the reference point of the current sheet metal part to be arranged specifically includes:

[0029] Let the sheet metal part to be arranged be the j-th type of sheet metal part, starting from the hierarchy y i Initially, traverse all second-level sub-containers within the j-th first-level sub-container of the scanline hierarchy container until the first non-interference position of the reference point of the current sheet metal part to be laid out is found. This first non-interference position is then taken as the non-interference position of the reference point of the current sheet metal part to be laid out. The hierarchy y iThis refers to the hierarchy where the first non-interference position of the reference point of the previous j-th type sheet metal part is located; the first non-interference position of the reference point of the current sheet metal part is defined as follows: the reference point of the current sheet metal part is not located inside the scan line of the second sub-container of the j-th first-level sub-container stored in the scan line hierarchy container, and the x-coordinate of the reference point of the current sheet metal part is less than or equal to the width of the rectangular mother plate minus the width of the envelope rectangle of the current sheet metal part.

[0030] Optionally, the subsequent updating of the scan line NFP list includes the positions of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part, specifically as follows:

[0031] Move the scan lines of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part in the scan line NFP list by a displacement vector; the displacement vector refers to the vector that starts from the origin of the coordinate system and ends at the first non-interference position of the reference point of the current sheet metal part to be laid out.

[0032] Optionally, adding all scan lines of the scan lines NFP generated with the current sheet metal part to be arranged as the fixed sheet metal part after the update position to the corresponding secondary sub-container specifically involves:

[0033] Let the current sheet metal part to be laid out be the q-th sheet metal part. For the NFP generated after updating the position, with the current sheet metal part to be laid out as the fixed sheet metal part and the j-th type sheet metal part as the moving sheet metal part, q,j , will NFP q,j All scan lines greater than or equal to level 0 are added to the second-level sub-container of the corresponding level of the j-th first-level sub-container of the scan line level container. For each second-level sub-container after adding scan lines, it is determined whether the number of scan lines in each second-level sub-container is greater than or equal to 10. If the number of scan lines in the second-level sub-container is greater than or equal to 10, a scan line fusion process is performed; otherwise, the scan line fusion process is not performed. The scan line fusion process refers to continuously merging two overlapping scan lines stored in the same second-level sub-container into one scan line until there are no overlapping scan lines in the second-level sub-container.

[0034] Alternatively, the formula for calculating M is as follows:

[0035]

[0036] Among them, h p,j Z represents the number of non-empty scan heights of scan lines NFP generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part. Z represents a positive integer.

[0037] The effects of this invention are as follows:

[0038] This invention provides a two-dimensional irregular sheet metal part layout method based on scan line NFP. By utilizing the offline calculation capability of scan line NFP and introducing a scan line fusion mechanism, the number of scan lines that need to be detected during interference detection is reduced, thus shortening the layout time and improving the layout efficiency. Attached Figure Description

[0039] Figure 1 This is a flowchart of the two-dimensional irregular sheet metal part layout method based on scan line NFP of the present invention;

[0040] Figure 2 This is a schematic diagram of the scan line hierarchical container structure of the present invention;

[0041] Figure 3 This is a schematic diagram of the scan line fusion process of the present invention;

[0042] Figure 4 This is a schematic diagram of a layout scheme obtained using existing technology;

[0043] Figure 5 This is a schematic diagram of the layout scheme obtained using the method of the present invention. Detailed Implementation

[0044] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.

[0045] Figure 1 This is a flowchart of the two-dimensional irregular sheet metal part layout method based on scan line NFP of the present invention. Figure 1 As shown, this invention provides a two-dimensional irregular sheet metal part layout method based on scan line NFP, which includes:

[0046] S1, obtain the sheet metal part sequence, scan line NFP information, and rectangular mother plate width. The sheet metal part sequence contains n codes, where n represents the total number of sheet metal parts to be laid out; the code indicates which sheet metal part is which type of sheet metal part; the scan line NFP information includes the scan line NFP generated with the i-th type of sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, i∈m, j∈m, where m is the total number of types of sheet metal parts to be laid out.

[0047] S2, initialize the scan line NFP list and the scan line hierarchy container. The scan line NFP list is an n-row, m-column list; the p-th row and j-th column of the scan line NFP list stores the scan line NFP generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, denoted as NFP. p,jThe scanline hierarchy container contains m first-level sub-containers, and each first-level sub-container contains M second-level sub-containers, where M is a constant. The k-th second-level sub-container within the j-th first-level sub-container of the scanline hierarchy container stores the scanline NFP generated using the j-th type of sheet metal part as the moving sheet metal part, located at level k, where k ∈ M-1. The scanline hierarchy container is as follows: Figure 2 As shown, assuming the current sheet metal part to be arranged is the qth sheet metal part, the scan line in the scan line NFP generated with the qth sheet metal part as the fixed sheet metal part and the jth type sheet metal part as the moving sheet metal part is stored in the kth second-level sub-container of the jth first-level sub-container of the scan line hierarchy container, where q∈n.

[0048] The formula for calculating M is as follows:

[0049]

[0050] Among them, h p,j Z represents the number of non-empty scan heights of scan lines NFP generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part. Z represents a positive integer.

[0051] S3 searches based on the scan line hierarchy container and the width of the rectangular mother plate to obtain the non-interference position of the reference point of all the sheet metal parts to be arranged.

[0052] Let the current sheet metal part to be laid out be of type j. Based on the scan lines stored in all the secondary sub-containers of the j-th primary sub-container of the scan line hierarchy container, search for the non-interference position of the reference point of the current sheet metal part to be laid out. At the same time, mark the current sheet metal part to be laid out as a laid-out sheet metal part. Then, update the position of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part in the scan line NFP list. Add the scan lines of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part after the update position to the corresponding secondary sub-container. Then, search for the non-interference position of the reference point of the next sheet metal part to be laid out until the non-interference position of the reference point of all sheet metal parts to be laid out is obtained. The reference point of the sheet metal part to be laid out is the lower left corner of the envelope rectangle of the sheet metal part to be laid out.

[0053] The interference-free position is defined as follows: Let the current sheet metal part to be laid out be the j-th type of sheet metal part, and let the p-th sheet metal part be any already laid out sheet metal part. If the reference point of the current sheet metal part to be laid out is not located at NFP... p,j If the reference point of the current sheet metal part is on the scan line, it means that there is no interference between the scan line representation of the current sheet metal part and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part is located at NFP p,jIf the reference point of the current sheet metal part is located within any scan line, it indicates that there is interference between the scan line representation of the current sheet metal part and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part is located at NFP p,j The endpoint of any scan line indicates that the scan line representation of the current sheet metal part to be arranged has one and only point contact with the scan line representation of the p-th sheet metal part, and there is no interference.

[0054] The search identifies the non-interference position of the reference point for the current sheet metal part to be laid out, specifically:

[0055] Let the sheet metal part to be arranged be the j-th type of sheet metal part, starting from the hierarchy y i Start by traversing all second-level sub-containers within the j-th first-level sub-container of the scanline hierarchy container until the first non-interference position of the reference point of the current sheet metal part to be laid out is found. This first non-interference position is then taken as the non-interference position of the reference point of the current sheet metal part to be laid out. i This refers to the hierarchy where the first non-interference position of the reference point of the previous j-th type sheet metal part is located; the first non-interference position of the reference point of the current sheet metal part is defined as follows: the reference point of the current sheet metal part is not located inside the scan line of the second sub-container of the j-th first-level sub-container stored in the scan line hierarchy container, and the x-coordinate of the reference point of the current sheet metal part is less than or equal to the width of the rectangular mother plate minus the width of the envelope rectangle of the current sheet metal part.

[0056] Then update the positions of all scan line NFPs generated with the current sheet metal part to be laid out as the fixed sheet metal part in the scan line NFP list, specifically:

[0057] Move all scan lines in the scan line NFP list that are generated with the current sheet metal part to be laid out as the fixed sheet metal part by a displacement vector; the displacement vector is a vector that starts from the origin of the coordinate system and ends at the first non-interference position of the reference point of the current sheet metal part to be laid out.

[0058] Add all scan lines of the NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part after the update position to the corresponding secondary sub-container. Specifically:

[0059] Let the current sheet metal part to be laid out be the q-th sheet metal part. For the NFP generated after updating the position, with the current sheet metal part to be laid out as the fixed sheet metal part and the j-th type sheet metal part as the moving sheet metal part, q,j , will NFP q,jAll scan lines greater than or equal to level 0 are added to the second-level sub-container of the corresponding level of the j-th first-level sub-container of the scan line level container. For each second-level sub-container after adding scan lines, it is determined whether the number of scan lines in each second-level sub-container is greater than or equal to 10. If the number of scan lines in the second-level sub-container is greater than or equal to 10, the scan line fusion process is performed; otherwise, the scan line fusion process is not performed.

[0060] like Figure 3 As shown, the scan line fusion process refers to continuously merging two overlapping scan lines stored in the same secondary sub-container into one scan line until there are no overlapping scan lines in the secondary sub-container.

[0061] S4, construct a layout scheme based on the non-interference position of the reference points of all sheet metal parts to be laid out.

[0062] The present invention also provides a two-dimensional irregular sheet metal part layout system based on scan line NFP, which includes:

[0063] The acquisition module is used to acquire the sheet metal part sequence, scan line NFP information, and rectangular mother plate width. The sheet metal part sequence contains n codes, where n represents the total number of sheet metal parts to be laid out. The code indicates which sheet metal part is which type of sheet metal part. The scan line NFP information includes scan line NFPs generated with the i-th type of sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, i∈m, j∈m, where m is the total number of types of sheet metal parts to be laid out.

[0064] The initialization module is used to initialize the scan line NFP list and the scan line hierarchy container. The scan line NFP list is an n-row, m-column list. The p-th row and j-th column of the scan line NFP list stores the scan line NFP generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, denoted as NFP. p,j The scanline hierarchy container contains m first-level sub-containers, and each first-level sub-container of the scanline hierarchy container contains M second-level sub-containers, where M is a constant. The k-th second-level sub-container in the j-th first-level sub-container of the scanline hierarchy container is used to store the scanline NFP generated by the j-th type of sheet metal as the moving sheet metal part, which is located in the k-th level, k∈M-1.

[0065] The search module is used to search based on the scan line hierarchy container and the width of the rectangular mother plate to obtain the non-interference position of the reference point of all sheet metal parts to be arranged.

[0066] Let the current sheet metal part to be laid out be of type j. Based on the scan lines stored in all the secondary sub-containers in the j-th primary sub-container of the scan line hierarchy container, search for the non-interference position of the reference point of the current sheet metal part to be laid out. At the same time, mark the current sheet metal part to be laid out as a laid-out sheet metal part. Then, update the position of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part in the scan line NFP list. Add the scan lines of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part after the update position to the corresponding secondary sub-container. Then, search for the non-interference position of the reference point of the next sheet metal part to be laid out until the non-interference position of the reference point of all sheet metal parts to be laid out is obtained. The reference point of the sheet metal part to be laid out is the lower left corner of the envelope rectangle of the sheet metal part to be laid out.

[0067] The interference-free position is defined as follows: Let the current sheet metal part to be laid out be the j-th type of sheet metal part, and let the p-th sheet metal part be any already laid out sheet metal part. If the reference point of the current sheet metal part to be laid out is not located at NFP... p,j If the reference point of the current sheet metal part is on the scan line, it means that there is no interference between the scan line representation of the current sheet metal part and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part is located at NFP p,j If the reference point of the current sheet metal part is located within any scan line, it indicates that there is interference between the scan line representation of the current sheet metal part and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part is located at NFP p,j The endpoint of any scan line indicates that the scan line representation of the current sheet metal part to be arranged has one and only point contact with the scan line representation of the p-th sheet metal part, and there is no interference.

[0068] The nesting module is used to construct a nesting scheme based on the non-interference positions of reference points for all sheet metal parts to be nested.

[0069] As an optional implementation, the present invention searches for the non-interference position of the reference point of the current sheet metal part to be sampled, specifically as follows:

[0070] Let the sheet metal part to be arranged be the j-th type of sheet metal part, starting from the hierarchy y i Start by traversing all second-level sub-containers within the j-th first-level sub-container of the scanline hierarchy container until the first non-interference position of the reference point of the current sheet metal part to be laid out is found. This first non-interference position is then taken as the non-interference position of the reference point of the current sheet metal part to be laid out. iThis refers to the hierarchy where the first non-interference position of the reference point of the previous j-th type sheet metal part is located; the first non-interference position of the reference point of the current sheet metal part is defined as follows: the reference point of the current sheet metal part is not located inside the scan line of the second sub-container of the j-th first-level sub-container stored in the scan line hierarchy container, and the x-coordinate of the reference point of the current sheet metal part is less than or equal to the width of the rectangular mother plate minus the width of the envelope rectangle of the current sheet metal part.

[0071] As an optional implementation, the present invention then updates the position of all scan line NFPs generated with the current sheet metal part to be patterned as the fixed sheet metal part in the scan line NFP list, specifically as follows:

[0072] Move all scan lines in the scan line NFP list that are generated with the current sheet metal part to be laid out as the fixed sheet metal part by a displacement vector; the displacement vector is a vector that starts from the origin of the coordinate system and ends at the first non-interference position of the reference point of the current sheet metal part to be laid out.

[0073] As an optional implementation, the present invention adds all scan lines of the scan lines NFP generated with the current sheet metal part to be patterned as the fixed sheet metal part after the position is updated to the corresponding secondary sub-container, specifically:

[0074] Let the current sheet metal part to be laid out be the q-th sheet metal part. For the NFP generated after updating the position, with the current sheet metal part to be laid out as the fixed sheet metal part and the j-th type sheet metal part as the moving sheet metal part, q,j , will NFP q,j All scan lines greater than or equal to level 0 are added to the second-level sub-container of the corresponding level of the j-th first-level sub-container of the scan line level container. For each second-level sub-container after adding scan lines, it is determined whether the number of scan lines in each second-level sub-container is greater than or equal to 10. If the number of scan lines in the second-level sub-container is greater than or equal to 10, the scan line fusion process is performed; otherwise, the scan line fusion process is not performed. The scan line fusion process refers to continuously merging two overlapping scan lines stored in the same second-level sub-container into one scan line until there are no overlapping scan lines in the second-level sub-container.

[0075] As an optional implementation method, the formula for calculating M in this invention is as follows:

[0076]

[0077] Among them, h p,j Z represents the number of non-empty scan heights of scan lines NFP generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part. Z represents a positive integer.

[0078] Specifically, the method of the present invention will be further illustrated using the Shirts example.

[0079] The sheet metal information included in the example is shown in Table 1. The basic scanning accuracy R expressed by the sheet metal scan lines is... b The value is 0.16.

[0080] Table 1 Sheet Metal Parts Information

[0081]

[0082] Based on the Shirts example, the layout schemes obtained using existing technologies and the method of this invention are shown in Table 2. A comparison of the results is shown in Table 3. When the scanning accuracy is 0.08, the layout schemes obtained using existing technologies are as follows: Figure 4 As shown, the sorting scheme obtained using the method of this invention is as follows: Figure 5 As shown.

[0083] Table 2 Layout Plan

[0084]

[0085] Table 3 Comparison of Results

[0086]

[0087] As shown in Table 3, compared with the prior art, the method provided by the present invention has significantly improved the calculation efficiency while ensuring the sorting effect.

[0088] The above embodiments are merely descriptions of preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made by those skilled in the art to the technical solutions of the present invention without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.

Claims

1. A two-dimensional irregular sheet metal part layout method based on scan-line NFP, characterized in that, It includes: S1, obtain the sheet metal part sequence, scan line NFP information and rectangular motherboard width; The sheet metal part sequence contains n codes, where n represents the total number of sheet metal parts to be arranged; the code indicates which sheet metal part is which type of sheet metal part; the scan line NFP information includes scan line NFP generated with the i-th type of sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, i∈m, j∈m, where m is the total number of types of sheet metal parts to be arranged. S2, initialize the scanline NFP list and scanline hierarchy container; The scan line NFP list is an n-row, m-column list; the p-th row and j-th column of the scan line NFP list stores the scan line NFP generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, denoted as NFP. p,j The scan line hierarchy container contains m first-level sub-containers, and each first-level sub-container of the scan line hierarchy container contains M second-level sub-containers, where M is a constant; the k-th second-level sub-container in the j-th first-level sub-container of the scan line hierarchy container is used to store the scan line NFP generated by the j-th type of sheet metal part as the moving sheet metal part, which is located in the k-th level, where k∈M-1. S3, based on the scan line layer container and the width of the rectangular mother plate, search to obtain the non-interference position of the reference point of all the sheet metal parts to be arranged; Let the current sheet metal part to be laid out be of type j. Based on the scan lines stored in all the secondary sub-containers of the j-th primary sub-container of the scan line hierarchy container, search for the non-interference position of the reference point of the current sheet metal part to be laid out. At the same time, mark the current sheet metal part to be laid out as a laid-out sheet metal part. Then, update the position of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part in the scan line NFP list. Add the scan lines of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part after the update position to the corresponding secondary sub-container. Then, search for the non-interference position of the reference point of the next sheet metal part to be laid out until the non-interference position of the reference point of all sheet metal parts to be laid out is obtained. The reference point of the sheet metal part to be laid out is the lower left corner of the envelope rectangle of the sheet metal part to be laid out. The interference-free position is defined as follows: Let the current sheet metal part to be laid out be the j-th type of sheet metal part, and let the p-th sheet metal part be any already laid out sheet metal part. If the reference point of the current sheet metal part to be laid out is not located at NFP... p,j If the reference point of the current sheet metal part is on the scan line, it means that there is no interference between the scan line representation of the current sheet metal part and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part is located at NFP p,j If the scan line is inside any of the scan lines, it indicates that there is interference between the scan line representation of the current sheet metal part to be arranged and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part to be arranged is located at NFP p,j The endpoint of any scan line indicates that the scan line representation of the current sheet metal part to be sampled has one and only point contact with the scan line representation of the p-th sheet metal part, and there is no interference. S4, construct a layout scheme based on the non-interference position of the reference points of all sheet metal parts to be laid out.

2. The two-dimensional irregular sheet metal part layout method based on scan line NFP according to claim 1, characterized in that, The non-interference position of the reference point for the current sheet metal part to be arranged is specifically as follows: Let the sheet metal part to be arranged be the j-th type of sheet metal part, starting from the hierarchy y i Initially, traverse all second-level sub-containers within the j-th first-level sub-container of the scanline hierarchy container until the first non-interference position of the reference point of the current sheet metal part to be laid out is found. This first non-interference position is then taken as the non-interference position of the reference point of the current sheet metal part to be laid out. The hierarchy y i This refers to the hierarchy where the first non-interference position of the reference point of the previous j-th type sheet metal part is located; the first non-interference position of the reference point of the current sheet metal part is defined as follows: the reference point of the current sheet metal part is not located inside the scan line of the second sub-container of the j-th first-level sub-container stored in the scan line hierarchy container, and the x-coordinate of the reference point of the current sheet metal part is less than or equal to the width of the rectangular mother plate minus the width of the envelope rectangle of the current sheet metal part.

3. The two-dimensional irregular sheet metal part layout method based on scan line NFP according to claim 2, characterized in that, The subsequent update of the scan line NFP list, which includes all scan lines NFP generated with the current sheet metal part to be sampled as the fixed sheet metal part, specifically involves: Move the scan lines of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part in the scan line NFP list by a displacement vector; the displacement vector refers to the vector that starts from the origin of the coordinate system and ends at the first non-interference position of the reference point of the current sheet metal part to be laid out.

4. The two-dimensional irregular sheet metal part layout method based on scan line NFP according to claim 1, characterized in that, The step of adding all scan lines of the scan lines NFP generated with the current sheet metal part to be arranged as the fixed sheet metal part after the update position to the corresponding secondary sub-container is as follows: Let the current sheet metal part to be laid out be the q-th sheet metal part. For the NFP generated after updating the position, with the current sheet metal part to be laid out as the fixed sheet metal part and the j-th type sheet metal part as the moving sheet metal part, q,j , will NFP q,j All scan lines greater than or equal to level 0 are added to the second-level sub-container of the corresponding level of the j-th first-level sub-container of the scan line level container. For each second-level sub-container after adding scan lines, it is determined whether the number of scan lines in each second-level sub-container is greater than or equal to 10. If the number of scan lines in the second-level sub-container is greater than or equal to 10, a scan line fusion process is performed; otherwise, the scan line fusion process is not performed. The scan line fusion process refers to continuously merging two overlapping scan lines stored in the same second-level sub-container into one scan line until there are no overlapping scan lines in the second-level sub-container.

5. The two-dimensional irregular sheet metal part layout method based on scan line NFP according to claim 1, characterized in that, The formula for calculating M is as follows: Among them, h p,j Z represents the number of non-empty scan heights of scan lines NFP generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part. Z represents a positive integer.

6. A two-dimensional irregular sheet metal part layout system based on scan-line NFP, characterized in that, It includes: The acquisition module is used to acquire sheet metal part sequence, scan line NFP information, and rectangular mother plate width; The sheet metal part sequence contains n codes, where n represents the total number of sheet metal parts to be arranged; the code indicates which sheet metal part is which type of sheet metal part; the scan line NFP information includes scan line NFP generated with the i-th type of sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, i∈m, j∈m, where m is the total number of types of sheet metal parts to be arranged. The initialization module is used to initialize the scanline NFP list and the scanline hierarchy container; The scan line NFP list is an n-row, m-column list; the p-th row and j-th column of the scan line NFP list stores the scan line NFP generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part, denoted as NFP. p,j The scan line hierarchy container contains m first-level sub-containers, and each first-level sub-container of the scan line hierarchy container contains M second-level sub-containers, where M is a constant; the k-th second-level sub-container in the j-th first-level sub-container of the scan line hierarchy container is used to store the scan line NFP generated by the j-th type of sheet metal part as the moving sheet metal part, which is located in the k-th level, where k∈M-1. The search module is used to search based on the scan line hierarchy container and the width of the rectangular mother plate to obtain the non-interference position of the reference point of all the sheet metal parts to be arranged; Let the current sheet metal part to be laid out be of type j. Based on the scan lines stored in all the secondary sub-containers of the j-th primary sub-container of the scan line hierarchy container, search for the non-interference position of the reference point of the current sheet metal part to be laid out. At the same time, mark the current sheet metal part to be laid out as a laid-out sheet metal part. Then, update the position of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part in the scan line NFP list. Add the scan lines of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part after the update position to the corresponding secondary sub-container. Then, search for the non-interference position of the reference point of the next sheet metal part to be laid out until the non-interference position of the reference point of all sheet metal parts to be laid out is obtained. The reference point of the sheet metal part to be laid out is the lower left corner of the envelope rectangle of the sheet metal part to be laid out. The interference-free position is defined as follows: Let the current sheet metal part to be laid out be the j-th type of sheet metal part, and let the p-th sheet metal part be any already laid out sheet metal part. If the reference point of the current sheet metal part to be laid out is not located at NFP... p,j If the reference point of the current sheet metal part is on the scan line, it means that there is no interference between the scan line representation of the current sheet metal part and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part is located at NFP p,j If the scan line is inside any of the scan lines, it indicates that there is interference between the scan line representation of the current sheet metal part to be arranged and the scan line representation of the p-th sheet metal part; if the reference point of the current sheet metal part to be arranged is located at NFP p,j The endpoint of any scan line indicates that the scan line representation of the current sheet metal part to be sampled has one and only point contact with the scan line representation of the p-th sheet metal part, and there is no interference. The nesting module is used to construct a nesting scheme based on the non-interference positions of reference points for all sheet metal parts to be nested.

7. The two-dimensional irregular sheet metal part layout system based on scan line NFP according to claim 6, characterized in that, The non-interference position of the reference point for the current sheet metal part to be arranged is specifically as follows: Let the sheet metal part to be arranged be the j-th type of sheet metal part, starting from the hierarchy y i Initially, traverse all second-level sub-containers within the j-th first-level sub-container of the scanline hierarchy container until the first non-interference position of the reference point of the current sheet metal part to be laid out is found. This first non-interference position is then taken as the non-interference position of the reference point of the current sheet metal part to be laid out. The hierarchy y i This refers to the hierarchy where the first non-interference position of the reference point of the previous j-th type sheet metal part is located; the first non-interference position of the reference point of the current sheet metal part is defined as follows: the reference point of the current sheet metal part is not located inside the scan line of the second sub-container of the j-th first-level sub-container stored in the scan line hierarchy container, and the x-coordinate of the reference point of the current sheet metal part is less than or equal to the width of the rectangular mother plate minus the width of the envelope rectangle of the current sheet metal part.

8. The two-dimensional irregular sheet metal part layout system based on scan line NFP according to claim 7, characterized in that, The subsequent update of the scan line NFP list, which includes all scan lines NFP generated with the current sheet metal part to be sampled as the fixed sheet metal part, specifically involves: Move the scan lines of all scan lines NFP generated with the current sheet metal part to be laid out as the fixed sheet metal part in the scan line NFP list by a displacement vector; the displacement vector refers to the vector that starts from the origin of the coordinate system and ends at the first non-interference position of the reference point of the current sheet metal part to be laid out.

9. The two-dimensional irregular sheet metal part layout system based on scan line NFP according to claim 6, characterized in that, The step of adding all scan lines of the scan lines NFP generated with the current sheet metal part to be arranged as the fixed sheet metal part after the update position to the corresponding secondary sub-container is as follows: Let the current sheet metal part to be laid out be the q-th sheet metal part. For the NFP generated after updating the position, with the current sheet metal part to be laid out as the fixed sheet metal part and the j-th type sheet metal part as the moving sheet metal part, q,j , will NFP q,j All scan lines greater than or equal to level 0 are added to the second-level sub-container of the corresponding level of the j-th first-level sub-container of the scan line level container. For each second-level sub-container after adding scan lines, it is determined whether the number of scan lines in each second-level sub-container is greater than or equal to 10. If the number of scan lines in the second-level sub-container is greater than or equal to 10, a scan line fusion process is performed; otherwise, the scan line fusion process is not performed. The scan line fusion process refers to continuously merging two overlapping scan lines stored in the same second-level sub-container into one scan line until there are no overlapping scan lines in the second-level sub-container.

10. The two-dimensional irregular sheet metal part layout system based on scan line NFP according to claim 6, characterized in that, The formula for calculating M is as follows: Among them, h p,j Z represents the number of non-empty scan heights of scan lines NFP generated with the p-th sheet metal part as the fixed sheet metal part and the j-th type of sheet metal part as the moving sheet metal part. Z represents a positive integer.