Method for laser cutting and microjoining of tubes
By determining the micro-connection target points and edge types in laser cutting and regenerating the spatial trajectory, the problem of part warping is solved, cutting quality and efficiency are improved, the application range is expanded, and production costs are reduced.
Patent Information
- Application Number
- CN202410807356.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2026-11-06
- Estimated Expiration
- 2044-06-21
AI Technical Summary
During laser cutting, the cut parts may warp, causing collisions and damage to the cutting head, affecting product quality and efficiency. Existing micro-connection technology is limited by specific materials and shapes, and cannot be widely applied to mass production.
By determining the target points and edges of the micro-connection, and based on the edge type and preset micro-connection length, the spatial trajectory of laser cutting is regenerated. A flexible micro-connection strategy is adopted to handle different edge types, ensuring that the parts are firmly connected to the sheet metal.
It avoids parts warping, improves cutting quality and efficiency, expands the application range of micro-connection technology, is applicable to sheets of various shapes and materials, and reduces production costs.
Smart Images

Figure CN118595594B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of laser processing technology, and more specifically to a method for adding micro-connections in laser-cut tubes. Background Technology
[0002] In laser cutting, serrated support bars are typically used to support the metal sheet to ensure stability. The nozzle trajectory of the laser cutting machine often forms a continuous closed loop. After cutting, the product separates from the metal sheet. However, the cut parts may encounter some problems: if the cut parts are not large enough, they cannot be stably supported by the support bars. In this case, the parts may lose balance and tilt. When the cutting head rotates at high speed, collisions with these tilted parts may cause minor machine stops, affecting the cutting quality and reducing the product yield; or it may damage the cutting head, requiring frequent nozzle replacements and thus reducing work efficiency.
[0003] "Micro-connections" are used to insert a non-cutting section within the trajectory, preventing the part from tilting after cutting and ensuring the cut portion remains attached to the sheet metal. Therefore, micro-connections need to be added to the spatial trajectory according to the process to guarantee processing quality and efficiency. For example, after laser cutting a disc, without adding micro-connections, the central disc will tilt and tilt during cutting, affecting processing. Adding micro-connections, and setting a non-cutting section, ensures the cut portion remains attached to the sheet metal during the cutting process. Summary of the Invention
[0004] In view of the above problems, this disclosure provides a method for adding micro-connections by laser tube cutting based on spatial trajectory.
[0005] This disclosure provides a method for adding micro-connections in laser tube cutting, comprising: determining the micro-connection target point and the target edge where the micro-connection target point is located through the spatial trajectory to be cut; the spatial trajectory to be cut includes a set of edge information of all contours; the edge information includes the discrete point coordinates of the edge; determining the micro-connection position according to the type of the target edge and the preset micro-connection length, and regenerating the target spatial trajectory to be cut; the type of the target edge includes at least one of arc, straight line, and small line segment.
[0006] According to embodiments of this disclosure, determining the micro-connection position based on the type of the target edge and a preset micro-connection length, and regenerating the target spatial trajectory to be cut, includes: responding to the target edge being an arc, traversing the discrete points of the arc according to the preset micro-connection length, and redetermining the micro-connection target point; regenerating the arc to be cut based on the arc start point, arc end point, arc center, and micro-connection target point; responding to the target edge being a straight line, redetermining the micro-connection target point based on the preset micro-connection length using a normalized direction vector; regenerating the straight line to be cut based on the straight line start point, straight line end point, and micro-connection target point; responding to the target edge being a small line segment, traversing the discrete points of the small line segment according to the preset micro-connection length, and redetermining the micro-connection target point; and regenerating the small line segment to be cut based on the discrete points of the small line segment and the micro-connection target point.
[0007] According to embodiments of this disclosure, in response to the target edge being an arc, the discrete points of the arc are traversed according to a preset micro-connection length to redetermine the micro-connection target point; the arc to be cut is generated based on the arc start point, arc end point, arc center, and micro-connection target point, including: determining whether the distance from the arc start point and arc end point to the micro-connection target point is less than the preset micro-connection length; if the distance from the arc start point to the micro-connection target point is less than the preset micro-connection length, the discrete points of the arc are traversed from the arc start point to the arc end point to find a point whose distance from the arc start point is greater than the preset micro-connection length, and this point is set as a new micro-connection target point; a new spatial arc is constructed based on the micro-connection target point, arc end point, and arc center, and saved as the arc to be cut; if the distance from the arc end point to the micro-connection target point is less than the preset micro-connection length, the arc to be cut is generated based on the arc end point. Traverse the discrete points of the arc from the starting point to the starting point, finding a point whose distance to the endpoint is greater than the preset micro-connection length, and set it as a new micro-connection target point. Construct a new spatial arc based on the micro-connection target point, the starting point of the arc, and the center of the arc, and save it as the arc to be cut. If the distances from both the starting and ending points of the arc to the micro-connection target point are greater than the preset micro-connection length, traverse the discrete points of the arc from the micro-connection target point to the starting and ending points of the arc, respectively, and find two points whose distance to the micro-connection target point is half the preset micro-connection length. Construct two new spatial arcs based on the two points, the starting point, the ending point, and the center of the arc, and save them as the arcs to be cut. The formula for calculating the distance between any two points between the starting point, the ending point, the discrete point, and the micro-connection target point is the same as the formula for the distance between points in space.
[0008] According to embodiments of this disclosure, in response to the target edge being a straight line, the micro-connection target point is re-determined using a normalized direction vector based on a preset micro-connection length; the line to be cut is regenerated based on the line start point, line end point, and micro-connection target point, including: determining whether the distance from the line start point and line end point to the micro-connection target point is less than the preset micro-connection length; if the distance from the line start point to the micro-connection target point is less than the preset micro-connection length, a point whose distance from the start point is equal to the micro-connection length is calculated using a normalized direction vector and set as a new micro-connection target point; a new spatial line is generated based on the micro-connection target point and the line end point and saved as the line to be cut; if the distance is less than the preset micro-connection length, ... preset micro-connection target point and the line end point; if the distance is less than the preset micro-connection length, a new spatial line is generated based on the preset micro-connection target point and the line end point. If the distance from the endpoint of the line to the target point of the micro-connection is less than the preset micro-connection length, then a point whose distance from the endpoint is equal to the micro-connection length is calculated using the normalized direction vector and set as the new target point of the micro-connection. A new spatial line is generated based on the target point of the micro-connection and the starting point of the line and saved as the line to be cut. If the distances from both the starting point and the endpoint of the line to the target point of the micro-connection are greater than the preset micro-connection length, then two points whose distances are half the micro-connection length from the target point are calculated using the normalized direction vector in the directions of the starting point and the endpoint of the line, respectively. Two new spatial lines are generated based on the two points, the starting point and the endpoint of the line and saved as the lines to be cut.
[0009] According to embodiments of this disclosure, the micro-connection target point is re-determined by normalizing the direction vector, including: determining the unit direction vector based on the spatial coordinates of the starting point and ending point of the line; and determining the micro-connection target point based on the preset micro-connection length and the unit direction vector.
[0010] According to embodiments of this disclosure, in response to the target edge being a small line segment, the discrete points of the small line segment are traversed according to a preset micro-connection length to redetermine the micro-connection target point; the small line segment to be cut is regenerated based on the discrete points of the small line segment and the micro-connection target point, including: determining whether the distance from the starting point and ending point of the small line segment to the micro-connection target point is less than the preset micro-connection length; if the distance from the starting point of the small line segment to the micro-connection target point is less than the preset micro-connection length, the discrete points of the small line segment are traversed from the starting point to the ending point to find a point whose distance from the starting point of the small line segment is greater than the preset micro-connection length, and this point is set as a new micro-connection target point; a new spatial small line segment is constructed based on the micro-connection target point and the discrete points of the small line segment, and saved as the small line segment to be cut; if the distance from the ending point of the small line segment to the micro-connection target point is less than the preset micro-connection length, the small line segment is regenerated based on the discrete points of the small line segment and the micro-connection target point. The endpoint is used to traverse the discrete points of the small line segment from the starting point to the endpoint, finding points whose distance to the endpoint is greater than the preset micro-connection length, and setting them as new micro-connection target points. Based on the micro-connection target points and the discrete points of the small line segment, new spatial small line segments are constructed and saved as small line segments to be cut. If the distances from the starting point and the ending point of the small line segment to the micro-connection target point are both greater than the preset micro-connection length, then the discrete points of the small line segment are traversed from the micro-connection target point to the starting point and the ending point of the small line segment, respectively, to find two points whose distance to the micro-connection target point is half the preset micro-connection length. Based on the two points and the discrete points of the small line segment, two new spatial small line segments are constructed and saved as small line segments to be cut. The formula for calculating the distance between any two points between the starting point, the ending point, the discrete points, and the micro-connection target point is the same as the formula for the distance between points in space.
[0011] According to embodiments of this disclosure, determining the micro-connection target point and the target edge where the micro-connection target point is located based on the spatial trajectory to be cut includes: obtaining the coordinates of the current micro-connection target point; for each edge in the edge information set, determining whether the micro-connection target point is on the edge based on the distance between the current micro-connection target point and the edge; if the micro-connection target point is on an edge in the edge information set, then saving the micro-connection target point and the target edge where the micro-connection target point is located; otherwise, re-executing the process of obtaining the coordinates of the current micro-connection target point; obtaining the distances from the micro-connection target point to the two endpoints of the target edge, and determining whether there is a distance from one endpoint to the micro-connection target point that is greater than a preset micro-connection length; if so, then determining the micro-connection target point and the target edge where the micro-connection target point is located; if not, then re-executing the process of obtaining the coordinates of the current micro-connection target point.
[0012] The second aspect of this disclosure provides a micro-connection addition device for laser tube cutting, comprising: a micro-connection addition method configured to implement the above-described laser tube cutting method, comprising: an initialization module for determining a micro-connection target point and a target edge where the micro-connection target point is located based on a spatial trajectory to be cut; the spatial trajectory to be cut includes a set of edge information of all contours; the edge information includes discrete point coordinates of the edges; and a micro-connection addition module for determining the micro-connection position according to the type of the target edge and a preset micro-connection length, and regenerating the spatial trajectory to be cut; the type of the target edge includes at least one of arc, straight line, and small line segment.
[0013] A third aspect of this disclosure provides an electronic device comprising: one or more processors; and a memory for storing one or more programs, wherein, when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to perform the aforementioned laser-cut tube micro-connection addition method.
[0014] A fourth aspect of this disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the aforementioned laser-cut tube micro-connection addition method.
[0015] According to the micro-connection method for laser tube cutting provided in this disclosure, the feasibility of micro-connection target points is determined by combining the traversal and analysis of edge information in the spatial trajectory; and targeted micro-connection operations are achieved by adopting flexible micro-connection strategies according to different edge types. Since the non-cutting micro-connections provide balanced support for the part, the technical problem of part warping during laser cutting is at least partially solved, achieving the technical effect of avoiding part warping after cutting and connecting the cut-off part to the sheet metal. Attached Figure Description
[0016] Figure 1 A flowchart illustrating a method for adding micro-connections to a laser-cut tube according to an embodiment of the present disclosure is shown schematically.
[0017] Figure 2 This schematically illustrates another microconnection addition flowchart of the laser-cut tube-based microconnection addition method according to an embodiment of the present disclosure;
[0018] Figure 3 A schematic diagram illustrating the addition of micro-connections to a straight-line type spatial trajectory according to an embodiment of the present disclosure is shown.
[0019] Figure 4 This schematically illustrates a diagram of adding micro-connections to an arc-type spatial trajectory according to an embodiment of the present disclosure;
[0020] Figure 5 This illustration schematically shows a diagram of adding micro-connections to a small line segment type spatial trajectory according to an embodiment of the present disclosure;
[0021] Figure 6 A schematic diagram of a micro-connection addition device for laser-cut tubes according to an embodiment of the present disclosure is shown.
[0022] Figure 7 A block diagram schematically illustrates an electronic device suitable for implementing a micro-connection addition method for laser-cut tubes according to an embodiment of the present disclosure. Detailed Implementation
[0023] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0024] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0025] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0026] When using expressions such as "at least one of A, B, and C", they should generally be interpreted in accordance with the meaning that is commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B, and C, etc.).
[0027] Laser cutting is a highly efficient material processing technology that utilizes laser energy. It boasts advantages such as a small heat-affected zone, high quality, high efficiency, minimal deformation, narrow kerf, and a smooth, aesthetically pleasing surface. Furthermore, it has a wide cutting range. Its operating principle involves using the high power density energy generated by a laser, and through precise optical path control and computer programming, focusing the laser beam onto the workpiece surface to form a high-energy-density spot. During this process, the laser cutting path control needs to be designed and planned in advance to ensure processing quality and efficiency. "Micro-connection" is used to insert a non-cutting micro-connection within the laser cutting trajectory, preventing the part from warping after cutting. The main drawbacks of existing micro-connection technologies include limitations on specific materials or shapes, being limited to planar surfaces or specific angles, and lacking methods for adding micro-connections within a spatial trajectory. For example, some micro-connection technologies can only be used for flat panel processing, making them unsuitable for specific application scenarios and limiting their application in large-scale production.
[0028] Therefore, the purpose of the laser tube cutting micro-connection method based on spatial trajectory is to solve these problems. By proposing a more efficient and economical micro-connection technology, micro-connections can be added to sheets of various shapes and materials, enabling their widespread application in mass production. This avoids parts lifting after cutting, connects the cut-off parts to the sheet, improves product cutting quality and production efficiency, and reduces production costs.
[0029] Figure 1 A flowchart illustrating a micro-connection addition method for laser-cut tubes according to an embodiment of the present disclosure is shown, such as... Figure 1 As shown, embodiments of this disclosure provide a method for adding micro-connections in laser tube cutting, including: S1, determining the micro-connection target point and the target edge where the micro-connection target point is located through the spatial trajectory to be cut; the spatial trajectory to be cut includes a set of edge information of all contours; the edge information includes the discrete point coordinates of the edge; S2, determining the micro-connection position according to the type of the target edge and the preset micro-connection length, and regenerating the target spatial trajectory to be cut; the type of the target edge includes at least one of arc, straight line, and small line segment.
[0030] Through the embodiments of this disclosure, suitable micro-connection target points are obtained based on spatial trajectories, and the target edges to be cut to which micro-connections need to be added are determined; based on the type of target edges, micro-connection portions are selectively extracted from the target edges to obtain the target spatial trajectory containing micro-connections again, thus completing the addition of micro-connections.
[0031] Based on the above embodiments, the micro-connection positions are determined according to the type of the target edge and the preset micro-connection length, and the target spatial trajectory to be cut is regenerated, including: in response to the target edge being an arc, the discrete points of the arc are traversed according to the preset micro-connection length to redetermine the micro-connection target point; the arc to be cut is regenerated according to the arc start point, arc end point, arc center, and micro-connection target point; in response to the target edge being a straight line, the micro-connection target point is redetermined according to the preset micro-connection length by normalizing the direction vector; the straight line to be cut is regenerated according to the straight line start point, straight line end point, and micro-connection target point; in response to the target edge being a small line segment, the discrete points of the small line segment are traversed according to the preset micro-connection length to redetermine the micro-connection target point; the small line segment to be cut is regenerated according to the discrete points of the small line segment and the micro-connection target point.
[0032] Through the embodiments of this disclosure, flexible micro-connection strategies are adopted according to different edge types (straight lines, arcs, small line segments), including direct positioning, discrete point traversal and other methods, to complete multi-type edge processing and realize targeted micro-connection operations. After the micro-connection operation is completed, the target spatial trajectory to be cut is regenerated to ensure the continuity and integrity of the generated path, avoid the break or discontinuity between the spatial trajectories before and after the micro-connection point, and ensure the continuity, integrity and stability of the micro-connection path.
[0033] Based on the above embodiments, in response to the target edge being an arc, the discrete points of the arc are traversed according to the preset micro-connection length to redetermine the micro-connection target point; the arc to be cut is generated based on the arc start point, arc end point, arc center, and micro-connection target point, including: determining whether the distance from the arc start point and arc end point to the micro-connection target point is less than the preset micro-connection length; if the distance from the arc start point to the micro-connection target point is less than the preset micro-connection length, the discrete points of the arc are traversed from the arc start point to the arc end point to find a point whose distance from the arc start point is greater than the preset micro-connection length, and this point is set as a new micro-connection target point; a new spatial arc is constructed based on the micro-connection target point, arc end point, and arc center, and saved as the arc to be cut; if the distance from the arc end point to the micro-connection target point is less than the preset micro-connection length, the arc is traversed from the arc end ... center, and this point is set as a new micro-connection target point. Traverse the discrete points of the arc from the starting point to the starting point, finding a point whose distance to the endpoint is greater than the preset micro-connection length, and set it as a new micro-connection target point. Construct a new spatial arc based on the micro-connection target point, the starting point of the arc, and the center of the arc, and save it as the arc to be cut. If the distances from both the starting and ending points of the arc to the micro-connection target point are greater than the preset micro-connection length, traverse the discrete points of the arc from the micro-connection target point to the starting and ending points of the arc, respectively, and find two points whose distance to the micro-connection target point is half the preset micro-connection length. Construct two new spatial arcs based on the two points, the starting point, the ending point, and the center of the arc, and save them as the arcs to be cut. The formula for calculating the distance between any two points between the starting point, the ending point, the discrete point, and the micro-connection target point is the same as the formula for the distance between points in space.
[0034] In this embodiment, Figure 4 This diagram illustrates the addition of micro-connections to a spatial trajectory of an arc type according to an embodiment of the present disclosure. If the edge is an arc, the arc includes a planar arc and an end-face arc. If the distance between the micro-connection target point and the arc endpoint is less than the micro-connection length, then a point greater than or equal to the micro-connection length at the endpoint is found by traversing the discrete points of the arc directly from the endpoint. This point is set as a new micro-connection target point. A new spatial arc is constructed by the arc start point, the arc center, and the micro-connection target point, and the path to be cut is saved. If the distance between the micro-connection target point and the arc start point is less than the micro-connection length, then a point greater than or equal to the micro-connection length at the start point is found directly from the start point. This point is set as a new micro-connection target point. A new spatial arc is constructed by the micro-connection target point, the arc endpoint, and the arc center, and the path to be cut is saved. If the micro-connection target point is far from both the start and end points, i.e., not in the above two cases, then a point 1 / 2 micro-connection length away from the target point is found forward and backward from the target point. The arc is divided into three parts, and the first and third parts are saved as the path to be cut.
[0035] It should be noted that microconnections are generally quite short, only a few millimeters long, and the radius of the arc on the part to be added is relatively large (arcs with smaller radii are not suitable for adding microconnections). The arc length is approximately the same as the distance between two points (secant length), so there is no need to consider the perimeter; you only need to directly calculate the distance between the points.
[0036] Among them, the distance calculation formulas between the starting point, ending point, discrete point, and micro-connected target point of the arc are the same as the distance formulas between points in space:
[0037]
[0038] Where d is the distance between two points, and x1, y1, z1, x2, y2, z2 are the coordinates of the two points.
[0039] Through the embodiments of this disclosure, by traversing discrete points and calculating distances, the micro-connection target points of the arc are identified from the discrete points of the arc, and a new spatial trajectory of the target to be cut is obtained through the center of the arc, the starting point of the arc, the ending point of the arc, and the micro-connection target points.
[0040] Based on the above embodiments, in response to the target edge being a straight line, the micro-connection target point is re-determined using a normalized direction vector according to a preset micro-connection length; the straight line to be cut is regenerated based on the line start point, line end point, and micro-connection target point, including: determining whether the distance from the line start point and line end point to the micro-connection target point is less than the preset micro-connection length; if the distance from the line start point to the micro-connection target point is less than the preset micro-connection length, a point whose distance from the start point is equal to the micro-connection length is calculated using a normalized direction vector and set as a new micro-connection target point; a new spatial straight line is generated based on the micro-connection target point and the line end point and saved as the straight line to be cut; if the distance is less than the preset micro-connection length, the point is set as a new micro-connection target point ... If the distance from the endpoint of the line to the target point of the micro-connection is less than the preset micro-connection length, then a point whose distance from the endpoint is equal to the micro-connection length is calculated using the normalized direction vector and set as the new target point of the micro-connection. A new spatial line is generated based on the target point of the micro-connection and the starting point of the line and saved as the line to be cut. If the distances from both the starting point and the endpoint of the line to the target point of the micro-connection are greater than the preset micro-connection length, then two points whose distances are half the micro-connection length from the target point are calculated using the normalized direction vector in the directions of the starting point and the endpoint of the line, respectively. Two new spatial lines are generated based on the two points, the starting point and the endpoint of the line and saved as the lines to be cut.
[0041] In this embodiment, Figure 3The illustration shows a schematic diagram of adding micro-connections to a straight-line type spatial trajectory according to an embodiment of the present disclosure. If the distance between the micro-connection target point and the straight line endpoint is less than the micro-connection length, then a point equal to the micro-connection length at the endpoint is found directly from the endpoint using a normalized direction vector. This point is set as the new micro-connection target point, and a new spatial straight line is constructed using the straight line start point and the micro-connection target point. The path to be cut is saved. If the distance between the micro-connection target point and the straight line start point is less than the micro-connection length, then a point equal to the micro-connection length at the start point is found directly from the start point. This point is set as the new micro-connection target point, and a new spatial straight line is constructed using the micro-connection target point and the straight line endpoint. The path to be cut is saved. If the micro-connection target point is far from both the start and end points (i.e., not in the above two cases), points 1 / 2 the micro-connection length away from the target point are found forward and backward respectively. The straight line is divided into three parts, and the first and third parts are saved as the path to be cut.
[0042] Through the embodiments of this disclosure, the micro-connection target point of the arc is directly calculated and confirmed by normalizing the direction vector and distance. The line is divided into three parts by connecting the starting point of the line with the micro-connection target point, or connecting the ending point of the line with the micro-connection target point, or re-acquiring the two points, to obtain a new spatial trajectory of the target to be cut.
[0043] Based on the above embodiments, the micro-connection target point is re-determined by normalizing the direction vector, including: determining the unit direction vector based on the spatial coordinates of the starting point and ending point of the line; and determining the micro-connection target point based on the preset micro-connection length and the unit direction vector.
[0044] In this embodiment, the normalized direction vector method determines the unit direction vector based on the spatial coordinates of the starting and ending points of the line, and then calculates the target spatial point at the required distance from the starting or ending point of the line based on the required distance.
[0045] The starting coordinates are sta(x1, y1, z1), and the ending coordinates are end(x2, y2, z2). The unit direction vector is:
[0046]
[0047] The calculated unit direction vector will point in the direction from the starting point to the ending point and will have a length of 1. This unit direction vector can be used to calculate the required distance. For example, if you want to move a certain distance along this straight line from the starting point or the ending point, you can multiply the unit direction vector by the required distance and add the result to the coordinates of the starting point or the ending point.
[0048] For example, suppose the unit direction vector (v = (v_0.05)) has been calculated. x v y v zThe starting point coordinates are (x1, y1, z1), and the desired distance to move is l. The new spatial coordinates (x′, y′, z′) can be calculated as follows:
[0049] x′=x1+l·v x
[0050] y′=y1+l·v y
[0051] z′=z1+l·v z
[0052] This allows us to obtain the spatial coordinates of the micro-connected target point after moving 1 length from the starting point along a given straight line.
[0053] Through the embodiments of this disclosure, since the straight line is a continuous line segment, the micro-connection target point can be directly calculated through the normalized direction vector without traversing discrete points, thus reducing the amount of computation.
[0054] Based on the above embodiments, in response to the target edge being a small line segment, according to the preset micro-connection length, the discrete points of the small line segment are traversed to redetermine the micro-connection target point; based on the discrete points of the small line segment and the micro-connection target point, the small line segment to be cut is regenerated, including: determining whether the distance from the starting point and ending point of the small line segment to the micro-connection target point is less than the preset micro-connection length; if the distance from the starting point of the small line segment to the micro-connection target point is less than the preset micro-connection length, then the discrete points of the small line segment are traversed from the starting point to the ending point of the small line segment to find a point whose distance from the starting point of the small line segment is greater than the preset micro-connection length, and set as a new micro-connection target point; based on the micro-connection target point and the discrete points of the small line segment, a new spatial small line segment is constructed and saved as the small line segment to be cut; if the distance from the ending point of the small line segment to the micro-connection target point is less than the preset micro-connection length, then the small line segment to be cut is regenerated. The process iterates from the endpoint of a segment to the starting point of the next segment, traversing the discrete points of the segment. Points where the distance from the endpoint to the next segment is greater than a preset micro-connection length are identified and set as new micro-connection target points. Based on the micro-connection target points and the discrete points of the segments, new spatial segments are constructed and saved as segments to be cut. If the distances from both the starting and ending points of a segment to the micro-connection target point are greater than the preset micro-connection length, the process iterates from the micro-connection target point to the starting and ending points of the segment, respectively, finding two points where the distance from the micro-connection target point is half the preset micro-connection length. Based on these two points and the discrete points of the segments, two new spatial segments are constructed and saved as segments to be cut. The formula for calculating the distance between any two points between the starting point, ending point, discrete points, and micro-connection target point is the same as the formula for the distance between points in space.
[0055] In this embodiment, Figure 5The illustration shows a schematic diagram of adding micro-connections to a spatial trajectory of a small line segment type according to an embodiment of the present disclosure. If the distance between the micro-connection target point and the endpoint of the small line segment is less than the micro-connection length, then a point greater than or equal to the micro-connection length at the endpoint is found by traversing the discrete points of the small line segment from the endpoint. This point is set as a new micro-connection target point. A new spatial small line segment is constructed from the discrete points from the starting point to the micro-connection target point, and the path is saved. If the distance between the micro-connection target point and the starting point of the small line segment is less than the micro-connection length, then a point greater than or equal to the micro-connection length at the starting point is found from the starting point and set as a new micro-connection target point. A new spatial small line segment is constructed from the discrete points between the micro-connection target point and the endpoint of the small line segment, and the path is saved. If the micro-connection target point is far from both the starting point and the endpoint, i.e., not in the above two cases, a point 1 / 2 micro-connection length away from the target point is found from both the starting point and the endpoint. The small line segment is divided into three parts, and the discrete points of the first and third parts are saved as the path.
[0056] Among them, the distance calculation formula between the starting point, ending point, discrete point, and micro-connection target point of the above-mentioned small line segment is the distance formula between points in space.
[0057] It should be noted that the direction of the unit vector of a small line segment is different at each point, while the unit vector of a straight line segment is consistent. Therefore, the starting and ending points of the micro-connections of a straight line segment can be deduced based on the unit vector.
[0058] Through the embodiments of this disclosure, for small line segments, a specific micro-connection strategy needs to be adopted, that is, by traversing the existing points in the spatial trajectory as the start and end points of the micro-connection. Because the points in the spatial trajectory of small line segments are more dense, points that meet the requirements can be found as the start and end points of the micro-connection to ensure the quality and stability of the workpiece after processing.
[0059] Based on the above embodiments, the micro-connection target point and the target edge where the micro-connection target point is located are determined by the spatial trajectory to be cut, including: obtaining the coordinates of the current micro-connection target point; for each edge in the edge information set, determining whether the micro-connection target point is on the edge by the distance between the current micro-connection target point and the edge; if the micro-connection target point is on an edge in the edge information set, then the micro-connection target point and the target edge where the micro-connection target point is located are saved; otherwise, the process of obtaining the coordinates of the current micro-connection target point is repeated; obtaining the distances from the micro-connection target point to the two endpoints of the target edge, and determining whether there is a distance from one endpoint to the micro-connection target point that is greater than the preset micro-connection length; if so, the micro-connection target point and the target edge where the micro-connection target point is located are determined; if not, the process of obtaining the coordinates of the current micro-connection target point is repeated.
[0060] In this embodiment, Figure 2The schematic diagram illustrates another micro-connection addition flowchart of the micro-connection addition method based on laser tube cutting according to an embodiment of the present disclosure; obtaining the micro-connection target point: setting the micro-connection length, manually selecting the position where the micro-connection needs to be added, obtaining the position of the micro-connection target point, and then traversing the edge information set (EdgeList) of all contours in the spatial trajectory, storing the information of a single edge in CtrlEdge, obtaining the set of discrete points of the edge, and determining whether the micro-connection target point is on the edge by comparing the distance from the discrete points of the edge to the micro-connection target point. If there is no target point on any edge, then it is necessary to reselect the micro-connection target point. If it exists, then it is further determined whether the distance from the target point to the endpoints (i.e., the start and end points) of the two sides of the edge is sufficient to add a micro-connection.
[0061] Through the embodiments of this disclosure, based on the set micro-connection length, the location of the micro-connection target point is obtained by manually selecting it, and combined with the traversal and analysis of the edge information in the spatial trajectory, the feasibility of the micro-connection target point is automatically determined, ensuring the accuracy and reliability of the micro-connection and realizing intelligent selection of micro-connection target points.
[0062] Based on the aforementioned method for adding micro-connections in laser-cut tubes, this disclosure also provides a device for adding micro-connections in laser-cut tubes, used to implement the aforementioned method for adding micro-connections in laser-cut tubes. The following will be combined with... Figure 6 The device is described in detail.
[0063] like Figure 6 As shown, the micro-connection addition device 600 for laser tube cutting in this embodiment includes an initialization module 601 and a micro-connection addition module 602.
[0064] The initialization module is used to determine the micro-connection target point and the target edge where the micro-connection target point is located based on the spatial trajectory to be cut; the spatial trajectory to be cut includes the edge information set of all contours; the edge information includes the discrete point coordinates of the edges. In one embodiment, the initialization module can be used to perform the operation S1 described above, which will not be repeated here.
[0065] The micro-connection adding module is used to determine the position of the micro-connection based on the type of the target edge and the preset micro-connection length, and to regenerate the spatial trajectory to be cut; the type of the target edge includes at least one of arc, straight line, and small line segment. In one embodiment, the micro-connection adding module can be used to perform the operation S2 described above, which will not be repeated here.
[0066] Figure 7 A block diagram schematically illustrates an electronic device suitable for implementing a micro-connection addition method for laser-cut tubes according to an embodiment of the present disclosure.
[0067] like Figure 7As shown, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage portion 708 into a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0068] RAM 703 stores various programs and data required for the operation of electronic device 700. Processor 701, ROM 702, and RAM 703 are interconnected via bus 704. Processor 701 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 702 and / or RAM 703. It should be noted that the programs may also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.
[0069] According to embodiments of this disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to a bus 704. The electronic device 700 may also include one or more of the following components connected to the I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0070] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.
[0071] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to cause the computer system to implement the methods provided in the embodiments of this disclosure.
[0072] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0073] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0074] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.
Claims
1. A method of laser tube cutting and micro-joining addition, characterized by, include: The micro-connection target point and the target edge where the micro-connection target point is located are determined by the spatial trajectory to be cut; The spatial trajectory to be cut includes a set of edge information for all contours; the edge information includes the discrete point coordinates of the edges; Based on the type of the target edge and the preset micro-connection length, the micro-connection position is determined, and the target space trajectory to be cut is regenerated; the type of the target edge includes at least one of arc, straight line, and small line segment; The step of determining the micro-connection position and regenerating the target space trajectory to be cut based on the type of the target edge and the preset micro-connection length includes: In response to the target edge being an arc, the discrete points of the arc are traversed according to the preset micro-connection length, and the micro-connection target point is redefined; the arc to be cut is regenerated based on the arc start point, arc end point, arc center, and the micro-connection target point. In response to the target edge being a straight line, the target point of the micro-connection is re-determined by normalizing the direction vector according to the preset micro-connection length; the straight line to be cut is regenerated based on the starting point, ending point and target point of the straight line. In response to the target edge being a small line segment, the discrete points of the small line segment are traversed according to the preset micro-connection length, and the micro-connection target point is re-determined; based on the discrete points of the small line segment and the micro-connection target point, the small line segment to be cut is regenerated.
2. The method according to claim 1, wherein, In response to the target edge being an arc, the discrete points of the arc are traversed according to the preset micro-connection length to redetermine the micro-connection target point; Based on the arc's starting point, ending point, center, and the micro-connection target point, an arc to be cut is generated, including: Determine whether the distance from the start and end points of the arc to the target point of the micro-connection is less than the preset micro-connection length; If the distance from the starting point of the arc to the target point of the micro-connection is less than the preset micro-connection length, then the discrete points of the arc are traversed from the starting point to the ending point of the arc to find the point where the distance from the starting point of the arc is greater than the preset micro-connection length, and set as the new target point of the micro-connection; based on the target point of the micro-connection, the ending point of the arc and the center of the arc, a new spatial arc is constructed and saved as the arc to be cut. If the distance from the end point of the arc to the target point of the micro-connection is less than the preset micro-connection length, then the discrete points of the arc are traversed from the end point to the start point of the arc to find the point where the distance from the end point to the start point of the arc is greater than the preset micro-connection length, and this point is set as the new target point of the micro-connection. Based on the target point of the micro-connection, the start point of the arc, and the center of the arc, a new spatial arc is constructed and saved as the arc to be cut. If the distances from the starting point and ending point of the arc to the target point of the micro-connection are both greater than the preset micro-connection length, then traverse the discrete points of the arc from the target point of the micro-connection to the starting point and ending point of the arc respectively, and find two points whose distance from the target point of the micro-connection is half the preset micro-connection length; based on the two points, the starting point, the ending point of the arc, and the center of the arc, construct two new spatial arcs and save them as arcs to be cut. Among them, the formula for calculating the distance between any two points between the starting point, ending point, discrete point, and micro-connected target point of the arc is the same as the formula for the distance between points in space.
3. The method according to claim 1, wherein, In response to the target edge being a straight line, the micro-connection target point is re-determined by normalizing the direction vector according to the preset micro-connection length; Based on the starting point, ending point, and target point of the micro-connection, the line to be cut is regenerated, including: Determine whether the distance from the start and end points of the straight line to the target point of the micro-connection is less than the preset micro-connection length; If the distance from the starting point of the straight line to the target point of the micro-connection is less than the preset micro-connection length, then the point whose distance from the starting point is equal to the micro-connection length is calculated by normalizing the direction vector and set as the new target point of the micro-connection; a new spatial straight line is generated based on the target point of the micro-connection and the end point of the straight line and saved as the straight line to be cut. If the distance from the endpoint of the straight line to the target point of the micro-connection is less than the preset micro-connection length, then the point whose distance from the endpoint is equal to the micro-connection length is calculated by normalizing the direction vector and set as the new target point of the micro-connection; a new spatial straight line is generated based on the target point of the micro-connection and the starting point of the straight line and saved as the straight line to be cut. If the distances from the starting point and ending point of the line to the target point of the micro-connection are both greater than the preset micro-connection length, then by normalizing the direction vector, two points that are half the micro-connection length away from the target point are calculated in the direction of the starting point and the direction of the ending point of the line, respectively; based on the two points, the starting point and the ending point of the line, two new spatial lines are generated and saved as lines to be cut.
4. The method according to claim 1, wherein, The process of redetermining the micro-connection target point by normalizing the direction vector includes: Determine the unit direction vector based on the spatial coordinates of the starting and ending points of the line; The micro-connection target point is determined based on the preset micro-connection length and the unit direction vector.
5. The method according to claim 1, wherein, In response to the target edge being a small line segment, the discrete points of the small line segment are traversed according to the preset micro-connection length, and the micro-connection target point is redefined. Based on the discrete points of the small line segment and the target point of the micro-connection, the small line segment to be cut is regenerated, including: Determine whether the distance from the starting point and ending point of the small line segment to the target point of the micro-connection is less than the preset micro-connection length; If the distance from the starting point of the small line segment to the target point of the micro-connection is less than the preset micro-connection length, then the discrete points of the small line segment are traversed from the starting point to the ending point of the small line segment to find the point whose distance from the starting point of the small line segment is greater than the preset micro-connection length, and set as the new target point of the micro-connection; based on the target point of the micro-connection and the discrete points of the small line segment, a new spatial small line segment is constructed and saved as the small line segment to be cut. If the distance from the endpoint of the small line segment to the target point of the micro-connection is less than the preset micro-connection length, then traverse the discrete points of the small line segment from the endpoint to the starting point of the small line segment to find the point where the distance from the endpoint of the small line segment is greater than the preset micro-connection length, and set it as the new target point of the micro-connection; based on the target point of the micro-connection and the discrete points of the small line segment, construct a new spatial small line segment and save it as the small line segment to be cut. If the distances from the starting point and ending point of the small line segment to the target point of the micro-connection are both greater than the preset micro-connection length, then traverse the discrete points of the small line segment from the target point of the micro-connection to the starting point and ending point of the small line segment respectively, and find two points whose distance from the target point of the micro-connection is half the preset micro-connection length; based on the two points and the discrete points of the small line segment, construct two new spatial small line segments and save them as the small line segments to be cut; Among them, the formula for calculating the distance between any two points between the starting point, ending point, discrete point, and micro-connection target point of the small line segment is the same as the formula for the distance between points in space.
6. The method according to claim 1, wherein, The step of determining the micro-connection target point and the target edge where the micro-connection target point is located through the spatial trajectory to be cut includes: Get the coordinates of the current micro-connection target point; For each edge in the edge information set, determine whether the micro-connection target point is on the edge by using the distance between the current micro-connection target point and the edge; If the micro-connection target point is on an edge in the edge information set, then save the micro-connection target point and the target edge where the micro-connection target point is located; otherwise, re-execute to obtain the coordinates of the current micro-connection target point. Obtain the distances from the micro-connection target point to both endpoints of the target edge, and determine whether there is an endpoint whose distance to the micro-connection target point is greater than the preset micro-connection length; if yes, determine the micro-connection target point and the target edge where the micro-connection target point is located; if no, re-execute to obtain the coordinates of the current micro-connection target point.
7. A micro-connection addition device for laser-cut tubes, characterized in that, The system is configured to implement the micro-connection addition method for laser-cut tubes as described in any one of claims 1 to 6, comprising: An initialization module is used to determine the micro-connection target point and the target edge where the micro-connection target point is located based on the spatial trajectory to be cut; the spatial trajectory to be cut includes a set of edge information of all contours; the edge information includes the discrete point coordinates of the edge; The micro-connection adding module is used to determine the micro-connection position based on the type of the target edge and the preset micro-connection length, and to regenerate the spatial trajectory to be cut; the type of the target edge includes at least one of arc, straight line, and small line segment; The step of determining the micro-connection position and regenerating the target space trajectory to be cut based on the type of the target edge and the preset micro-connection length includes: In response to the target edge being an arc, the discrete points of the arc are traversed according to the preset micro-connection length, and the micro-connection target point is redefined; the arc to be cut is regenerated based on the arc start point, arc end point, arc center, and the micro-connection target point. In response to the target edge being a straight line, the target point of the micro-connection is re-determined by normalizing the direction vector according to the preset micro-connection length; the straight line to be cut is regenerated based on the starting point, ending point and target point of the straight line. In response to the target edge being a small line segment, the discrete points of the small line segment are traversed according to the preset micro-connection length, and the micro-connection target point is re-determined; based on the discrete points of the small line segment and the micro-connection target point, the small line segment to be cut is regenerated.
8. An electronic device, comprising: One or more processors; Storage device for storing one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors perform the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Laser cutting method and device, laser cutting equipment and storage medium
CN113770558A
