A cross-filling method for annular patterns and storage medium

By obtaining the filling line from the first ray and the second ray at equal angles during the galvanometer laser processing, ensuring that it is within the working range of the galvanometer, the problem of poor cross-fill consistency of the ring pattern is solved, the quality of the finished product is improved and the cost is reduced cost.

CN118616910BActive Publication Date: 2024-10-25BEIJING JCZ TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411087368.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-10-25
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

In galvanometer laser processing, the cross-filling consistency of ring patterns is poor, resulting in low product patterns, and the high cost of high-precision linear motor movement limits wide-scale promotion.

Method used

By obtaining the first filling line and the second filling line from the first ray and the second ray at equal angles, ensuring that these filling lines are within the working range of the galvanometer, a cross-filling method is used to improve the consistency of the laser trajectory and the quality of the finished product.

Benefits of technology

It improves the laser trajectory consistency during ring pattern processing, ensures the quality of finished products, and reduces the cost of galvanometer processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118616910B_ABST
    Figure CN118616910B_ABST
Patent Text Reader

Abstract

The present invention discloses a cross-filling method and storage medium for an annular pattern. By acquiring a first filling line and a second filling line from a first ray and a second ray at equal angles, the consistency of the laser trajectory of a galvanometer in the process of processing an annular pattern is improved, thereby improving the quality of the finished product; by ensuring that the first filling line and the second filling line are within the working range of the galvanometer, it is helpful to prevent the existence of an area on the filling line where the galvanometer cannot act, thereby ensuring the quality of the finished product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of laser processing, and in particular to a cross-filling method for an annular pattern and a storage medium. Background Art

[0002] In some galvanometer laser processing, it is often necessary to use a cross-filling method for multiple processing. The consistency problem of galvanometer laser processing is widely present in the field of large-format linkage laser processing. For screw platforms or gear rack platforms, it is difficult to ensure the repeatability, so the consistency of the pattern on the processed products is not high, and affected by the material and mechanical processing technology, high-precision linear motor motion solutions are often very expensive, which is not conducive to large-scale promotion. For this reason, a cross-filling method and storage medium for annular patterns are provided. Summary of the invention

[0003] In order to overcome the above-mentioned shortcomings, the purpose of the present invention is to provide a cross-filling method and storage medium for annular patterns, which improves the consistency of the laser trajectory of the galvanometer in the process of processing the annular pattern by obtaining the first filling line and the second filling line from the first ray and the second ray at equal angles, thereby improving the quality of the finished product; by ensuring that the first filling line and the second filling line are within the working range of the galvanometer, it is helpful to prevent the existence of areas on the filling line where the galvanometer cannot act, thereby ensuring the quality of the finished product.

[0004] In order to achieve the above purpose, the technical solution adopted by the present invention is: a cross-filling method for an annular pattern, the annular pattern includes an inner ring polygon and an outer ring polygon, the method includes:

[0005] Get the filling center point, take the filling center point as the center, get the first circle that is the largest circle contained in the inner ring polygon, and get the second circle that is the smallest circle contained in the outer ring polygon;

[0006] Taking the filling center as the starting point, generating a first ray and a second ray, wherein the first ray and the second ray form a second angle, and the second angle is not equal to 0° or 180°;

[0007] Obtain a first intersection point between the first ray and the first circle, a second intersection point between the second ray and the first circle, a fourth intersection point between the first ray and the second circle, and a third intersection point between the second ray and the second circle;

[0008] Connect the first intersection point and the third intersection point to obtain a first line segment, obtain a first fill line through the first line segment, connect the second intersection point and the fourth intersection point to obtain a second line segment, obtain a second fill line through the second line segment, the first fill line, the second fill line and the outer ring polygon or the inner ring polygon have an intersection, and the first fill line and the second fill line are set between the outer ring polygon and the inner ring polygon;

[0009] According to the set Yin-Yang carving mode, the annular pattern is laser filled using the first filling line and the second filling line.

[0010] In this method, obtaining the filling center point is beneficial to providing a reference for the endpoints of the subsequent first ray and the second ray, as well as providing a reference for the centers of the first and second rings. The first ring that is largest is contained in the inner ring polygon and the second ring that is smallest is contained in the outer ring polygon, ensuring that the first and second rings have intersections with the first and second rays; the first and second rays are used to obtain the filling lines later, and the second angle is not equal to 0° or 180°, ensuring that the first line segment and the second line segment have intersections, thereby improving the stability of the annular pattern after laser filling; by obtaining the first and second filling lines from the first and second rays at equal angles, the consistency of the laser trajectory during the galvanometer processing of the annular pattern is improved, thereby improving the quality of the finished product; by obtaining the first and second filling lines, it is beneficial to sort the scanning order of the laser trajectory.

[0011] In some embodiments, an intermediate polygon is also included between the inner ring polygon and the outer ring polygon, and the cross-filling method for the annular pattern also includes: obtaining a third fill line through the first line segment and the intermediate polygon, obtaining a fourth fill line through the second line segment and the intermediate polygon, the third fill line, the fourth fill line and the intermediate polygon have an intersection, and the third fill line and the fourth fill line are arranged in the intermediate polygon.

[0012] In this method, the third filling line and the fourth filling line are used to determine the laser filling trajectory within the middle polygon.

[0013] In some embodiments, the cross-filling method for the annular pattern further includes: laser filling the middle polygon according to the set Yin-Yang carving mode, the third filling line, and the fourth filling line.

[0014] In this solution, according to the selected Yin-Yang carving mode, the middle polygon is filled using the trajectories of the third filling line and the fourth filling line.

[0015] In some embodiments, the annular pattern is filled by a galvanometer, and according to the set Yin-Yang carving mode, it is confirmed that all the first filling lines, second filling lines, third filling lines, and fourth filling lines in the annular pattern obtained through the same second angle are within the working range of the galvanometer.

[0016] In this method, the first filling line and the second filling line are within the working range of the galvanometer, which is beneficial to prevent the existence of areas on the filling lines where the galvanometer cannot function, thereby ensuring the quality of the finished product.

[0017] In some embodiments, laser filling of the annular pattern includes: within the working range of the galvanometer, selecting all first filling lines and second filling lines obtained by the second angle corresponding to the right angle closest to the angle of the first filling line and the second filling line as the galvanometer filling trajectory, and laser filling the annular pattern.

[0018] In this method, selecting the first filling line and the second filling line at right angles that are closest to each other as the galvanometer filling trajectory is beneficial to improving the quality of galvanometer processing.

[0019] In some embodiments, the cross-filling method for the annular pattern further includes sorting the first fill line and the third fill line according to the first vector direction, and sorting the second fill line and the fourth fill line according to the second vector direction.

[0020] In this technical solution, by sorting the first filling line, the second filling line, the third filling line and the fourth filling line, it is beneficial to operate the scanning order of the laser.

[0021] In some embodiments, obtaining the filling center point includes: obtaining the center of the inner ring polygon of the inner ring polygon, and if the center of the inner ring polygon is inside the inner ring polygon, then confirming the center of the envelope box as the filling center point; if the center of the inner ring polygon is not inside the inner ring polygon, obtaining the intersection of the ray of the center of the inner ring polygon and the inner ring polygon, connecting adjacent intersection points on the ray to obtain the first line segment, obtaining the first midpoint of the first line segment, and taking the first midpoint closest to the center of the inner ring polygon as the filling center point.

[0022] In this method, it is ensured that the filling center point is within the inner ring polygon, thereby ensuring that the ray with the filling center point as the endpoint has intersections with both the inner ring polygon and the outer ring polygon; when the center of the inner ring polygon is not inside the inner ring polygon, selecting the first midpoint of the first line segment closest to the center of the inner ring polygon as the filling center point can make the filling center point as close as possible to the center of the inner ring polygon, thereby ensuring that the filling center point is as close as possible to the center point of the inner ring polygon.

[0023] In some embodiments, obtaining the first circular ring that is largest within the inner ring polygon includes: calculating the square of the distance between each edge of the inner ring polygon and the filling center point, calculating the square of the distance between each vertex of the inner ring polygon and the filling center point, and selecting the minimum value of the square of the distance as the square of the radius of the first circular ring.

[0024] In this method, obtaining the first circular ring that is contained in the inner ring polygon is beneficial to reducing the amount of calculation of the first ray and the second ray, and selecting the minimum value of the square of the distance as the square of the radius of the first circular ring ensures that the first circular ring is completely contained in the inner ring polygon.

[0025] In some embodiments, obtaining the minimum second circular ring that contains the outer ring polygon includes: calculating the square of the distance between each edge of the outer ring polygon and the filling center point, calculating the square of the distance between each vertex of the outer ring polygon and the filling center point, and selecting the maximum value of the square of the distance as the square of the radius of the second circular ring.

[0026] In this method, obtaining the minimum second ring that contains the outer ring polygon is beneficial to reducing the amount of calculation of the first ray and the second ray, and selecting the maximum value of the square of the distance as the square of the radius of the second ring ensures that the outer ring polygon is completely contained in the second ring.

[0027] In some embodiments, laser filling the annular pattern includes: within the working range of the galvanometer, selecting the first filling line and the second filling line whose angles are closest to each other as the galvanometer filling trajectory, and laser filling the annular pattern.

[0028] In this method, selecting the first filling line and the second filling line at right angles that are closest to each other as the galvanometer filling trajectory is beneficial to improving the quality of galvanometer processing.

[0029] The present invention also provides a storage medium, in which a computer program is stored. When the computer program is executed, it is used to implement the method described in the claim.

[0030] The beneficial effects of the present invention are as follows: by acquiring the first filling line and the second filling line from the first ray and the second ray at equal angles, the consistency of the laser trajectory in the process of the galvanometer processing the annular pattern is improved, thereby improving the quality of the finished product; by acquiring the first filling line and the second filling line, it is helpful to sort the scanning order of the laser trajectory; by ensuring that the first filling line and the second filling line are within the working range of the galvanometer, it is helpful to prevent the existence of areas on the filling line where the galvanometer cannot function, thereby ensuring the quality of the finished product; by selecting the first filling line and the second filling line whose angles are closest to a right angle as the galvanometer filling trajectory, it is helpful to improve the quality of galvanometer processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic flow chart of a cross-filling method for an annular pattern according to an embodiment of the present invention;

[0032] Figure 2 A schematic diagram of obtaining a first line segment and a second line segment in a method for cross-filling a ring pattern according to an embodiment of the present invention;

[0033] Figure 3 A schematic diagram of intersections of a first line segment, a second line segment, an inner ring polygon and an outer ring polygon in a method for cross-filling a ring pattern according to an embodiment of the present invention;

[0034] Figure 4 A schematic diagram of the intersection of a first line segment, a second line segment and an intermediate polygon in a method for cross-filling a ring pattern according to an embodiment of the present invention;

[0035] Figure 5 A schematic diagram of the intersection of the middle polygon and the inner ring polygon of a cross-filling method for a ring pattern according to an embodiment of the present invention;

[0036] Figure 6 A schematic diagram of the intersection of the middle polygon and the outer ring polygon of a cross-filling method for a ring pattern according to an embodiment of the present invention;

[0037] Figure 7 Schematic diagram of the effect of a cross-filling method for a ring pattern according to an embodiment of the present invention Figure 1 ;

[0038] Figure 8 Schematic diagram of the effect of a cross-filling method for a ring pattern according to an embodiment of the present invention Figure 2 ;

[0039] In the figure: 1, inner ring polygon; 2, outer ring polygon; 3, middle polygon; O, filled center point; x, first ray; y, second ray; θ, second angle; C1, first circular ring; C2, second circular ring; P1, first intersection point; P2, second intersection point; P3, third intersection point; P4, fourth intersection point; L1, first filled intersection point; L2, second filled intersection point; L3, third filled intersection point; L4, fourth filled intersection point; N1, fifth filled intersection point; N2, sixth filled intersection point; N3, seventh filled intersection point; N4, eighth filled intersection point. DETAILED DESCRIPTION

[0040] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.

[0041] Combined with Figure 1 To Attachment Figure 8 As shown, the present invention provides a cross-filling method for an annular pattern, the annular pattern includes an inner ring polygon 1 and an outer ring polygon 2, and the method includes:

[0042] S100: Obtain the filling center point, and with the filling center point as the center of the circle, obtain the first circular ring that is the largest and is contained in the inner ring polygon 1, and obtain the second circular ring that is the smallest and is contained in the outer ring polygon 2.

[0043] For example, Figure 2As shown in the figure, the inner ring polygon 1 and the outer ring polygon 2 are both rectangles, and the center point of the inner ring polygon 1 is the same as the center point of the outer ring polygon 2. The filling center point O is selected from the center point of the diagonal of the inner ring polygon 1. Then, the first circular ring C1 takes the center point of the diagonal of the inner ring polygon 1 as the center and half of the length of the shorter side of the inner ring polygon 1 as the radius; the second circular ring C2 takes the center point of the diagonal of the outer ring polygon 2 as the center and half of the length of the diagonal of the outer ring polygon 2 as the radius.

[0044] Obtaining the filling center point O is helpful to provide a reference for the endpoints of the subsequent first ray x and the second ray y, as well as a reference for the centers of the first circle C1 and the second circle C2. The first circle C1 is maximum contained in the inner ring polygon 1 and the second circle C2 is minimum contained in the outer ring polygon 2, ensuring that the first circle C1 and the second circle C2 have intersections with the first ray x and the second ray y.

[0045] S200: Taking the filling center as a starting point, generating a first ray and a second ray, wherein the first ray and the second ray form a second angle, and the second angle is not equal to 0° or 180°.

[0046] For example, the first angle between the first rays is set to 15°, and a ray is made every 15° starting from the filling center point O. This ray is the first ray x, and a total of 24 first rays x are obtained with the first angle of 15°. The second angle θ is set to 10°, then starting from the filling center point O, a second ray y is made at the positive direction of 10° of the first ray x, and 24 second rays y corresponding to the first ray x are obtained.

[0047] S300: Obtain a first intersection point between the first ray and the first circle, a second intersection point between the second ray and the first circle, a fourth intersection point between the first ray and the second circle, and a third intersection point between the second ray and the second circle.

[0048] For example, Figure 2 As shown in the figure, the intersection point of the first ray x and the first circle C1 is the first intersection point P1, the intersection point of the first ray x and the second circle C2 is the fourth intersection point P4, the intersection point of the second ray y and the first circle C1 is the second intersection point P2, and the intersection point of the second ray y and the second circle C2 is the third intersection point P3.

[0049] S400: Connect the first intersection and the fourth intersection to obtain a first line segment, obtain a first fill line through the first line segment, connect the second intersection and the third intersection to obtain a second line segment, obtain a second fill line through the second line segment, the first fill line and the second fill line have intersections with the outer ring polygon or the inner ring polygon, and the first fill line and the second fill line are set between the outer ring polygon and the inner ring polygon.

[0050] For example, Figure 2 , Attachment Figure 3 As shown in the figure, the first intersection point P1 and the fourth intersection point P4 are connected to obtain the first line segment P1P4. When the first line segment P1P4 does not intersect the intermediate polygon 3 or there is no intermediate polygon 3 between the inner ring polygon 1 and the outer ring polygon 2, the filled intersection point of the first line segment P1P4 and the inner ring polygon 1 is the first filled intersection point L1, the filled intersection point of the first line segment P1P4 and the outer ring polygon 2 is the second filled intersection point L2, the first vector is P1P3, and the line segments connected along the direction of the first vector are: L1L2, that is, the line segment L1L2 is the first filled line, and the adjacent filled intersection points are connected along the vector direction, which is beneficial to distinguish the different filled lines on the first line segment and the second line segment when there are intermediate polygons in the inner ring polygon and the outer ring polygon. At this time, the first filled line has intersections with both the inner ring polygon and the outer ring polygon.

[0051] Connect the second intersection point P2 and the third intersection point P3 to obtain the second line segment P2P3. When the second line segment P2P3 does not intersect the intermediate polygon 3 or there is no intermediate polygon 3 between the inner ring polygon 1 and the outer ring polygon 2, the filled intersection point of the second line segment P2P3 and the inner ring polygon 1 is the fifth filled intersection point N1, the filled intersection point of the second line segment P2P3 and the outer ring polygon 2 is the sixth filled intersection point N2, the second vector is P4P2, and the line segment connected along the direction of the second vector is: N2N1, that is, the line segment N2N1 is the second filled line, and the second filled line has intersection points with both the inner ring polygon and the outer ring polygon.

[0052] Attached Figure 4 It is shown in the figure that there is an intermediate polygon 3 between the inner ring polygon 1 and the outer ring polygon 2, and the intermediate polygon does not intersect with the inner ring polygon and the outer ring polygon, the filled intersection point of the first line segment P1P4 and the inner ring polygon 1 is the first filled intersection point L1, the filled intersection point of the first line segment P1P4 and the outer ring polygon 2 is the second filled intersection point L2, the filled intersection point of the first line segment P1P4 and the intermediate polygon 3 is the third filled intersection point L3 and the fourth filled intersection point L4, and the first filled line connected along the first vector direction is: line segment L1L3 and line segment L4L2, at this time, the first filled line has intersections with both the inner ring polygon and the outer ring polygon;

[0053] Attached Figure 5 and attached Figure 6 As shown in the figure, when the middle polygon and the inner ring polygon have an intersection, the first fill line is between the inner ring polygon and the outer ring polygon and has an intersection with the inner ring polygon or the outer ring polygon, so the line segment L2L3 is the first fill line, and the first fill line only has an intersection with the outer ring polygon; when the middle polygon and the outer ring polygon have an intersection, the line segment L1L2 is the first fill line, and the first fill line only has an intersection with the inner ring polygon.

[0054] Attached Figure 4 It is shown in the figure that there is an intermediate polygon 3 between the inner ring polygon 1 and the outer ring polygon 2, and the intermediate polygon does not intersect with the inner ring polygon and the outer ring polygon, the filled intersection point of the second line segment P2P4 and the inner ring polygon 1 is the fifth filled intersection point N1, the filled intersection point of the second line segment P2P4 and the outer ring polygon 2 is the sixth filled intersection point N2, the filled intersection point of the second line segment P2P4 and the intermediate polygon 3 is the seventh filled intersection point N3 and the eighth filled intersection point N4, and the second filled line connected along the second vector direction is: line segment N2N4 and line segment N3N1, at this time, the second filled line has intersections with both the inner ring polygon and the outer ring polygon;

[0055] Attached Figure 5 and attached Figure 6 As shown in the figure, when the middle polygon and the inner ring polygon have an intersection, the second fill line is between the inner ring polygon and the outer ring polygon and has an intersection with the inner ring polygon or the outer ring polygon, so the line segment N2N3 is the second fill line, and the second fill line only has an intersection with the outer ring polygon; when the middle polygon and the outer ring polygon have an intersection, the line segment N1N2 is the second fill line, and the second fill line only has an intersection with the inner ring polygon.

[0056] The first line segment and the second line segment have an intersection point, so when the first line segment and the second line segment do not intersect with the middle polygon 3, the first line segment and the second line segment must have an intersection point, thereby improving the stability of the ring pattern after laser filling.

[0057] S500: According to the set Yin-Yang carving mode, the ring pattern is filled with laser using the first filling line and the second filling line.

[0058] For example, the first filling line (line segment L1L3 and line segment L4L2) and the second filling line (line segment N2N4 and line segment N3N1) are laser filled in a positive engraving manner.

[0059] Continue to combine Figure 4 and attached Figure 5 As shown, in some embodiments, an intermediate polygon 3 is also included between the inner ring polygon 1 and the outer ring polygon 2, and the cross-filling method for the annular pattern also includes: obtaining a third filling line through the first line segment and the intermediate polygon 3, and obtaining a fourth filling line through the second line segment and the intermediate polygon 3, the third filling line, the fourth filling line and the intermediate polygon have an intersection, and the third filling line and the fourth filling line are arranged in the intermediate polygon 3.

[0060] For example, Figure 4As shown in FIG. 1 , when the middle polygon does not intersect with the inner ring polygon and the outer ring polygon, the third filling line obtained by the first line segment and the middle polygon is line segment L3L4, and the fourth filling line obtained by the second line segment and the middle polygon is N4N3; Figure 5 It is shown in the figure that when the middle polygon intersects with the inner ring polygon, the third fill line obtained through the first line segment and the middle polygon is line segment L1L2, and the fourth fill line obtained through the second line segment and the middle polygon is N1N2; when the middle polygon intersects with the outer ring polygon, the third fill line obtained through the first line segment and the middle polygon is line segment L2L3, and the fourth fill line obtained through the second line segment and the middle polygon is N2N3.

[0061] Continue to combine Figure 4 As shown, in some embodiments, the cross-filling method for the annular pattern further includes: laser filling the middle polygon using the third filling line and the fourth filling line according to the set Yin-Yang carving mode.

[0062] In some embodiments, the annular pattern is filled by a galvanometer, and according to the set Yin-Yang carving mode, it is confirmed that all the first filling lines, second filling lines, third filling lines, and fourth filling lines in the annular pattern obtained through the same second angle are within the working range of the galvanometer, so as to prevent the generated filling lines from having areas that cannot be processed by the galvanometer, thereby ensuring the quality of the finished product.

[0063] In some embodiments, laser filling of the annular pattern includes: within the working range of the galvanometer, selecting all first filling lines and second filling lines obtained by the second angle corresponding to the time when the angles of the first filling line and the second filling line are closest to a right angle as the galvanometer filling trajectory, and laser filling of the annular pattern.

[0064] For example, after all the first filling lines and the second filling lines in the annular pattern are acquired at a second angle of 20°, if there are first filling lines or second filling lines in the annular pattern that are not within the galvanometer processing range, the second angle θ is changed to acquire a second ray y having a different angle from the first ray x, and among the first filling lines and the second filling lines acquired at different second angles θ, all the first filling lines and the second filling lines in the annular pattern that are within the galvanometer working range are selected and retained, and among the retained first filling lines and the second filling lines, the first filling lines and the second filling lines with the angle closest to a right angle are selected as the filling trajectory for galvanometer processing, and this second angle θ is used as the set second angle θ in the processing of this annular pattern.

[0065] Selecting the first filling line and the second filling line at right angles, which are closest to each other in angle, as the galvanometer filling trajectory is beneficial to improving the quality of galvanometer processing.

[0066] Continue to combine Figure 4 As shown, in some embodiments, the cross-filling method for the annular pattern also includes sorting the first fill line and the third fill line according to the first vector direction, and sorting the second fill line and the fourth fill line according to the second vector direction. By sorting the first fill line, the second fill line, the third fill line and the fourth fill line, it is beneficial to operate the scanning order of the laser.

[0067] For example, the first vector is P1P3, and the line segment L1L3 and the line segment L4L2 are sorted along the direction of the first vector, and the sorting result is: line segment L1L3 precedes line segment L4L2; the second vector is P4P2, and the line segment N2N4 and the line segment N3N1 are sorted along the direction of the second vector, and the sorting result is: line segment N2N4 precedes line segment N3N1. After obtaining the order of the first fill line and the second fill line, the first fill lines and the third fill lines on different first rays can be sorted in ascending order according to the angle of the first ray, and the second fill lines and the fourth fill lines on the second ray corresponding to the first ray can be sorted.

[0068] At the same time, the starting point and end point of the laser track can be sorted according to the filling intersection point. For example, with (-600, 0) as the center, an inner ring polygon with a diameter of 120mm and an outer ring polygon with a diameter of 160mm, this ring is cross-filled with positive carving, the filling spacing is 10mm, and the angle between the first filling line and the second filling line is 15°, and the following table is obtained:

[0069]

[0070] Among them: SPt_X represents the horizontal coordinate of the starting point of the laser track, SPt_Y represents the vertical coordinate of the starting point of the laser track, EPt_X represents the horizontal coordinate of the ending point of the laser track, EPt_Y represents the vertical coordinate of the ending point of the laser track, respectively representing the horizontal and vertical coordinate values ​​of the starting point and ending point of the fill line, and the 5th and 10th columns represent the sorting results of the fill lines.

[0071] In some embodiments, obtaining the filling center point O includes: obtaining the center of the inner ring polygon 1 of the inner ring polygon 1, and if the center of the inner ring polygon 1 is inside the inner ring polygon 1, then confirming that the center of the envelope box is the filling center point O; if the center of the inner ring polygon 1 is not inside the inner ring polygon 1, obtaining the intersection of the ray of the center of the inner ring polygon 1 and the inner ring polygon 1, connecting the adjacent intersection points on the ray to obtain the first line segment, obtaining the first midpoint of the first line segment, and taking the first midpoint closest to the center of the inner ring polygon 1 as the filling center point O.

[0072] Ensure that the filling center point O is within the inner ring polygon 1, thereby ensuring that the ray with the filling center point O as the endpoint has intersections with both the inner ring polygon 1 and the outer ring polygon 2; when the center of the inner ring polygon 1 is not within the inner ring polygon 1, selecting the first midpoint of the first line segment closest to the center of the inner ring polygon 1 as the filling center point O can make the filling center point O as close to the center of the inner ring polygon 1 as possible, thereby ensuring that the filling center point O is as close as possible to the center point of the inner ring polygon 1.

[0073] In some embodiments, obtaining the first circular ring C1 that is largest within the inner ring polygon 1 includes: calculating the square of the distance between each edge of the inner ring polygon 1 and the filling center point O, calculating the square of the distance between each vertex of the inner ring polygon 1 and the filling center point O, and selecting the minimum value of the square of the distance as the square of the radius of the first circular ring C1.

[0074] Obtaining the first circular ring C1 that is contained in the inner ring polygon 1 is beneficial to reducing the amount of calculation of the first ray x and the second ray y. Selecting the minimum value of the square of the distance as the square of the radius of the first circular ring C1 ensures that the first circular ring C1 is completely contained in the inner ring polygon 1.

[0075] In some embodiments, obtaining the minimum second circular ring C2 that contains the outer ring polygon 2 includes: calculating the square of the distance between each edge of the outer ring polygon 2 and the filling center point O, calculating the square of the distance between each vertex of the outer ring polygon 2 and the filling center point O, and selecting the maximum value of the square of the distance as the square of the radius of the second circular ring C2.

[0076] Obtaining the minimum second circular ring C2 that contains the outer ring polygon 2 is beneficial to reducing the amount of calculation of the first ray x and the second ray y. Selecting the maximum value of the square of the distance as the square of the radius of the second circular ring C2 ensures that the outer ring polygon 2 is completely contained in the second circular ring C2.

[0077] Continue to combine Figure 2 and attached Figure 3 As shown, in some embodiments, according to the first ray x, the second ray y, the first ring C1, and the second ring C2, the first intersection point P1 and the second intersection point P2 of the first ray x and the second ray y with the first ring C1, the third intersection point P3 and the fourth intersection point P4 of the first ray x and the second ray y with the second ring C2 are obtained, including: the intersection point of the first ray x with the first ring C1 is the first intersection point P1, the intersection point of the first ray x with the second ring C2 is the fourth intersection point P4, the intersection point of the second ray y with the first ring C1 is the second intersection point P2, and the intersection point of the second ray y with the second ring C2 is the third intersection point P3, ensuring that there is an intersection between the first line segment and the second line segment.

[0078] The present invention also provides a storage medium, in which a computer program is stored. When the computer program is executed, it is used to implement the method described in the claim.

[0079] In summary, the present invention provides a cross-filling method and storage medium for an annular pattern, which improves the consistency of the laser trajectory of the galvanometer in the process of processing the annular pattern by obtaining the first filling line and the second filling line from the first ray and the second ray at equal angles, thereby improving the quality of the finished product; by obtaining the first filling line and the second filling line, it is helpful to sort the scanning order of the laser trajectory; by ensuring that the first filling line and the second filling line are within the working range of the galvanometer, it is helpful to prevent the existence of areas on the filling line where the galvanometer cannot function, thereby ensuring the quality of the finished product; by selecting the first filling line and the second filling line that are at right angles closest to the first filling line and the second filling line as the galvanometer filling trajectory, it is helpful to improve the quality of galvanometer processing.

[0080] The above implementation modes are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with this technology to understand the content of the present invention and implement it, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A cross-filling method for an annular pattern, wherein the annular pattern comprises an inner ring polygon and an outer ring polygon, It is characterized in that The method comprises: Obtain a filling center point, and taking the filling center point as the center of a circle, obtain a first circular ring that is the largest circular ring contained in the inner ring polygon, and obtain a second circular ring that is the smallest circular ring containing the outer ring polygon; Taking the filling center point as a starting point, generating a first ray and a second ray, wherein the first ray and the second ray form a second angle, and the second angle is not equal to 0° or 180°; Obtain a first intersection point between the first ray and the first circular ring, a second intersection point between the second ray and the first circular ring, a fourth intersection point between the first ray and the second circular ring, and a third intersection point between the second ray and the second circular ring; Connect the first intersection point and the third intersection point to obtain a first line segment, obtain a first fill line through the first line segment, connect the second intersection point and the fourth intersection point to obtain a second line segment, obtain a second fill line through the second line segment, the first fill line and the second fill line have an intersection with the outer ring polygon or the inner ring polygon, and the first fill line and the second fill line are arranged between the outer ring polygon and the inner ring polygon; According to the set Yin-Yang carving mode, the annular pattern is laser filled using the first filling line and the second filling line.

2. The cross-filling method for annular patterns according to claim 1, It is characterized in that There is also an intermediate polygon between the inner ring polygon and the outer ring polygon, and the method also includes: obtaining a third fill line through the first line segment and the intermediate polygon, and obtaining a fourth fill line through the second line segment and the intermediate polygon, the third fill line, the fourth fill line and the intermediate polygon have an intersection, and the third fill line and the fourth fill line are set in the intermediate polygon.

3. The cross-filling method for annular patterns according to claim 2, It is characterized in that Also includes: According to the set Yin-Yang carving mode, the middle polygon is laser filled using the third filling line and the fourth filling line.

4. The cross-filling method for annular patterns according to claim 2, It is characterized in that The annular pattern is filled by a galvanometer, and according to the set Yin-Yang carving mode, it is confirmed that all the first filling lines, second filling lines, third filling lines and fourth filling lines in the annular pattern obtained through the same second angle are within the working range of the galvanometer.

5. The cross-filling method for annular patterns according to claim 4, It is characterized in that The laser filling of the annular pattern includes: within the working range of the galvanometer, selecting all the first filling lines and the second filling lines obtained by the second angle corresponding to when the angles of the first filling line and the second filling line are closest to a right angle as the galvanometer filling trajectory, and laser filling the annular pattern.

6. The cross-filling method for annular patterns according to claim 2, It is characterized in that The method further includes sorting the first fill line and the third fill line according to a first vector direction, and sorting the second fill line and the fourth fill line according to a second vector direction.

7. The cross-filling method for an annular pattern according to claim 1, It is characterized in that The method of obtaining the filling center point includes: obtaining the center of the inner ring polygon of the inner ring polygon, and if the center of the inner ring polygon is inside the inner ring polygon, confirming that the center of the envelope box is the filling center point; if the center of the inner ring polygon is not inside the inner ring polygon, obtaining the intersection of the ray of the center of the inner ring polygon and the inner ring polygon, connecting adjacent intersection points on the ray to obtain a first line segment, obtaining a first midpoint of the first line segment, and taking the first midpoint closest to the center of the inner ring polygon as the filling center point.

8. The cross-filling method for annular patterns according to claim 1, It is characterized in that The method of obtaining the first circular ring that is largest in the inner ring polygon includes: calculating the square of the distance between each edge of the inner ring polygon and the filling center point, calculating the square of the distance between each vertex of the inner ring polygon and the filling center point, and selecting the minimum value of the square of the distance as the square of the radius of the first circular ring.

9. The cross-filling method for annular patterns according to claim 1, It is characterized in that The method of obtaining the minimum second circular ring that contains the outer ring polygon includes: calculating the square of the distance between each edge of the outer ring polygon and the filling center point, calculating the square of the distance between each vertex of the outer ring polygon and the filling center point, and selecting the maximum value of the square of the distance as the square of the radius of the second circular ring.

10. A storage medium, It is characterized in that The storage medium stores a computer program, which is used to implement the method according to any one of claims 1 to 9 when executed.