A 2.5D model geometry cleaning method for characterizing layered circuit board structures
Through geometric cleaning methods, including adaptive quadtree merging adjacent points, edge intersection operations, sharp corner removal and point alignment, the geometric problems in the 2.5D model are solved, the meshing efficiency and calculation efficiency are improved, and the line segment problems are solved Problems with intersection, points that are too close and angles between line segments that are too small.
Patent Information
- Application Number
- CN202410876249.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-07-02
AI Technical Summary
When processing 2.5D models of large-scale complex circuit board structures, geometric problems are often encountered, such as line segment intersections, points that are too close to each other, points that are too close to line segments, and angles between line segments that are too small, resulting in meshing. The process fails, thus affecting the accuracy and reliability of the simulation process.
A geometric cleaning method is adopted, including merging adjacent points based on adaptive quadtrees, performing edge intersection operations, cleaning up sharp corners, aligning points to edges, and simplifying polygons. Through these steps, geometric problems are solved and the meshing efficiency is improved. success rate.
It effectively solves the problems of line segment intersection, point and point distance being too close, point and line segment being too close, and the angle between line segments being too small, improving the success rate of 2.5D model meshing, and reducing the computational time complexity. , improving computational efficiency.
Smart Images

Figure CN118411486B
Abstract
Description
Technical Field
[0001] The invention relates to the field of simulation design, and in particular to a 2.5D model geometry cleaning method for characterizing a layered circuit board structure. Background Art
[0002] In the field of EDA (Electronic Design Automation) numerical simulation, 2.5D models are often used to represent layered circuit board structures. Figure 2 As shown, the 2.5D model is composed of multiple 2D models stacked together, and the 2D structure of each layer is composed of multiple polygons.
[0003] The 2.5D model contains multiple layers of circuit boards and various electronic components. The interaction and electromagnetic coupling between these components and the circuit board layers are complex and difficult to simulate directly. Chinese patent CN117078890A proposes a 3D geometric model meshing method, which can discretize these complex model structures and convert them into more easily processed mesh units, thereby facilitating simulation software calculation and analysis.
[0004] Therefore, meshing is of irreplaceable importance in the field of EDA numerical simulation. It is not only a bridge between the circuit board model and simulation analysis, but also a key step to ensure the accuracy and reliability of the simulation results. However, when dealing with 2.5D models of large-scale complex circuit board structures, due to the extremely high design complexity, some geometric problems are often encountered, such as intersections between line segments, too close distances between points, too close proximity between points and line segments, and too small angles between line segments. These problems often lead to the failure of the meshing process, which in turn stagnates the entire simulation process. Summary of the invention
[0005] In order to solve the above problems, the present invention proposes a 2.5D model geometry cleaning method for characterizing a layered circuit board structure to improve the success rate of 2.5D model meshing.
[0006] The present invention proposes a 2.5D model geometry cleaning method for characterizing a layered circuit board structure, comprising the following steps:
[0007] Step 1, merging adjacent points based on an adaptive quadtree: using a quadtree to divide the points in the plane into multiple sub-regions, and merging adjacent points in each sub-region;
[0008] Step 2: Perform edge intersection operation: determine whether two edges intersect. If the two edges intersect, calculate the intersection point and add the intersection point.
[0009] Step 3, clear sharp corners: If two edges have a common endpoint and the angle between the two edges is less than the set minimum angle α tol , then the angle between the two sides is a sharp angle, and the sharp angle is removed by adding or moving a point; adding a point is to add a point on the longer side of the two sides, and moving a point is to move the non-shared endpoint of the shorter side to the longer side; removing the sharp angle by adding or moving a point includes the following steps:
[0010] Let the two sides with a common endpoint be side AB and side AC, and ∠BAC < α tol ;
[0011] Let the length of side AB be greater than the length of side AC;
[0012] Take a point D on the side AB, connect point D to point C, and satisfy ∠BDC=α tol , point D divides edge AB into two segments, AD and DB, and the segment between points A and C is divided into two segments, AD and DC, and the original edge AC is removed; if there is no point D on edge AB that satisfies ∠BDC=α tol , then move point C to side AB and divide side AB into two segments AC and CB;
[0013] Step 4, align the points to the edge: move the points that are too close to the edge to the edge along the normal direction of the edge;
[0014] Step 5, simplifying polygons: If the distance between a point and the line segment with two adjacent points as endpoints is less than a given value, the point is a point to be removed. The point is shared by multiple polygons. If the point is a point to be removed on all polygons, remove the point.
[0015] Step 6, local update: determine whether there are any changed points and edges. If so, return to step 1 to perform the next step of calculation on the changed points and edges. Otherwise, do not perform the next step of calculation.
[0016] In one embodiment, in step 1, using a quadtree to divide the points in the plane into multiple sub-areas includes the following steps:
[0017] Calculate the plane space bounding box of all polygon vertices;
[0018] Divide the plane space bounding box into 4 parts on average, each part being a sub-region;
[0019] Count the number of points in each sub-region;
[0020] Recursively split sub-regions: If the number of points in a sub-region is greater than the specified value m, continue to split the sub-region evenly, dividing it into four smaller sub-regions until the number of points in all sub-regions is less than or equal to the specified value m.
[0021] In one embodiment, in step 1, merging adjacent points in each sub-region includes:
[0022] The points in each sub-area are compared pairwise. If the distance between any two points is less than the specified tolerance value, the two points are adjacent points and are merged into one point.
[0023] In one embodiment, in step 2, before determining whether two edges intersect, all edges that need to be intersected are searched using an RTree data structure;
[0024] Alternatively, in step 4, before moving the point that is too close to the edge to the edge along the normal direction of the edge, the RTree data structure is used to search for all edges to which the point needs to be aligned.
[0025] In one embodiment, determining whether two edges intersect in step 2 includes:
[0026] Let the two sides be side AB and side CD;
[0027] If points A and B are on the same side of the line CD, and points C and D are on the same side of the line AB, then sides AB and CD do not intersect;
[0028] If points A and B are on opposite sides of the line CD, and points C and D are on the same side of the line AB, then sides AB and CD do not intersect.
[0029] If points A and B are on the same side of the line where side CD lies, and points C and D are on opposite sides of the line where side AB lies, then side AB and side CD do not intersect;
[0030] If points A and B are on either side of the line containing side CD, and points C and D are on either side of the line containing side AB, then side AB intersects side CD.
[0031] In one embodiment, in step 2, if two edges intersect, calculating the intersection position includes the following steps:
[0032] Let the two sides be side AB and side CD;
[0033] If the sides AB and CD intersect at point E, calculate the distance h from points C and D to the line on which the side AB lies. C and h D ;
[0034] According to the distance h from point C and point D to the straight line where side AB lies C and h D , calculate the position of the intersection point E, the calculation formula for the position of the intersection point E is as follows:
[0035] ;
[0036] Among them, E, C, and D refer to the positions of point E, point C, and point D respectively, and h C 、h D They refer to the distances from point C and point D to the straight line where side AB lies.
[0037] In one embodiment, step 4 includes:
[0038] If the distance from a point to an edge is less than the threshold h tol , then the point is too close to the edge, and the point is moved to the edge along the normal direction of the edge.
[0039] In one embodiment, in step 6, the changed points and edges include the changed point and the points and edges around it.
[0040] In one embodiment, determining whether there are changed points and edges includes:
[0041] In the step of merging adjacent points based on the adaptive quadtree, if there are merged points, all merged points are marked as changed points;
[0042] In the edge intersection operation, if two edges intersect, the intersection point is marked as a changed point;
[0043] In the clearing of sharp corners, if a sharp corner is cleared, the added point or the moved point is marked as a changed point;
[0044] The point is aligned to the edge, and if there is a point aligned to the edge, the moved point is marked as a changed point;
[0045] If there are removed points in the simplified polygon, the adjacent points are marked as changed points;
[0046] Among them, given an influence radius r, points and edges whose distance to the point with change is less than the influence radius r are marked as the points and edges around it.
[0047] A 2.5D model geometry cleaning method for characterizing a layered circuit board structure of the present invention has the following beneficial effects:
[0048] 1. This geometry cleaning method solves the problems of intersection between line segments, close distance between points, high proximity between points and line segments, and small angles between line segments, thus improving the success rate of 2.5D model meshing.
[0049] 2. This geometric cleaning method reduces the time complexity of each step of the calculation, reduces the calculation time and improves the calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of a process framework of a 2.5D model geometry cleaning method for characterizing a layered circuit board structure according to an embodiment of the present invention;
[0051] Figure 2 It is a schematic diagram of the shape of a certain layer of the 2.5D model of the circuit board structure;
[0052] Figure 3 A schematic diagram of dividing points in a plane based on a quadtree according to an embodiment of the present invention;
[0053] Figure 4 A schematic diagram of the positional relationship type of two edges in a plane according to an embodiment of the present invention;
[0054] Figure 5 A schematic diagram of calculating the intersection points of edges within a surface according to an embodiment of the present invention;
[0055] Figure 6 A schematic diagram of removing sharp corners according to an embodiment of the present invention;
[0056] Figure 7 A schematic diagram of aligning points to edges according to an embodiment of the present invention;
[0057] Figure 8 A schematic diagram of a simplified polygon according to an embodiment of the present invention;
[0058] Fig. 9 FIG. 4 is a schematic diagram of a partial update according to an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the invention and are not used to limit the invention.
[0060] like Figure 1 As shown, the present invention proposes a 2.5D model geometry cleaning method for characterizing a layered circuit board structure, comprising the following steps:
[0061] Step 1, merging adjacent points based on an adaptive quadtree: using a quadtree to divide the points in the plane into multiple sub-regions, and merging adjacent points in each sub-region;
[0062] Step 2: Perform edge intersection operation: determine whether two edges intersect. If the two edges intersect, calculate the intersection point and add the intersection point.
[0063] Step 3, clear sharp corners: If two edges have a common endpoint and the angle between the two edges is less than the set minimum angle α tol , then the angle between the two sides is a sharp angle, and the sharp angle is removed by adding or moving a point; adding a point is to add a point on the longer side of the two sides, and moving a point is to move the non-shared endpoint of the shorter side to the longer side; removing the sharp angle by adding or moving a point includes the following steps:
[0064] Let the two sides with a common endpoint be side AB and side AC, and ∠BAC < α tol ;
[0065] Let the length of side AB be greater than the length of side AC;
[0066] Take a point D on the side AB, connect point D to point C, and satisfy ∠BDC=α tol , point D divides edge AB into two segments, AD and DB, and the segment between points A and C is divided into two segments, AD and DC, and the original edge AC is removed; if there is no point D on edge AB that satisfies ∠BDC=α tol , then move point C to side AB and divide side AB into two segments AC and CB;
[0067] Step 4, align the points to the edge: move the points that are too close to the edge to the edge along the normal direction of the edge;
[0068] Step 5, simplifying polygons: If the distance between a point and the line segment with two adjacent points as endpoints is less than a given value, the point is a point to be removed. The point is shared by multiple polygons. If the point is a point to be removed on all polygons, remove the point.
[0069] Step 6, local update: determine whether there are any changed points and edges. If so, return to step 1 to calculate the changed points and edges, otherwise end the calculation.
[0070] The above steps are described in detail below.
[0071] In step 1, a quadtree is used to divide the points in the plane into multiple sub-areas, including the following steps:
[0072] Calculate the plane space bounding box of all polygon vertices;
[0073] Divide the plane space bounding box into 4 parts on average, each part being a sub-region;
[0074] Count the number of points in each sub-region;
[0075] Recursively split sub-regions: If the number of points in a sub-region is greater than the specified value m, continue to split the sub-region evenly, dividing it into four smaller sub-regions until the number of points in all sub-regions is less than or equal to the specified value m.
[0076] Usually, the points in the plane are all polygon vertices. The above steps are specifically: Calculate the plane space bounding box of all polygon vertices, including the following steps: First, determine the minimum and maximum coordinate values of all polygon vertices on the plane, so as to form a rectangular bounding box (usually called a bounding box or bounding box). This bounding box can completely contain all polygon vertices.
[0077] The bounding box is divided into four equal parts, usually by equally dividing the bounding box into four equal-sized sub-areas along its midline in the horizontal and vertical directions.
[0078] Calculate the number of points in each sub-region: Traverse all polygon vertices and determine the sub-region to which each vertex belongs (that is, which rectangular region contains the vertex). Count the number of vertices in each sub-region.
[0079] Recursively divide sub-regions: For each sub-region, check whether the number of vertices inside it is greater than the specified value m. If so, continue to divide the sub-region equally along its horizontal and vertical midlines into four smaller sub-regions, and repeat the above steps for these smaller sub-regions (i.e. calculate the number of points and possibly continue to divide). This process will continue recursively until the number of vertices in all sub-regions is less than or equal to the specified value m. When this condition is met, the recursion stops, and the final set of sub-regions is the final division result, see Figure 3 .
[0080] In step 1, adjacent points in each sub-region are merged, including:
[0081] The points in each sub-area are compared pairwise. If the distance between any two points is less than the specified tolerance value, the two points are adjacent points and are merged into one point.
[0082] Step 1 The purpose of merging adjacent points based on the adaptive quadtree is to solve the problem of the distance between points being too close. Usually, the time complexity of directly merging adjacent points is O(N 2), N is the number of points in the plane. For large-scale models, merging adjacent points takes too long to calculate. The present invention uses an adaptive quadtree method to improve the efficiency of merging adjacent points. Use a quadtree to divide the points in the plane so that the number of points in each area is no more than m (m is a constant), see Figure 3 If there are N points in the plane, the plane points will be divided into n = N / m regions, and the calculation time for each region is (c is a constant), the total calculation time t is:
[0083] ,
[0084] In the above formula, c and m are both constants. Then, the time complexity of merging adjacent points can be reduced to O(N) through quadtree partitioning. The time consumption of quadtree partitioning is ignored here because it is much lower than the time consumption of merging adjacent points.
[0085] In step 2, whether two edges intersect is determined, including:
[0086] Let the two sides be side AB and side CD;
[0087] If points A and B are on the same side of the line containing side CD, and points C and D are on the same side of the line containing side AB, then sides AB and CD do not intersect, see Figure 4 (a)
[0088] If points A and B are on opposite sides of the line CD, and points C and D are on the same side of the line AB, then sides AB and CD do not intersect. Figure 4 (b)
[0089] If points A and B are on the same side of the line CD, and points C and D are on opposite sides of the line AB, then sides AB and CD do not intersect, see Figure 4 (c)
[0090] If points A and B are on either side of the line CD, and points C and D are on either side of the line AB, then sides AB and CD intersect, see Figure 4 (d) in.
[0091] like Figure 4 As shown in the figure, there are four main positional relationships between two edges in a plane. Only in case (d) do the two line segments intersect.
[0092] If two edges intersect, the intersection point is calculated, including the following steps:
[0093] Let the two sides be side AB and side CD;
[0094] If the sides AB and CD intersect at point E, calculate the distance h from points C and D to the line on which the side AB lies.C and h D ;
[0095] According to the distance h from point C and point D to the straight line where side AB lies C and h D , calculate the intersection point E position, see Figure 5 The calculation formula for the position of the intersection point E is as follows:
[0096] ,
[0097] Among them, E, C, and D refer to the positions of point E, point C, and point D respectively, and h C 、h D They refer to the distances from point C and point D to the straight line where side AB lies.
[0098] The intersection point E is used to split two intersecting edges, forming four edges after the split. These four edges no longer intersect, thus solving the problem of edge intersection. The complexity of the edge intersection operation is also O(N 2 ), where N is the number of edges. To improve computational efficiency, before determining whether two edges intersect, the RTree data structure can be used to search for all edges that require edge intersection operations, thereby improving the efficiency of spatial search and reducing the time complexity of edge intersection operations to O (NlogN). The RTree mentioned in this article is an efficient multidimensional spatial index data structure that is used to decompose spatial data into a series of rectangular areas and organize these areas in layers. It can be applied to fields such as geographic information systems (GIS), computer graphics, and databases to quickly find specific objects.
[0099] In step 3, add or move a point to remove the sharp corner, including the following steps:
[0100] Let the two sides with a common endpoint be side AB and side AC, and ∠BAC < α tol , see Figure 6 (a)
[0101] Let the length of side AB be greater than the length of side AC;
[0102] like Figure 6 As shown in (b), take a point D on the edge AB, connect point D to point C, and satisfy ∠BDC=α tol , point D divides edge AB into two segments, AD and DB, and the segment between points A and C is divided into two segments, AD and DC, and the original edge AC is removed; if there is no point D on edge AB that satisfies ∠BDC=α tol , then move point C to side AB and divide side AB into two segments AC and CB.
[0103] The computational time complexity of removing sharp corners in step 3 is O(N), where N is the total number of vertices. Step 3 solves the problem of too small angles between line segments by adding a point or moving a point.
[0104] Step 4 includes: if the distance from a point to an edge is less than a threshold h tol , then the point is too close to the edge, and the point is moved to the edge along the normal direction of the edge.
[0105] Specifically, Figure 7 As shown in (a) and (b) in the figure, if the distance |CC`| from point C to edge AB is less than a given value, point C is moved to the edge along the normal direction of edge AB, and AB is divided into two segments AC and CB. The number of vertices and edges in a polygon is the same, so the computational time complexity of aligning a point to an edge is also O(N 2 ), where N is the total number of edges or points. Here, before moving the points that are too close to the edge along the normal direction of the edge to the edge, the RTree data structure can be used to search for all edges that need to align the points to the edge, thereby improving the search efficiency of the edge and reducing the time complexity of the calculation to O (NlogN). This step solves the problem of too high proximity between the point and the line segment in the background technology by moving the points that are close to the line segment to the line segment.
[0106] In step 5, an implementation example of simplifying the polygon is Figure 8 As shown, point P is used i and its neighboring point P i-1 and P i+1 To determine whether to simplify and remove the point. i To line segment P i-1 and P i+1 The distance is less than the given value h tol , then P i Mark points for removal, see Figure 8 (a) in the above. Since P i May be shared by multiple polygons, if P i If all polygons can be removed, remove P i , see Figure 8 The computational time complexity of polygon simplification is O(N), where N is the total number of vertices.
[0107] The algorithm in this paper is an iterative calculation process. Although we have reduced the time complexity of the calculation from O(N) to O(N) through data structures such as quadtree and RTree, 2) is reduced to O(NlogN), but for more complex models, the calculation time is still too long. Therefore, in step 6, a local update strategy is proposed to further improve the calculation efficiency. The basic idea is as follows: in each iterative calculation, only some points and edges have changed, and the changed points and edges are the cause of new changes in the next calculation. Therefore, in the next calculation, only the changed points and edges and the surrounding points and edges need to be found for calculation (see Fig. 9 ), which can significantly reduce the amount of calculation in subsequent iterative calculation steps.
[0108] Specifically, in step 6, the changed points and edges include the changed point and the points and edges around it.
[0109] Determining whether there are changed points and edges includes the following steps:
[0110] When merging adjacent points based on the adaptive quadtree, if there are merged points, all merged points are marked as changed points;
[0111] When performing edge intersection operations, if two edges intersect, the intersection point is marked as a changed point;
[0112] In clearing sharp corners, if a sharp corner is cleared, the added point or the moved point is marked as a changed point;
[0113] Align the points to the edge. If there are points aligned to the edge, mark the moved points as changed points.
[0114] In the simplified polygon, if there are removed points, its adjacent points are marked as changed points;
[0115] Among them, given an influence radius r, points and edges whose distance to the point with change is less than the influence radius r are marked as the points and edges around it.
[0116] A 2.5D model geometry cleaning method for characterizing a layered circuit board structure of the present invention has the following beneficial effects:
[0117] 1. This geometry cleaning method solves the problems of intersection between line segments, close distance between points, high proximity between points and line segments, and small angles between line segments, thus improving the success rate of 2.5D model meshing.
[0118] 2. This geometric cleaning method reduces the time complexity of each step of the calculation, reduces the calculation time and improves the calculation efficiency.
[0119] Although the above methods are illustrated and described as a series of actions for simplicity of explanation, it should be understood and appreciated that these methods are not limited by the order of the actions, because according to one or more embodiments, some actions may occur in a different order and / or concurrently with other actions from those illustrated and described herein or not illustrated and described herein but understandable to those skilled in the art.
[0120] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0121] The above-described embodiments are only further explanations of the present invention, and are not intended to limit the present invention in other forms. The present invention may also have other various embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art may make various corresponding modifications and changes according to the present invention, but these corresponding modifications and changes should all fall within the protection scope of the present invention.
Claims
1. A 2.5D model geometry cleaning method for characterizing a layered circuit board structure, characterized in that: The steps include: Step 1, merging adjacent points based on an adaptive quadtree: using a quadtree to divide the points in the plane into multiple sub-regions, and merging adjacent points in each sub-region; Step 2: Perform edge intersection operation: determine whether two edges intersect. If the two edges intersect, calculate the intersection point and add the intersection point. Step 3, clear sharp corners: If two edges have a common endpoint and the angle between the two edges is less than the set minimum angle α tol , then the angle between the two sides is a sharp angle, and the sharp angle is removed by adding or moving a point, wherein adding a point is to add a point to the longer side of the two sides, and moving a point is to move the non-shared endpoint of the shorter side to the longer side, including the following steps: Let the two sides with a common endpoint be side AB and side AC, and ∠BAC < α tol ; Let the length of side AB be greater than the length of side AC; Take a point D on the side AB, connect point D to point C, and satisfy ∠BDC=α tol , point D divides edge AB into two segments, AD and DB, and the segment between points A and C is divided into two segments, AD and DC, and the original edge AC is removed; if there is no point D on edge AB that satisfies ∠BDC=α tol , then move point C to side AB and divide side AB into two segments AC and CB; Step 4, align the points to the edge: move the points that are too close to the edge to the edge along the normal direction of the edge; Step 5, simplifying polygons: If the distance between a point and the line segment with two adjacent points as endpoints is less than a given value, the point is a point to be removed. The point is shared by multiple polygons. If the point is a point to be removed on all polygons, remove the point. Step 6, local update: determine whether there are any changed points and edges. If so, return to step 1 to perform the next step of calculation on the changed points and edges. Otherwise, do not perform the next step of calculation.
2. A 2.5D model geometry cleaning method for characterizing a layered circuit board structure according to claim 1, characterized in that: In step 1, using a quadtree to divide the points in the plane into multiple sub-areas includes the following steps: Calculate the plane space bounding box of all polygon vertices; Divide the plane space bounding box into 4 parts on average, each part being a sub-region; Count the number of points in each sub-region; Recursively split sub-regions: If the number of points in a sub-region is greater than the specified value m, continue to split the sub-region evenly, dividing it into four smaller sub-regions until the number of points in all sub-regions is less than or equal to the specified value m.
3. A 2.5D model geometry cleaning method for characterizing a layered circuit board structure according to claim 1, characterized in that: In step 1, merging adjacent points in each sub-region includes: The points in each sub-area are compared pairwise. If the distance between any two points is less than the specified tolerance value, the two points are adjacent points and are merged into one point.
4. A 2.5D model geometry cleaning method for characterizing a layered circuit board structure according to claim 1, characterized in that: In step 2, before determining whether two edges intersect, all edges that need to be intersected are searched using the RTree data structure; Alternatively, in step 4, before moving the point that is too close to the edge to the edge along the normal direction of the edge, the RTree data structure is used to search for all edges to which the point needs to be aligned.
5. A 2.5D model geometry cleaning method for characterizing a layered circuit board structure according to claim 1, characterized in that: In step 2, determining whether two edges intersect includes: Let the two sides be side AB and side CD; If points A and B are on the same side of the line CD, and points C and D are on the same side of the line AB, then sides AB and CD do not intersect; If points A and B are on opposite sides of the line CD, and points C and D are on the same side of the line AB, then sides AB and CD do not intersect. If points A and B are on the same side of the line where side CD lies, and points C and D are on opposite sides of the line where side AB lies, then side AB and side CD do not intersect; If points A and B are on either side of the line containing side CD, and points C and D are on either side of the line containing side AB, then side AB intersects side CD.
6. A 2.5D model geometry cleaning method for characterizing a layered circuit board structure according to claim 1, characterized in that: In step 2, if two edges intersect, the intersection position is calculated, including the following steps: Let the two sides be side AB and side CD; If the sides AB and CD intersect at point E, calculate the distance h from point C and point D to the line on which the side AB lies. C and h D ; According to the distance h from point C and point D to the straight line where side AB lies C and h D , calculate the position of the intersection point E, the calculation formula for the position of the intersection point E is as follows: ; Among them, E, C, and D refer to the positions of point E, point C, and point D respectively, and h C 、h D They refer to the distances from point C and point D to the straight line where side AB lies.
7. A 2.5D model geometry cleaning method for characterizing a layered circuit board structure according to claim 1, characterized in that: The step 4 comprises: If the distance from a point to an edge is less than the threshold h tol , then the point is too close to the edge, and the point is moved to the edge along the normal direction of the edge.
8. A 2.5D model geometry cleaning method for characterizing a layered circuit board structure according to claim 1, characterized in that: In step 6, the changed points and edges include the changed point and the points and edges around it.
9. A 2.5D model geometry cleaning method for characterizing a layered circuit board structure according to claim 8, characterized in that: The determining whether there are changed points and edges includes: In the step of merging adjacent points based on the adaptive quadtree, if there are merged points, all merged points are marked as changed points; In the edge intersection operation, if two edges intersect, the intersection point is marked as a changed point; In the clearing of sharp corners, if a sharp corner is cleared, the added point or the moved point is marked as a changed point; The point is aligned to the edge, and if there is a point aligned to the edge, the moved point is marked as a changed point; If there are removed points in the simplified polygon, the adjacent points are marked as changed points; Among them, given an influence radius r, points and edges whose distance to the point with change is less than the influence radius r are marked as the points and edges around it.
Citation Information
Patent Citations
Three-dimensional geometric model mesh generation method, system and device and computer readable medium
CN117078890A
Random dynamic allocation method for frequency domain simulation calculation tasks of super-large-scale integrated circuit
CN111898331A
Continuous pattern spot simplification method under generalized topological structure constraint
CN115359149A
Method for recognition of relief shapes on basis of a pattern of horizontals
RU2308086C1
Method for the topology optimization of trusses
US20240037288A1
