A method, device and medium for removing right-angle copper foil
By decomposing the copper skin shape of the power layer of the PCB board into ink segments, and screening out vertically intersected straight segments for arc connection, the problems of low efficiency and omission of manual processing of right-angle copper skin are solved, and safety and efficiency are improved.
Patent Information
- Application Number
- CN202211625528.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-16
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2042-12-16
AI Technical Summary
In the prior art, relying on manual smoothing of right-angle copper skin on PCB boards is a large workload and is prone to omissions, resulting in the inability to guarantee safety.
By obtaining the copper skin shape of the power layer of the PCB board, decompose it into ink segments, filter out vertically intersected straight line segments as the to-process line segments, and use arc connections to remove the right angle part to achieve smoothing processing.
Effectively remove the right-angle copper skin on the PCB board, avoiding the risk of discharge, improving safety, reducing human omissions, and improving processing efficiency.
Smart Images

Figure CN115802634B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of circuit design technology, and in particular to a method, device and medium for removing right-angle copper foil. Background Art
[0002] In printed circuit board (PCB) design, separate current layers are designed to accommodate the required current paths. Given the wide variety of currents, large copper sheets are laid on the inner layers where needed, tailored to the board's design. Copper sheets with different power characteristics are separated by anti-etch lines, and during the actual PCB manufacturing process, cutting is performed along these lines.
[0003] However, because PCB designs often involve intersecting ink lines, these lines also create intersections when cutting along them. These intersections create 90-degree corners in the copper foil, also known as 90-degree copper edges. Because 90-degree corners in large copper foil can create a risk of electrical discharge, to avoid these, small ink lines are manually added to smooth out the existing corners during PCB design. However, this method is not only labor-intensive, but also inherently prone to omissions and other issues due to manual processing, making PCB design security uncertain.
[0004] Therefore, technicians in this field are in urgent need of a method for removing right-angle copper foil to solve the problems of manual smoothing of right-angle copper foil, which is labor-intensive and prone to omissions. Summary of the Invention
[0005] The purpose of this application is to provide a method, device and medium for removing right-angle copper foil, so as to solve the problems of currently relying on manual smoothing of right-angle copper foil, which is labor-intensive and prone to omissions.
[0006] To solve the above technical problems, the present application provides a method for removing right-angle copper foil, comprising:
[0007] Get the copper shape of the PCB power layer and decompose it into ink line segments;
[0008] Two vertically intersecting straight line segments in the ink line segments are used as a group of line segments to be processed, and corresponding line segments to be processed are determined;
[0009] Smoothing is performed on the right-angle intersections of each group of line segments to be processed.
[0010] Preferably, two vertically intersecting straight line segments in the ink line segments are used as a group of line segments to be processed, and the corresponding line segments to be processed are determined to include:
[0011] Traverse each ink line segment and determine the straight line segment in each ink line segment;
[0012] Traverse each straight line segment, and whenever two straight line segments intersect, treat them as a group of intersecting line segments to determine the corresponding intersecting line segments;
[0013] It is determined whether the two ink line segments in each group of intersecting line segments are perpendicular, and the perpendicular intersecting line segments are determined as the line segments to be processed.
[0014] Preferably, smoothing the right-angle intersections of each group of line segments to be processed includes:
[0015] Take the intersection of the two ink line segments as the starting point and the preset length as the length, and cut off the right-angle intersection of the two ink line segments;
[0016] The intersection points of the two ink line segments are connected by an arc, where the arc is a quarter of a circle with a preset length as the radius.
[0017] Preferably, determining the straight line segments in each ink line segment includes:
[0018] Randomly select at least three coordinate points on the ink line segment and determine whether the ink line segment is a straight line segment according to the vector collinearity theorem.
[0019] Preferably, determining the straight line segments in each ink line segment includes:
[0020] Take at least three coordinate points on the ink line segment, and determine a line segment with every two adjacent coordinate points. If the slopes of the line segments are exactly the same, then the ink line segment is a straight line segment.
[0021] Preferably, each straight line segment is traversed, and each intersection of two straight line segments is regarded as a group of intersecting line segments, so as to determine that the corresponding intersecting line segments include:
[0022] Take any two straight line segments and determine their respective starting and ending coordinates;
[0023] According to the coordinates of the starting point and the end point, it is determined whether the two straight line segments have an overlapping point. If so, the two straight line segments intersect and form a set of intersecting line segments.
[0024] Preferably, determining whether two ink line segments in the intersecting line segments are perpendicular includes:
[0025] Take the vectors of the two ink line segments respectively, and determine whether the two ink line segments are perpendicular to each other according to the vector perpendicularity theorem.
[0026] In order to solve the above technical problems, the present application also provides a right-angle copper sheet removal device, comprising:
[0027] The ink line decomposition module is used to obtain the copper shape of the PCB power layer and decompose it into ink line segments;
[0028] An ink line screening module is used to determine corresponding line segments to be processed from the ink line segments by taking two vertically intersecting straight line segments as a group of line segments to be processed;
[0029] The smoothing processing module is used to smooth the right-angle intersection parts of each group of line segments to be processed.
[0030] In order to solve the above technical problems, the present application also provides a right-angle copper sheet removal device, comprising:
[0031] Memory for storing computer programs;
[0032] The processor is used to implement the steps of the above-mentioned right-angle copper foil removal method when executing a computer program.
[0033] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned right-angle copper foil removal method are implemented.
[0034] The present application provides a method for removing right-angle copper foil. The method obtains the copper foil shape of the power layer of a PCB board composed of several ink line segments, decomposes it back into ink line segments, and thereby determines the vertically intersecting straight line segments from each ink line segment to find the right-angle portion in the copper foil shape. Finally, the right-angle portion determined above is smoothed to remove the right-angle copper foil. After the right angles are removed by the above method, the PCB board will not have right-angle copper foil during the formal production process, thereby avoiding the discharge phenomenon that may occur with the right-angle copper foil, thereby ensuring the safety of the PCB board. At the same time, the above method does not require human intervention, can effectively solve the omission problem in the process of removing the right-angle copper foil, and further ensures the safety of the PCB board.
[0035] The right-angle copper foil removal device and computer-readable storage medium provided in this application correspond to the above method and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0037] Figure 1 A flow chart of a method for removing right-angle copper foil provided by the present invention;
[0038] Figure 2 This is a schematic diagram of a group of line segments to be processed before smoothing;
[0039] Figure 3is a schematic diagram of a group of line segments to be processed after smoothing;
[0040] Figure 4 A structural diagram of a right-angle copper sheet removal device provided by the present invention;
[0041] Figure 5 This is a structural diagram of another right-angle copper skin removal device provided by the present invention. DETAILED DESCRIPTION
[0042] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0043] The core of this application is to provide a method, device and medium for removing right-angle copper foil.
[0044] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0045] Currently, there are numerous PCB design software programs on the market, offering comprehensive features and ease of use. Using these software to draw PCB circuit diagrams and guide PCB production has become mainstream. In PCB design, ink lines are used as dividing lines between current layers. Therefore, if two ink line segments intersect perpendicularly, this will create a 90-degree copper boundary during actual PCB production, posing a risk of electrical discharge. Therefore, in actual PCB design, designers must manually add smooth ink lines at each 90-degree corner to remove the right-angle copper. Understandably, complex PCB designs often involve numerous right-angle intersections, making manual removal extremely labor-intensive. Furthermore, due to the complex PCB layout and numerous right-angle intersections, these intersections can easily be missed, resulting in the presence of right-angle copper on the final PCB, posing a safety hazard.
[0046] In order to solve the above problems, the present application provides a method for removing right-angle copper foil, such as Figure 1 Shown, including:
[0047] S1: Get the copper shape of the power layer of the PCB board and decompose it into ink line segments.
[0048] In actual PCB board design, the shape of the power layer (also known as the power layer) itself is composed of ink line segments. Function tools such as the axlsetFindFilter function can be used to obtain the copper shape of the power layer and then decompose it into several ink line segments.
[0049] S2: taking two vertically intersecting straight line segments from the ink line segments as a group of line segments to be processed, and determining corresponding line segments to be processed.
[0050] It should be noted that even if the ink segments obtained from the copper foil shape decomposition described above intersect, they can only have two intersecting "L"-shaped segments. For example, a "cross" shape should be decomposed into four ink segments at the intersection point, equivalent to two sets of non-coexisting "L"-shaped intersecting segments. Similarly, a "T" shape is decomposed into three ink segments at the intersection point, equivalent to two sets of coexisting "L"-shaped intersecting segments. In other words, for each decomposed ink segment, if two ink segments intersect, they must be "L"-shaped intersections. This characteristic can be used to determine whether any two ink segments intersect.
[0051] It should also be noted that one ink line segment may intersect vertically with multiple different ink line segments, and the line segments to be processed determined may be one group or multiple groups.
[0052] S3: Smoothing the right-angle intersections of each group of line segments to be processed.
[0053] Smoothing means removing the right angles and replacing the original right angles with smooth curve segments such as arcs.
[0054] Specifically, this embodiment provides a preferred solution for smoothing processing, and the above step S3 includes:
[0055] S31: With the intersection of the two ink line segments as a starting point and a preset length as a length, cutting off the right-angle intersection portion of the two ink line segments.
[0056] S32: connecting the intersection points of the two ink line segments with an arc, wherein the arc is a quarter arc with the preset length as the radius.
[0057] It should be noted that the above-mentioned preset length should be determined according to the actual PCB design specifications.
[0058] To further illustrate the preferred solution provided by this embodiment, Figure 2 and Figure 3 Further explanation of the above steps:
[0059] For example, Figure 2As shown, the preset length is d mils (mil), there are two vertically intersecting ink line segments i and j, the intersection of the two ink line segments is D (Jx, Jy), the unit direction vector of the ink line segment i is uniti (unit ix, unit iy), and the unit direction vector of the ink line segment j is unitj (unit jx, unit jy).
[0060] First, take the intersection point D as the starting point and the preset length d as the length to determine the intersection point D of the ink line segments i and j. i (d* unit ix +Jx, d* unit iy +Jy) and D j (d* unit jx +Jx, d* unit jy +Jy). Accordingly, the right angle part to be cut off is D i D and D j D.
[0061] Furthermore, according to points D and D i and D j A square can be determined. The other point of the square is D' (d*unit ix + d*unit jx +Jx, d*unit iy + d*unit jy +Jy). Draw a circle with D' as the center and d as the radius, which is tangent to point D. i and D j , the quarter arc determined is the ink line after smoothing, such as Figure 3 shown.
[0062] It should be noted that, in fact, it is only necessary to draw the required arc in step S32 to complete the removal of the right-angle copper foil, because in the actual PCB production process, cutting will be performed along the drawn ink line. Even if the original right-angle part is not removed, when the arc cutting determined along the above step S32 is completed, there will be no 90-degree right-angle turning point. The above-mentioned scheme for removing the ink line of the right-angle part is only a preferred implementation scheme, the purpose of which is to reduce useless ink lines, reduce the complexity of the PCB ink line diagram, and also help to reduce unnecessary waste of resources in actual production.
[0063] The present application provides a method for removing right-angle copper foil. The method is to disassemble the copper foil shape of the PCB power layer back into individual ink line segments, and then compare each ink line segment to see whether there is a group of ink line segments that satisfy the conditions that the two ink line segments are straight and intersect each other perpendicularly. A group of ink line segments that meet the above conditions will produce ink line segments of 90-degree right-angle copper foil. Finally, these ink line segments are smoothed to achieve the removal of right-angle copper foil. The above method can effectively remove the right-angle copper foil in the PCB power layer, avoiding the safety hazards caused by the possible discharge of the right-angle copper foil. At the same time, the above method does not require human participation and is applicable to various complex PCB designs. It is beneficial to improve the efficiency of right-angle copper foil removal and can avoid the error and omission problems caused by human factors.
[0064] Furthermore, for the method of determining the line segments to be processed in the above step S2, this embodiment provides a more specific implementation scheme. Step S2: from the ink line segments, two vertically intersecting straight line segments are used as a group of line segments to be processed, and determining the corresponding line segments to be processed further includes:
[0065] S21: traverse each ink line segment and determine the straight line segment in each ink line segment.
[0066] It is easy to understand that for the split ink line segment, if it is a curved segment, it is impossible to produce a 90-degree right-angle copper foil. Therefore, step S21 first determines whether each ink line segment is a straight line segment, removes the non-straight part of the ink line segment, and reduces the processing pressure of subsequent steps.
[0067] S22: traverse each straight line segment, and whenever two straight line segments intersect, treat them as a group of intersecting line segments, so as to determine the corresponding intersecting line segments.
[0068] After determining each straight line segment, the two conditions of perpendicularity and intersection must be met before a group of line segments to be processed need to remove the right-angle copper foil. Step S22 first determines whether the two ink line segments meet the intersection condition and further screens the ink line segments.
[0069] S23: Determine whether two ink line segments in each group of intersecting line segments are perpendicular to each other, and determine the perpendicular intersecting line segments as line segments to be processed.
[0070] It's easy to understand that this embodiment is a preferred solution proposed for efficiency considerations in actual data processing. Therefore, the sequence used is to first determine whether a line segment is a straight line segment, then determine whether two straight line segments intersect, and finally determine whether the intersecting straight line segments are perpendicular. In fact, the order of determining whether a line segment is a straight line segment, whether it intersects, and whether it is perpendicular is not restricted and can be freely determined based on actual circumstances and needs.
[0071] In addition, this embodiment does not limit the above-mentioned method of determining whether the ink line segment is a straight line segment, whether it intersects, or whether it is vertical, but provides several possible implementation plans.
[0072] For determining whether the ink line segment is a straight line segment, this embodiment provides a possible implementation scheme, step S21 is:
[0073] S21-A: Randomly select at least three coordinate points on the ink line segment and determine whether the ink line segment is a straight line segment according to the vector collinearity theorem.
[0074] Specifically, the principle of vector collinearity requires at least two vectors, which means at least three coordinate points. To improve the accuracy of determining whether a line segment is a straight line, the more coordinate points the better. However, to improve efficiency, three coordinate points are preferably sufficient. Furthermore, this embodiment also provides a preferred implementation for selecting coordinate points: three coordinate points are evenly spaced along the ink line segment.
[0075] Furthermore, the method of determining whether an ink line segment is a straight line segment in this embodiment is described with reference to an example:
[0076] Take three coordinate points A (x1, y1), B (x2, y2), and C (x3, y3) in the ink line segment, and you can determine vector AB (x2-x1, y2-y1) and vector BC (x3-x2, y3-y2). According to the vector collinearity theorem, vector AB and vector BC must satisfy:
[0077] (y2-y1)*(x3-x2)-(x2-x1)*(y3-y2)=0;
[0078] This shows that vector AB and vector BC are collinear, that is, the ink line segment where the coordinate points A, B, and C are located is a straight line segment.
[0079] In addition to the above-mentioned solution for determining whether the ink line segment is a straight line segment, this embodiment further provides a preferred solution, in which step S21 can be:
[0080] S21-B: Randomly select at least three coordinate points on the ink line segment, and determine a line segment for every two adjacent coordinate points. If the slopes of the line segments are exactly the same, then the ink line segment is a straight line segment.
[0081] Similarly to the above, if you want to ensure higher judgment accuracy, you can take more coordinate points for judgment, but taking three coordinate points is a preferred solution to ensure efficiency. When explaining this embodiment with examples below, three coordinate points are also used for explanation.
[0082] Similarly, take three coordinate points A (x1, y1), B (x2, y2), and C (x3, y3) on a certain ink line segment. There are also vectors AB (x2-x1, y2-y1) and BC (x3-x2, y3-y2). Calculate the slopes of vectors AB and BC respectively. If the two slopes are the same, it means that the ink line segment is a straight line segment.
[0083] It should be noted that in applications where a larger number of coordinate points are used, the two vectors used to compare their slopes for determining whether a line segment is a straight line should have a common point; otherwise, even if their slopes are the same, the line segment cannot be considered a straight line. Alternatively, as in step S21-B above, the line segment can be considered a straight line only when all vectors have the same slope.
[0084] It should also be noted that when comparing whether the slopes are consistent, only the absolute value part needs to be compared, and the positive or negative sign is determined by the direction of the vector.
[0085] As the above embodiment provides an implementation scheme for determining whether an ink line segment is a straight line, this embodiment also provides a possible implementation scheme for determining whether the ink line segments intersect. Step S22 includes:
[0086] S221: Take any two straight line segments and determine their respective starting point coordinates and end point coordinates.
[0087] S222: Determine whether the two straight line segments have an overlapping point based on the starting point coordinates and the end point coordinates. If so, the two straight line segments intersect and form a set of intersecting line segments.
[0088] As clearly demonstrated in the above embodiments, the only vertical intersections between the split ink line segments are "L"-shaped. Therefore, two vertically intersecting ink line segments must have a point of overlap, meaning that their starting or ending points must share a common point. Based on this principle, determining whether two ink line segments intersect can be done by determining whether they share a common starting or ending point.
[0089] Exemplarily, the starting point of ink segment i is starti(xi1, yi1), and the end point is endi(xi2, yi2); the starting point of ink segment j is startj(xj1, yji), and the end point is endj(xj2, yj2).
[0090] Then use the point-to-point distance formula:
[0091] ;
[0092] The distances from starti to startj, starti to endj, endi to startj, and endi to endj can be determined. If any of the above four distances is 0, it means that the two ink line segments intersect, otherwise they do not intersect, thereby simply and conveniently determining whether the two ink line segments intersect.
[0093] In addition, this embodiment also provides a possible implementation scheme for determining whether two line segments are perpendicular. Step S23 is:
[0094] S23: Take the vectors of the two ink line segments respectively, and determine whether the two ink line segments are perpendicular to each other according to the vector perpendicularity theorem.
[0095] Similar to the process for determining whether a line segment is a straight line, we first perform a vector operation on each line segment. For example, we obtain vector I (xi2-xi1, yi2-yi1) for line segment i and vector J (xj2-xj1, yj2-yj1) for line segment j. According to the vector perpendicularity theorem, if vectors I and J satisfy I*J=0, that is, (xj2-xj1)(xj2-xj1)+(yi2-yi1)(yj2-yj1)=0, then the two vectors are perpendicular, and therefore the two line segments are perpendicular to each other.
[0096] This embodiment provides corresponding preferred solutions for determining whether an ink line segment is a straight line segment, whether it intersects, and whether it is perpendicular. It provides a simple and convenient method for implementing the above-mentioned right-angle copper foil removal method, which is conducive to improving the efficiency of PCB right-angle copper foil removal and reducing the implementation difficulty, better meeting the needs of right-angle copper foil removal in actual PCB design.
[0097] In order to more clearly and in detail illustrate the method for removing right-angle copper foil provided by the present application, the following is further explained with reference to examples and the preferred solutions provided in the above embodiments:
[0098] This method can be implemented on any device or equipment with a certain data processing capability. Considering that PCB design software usually runs on computers and other devices, this method can also be run on computers in the form of software to achieve the removal of right-angle copper foil, including the following steps:
[0099] 1. Use the function tool axlsetFindFilter to filter the copper shape of the power layer of the PCB board and put it into the list shape.
[0100] The naming format is m_shape, where m represents the mth copper shape in the list.
[0101] 2. Traverse each copper shape in the list m_shape, and for each copper shape, obtain the ink line segments that make up the m_shape shape and put them into their corresponding lists m_shapeline.
[0102] The naming format of each ink line segment is m_shapeline_n. Similarly, n represents the nth ink line segment in the list.
[0103] 3. Traverse each ink line segment in the list m_shapeline and select any three coordinate points A (x1, y1), B (x2, y2), and C (x3, y3) from the ink line segment m_shapeline_n.
[0104] 4. Draw vector AB (x2-x1, y2-y1) and vector BC (x3-x2, y3-y2). Use the vector collinearity theorem to determine whether vector AB and vector BC are collinear. If they are collinear, keep them in the list m_shapeline; otherwise, remove them from the list m_shapeline.
[0105] If vector AB and vector BC are collinear, it means that the ink line segment is a straight line and should be included in the subsequent right-angle copper removal step, so it is retained; if vector AB and vector BC are not collinear, it means that the ink line segment is an arc. Right-angle copper can only exist in two perpendicularly intersecting straight line segments, so it does not need to participate in the subsequent steps and is removed from the list.
[0106] 5. Establish a double loop for the list m_shapeline. The ink line segments in the outer loop list m_shapeline are called line_i, and the ink line segments in the inner loop list m_shapeline are called line_j (excluding itself). The starting point and end point of each group of line_i and line_j are starti(xi1, yi1), endi(xi2, yi2), startj(xj1, yji), and endj(xj2, yj2) respectively.
[0107] The two-layer loop is used to combine each ink line segment in the list with all other line segments in the list to determine the corresponding starti(xi1,yi1), endi(xi2,yi2), startj(xj1,yji), and endj(xj2,yj2).
[0108] 6. For each group of ink line segments in step 5 above, calculate the distances from starti to startj, starti to endj, endi to startj, and endi to endj according to the point-to-point distance formula. If any of the above four distances is 0, proceed to step 7.
[0109] If the existence distance value is 0, it means that there is a common point between the starting point and the end point of the two ink line segments, which further indicates that the two ink line segments are in an intersecting relationship.
[0110] 7. For each set of ink line segments that meets the conditions in step 6, take the vectors of the two ink line segments, I (xi2-xi1, yi2-yi1) and J (xj2-xj1, yj2-yj1). Determine whether the two vectors are perpendicular according to the vector perpendicularity theorem. If they are perpendicular, proceed to step 8.
[0111] 8. Determine the intersection point D (Jx, Jy) of the two ink line segments. Take the unit direction vector uniti (unit ix, unit iy) of the ink line segment line_i and the unit direction vector unitj (unit jx, unit jy) of the ink line segment line_j starting from D. Based on the preset length d (in mils) determined by the PCB design specification, determine the point D on which the unit vector of the ink line segment is d long. i (d* unit ix +Jx, d* unit iy +Jy) and D j (d* unit jx +Jx, d* unit jy +Jy); take points D, D i and D j A square is determined as a vertex, and the other vertex of the square is D' (d* unit ix + d* unit jx +Jx, d* unit iy + d* unit jy +Jy).
[0112] 9. Delete line segment D i D and D j D, draw point D with D' as the center and d as the radius i and D j 90 degree arc between them.
[0113] By repeating the above steps, all right-angle copper strips in various PCB copper strip shapes are removed, thus preventing the presence of right-angle copper strips that may cause discharge in the produced PCB boards, thereby ensuring safety. The entire process does not require manual intervention, ensuring efficiency while preventing the omission of right-angle copper strips, further ensuring the reliability of the PCB design.
[0114] In the above embodiment, a method for removing right-angle copper foil is described in detail. This application also provides a corresponding embodiment of a device for removing right-angle copper foil. It should be noted that this application describes the embodiments of the device from two perspectives: one is based on the functional module perspective, and the other is based on the hardware perspective.
[0115] Based on the perspective of functional modules, this embodiment provides a right-angle copper sheet removal device, such as Figure 4 Shown, including:
[0116] The ink line decomposition module 41 is used to obtain the copper shape of the power layer of the PCB board and decompose it into ink line segments;
[0117] An ink line screening module 42 is used to determine corresponding line segments to be processed from the ink line segments by taking two vertically intersecting straight line segments as a group of line segments to be processed;
[0118] The smoothing processing module 43 is used to perform smoothing processing on the right-angle intersection parts of each group of line segments to be processed.
[0119] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and they will not be repeated here.
[0120] The present embodiment provides a device for removing right-angle copper foil. The device uses an ink line decomposition module to obtain the copper foil shape of the power layer of a PCB board and decomposes it back into a number of ink line segments for subsequent processing. The device then uses an ink line screening module to screen the ink line segments obtained from the decomposition, and selects each group of ink line segments that satisfies the requirement that two ink line segments are straight segments and intersect perpendicularly with each other as segments to be processed, so as to facilitate subsequent removal of right-angle copper foil. Finally, a smoothing module smoothes the ink line segments with right-angle copper foil screened out by the ink line screening module to remove the right-angle copper foil and ensure the safety of the PCB board. The device for removing right-angle copper foil from the power layer of a PCB, implemented by the device, does not require human intervention, effectively solves the problem of omissions caused by human factors, and has a higher removal efficiency.
[0121] Figure 5 This is a structural diagram of a right-angle copper sheet removal device provided in another embodiment of the present application, such as Figure 5 As shown, a right-angle copper foil removal device includes: a memory 50 for storing a computer program;
[0122] The processor 51 is configured to implement the steps of a right-angle copper foil removal method according to the above embodiment when executing a computer program.
[0123] The right-angle copper foil removal device provided in this embodiment may include but is not limited to a smartphone, a tablet computer, a laptop computer, or a desktop computer.
[0124] Among them, the processor 51 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 51 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 51 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 51 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 51 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0125] The memory 50 may include one or more computer-readable storage media, which may be non-transitory. The memory 50 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 50 is at least used to store the following computer program 501, wherein, after the computer program is loaded and executed by the processor 51, it can implement the relevant steps of a right-angle copper foil removal method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 50 may also include an operating system 502 and data 503, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 502 may include Windows, Unix, Linux, etc. The data 503 may include but is not limited to a right-angle copper foil removal method, etc.
[0126] In some embodiments, a right-angle copper foil removal device may further include a display screen 52 , an input / output interface 53 , a communication interface 54 , a power supply 55 , and a communication bus 56 .
[0127] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation of a right-angle copper skin removal device, and may include more or fewer components than shown in the figure.
[0128] An embodiment of the present application provides a device for removing right-angle copper foil, including a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: a method for removing right-angle copper foil.
[0129] This embodiment provides a device for removing right-angle copper foil. A processor executes a computer program stored in memory to obtain the copper foil shape of a PCB power layer and decompose it back into a number of ink line segments for subsequent processing. The device then selects the ink line segments obtained from the decomposition to identify groups of segments where two straight segments intersect perpendicularly, as segments to be processed for subsequent right-angle copper foil removal. Finally, the selected ink line segments containing right-angle copper foil are smoothed to remove the right-angle copper foil and ensure the safety of the PCB. This device eliminates the need for human intervention in the removal of right-angle copper foil from the PCB power layer, effectively addressing the issue of omissions caused by human error and achieving higher removal efficiency.
[0130] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiment.
[0131] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and executes all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.
[0132] This embodiment provides a computer-readable storage medium. When the computer program stored therein is executed, it can obtain the shape of the copper foil on the power layer of a PCB board and decompose it back into a number of ink line segments for subsequent processing. Then, the ink line segments obtained by the decomposition are screened, and each group of ink line segments in which two ink line segments are straight segments and intersect perpendicularly with each other is selected as the line segments to be processed, so as to facilitate the subsequent removal of right-angle copper foil. Finally, the screened ink line segments containing right-angle copper foil are smoothed to remove the right-angle copper foil and ensure the safety of the PCB board. The right-angle copper foil removal process implemented by the above-mentioned right-angle copper foil removal device does not require human intervention, effectively solves the problem of omission caused by human factors, and has higher removal efficiency.
[0133] The above is a detailed introduction to a right-angle copper foil removal method, device and medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.
[0134] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
Claims
1. A method for removing right-angle copper foil, characterized in that: include: Use the function tool to obtain the copper shape of the PCB power layer and decompose it into ink line segments; Traverse each ink line segment and determine the straight line segment in each ink line segment; Traverse each straight line segment, and whenever two straight line segments intersect, treat them as a group of intersecting line segments to determine the corresponding intersecting line segments; Determine whether the two ink line segments in each group of intersecting line segments are perpendicular, and determine the perpendicular intersecting line segments as the line segments to be processed; wherein, the two straight line segments in any group of line segments to be processed are "L"-shaped intersections; Take the intersection of the two ink line segments as the starting point and the preset length as the length, and cut off the right-angle intersection of the two ink line segments; Connect the interception points of the two ink line segments with an arc, wherein the arc is a quarter-circle arc with a preset length as a radius; the center of the arc is the other vertex in a square determined by the intersection point of the two ink line segments and the interception point as vertices; the interception point is the other endpoint of a line segment with the intersection point as one endpoint and the preset length as the length, respectively determined on the two ink line segments; Wherein, determining the straight line segments in each ink line segment includes: Take at least three coordinate points on the ink line segment and determine whether the ink line segment is a straight line segment according to the vector collinearity theorem; Or randomly select at least three coordinate points on the ink line segment, and determine a line segment with every two adjacent coordinate points. If the slopes of the line segments are exactly the same, then the ink line segment is a straight line segment; Among them, traverse each straight line segment, and each time two straight line segments intersect, they are regarded as a group of intersecting line segments, so as to determine the corresponding intersecting line segments including: Take any two straight line segments and determine their respective starting and ending coordinates; Determine whether the two straight line segments have overlapping points based on the starting point coordinates and the end point coordinates. If so, the two straight line segments intersect and form a set of intersecting line segments. The process of determining whether two intersecting line segments are perpendicular includes: Take the vectors of the two ink line segments respectively, and determine whether the two ink line segments are perpendicular to each other according to the vector perpendicularity theorem.
2. A right-angle copper skin removal device, characterized in that: include: The ink line decomposition module is used to obtain the copper shape of the PCB power layer through function tools and decompose it into ink line segments; An ink line screening module is configured to determine corresponding line segments to be processed from ink line segments by grouping two vertically intersecting straight line segments as a group of line segments to be processed; wherein, the method comprises: traversing each ink line segment to determine the straight line segments in each ink line segment; traversing each straight line segment, and whenever two straight line segments intersect, treating them as a group of intersecting line segments, thereby determining the corresponding intersecting line segments; respectively determining whether the two ink line segments in each group of intersecting line segments are perpendicular, and determining the perpendicular intersecting line segments as the line segments to be processed; wherein, the two straight line segments in any group of line segments to be processed intersect in an "L" shape; a smoothing processing module, configured to perform smoothing processing on the right-angled intersection of each group of line segments to be processed; wherein the smoothing processing on the right-angled intersection of each group of line segments to be processed comprises: taking the intersection of two ink line segments as a starting point and a preset length as a length, cutting off the right-angled intersection of the two ink line segments; connecting the interception points of the two ink line segments with an arc, wherein the arc is a quarter-circle arc with a preset length as a radius; the center of the arc is another vertex in a square determined by taking the intersection of the two ink line segments and the interception point as vertices; the interception point is the other endpoint of a line segment with the intersection point as an endpoint and the preset length as a length, respectively determined on the two ink line segments; Wherein, determining the straight line segments in each ink line segment includes: Take at least three coordinate points on the ink line segment and determine whether the ink line segment is a straight line segment according to the vector collinearity theorem; Or randomly select at least three coordinate points on the ink line segment, and determine a line segment with every two adjacent coordinate points. If the slopes of the line segments are exactly the same, then the ink line segment is a straight line segment; Among them, traverse each straight line segment, and each time two straight line segments intersect, they are regarded as a group of intersecting line segments, so as to determine the corresponding intersecting line segments including: Take any two straight line segments and determine their respective starting and ending coordinates; Determine whether the two straight line segments have overlapping points based on the starting point coordinates and the end point coordinates. If so, the two straight line segments intersect and form a set of intersecting line segments. The process of determining whether two intersecting line segments are perpendicular includes: Take the vectors of the two ink line segments respectively, and determine whether the two ink line segments are perpendicular to each other according to the vector perpendicularity theorem.
3. A right-angle copper skin removal device, characterized in that: include: memory for storing computer programs; A processor is configured to implement the steps of the right-angle copper foil removal method as claimed in claim 1 when executing the computer program.
4. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the right-angle copper foil removal method according to claim 1 are implemented.
Citation Information
Patent Citations
Method of dynamically converting right-angled and obtuse-angled PCB circuits into arc circuits
CN103902771A
A method and a system for conversion of a copper sheet corner in a PCB
CN109002596A