Plane trepanning part lead adding processing method and system
Through the method of automated acquisition and interference judgment, leads are generated for sheet metal nesting parts, which solves the problems of material waste and low efficiency caused by unreasonable lead design in traditional nesting technology and realizes efficient lead generation and processing.
Patent Information
- Application Number
- CN202510834297.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-10-17
AI Technical Summary
Traditional nesting technology relies on manual experience to design leads, resulting in material waste and low efficiency, making it difficult to adapt to large-scale production needs. In addition, unreasonable lead design may cause material tearing or residue at the entry/exit points.
The part outline in the sheet material nesting drawing is obtained through an automated method, the target part outline to which leads need to be added is confirmed, the leads are constructed and interference judgment is performed to ensure that the leads do not interfere with the sheet material boundary and other parts.
The automatic generation of leads is realized, which avoids material tearing and residue, improves material utilization and processing efficiency, and adapts to large-scale production needs.
Smart Images

Figure CN120805322A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of nesting part lead technology, and particularly relates to a plane nesting part lead adding processing method and system. BACKGROUND
[0002] Nesting is a core technology in computer-aided manufacturing, aiming to efficiently arrange parts on a plate through intelligent algorithms to maximize material utilization and reduce processing time. In laser cutting and plasma cutting, the advantages and disadvantages of nesting algorithms directly determine the production cost and efficiency.
[0003] However, traditional nesting technology focuses on part layout, and the design of lead lines for processing paths often relies on manual experience, which on the one hand can easily cause material waste: unreasonable lead line design can cause material tearing or residue at the cut-in / cut-out points, requiring secondary processing; on the other hand, manual efficiency is low, and the generation of lead lines for complex contours requires frequent manual intervention, making it difficult to meet large-scale production needs.
[0004] Therefore, in view of the above problems, it is urgent to design a nesting part lead automatic adding processing method to realize automatic calculation and generation of contour lead lines. SUMMARY
[0005] The present application provides a plane nesting part lead adding processing method and system, aiming to solve the pain points of numerical control cutting equipment in large-scale nesting scenarios, to realize the automation and intelligentization of lead line generation, and to provide technical support for intelligent manufacturing.
[0006] In a first aspect, the present application provides a plane nesting part lead adding processing method, comprising:
[0007] Obtaining all part contours under each nesting part in the plate nesting diagram, and confirming the target part contour in each part contour that needs to add a lead line;
[0008] Obtaining all graphics elements in the target part contour, and constructing a lead line for the current graphics element according to the graphics element information of the previous and subsequent graphics elements corresponding to the current graphics element;
[0009] Performing interference judgment on the lead line of the current graphics element, and if the lead line of the current graphics element does not interfere, adding the lead line of the current graphics element.
[0010] Further, the obtaining all part contours under each nesting part in the plate nesting diagram, and confirming the target part contour in each part contour that needs to add a lead line, comprises:
[0011] Traversing all nesting parts in the plate nesting diagram;
[0012] Traversing all part contours under each nesting part;
[0013] determining whether the current part contour meets the condition of adding the lead, if yes, marking the current part contour as a target part contour which needs to add the lead, if not, marking the current part contour as a non-target part contour which does not need to add the lead.
[0014] Further, the determining whether the current part contour meets the condition of adding the lead comprises:
[0015] if the contour type of the current part contour does not belong to one of the non-machining contour, the marking contour and the non-closed contour, and the contour starting point of the current part contour does not share a boundary with other contours, the current part contour meets the condition of adding the lead;
[0016] if the contour type of the current part contour belongs to one of the non-machining contour, the marking contour and the non-closed contour, or the contour starting point of the current part contour shares a boundary with other contours, the current part contour does not meet the condition of adding the lead.
[0017] Further, the constructing the lead of the current graphic element according to the graphic element information of the front and rear graphic elements corresponding to the current graphic element comprises:
[0018] obtaining the graphic element information of the front and rear graphic elements corresponding to the current graphic element;
[0019] obtaining the transition mode of the current graphic element constructing the lead according to the tool compensation mode and the geometric type of the current graphic element;
[0020] calculating the coordinate values and the rotation angle type of the lead-in line and the lead-out line of the current graphic element according to the graphic element coordinates of the current graphic element, the tool compensation mode and the transition mode.
[0021] Further, the graphic element information of the front and rear graphic elements corresponding to the current graphic element comprises: the coordinate point set of the front and rear graphic elements, the direction vector of the front and rear graphic elements, the geometric type of the front and rear graphic elements and the actual included angle between the current graphic element and the front and rear graphic elements.
[0022] Further, the interference judgment on the lead of the current graphic element comprises:
[0023] checking whether the lead interferes with the plate boundary;
[0024] checking whether the lead intersects with the part maximum bounding box;
[0025] checking whether the lead intersects with the contour graphic element.
[0026] Further, if the lead wire interferes with the board boundary, the flow of the determination is ended; if the lead wire does not interfere with the board boundary, the flow continues to traverse all the nesting parts on the board and check whether the lead wire intersects with the part maximum bounding box;
[0027] If the lead wire intersects with the part maximum bounding box, the profile primitives of the part are traversed and it is checked whether the lead wire intersects with the profile primitives; if the lead wire does not intersect with the part maximum bounding box, the part is skipped;
[0028] If the lead wire intersects with the profile primitives, it is determined that there is interference; if the lead wire does not intersect with the profile primitives, it is determined that there is no interference.
[0029] In a second aspect, the present application provides a planar nesting part lead wire adding processing system, comprising:
[0030] A profile confirmation unit is configured to acquire all part profiles under each nesting part in a board nesting drawing and confirm a target part profile in each part profile that needs to add a lead wire;
[0031] A lead wire construction unit is configured to acquire all primitives in the target part profile, construct a lead wire of a current primitive according to primitive information of front and back primitives corresponding to the current primitive;
[0032] A lead wire adding unit is configured to perform interference judgment on the lead wire of the current primitive, and if the lead wire of the current primitive does not interfere, the lead wire of the current primitive is added.
[0033] In a third aspect, an electronic device is provided, and the electronic device comprises:
[0034] at least one processor; and a memory connected with the at least one processor in communication; wherein
[0035] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the steps of the planar nesting part lead wire adding processing method of any embodiment of the present application.
[0036] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to perform the steps of the planar nesting part lead wire adding processing method of any embodiment of the present application when executed.
[0037] Compared with the prior art, the present application has the following beneficial effects:
[0038] The technical solution in the embodiment of the present application firstly acquires the part contour of each part from the plate nesting drawing, and confirms the target part contour which needs to add a lead; then, according to the information of all the graphics in the target part contour, the lead is constructed for different graphics in the contour; finally, the constructed lead is subjected to interference judgment, and if no interference occurs, the constructed lead is added. Through the technical solution in the present application, the material tearing or remaining at the cut-in / cut-out point caused by unreasonable lead design can be avoided, and the lead can be automatically generated for the complex contour. BRIEF DESCRIPTION OF DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only preferred embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0040] Figure 1 A flowchart of a planar nesting part lead adding processing method provided for the first embodiment of the present application;
[0041] Figure 2 A parameter diagram of the lead output on the contour edge provided for the first embodiment of the present application;
[0042] Figure 3 A flowchart of interference judgment of the lead provided for the first embodiment of the present application;
[0043] Figure 4 A flowchart of the lead adding processing method provided for the first embodiment of the present application in the application process;
[0044] Figure 5 A structural diagram of a planar nesting part lead adding processing system provided for the second embodiment of the present application;
[0045] Figure 6 A structural diagram of an electronic device provided for the third embodiment of the present application. DETAILED DESCRIPTION
[0046] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0047] Embodiment one: Figure 1A flowchart of a lead adding processing method for a planar nesting part is provided for Embodiment One of the present application. The present embodiment can be applied to the case of adding leads for part contours in plate nesting processing. The method can be executed by a planar nesting part lead adding processing system, which can be implemented in software and / or hardware. The system can be configured in an electronic device.
[0048] As shown in Figure 1 , the method specifically includes:
[0049] S101, obtaining all part contours under each nesting part in the plate nesting drawing, and confirming target part contours that need to add leads in each part contour.
[0050] Optionally, before confirming the target part contour, it further includes: traversing the nesting parts in the plate, and judging whether each nesting part needs to add leads according to the part attribute.
[0051] Further, judging whether each nesting part needs to add leads according to the part attribute includes: first judging the part directionality, when the nesting part is a virtual part attribute, the nesting part does not meet the lead adding condition, and directly skips the nesting part; then judging the part closure, when the nesting part is an open part, i.e. contains an open contour, the nesting part does not meet the lead adding condition, and directly skips the nesting part without subsequent lead adding operation.
[0052] Wherein, the part attribute refers to the attribute possessed by each part: including closure, process type, etc. The closure refers to the curve on the two-dimensional plane with no gap, which is used to judge whether the part contour is closed, including closed part, open part, etc. The process type refers to the part directionality, which is used to judge the part type, including no directionality, directionality, virtual part, etc.
[0053] In the plate nesting drawing, for the following several cases, leads do not need to be added:
[0054] The first case: the contour type is a non-processing contour, which refers to a contour marked as not needing to be cut or engraved.
[0055] The second case: the contour type is a marking contour, which refers to a contour that is prohibited from adding leads due to process limitations (such as text or two-dimensional code, etc.).
[0056] The third case: the contour type is an open contour, which refers to an open contour that cannot generate a complete lead path.
[0057] The fourth case: the contour starting point has a common edge, if the contour starting point shares a boundary with other contours, it may cause lead conflict.
[0058] Further, step S101 specifically includes:
[0059] S1011, traversing all nesting parts in the plate nesting drawing.
[0060] In the plate nesting drawing, the nesting parts can be nested by adopting a plurality of different nesting types, and common nesting types include hole nesting, excess material nesting, local nesting, and multi-cut torch nesting.
[0061] Hole nesting refers to automatically arranging small parts in the hole of a large part to save material;
[0062] Excess material nesting refers to nesting on the remaining plate or plate of any shape;
[0063] Local nesting refers to limiting nesting to a certain part of the plate;
[0064] Multi-cut torch nesting refers to nesting when multiple cutting heads cut simultaneously in parallel.
[0065] It should be noted that the nesting drawing is a drawing in which a plurality of parts are reasonably arranged on a material according to the size of the material (such as the length and width of the plate) in industrial production (such as mechanical manufacturing, shipbuilding, etc.), the purpose of which is to most effectively utilize the material, reduce waste, and reduce costs.
[0066] In the embodiment of the present application, the nesting parts are extracted one by one from the plate nesting drawing to ensure that each nesting part is detected. Then, each contour of the current part is independently analyzed to support complex part analysis (including multiple contours or nested contours). In the nesting drawing, a plurality of parts are efficiently arranged to maximize material utilization and reduce processing time.
[0067] S1012, traversing all part contours under each nesting part.
[0068] After obtaining all the nesting parts in the plate nesting drawing, all the part contours corresponding to each nesting part need to be obtained. When the system automatically nests, part blocks composed of multiple parts are allowed, so there can be multiple outer closed contours for one nesting part.
[0069] S1013, determining whether the current part contour meets the condition for adding a lead, if yes, marking the current part contour as a target part contour that needs to add a lead; if not, marking the current part contour as a non-target part contour that does not need to add a lead.
[0070] Further, determining whether the current part contour meets the condition for adding a lead includes:
[0071] If the profile type of the current part profile does not belong to one of the non-machining profile, the marking profile and the non-closed profile, and the profile starting point of the current part profile does not share the boundary with other profiles, the current part profile meets the condition of adding the lead wire.
[0072] If the profile type of the current part profile belongs to one of the non-machining profile, the marking profile and the non-closed profile, or the profile starting point of the current part profile shares the boundary with other profiles, the current part profile does not meet the condition of adding the lead wire.
[0073] S102, all graphics elements in the target part profile are obtained, and the lead wire of the current graphics element is constructed according to the graphics element information of the front and rear graphics elements corresponding to the current graphics element.
[0074] The graphics element is the minimum geometric unit for describing the shape, size and position relationship of the part in the two-dimensional plane. The graphics element includes two attribute levels: 1, geometric attribute, including shape type (such as straight line, circular arc, whole circle, etc.), coordinate position, size parameter (such as length, radius, angle, etc.) and the like; 2, constraint attribute, relationship with other graphics elements (parallel, perpendicular, tangent, etc.).
[0075] Figure 2 The parameter diagram of the profile edge lead wire output provided by the first embodiment of the application is shown in Figure 2 After setting the part lead wire parameters, the system first obtains the bevel attribute object of the current graphics element, and extracts key parameters therefrom, including bevel type, tool compensation type, profile type and corner angle limit threshold and the like. Among them, the bevel type includes straight cutting, Y bevel, positive bevel, reverse Y bevel and reverse bevel, etc., the tool compensation type includes left tool compensation (workpiece on the right side of the laser) and right tool compensation, etc., and the profile type includes outer profile and inner profile, etc. Then, the system determines the adding position and extension direction of the lead wire according to these parameters combined with the geometric characteristics of the adjacent front and rear graphics elements through precise spatial geometric calculation, and finally constructs the lead-in line and lead-out line structure of the current graphics element.
[0076] Further, step S102 specifically includes:
[0077] S1021, obtaining the graphics element information of the front and rear graphics elements corresponding to the current graphics element.
[0078] Further, the graphics element information of the front and rear graphics elements corresponding to the current graphics element includes the graphics element coordinates of the front and rear graphics elements, the direction vectors of the front and rear graphics elements, the geometric types of the front and rear graphics elements and the actual included angle of the current graphics element with the front and rear graphics elements.
[0079] Based on the tangent vector and the normal vector of the adjacent graphics elements, the actual included angle of the current graphics element with the front and rear graphics elements can be calculated.
[0080] For example, assume that there is a current straight line segment L2, whose predecessor is L1 and successor is L3. The system obtains the tangent vectors (T1 and T3) and normal vectors (N1 and N3) of L1 and L3 at the connection point, respectively; for a circular arc, only the tangent vector is obtained.
[0081] For example, to calculate the actual included angle between the current segment and the predecessor segment, two steps are involved:
[0082] First, the included angle θ between the tangent vectors is calculated, where the tangent vector of the predecessor segment L1 at the connection point is T1=(T1x, T1y), and the tangent vector of the current segment L2 is T2=(T2x, T2y). The included angle θ is defined as:
[0083]
[0084] The included angle is calculated by the cross product and dot product of vectors, and the atan2 function is used to ensure the correct quadrant of the angle.
[0085] Then, according to the tool compensation type, the included angle θ is converted to the corner angle φ in actual machining:
[0086] When the left tool is compensated:
[0087]
[0088] When the right tool is compensated:
[0089]
[0090] When the corner angle φ is greater than 180 degrees, the corner type is concave profile; when the corner angle φ is less than 180 degrees, the corner type is convex profile; when the corner angle φ is close to 180 degrees, it is considered as a straight line extension (straight line transition).
[0091] In addition, the system also needs to obtain the bevel size of the predecessor and successor segments, including the bevel angle, bevel width, and bevel depth.
[0092] S1022, according to the tool compensation mode and the geometric type of the current segment, the transition mode of the current segment is obtained.
[0093] The tool compensation mode includes left compensation, right compensation, and no compensation, etc., and the transition mode of the construction lead includes direct transition, external lead mode, and blind slope transition, etc.
[0094] The system selects the appropriate transition mode according to the tool compensation mode, the geometric type of the segment, and the calculated actual corner angle φ. The specific judgment is as follows:
[0095] I. Direct transition: when the bevel type of the predecessor or successor segment is straight cut and is the profile endpoint, direct transition is adopted, i.e., no additional lead is needed.
[0096] II. When the direct transition condition is not met, the transition mode is selected according to the actual included angle φ:
[0097] Case I: If the corner angle φ is greater than 180 degrees (the corner type is concave profile): Blind slope transition is adopted, and the extension direction of the lead-in line is the angle bisector direction. The unit vector n of the angle bisector direction is determined by the combination of the front and rear tangent vectors and the normal direction, and the calculation formula is as follows:
[0098]
[0099] Then, the unit vector n is normalized, and the start point of the lead-in line is the start point of the current straight line plus the extension amount (para1+para2) multiplied by the normalized unit vector n.
[0100] Case II: If the corner angle φ is close to 180 degrees (such as greater than 179 degrees): Blind slope transition is adopted, and the lead-in line extends along the normal direction of the current straight line, and the extension amount is para1+para2.
[0101] Case III: If the corner angle φ is less than 179 degrees: External lead mode is adopted, and the lead-in line extends along the reverse direction (lead-in line) or positive direction (lead-out line) of the tangent of the current straight line, and the extension amount is para1+para2.
[0102] S1023, according to the coordinates of the current graphics primitive, the tool compensation mode and the transition mode, the coordinates of the lead-in line and the lead-out line belonging to the current graphics primitive and the corner type are calculated.
[0103] It should be noted that the lead-in line and the lead-out line are straight lines. The end point of the lead-in line is fixed at the start point P0 of the current straight line, and the start point of the lead-out line is fixed at the end point P1 of the current straight line.
[0104] The start point Pin of the lead-in line and the end point Pout of the lead-out line are calculated according to the transition mode determined in S1022 and the tangent vector T and the normal vector N. The extension parameters (para1+para2) of the lead-in line and the lead-out line are obtained by reading the setting parameters of the current graphics primitive.
[0105] Lead-in line calculation:
[0106] Concave profile:
[0107] Straight line extension:
[0108] Convex profile:
[0109] Lead-out line calculation:
[0110] Concave profile:
[0111] Straight line extension:
[0112] Cam profile:
[0113] Finally, the coordinate values of the lead-in line and the lead-out line are calculated according to the above calculation, and the attributes (lead-in line type and lead-out line type) of the lead line and the profile index and element index to which the lead line belongs are set.
[0114] S103, interference judgment is performed on the lead line of the current graphic element, and if the lead line of the current graphic element does not interfere, the lead line of the current graphic element is added.
[0115] Figure 3 The flowchart for interference judgment of the lead line provided by the first embodiment of the present application is shown in FIG. 1, in which the lead line is added for the part profile in the plate nesting processing, and the core is that the lead line is dynamically generated according to the process requirement, and it is ensured that it does not interfere with the surrounding elements. The specific steps are as follows: Figure 3
[0116] First, it is checked whether the lead line interferes with the plate boundary: if it is determined that interference occurs, the process is ended; if no interference occurs, all nested parts on the plate are traversed.
[0117] Then, in the case where no interference occurs with the plate boundary, all nested parts on the plate are traversed and it is checked whether the lead line intersects with the maximum bounding box of the part: if the lead line intersects with the maximum bounding box of the part, the profile graphic element of the part is traversed and it is checked whether the lead line intersects with the profile graphic element; if the lead line does not intersect with the maximum bounding box of the part, the part is skipped.
[0118] Finally, in the case where the lead line intersects with the maximum bounding box of the part, it is checked whether the lead line intersects with the profile graphic element: if it intersects, it is determined that there is interference; if it does not intersect, it is determined that there is no interference.
[0119] By performing interference judgment on the lead line calculated for the current graphic element, it can be prevented that the position of the currently calculated lead line interferes with other parts of the plate. The core is that all graphic elements under the profile are traversed, for the profile to which the lead line needs to be added, its geometric graphic elements (such as straight lines and circular arcs) are analyzed one by one, the lead line construction algorithm is dynamically adjusted according to the graphic element position, the tool compensation direction, the processing speed and other parameters, in order to ensure that the generated lead line does not interfere with the plate boundary and other parts, a preset lead line interference algorithm is called to verify the safety of the lead line layer by layer, if interference is detected, an error is returned and path correction is triggered; if there is no interference, the final lead line data is output.
[0120] Further, step S103 specifically includes:
[0121] S1031, it is checked whether the lead line interferes with the plate boundary.
[0122] Firstly, the initial boundary interference judgment is performed, the spatial relationship of the lead and the plate boundary is judged preferentially, and it is ensured that the lead does not exceed the processing range. If the lead intersects with the plate boundary, the interference is directly determined and the process is terminated, so as to avoid redundant calculation.
[0123] Further, if the lead and the plate boundary interfere, the process of the judgment is ended; if the lead and the plate boundary do not interfere, all the sleeving parts on the plate are continuously traversed and it is checked whether the lead intersects with the part maximum bounding box.
[0124] S1032, it is checked whether the lead intersects with the part maximum bounding box.
[0125] Then, the part bounding box detection is performed, all the sleeving parts are traversed, the lead primitive coordinate parameters are compared with the bounding box (X axis, Y axis coordinate extreme value) of the part, if the lead coordinate value and the part bounding box have no intersection, the part is ignored, only the candidate part that may intersect is reserved, and the next step detection is performed.
[0126] Further, if the lead intersects with the part maximum bounding box, the contour primitives of the part are traversed, and it is checked whether the lead intersects with the contour primitive; if the lead does not intersect with the part maximum bounding box, the part is skipped.
[0127] S1033, it is checked whether the lead intersects with the contour primitive.
[0128] Finally, the contour primitive accurate detection is performed, all the contour primitives of the candidate part are traversed, the lead primitive and the contour primitive (such as a straight line, an arc, and a whole circle) are geometrically intersected and detected one by one. If any primitive intersects with the lead, the interference is immediately determined and the process is terminated; if all the primitives have no intersection, the next part is continuously detected.
[0129] If all the candidate parts are not detected to interfere, it is determined that the lead primitive has no interference. The process is terminated, and the final result is returned.
[0130] Figure 4 The lead adding processing method provided by the embodiment one of the application has the process schematic diagram in the application process, as shown in the drawing. Figure 4 As shown in the drawing, firstly, all the parts in the sleeving graphics on the plate are traversed, then all the contours under the current part are traversed, if the current contour belongs to any one of the non-processing contour, the marking contour and the non-closed contour, or the starting point of the contour has a common edge, the current contour does not need to be added with the lead; if the current contour does not belong to any one of the above situations, all the primitives under the current contour are further traversed, the positions of the primitives in the contour are obtained and the front and rear primitives of the current primitive are obtained, the lead is dynamically constructed according to the lead parameters for the contour first primitive, the middle primitive and the tail primitive, and finally the interference of the lead is verified.
[0131] The technical solution in the embodiment of the present invention obtains all part outlines in the nesting diagram, identifies the target part outline to which leads need to be added, adds leads to it, and performs interference judgment. The technical solution in this application realizes the automatic addition of leads to part outlines during sheet metal nesting processing, and ensures that the leads do not interfere with surrounding elements.
[0132] Example 2: Figure 5 This is a schematic diagram of a planar nesting part lead adding processing system provided in the second embodiment of the present invention, as shown in FIG. Figure 5 As shown, the system specifically includes:
[0133] The contour confirmation unit 100 is used to obtain all part contours under each nested part in the plate nesting diagram, and confirm the target part contour that needs to add a lead line in each part contour;
[0134] The lead construction unit 200 is used to obtain all primitives in the target part outline and construct the lead of the current primitive based on the primitive information of the previous and next primitives corresponding to the current primitive;
[0135] The lead adding unit 300 is used to perform interference judgment on the leads of the current primitive. If there is no interference between the leads of the current primitive, the leads of the current primitive are added.
[0136] The technical solution in the embodiment of the present invention uses a contour confirmation unit to confirm the target part contours to which leads need to be added in each part contour, uses a lead construction unit to construct the leads of the current primitive, and uses a lead addition unit to add the leads of the current primitive when there is no interference with the leads of the current primitive. The technical solution in this application realizes the automatic addition of leads to the part contours during sheet metal nesting processing, and ensures that the leads do not interfere with surrounding elements.
[0137] Example 3: Figure 6 1 is a schematic diagram of the structure of an electronic device for implementing the planar nesting part lead addition processing method according to an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0138] like Figure 6As shown, the electronic device 10 includes at least one processor 11, and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., communicatively connected to the at least one processor 11, where the memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or loaded into the random access memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0139] Various components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc., an output unit 17, such as various types of displays, a speaker, etc., a storage unit 18, such as a magnetic disk, an optical disk, etc., and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0140] The processor 11 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs various methods and processes described above, such as the flat sleeve part lead addition processing method.
[0141] In some embodiments, the flat sleeve part lead addition processing method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the flat sleeve part lead addition processing method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the flat sleeve part lead addition processing method by any other appropriate means, such as by means of firmware.
[0142] The various embodiments of the systems and techniques described above can be implemented in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a load programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0143] Computer programs used to implement the processes of the application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer program
[0144] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store computer programs for use by or in connection with an instruction execution system, apparatus, or device. Computer-readable storage media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0145] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0146] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0147] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0148] It should be understood that various forms of flow shown above can be re-ordered, added to, or deleted from without departing from the scope of the present application. For example, the steps recited in the present application can be executed in parallel, executed in sequence, or executed in different orders, as long as the desired results of the technical solutions of the present application can be achieved, and the present application is not limited herein.
[0149] The above only is the preferred embodiment of the present application, and does not limit the present application, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for adding leads to a planar nesting part, characterized in that: include: Obtain all part outlines under each nested part in the sheet material nesting drawing, and confirm the target part outline to which a lead line needs to be added in each part outline; Acquire all primitives in the target part outline, and construct a lead of the current primitive based on the primitive information of the preceding and following primitives corresponding to the current primitive; An interference judgment is performed on the lead lines of the current primitive. If no interference occurs to the lead lines of the current primitive, the lead lines of the current primitive are added.
2. The method according to claim 1, characterized in that The step of obtaining all part outlines under each nested part in the sheet material nesting drawing and confirming the target part outline to which a lead line needs to be added in each part outline includes: Traverse all nested parts in the plate nesting diagram; Traverse all part contours under each nested part; Determine whether the current part outline meets the conditions for adding leads. If so, mark the current part outline as a target part outline to which leads need to be added; if not, mark the current part outline as a non-target part outline to which leads do not need to be added.
3. The method according to claim 2, characterized in that The step of judging whether the current part contour satisfies the conditions for adding a lead line includes: If the contour type of the current part contour is not one of the non-processing contour, the marking contour, and the unclosed contour, and the contour starting point of the current part contour does not share a boundary with other contours, then the current part contour meets the conditions for adding a leader; If the contour type of the current part contour is one of an unprocessed contour, a marked contour, and an unclosed contour, or the contour starting point of the current part contour shares a boundary with other contours, then the current part contour does not meet the conditions for adding a lead.
4. The method according to claim 1, wherein The step of constructing a leader line of the current primitive according to the primitive information of the preceding and following primitives corresponding to the current primitive includes: Get the element information of the previous and next elements corresponding to the current element; According to the tool compensation mode and the geometric type of the current entity, the transition mode of the current entity to construct the lead is obtained; According to the entity coordinates, tool compensation mode and transition mode of the current entity, the coordinate values and corner types of the lead-in and lead-out lines of the current entity are calculated.
5. The method according to claim 1, wherein The primitive information of the preceding and following primitives corresponding to the current primitive includes: coordinate point sets of the preceding and following primitives, direction vectors of the preceding and following primitives, geometric types of the preceding and following primitives, and actual angles between the current primitive and the preceding and following primitives.
6. The method according to claim 1, characterized in that The interference judgment of the lead line of the current primitive includes: Check whether the lead interferes with the board boundary; Check whether the lead intersects with the maximum bounding box of the part; Check whether the leader line intersects the outline entity.
7. The method according to claim 6, characterized in that include: If the lead interferes with the board boundary, the determination process ends; If the lead does not interfere with the board boundary, continue to traverse all nested parts on the board and check whether the lead intersects with the largest bounding box of the part; If the lead intersects the maximum bounding box of the part, the outline primitives of the part are traversed and a check is made as to whether the lead intersects the outline primitives; if the lead does not intersect the maximum bounding box of the part, the part is skipped; If the lead line intersects with the outline primitive, it is determined that interference exists; if the lead line does not intersect with the outline primitive, it is determined that no interference exists.
8. A system for adding leads to planar nesting parts, characterized in that: The system is configured to implement the method according to any one of claims 1 to 7, and the system includes: The contour confirmation unit is used to obtain all part contours under each nested part in the plate nesting diagram and confirm the target part contour that needs to add a lead line in each part contour; A lead construction unit is used to obtain all primitives in the target part outline and construct a lead of the current primitive based on information of the current primitive and information of previous and next primitives; The lead adding unit is used to perform interference judgment on the leads of the current primitive, and if the leads of the current primitive do not interfere, the leads of the current primitive are added.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the steps of the planar nesting part lead adding processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the steps of the planar nesting part lead adding processing method according to any one of claims 1 to 7 when executed.