Process supplemental section line direction symmetry adaptive adjustment method and electronic equipment
By dividing the cross-section line into mirror-symmetric sides, determining self-intersection and making adaptive adjustments, the problem of self-intersection of cross-section lines in sheet metal stamping process is solved, improving design efficiency and symmetry.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SAIC GENERAL MOTORS
- Filing Date
- 2023-03-22
- Publication Date
- 2026-04-28
AI Technical Summary
In the design of drawing dies for sheet metal stamping processes, the direction of the initially created cross-section lines is prone to self-intersection, which requires manual adjustment to ensure symmetry and affects design efficiency.
By dividing the cross-section line into two mirrored symmetrical sides, converting it into a cross-section line point set, and determining self-intersection, adaptive adjustment is performed. The adjusted point set is then mirrored to the other symmetrical side to ensure symmetry.
It achieves symmetrical adaptive adjustment of the direction of the process supplement section line, improving the efficiency and symmetry of the process drawing die surface design.
Smart Images

Figure CN116205078B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of process design and manufacturing, and in particular to a method and electronic device for adaptive adjustment of the direction of process supplementary cross-section lines. Background Technology
[0002] Currently, in the design of drawing dies for sheet metal stamping processes, the cross-sectional lines constituting the die surface are typically created first, followed by the generation of the die surface itself. The created cross-sectional lines are determined by their direction, and initially, the directions may intersect (also known as self-intersection), requiring manual adjustment by process engineers until the cross-sectional directions no longer intersect. This invention provides a method for symmetrical adaptive adjustment of cross-sectional lines, ensuring the symmetry of process additions for symmetrical parts and improving the efficiency of drawing die design. Summary of the Invention
[0003] Therefore, it is necessary to provide a method and electronic device for adaptive adjustment of the direction of the process supplement cross-section line.
[0004] This invention provides a method for adaptively adjusting the direction of the process supplement cross-section line symmetry, specifically including:
[0005] The cross-section line is divided into two mirrored sides, the first and the second, by the central line of symmetry.
[0006] Convert the first symmetrical side into a set of cross-sectional line points;
[0007] Determine whether the cross sections divided by the cross lines are self-intersecting based on the set of points on the cross lines;
[0008] If the set of points on the cross-section line determines that the cross-sections divided by the cross-section line intersect with each other, then the set of points on the cross-section line is adaptively adjusted, and the adjusted set of points on the cross-section line is mirrored to the second symmetrical side with the symmetrical line as the center.
[0009] Furthermore, the cross-sectional line point set includes a cross-sectional line start point set and a cross-sectional line end point set. The cross-sectional line start point set is the set of points at the start of the cross-sectional line, and the cross-sectional line start point is a point on the inner boundary of the first symmetrical side of the cross-sectional line. The cross-sectional line end point set is the set of points at the end of the cross-sectional line, and the cross-sectional line end point is the point on the outer boundary of the cross-sectional line corresponding to the cross-sectional line start point.
[0010] Furthermore, the step of determining whether the cross-sections divided by the cross-section line self-intersect based on the set of cross-section line points specifically includes:
[0011] Starting from the second cross-section line, traverse backwards, and compare the order of the end point of the cross-section line corresponding to the starting point of the cross-section line with the end point of the cross-section line corresponding to the previous starting point of the cross-section line.
[0012] Determine whether the arrangement order is the same as the order of the starting point set of the cross-section line;
[0013] If they are not the same, the cross-sections are considered to have self-intersected; otherwise, the cross-sections are considered not to have self-intersected.
[0014] Furthermore, the set of starting points of the cross-section line is numbered sequentially as an arithmetic natural number along the direction of the cross-section line, starting from the plane of symmetry of the cross-section line.
[0015] Furthermore, the adaptive adjustment of the cross-sectional line point set, mirroring the adjusted cross-sectional line point set to the second symmetrical side with the symmetry line as the center, specifically includes:
[0016] Determine the starting point of the abnormal cross-section line where self-intersection occurs;
[0017] The self-intersecting adjustment area is determined based on the starting point of the abnormal cross-section line;
[0018] The cross-sectional line point set is adaptively adjusted within the adjustment area;
[0019] The adjusted set of cross-sectional line points is mirrored onto the second symmetrical side with the symmetrical line as the center.
[0020] Furthermore, the step of determining the self-intersecting adjustment region based on the starting point of the abnormal cross-section line specifically includes:
[0021] The starting point of the adjustment area is determined based on the starting point of the abnormal cross-section line;
[0022] Determine the endpoint of the adjustment area based on the starting point of the abnormal cross-section line;
[0023] The area formed by connecting the starting point of the adjustment area and its corresponding end point of the cross-section line, and the ending point of the adjustment area and its corresponding end point of the cross-section line, is defined as the adjustment area.
[0024] Furthermore, determining the starting point of the adjustment area based on the starting point of the abnormal cross-section line specifically includes:
[0025] The starting point of the adjustment area is obtained by subtracting one from the starting point of the abnormal cross-section line.
[0026] Furthermore, determining the endpoint of the adjustment area based on the starting point of the abnormal cross-section line specifically includes:
[0027] Compare whether the order of the endpoints of the cross-section line corresponding to two adjacent points before and after the starting point of the abnormal cross-section line is the same as the order of the starting point set of the cross-section line.
[0028] If they are the same, then add one to the starting point of the abnormal cross-section line to obtain the ending point of the adjustment area;
[0029] If they are not the same, then starting from the starting point of the abnormal cross-section line, increment by one sequentially, compare the order of the cross-section line endpoints corresponding to the two points before and after it, and determine whether the order is the same as the order of the starting point set of the cross-section line, until a point is found whose order of the cross-section line endpoints corresponding to the two points before and after it is determined to be the starting point of the abnormal cross-section line. If no point with the same order is found, then the last point of the cross-section line endpoint set is taken as the endpoint of the adjustment area.
[0030] Furthermore, the adaptive adjustment of the cross-sectional line point set within the adjustment region specifically includes:
[0031] Determine whether the order of the endpoint corresponding to the starting point of the adjustment region and the last point of the endpoint point set of the cross-section line is the same as the order of the starting point point set of the cross-section line. If they are not the same, take the endpoint of the cross-section line corresponding to the starting point of the adjustment region as the point to be adjusted and perform the adjustment operation on the point to be adjusted.
[0032] Determine whether the order of the end point of the cross-section line corresponding to the end point of the adjustment area and the last point of the set of end points of the cross-section line is the same as the order of the set of start points of the cross-section line. If they are not the same, then take the end point of the cross-section line corresponding to the end point of the adjustment area as the point to be adjusted and perform the adjustment operation on the point to be adjusted.
[0033] The adjustment operation includes: reallocating new points to the points to be adjusted within the adjustment area.
[0034] This invention provides an electronic device, comprising:
[0035] At least one processor; and,
[0036] A memory communicatively connected to at least one of the processors; wherein,
[0037] The memory stores instructions that can be executed by at least one of the processors to enable at least one of the processors to perform the process-supplemented cross-sectional line orientation symmetry adaptive adjustment method as described above.
[0038] This invention achieves adaptive adjustment of the cross-section line direction by numbering the start and end points on one symmetrical side of the cross-section line, automatically determining whether the cross-section line has self-intersected based on the start and end point numbers, adjusting the self-intersecting points, and mirroring the adjusted point sequence on one symmetrical side of the cross-section line to the other symmetrical side. Attached Figure Description
[0039] Figure 1 This is a flowchart illustrating a process supplement cross-sectional line directional symmetry adaptive adjustment method according to an embodiment of the present invention.
[0040] Figure 2 A flowchart illustrating a process supplement cross-section line direction symmetry adaptive adjustment method according to another embodiment of the present invention;
[0041] Figure 3 This is a schematic diagram illustrating the conversion of one symmetrical side of a cross-section line into a set of cross-section line points in the preferred embodiment of the present invention.
[0042] Figure 4 This is a schematic diagram illustrating the cross-sectional direction self-intersection judgment and adjustment in the preferred embodiment of the present invention;
[0043] Figure 5 This is a schematic diagram illustrating the cross-sectional direction self-intersection judgment and adjustment in another preferred embodiment of the present invention;
[0044] Figure 6 This is a schematic diagram illustrating the cross-sectional direction self-intersection judgment and adjustment in another preferred embodiment of the present invention;
[0045] Figure 7 This is a schematic diagram illustrating the cross-sectional direction self-intersection judgment and adjustment in another preferred embodiment of the present invention;
[0046] Figure 8 This is a schematic diagram illustrating the cross-sectional direction self-intersection judgment and adjustment in another preferred embodiment of the present invention;
[0047] Figure 9 This is a schematic diagram illustrating the adjustment of the start and end points of the self-intersecting region in the preferred embodiment of the present invention;
[0048] Figure 10 This is a schematic diagram illustrating the adjustment of the start and end points of the self-intersecting region in another preferred embodiment of the present invention;
[0049] Figure 11 This is a schematic diagram illustrating the adjustment of the start and end points of the self-intersecting region in another preferred embodiment of the present invention;
[0050] Figure 12 This is a schematic diagram illustrating the best embodiment of the present invention, in which the adjusted point set is mirrored to another symmetrical side with the symmetrical plane as the center.
[0051] Figure 13 This is a schematic diagram of the hardware structure of an electronic device according to the present invention. Detailed Implementation
[0052] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings. Identical components are indicated by the same reference numerals. It should be noted that the terms "front," "rear," "left," "right," "up," and "down" used in the following description refer to directions in the accompanying drawings, while the terms "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0053] Example 1
[0054] like Figure 1 The diagram shows a flowchart of a process supplement cross-section line directional symmetry adaptive adjustment method according to an embodiment of the present invention, including:
[0055] Step S101: Divide the cross-section line into two mirrored first symmetrical sides and second symmetrical sides through the middle symmetrical line;
[0056] Step S102: Convert the first symmetrical side into a set of cross-sectional line points;
[0057] Step S103: Determine whether the cross sections divided by the cross sections intersect each other based on the set of cross section points;
[0058] Step S104: If the cross-section point set determines that the cross-sections divided by the cross-section line are self-intersecting, then the cross-section point set is adaptively adjusted, and the adjusted cross-section point set is mirrored to the second symmetrical side with the symmetrical line as the center.
[0059] Specifically, this invention is mainly applied to the adaptive adjustment of the symmetrical direction of the cross-section line in a process supplement. Step S101: The cross-section line is divided into two mirrored symmetrical sides, a first symmetrical side and a second symmetrical side, through the central symmetrical line. Next, step S102: The first symmetrical side is converted into a cross-section line point set; specifically, the first symmetrical side is selected as the seed side. Step S103: Based on the cross-section line point set, it is determined whether the cross-sections divided by the cross-section line are self-intersecting. Specifically, based on the ascending or descending order of the point set, it is determined whether there is an abnormal arrangement order; an abnormal arrangement indicates intersection. Step S104: If the cross-section line point set determines that the cross-sections divided by the cross-section line are self-intersecting, then the cross-section line point set is adaptively adjusted. The adjusted cross-section line point set is mirrored to the second symmetrical side with the symmetrical line as the center. Specifically, all self-intersecting points on the seed side are corrected to obtain a seed side point set without self-intersection. Then, the seed side point set is mirrored to the second symmetrical side with the symmetrical line as the center, finally obtaining a complete cross-section line without self-intersection.
[0060] This invention selects the first symmetrical side of a cross-section line and sequentially converts it into a set of starting points and corresponding set of ending points. Based on the ending points corresponding to the starting points, it determines whether the cross-sections divided by the cross-section line are self-intersecting and identifies the self-intersecting adjustment region. Within this region, it adjusts the ending points corresponding to the starting points of abnormal cross-section lines. Finally, it mirrors the adjusted point set to the second symmetrical side with the symmetrical line as the center. This achieves symmetrical adaptive adjustment of the process supplement cross-section line direction.
[0061] Example 2
[0062] like Figure 2 The diagram shown is a flowchart of a process supplement cross-section line direction symmetry adaptive adjustment method according to another embodiment of the present invention, including:
[0063] Step S201: Divide the cross-section line into two mirrored first symmetrical sides and second symmetrical sides through the middle symmetrical line, and convert the first symmetrical side into a cross-section line point set.
[0064] Step S202: Convert the first symmetrical side of the cross-section line into a cross-section line point set. The cross-section line point set includes a cross-section line start point set and a cross-section line end point set. The cross-section line start point set is the set of points at the start of the cross-section line. The start of the cross-section line is the point on the inner boundary of the first symmetrical side of the cross-section line. The cross-section line end point set is the set of points at the end of the cross-section line. The end of the cross-section line is the point on the outer boundary of the cross-section line corresponding to the start of the cross-section line.
[0065] Specifically, the first symmetrical side of the cross-section line is first converted into a point set. For example, points can be taken at preset intervals on the first symmetrical side of the cross-section line to obtain the point set of the cross-section line.
[0066] Among them, such as Figure 3 As shown, the first symmetrical side of the cross-section line includes an inner boundary 301, an outer boundary 302, a starting symmetry plane 303, and a ending symmetry plane 304. The inner boundary 301 and the outer boundary 302 can be converted into a cross-section line point set, respectively. The cross-section line point set includes a cross-section line start point set and a cross-section line end point set. The cross-section line start point set is the set of points at the starting point of the cross-section line, which are points on the inner boundary 301 of the first symmetrical side of the cross-section line. The cross-section line end point set is the set of points at the ending point of the cross-section line, which are points on the outer boundary 302 of the cross-section line corresponding to the starting point of the cross-section line. The cross-section line end point set may extend beyond the starting symmetry plane 303 and the ending symmetry plane 304 to the second symmetrical side.
[0067] The starting point set of the cross-section line is selected from the points on the inner boundary of the first symmetrical side of the cross-section line, while the ending point set of the cross-section line is selected from the points on the outer boundary of the cross-section line corresponding to the starting point of the cross-section line. The ending point of the cross-section line is the point corresponding to the starting point of the cross-section line. The ending point of the cross-section line can be located on the outer boundary of the first symmetrical side of the cross-section line or on the outer boundary of the second side of the cross-section line.
[0068] In this embodiment, a seed side point set is created using the first symmetrical side as the seed side to describe the direction of the cross-sectional line on that side, which facilitates the judgment and adjustment of the self-intersecting points of the seed side.
[0069] In one embodiment, the set of starting points of the cross-section line is numbered sequentially as an arithmetic natural number sequence starting from the plane of symmetry of the cross-section line along the direction of the cross-section line.
[0070] After selecting the points, the starting and ending points of the cross-section line are numbered sequentially along the direction of the cross-section line using an arithmetic sequence of natural numbers, starting from the line of symmetry. The set of starting points can be any point located on the inner boundary of the first symmetric side of the cross-section line. However, since the ending point is the point corresponding to the starting point, the set of ending points does not necessarily include all points on the outer boundary of the first symmetric side of the cross-section line.
[0071] Step S203: Starting from the second cross-section line, traverse backwards and compare the order of the end point of the cross-section line corresponding to the starting point of the cross-section line with the end point of the cross-section line corresponding to the previous starting point of the cross-section line.
[0072] Specifically, the traversal begins from the second cross-section line starting point in the set of cross-section line starting points. Generally, the cross-section line starting points are numbered starting from 0, so the cross-section line starting point numbered 1 is selected to start the traversal until all cross-section line starting points have been traversed.
[0073] Step S204: Determine whether the arrangement order is the same as the order of the starting point set of the cross-section line; if they are not the same, determine that the cross-section has self-intersected; otherwise, determine that the cross-section has not self-intersected.
[0074] Specifically, step S203 determines whether self-intersection occurs on the first symmetrical side. Starting from the second cross-sectional line origin, iterates backwards, comparing the order of the endpoints of the cross-sectional lines corresponding to the origins of those origins with the endpoints of the preceding cross-sectional lines. It then determines whether this order is the same as the order of the set of cross-sectional line origin points (i.e., both ascending or both descending). If they are different, the cross-sections are determined to be self-intersecting. Figure 4 As shown, the set of starting points (Mset) of the cross-section line is an ascending set of feature points. Starting from point 1, the difference between the endpoint index of the current cross-section line starting point and the endpoint index of the previous point is calculated sequentially. It is then determined whether this difference has a different sign than the tolerance (flag) of the set of starting points. If they have different signs, an intersection is determined to have occurred at point 1. The tolerance is the difference between two adjacent points in the set. When the point set is arranged in ascending order, the tolerance sign is positive; when the point set is arranged in descending order, the tolerance sign is negative.
[0075] This embodiment identifies self-intersection anomalies by determining whether the order of the endpoints corresponding to the starting point of the cross-section line is abnormal.
[0076] Step S205: If the set of points on the cross-section line determines that the cross-sections divided by the cross-section line are self-intersecting, then the starting point of the abnormal cross-section line that is self-intersecting is determined.
[0077] Specifically, in step S205, starting from the second cross-section line starting point, the process traverses backwards, comparing the arrangement order of the cross-section line ending point corresponding to the starting point of the cross-section line with the arrangement order of the cross-section line ending point corresponding to the previous cross-section line starting point, and determining whether the arrangement order is the same as the order of the cross-section line starting point set (i.e., both are ascending or both are descending). If they are not the same, the cross-sections are determined to be self-intersecting, and the cross-section line starting point is determined to be an abnormal cross-section line starting point.
[0078] like Figure 4 As shown, Mset is an ascending set of feature points. Starting from point 1, the difference between the endpoint index of the current cross-section line and the endpoint index of the previous point is calculated sequentially. The difference is then checked to see if it is opposite to the flag. If it is opposite, it is determined that an intersection has occurred at point 1. This point is an outlier (Nbad), and the corresponding cross-section line start point (Mi) is 1.
[0079] Step S206: Determine the self-intersecting adjustment area based on the starting point of the abnormal cross-section line.
[0080] In one embodiment, determining the self-intersecting adjustment region based on the starting point of the abnormal cross-section line specifically includes:
[0081] The starting point of the adjustment area is determined based on the starting point of the abnormal cross-section line;
[0082] Determine the endpoint of the adjustment area based on the starting point of the abnormal cross-section line;
[0083] The area formed by connecting the starting point of the adjustment area and its corresponding end point of the cross-section line, and the ending point of the adjustment area and its corresponding end point of the cross-section line, is defined as the adjustment area.
[0084] Specifically, such as Figure 4 As shown, the starting point of the abnormal cross-section line is 1, the starting point of its corresponding adjustment area is 0, and the ending point of the cross-section line corresponding to the starting point 0 is 57. The ending point of its corresponding adjustment area is 2, and the ending point of the cross-section line corresponding to the starting point 2 is 64. Therefore, the adjustment area is 0-57-64-2.
[0085] This embodiment identifies the area that needs adjustment by starting from the point of the abnormal cross-section line.
[0086] In one embodiment, determining the starting point of the adjustment area based on the starting point of the abnormal cross-section line specifically includes: subtracting one from the starting point of the abnormal cross-section line to obtain the starting point of the adjustment area.
[0087] In one embodiment, determining the endpoint of the adjustment area based on the starting point of the abnormal cross-section line specifically includes: comparing whether the order of the endpoints of the cross-section lines corresponding to two adjacent points of the starting point of the abnormal cross-section line is the same as the order of the set of starting points of the cross-section line.
[0088] If they are the same, then add one to the starting point of the abnormal cross-section line to obtain the ending point of the adjustment area;
[0089] If they are not the same, then starting from the starting point of the abnormal cross-section line, increment by one sequentially, compare the order of the cross-section line endpoints corresponding to the two points before and after it, and determine whether the order is the same as the order of the starting point set of the cross-section line, until a point is found whose order of the cross-section line endpoints corresponding to the two points before and after it is determined to be the starting point of the abnormal cross-section line. If no point with the same order is found, then the last point of the cross-section line endpoint set is taken as the endpoint of the adjustment area.
[0090] Specifically, step S206 determines the self-intersecting adjustment region. For example... Figure 4 As shown, starting from point Mi-1 = 0, find the endpoint number of the cross-section line in the adjustment region. Sequentially determine the difference between the endpoint Ni+1 = 64 corresponding to the starting point of the cross-section line starting from Mi+1 = 2 and the endpoint Ni-1 = 57 corresponding to point Mi-1 = 0. The difference is 7, which is the same as the sign of flag = 1 (that is, the arrangement order of these two points is the same as the arrangement order of the starting point set of the cross-section line). Continue until a point 2 with the same sign is found (if no point with the same sign is found, take the last point of the endpoint point set of the cross-section line - the point Nend corresponding to the termination symmetry plane - as the endpoint of the adjustment region, that is, the adjustment region is 0-57-64-2.
[0091] This embodiment determines the adjustment area to find the adjustment position where the self-intersection point occurs.
[0092] Step S207: Adaptively adjust the set of cross-sectional line points within the adjustment area.
[0093] In one embodiment, the adaptive adjustment of the cross-sectional line point set within the adjustment region specifically includes:
[0094] Determine whether the order of the endpoint corresponding to the starting point of the adjustment region and the last point of the endpoint point set of the cross-section line is the same as the order of the starting point point set of the cross-section line. If they are not the same, take the endpoint of the cross-section line corresponding to the starting point of the adjustment region as the point to be adjusted and perform the adjustment operation on the point to be adjusted.
[0095] Determine whether the order of the end point of the cross-section line corresponding to the end point of the adjustment area and the last point of the set of end points of the cross-section line is the same as the order of the set of start points of the cross-section line. If they are not the same, then take the end point of the cross-section line corresponding to the end point of the adjustment area as the point to be adjusted and perform the adjustment operation on the point to be adjusted.
[0096] The adjustment operation includes: reallocating new points to the points to be adjusted within the adjustment area.
[0097] Specifically, step S207 performs adaptive adjustment within the adjustment area. First, it determines whether the order of the endpoint corresponding to the start point of the adjustment area and the last point of the cross-sectional line endpoint set is the same as the order of the start point set of the cross-sectional line. If they are different, the endpoint of the cross-sectional line corresponding to the start point of the adjustment area is taken as the point to be adjusted, and an adjustment operation is performed on the point to be adjusted. Figure 6 As shown, the order of the endpoint 215 corresponding to the starting point 46 of the adjustment area and the last point 243 of the endpoint point set of the cross-section line is the same as the order of the starting point point set of the cross-section line, which is ascending. Therefore, the endpoint of the cross-section line corresponding to the starting point of the adjustment area does not need to be adjusted.
[0098] Then, it is determined whether the order of the endpoint of the cross-section line corresponding to the endpoint of the adjustment region and the last point of the set of endpoint points of the cross-section line are the same as the order of the set of starting points of the cross-section line. If they are not the same, the endpoint of the cross-section line corresponding to the endpoint of the adjustment region is taken as the point to be adjusted, and the adjustment operation is performed on the point to be adjusted. Similarly, Figure 6 For example, the order of the endpoint 245 of the cross-section line corresponding to the endpoint 48 of the adjustment region and the last point 243 of the cross-section line endpoint point set is descending, which is different from the ascending order of the cross-section line starting point point set. Therefore, the endpoint 245 of the cross-section line corresponding to the endpoint 48 of the adjustment region is taken as the point to be adjusted. Continuing to judge the order of the endpoint 247 of the cross-section line corresponding to the endpoint 49 of the adjustment region and the last point 243 of the cross-section line endpoint point set, it is different from the order of the cross-section line starting point point set. Therefore, the endpoint 247 of the cross-section line corresponding to the endpoint 49 of the adjustment region is taken as the point to be adjusted. Continuing to the next point, the endpoint 50 of the cross-section line starting point point set is the endpoint 243 of the cross-section line, which does not exceed the termination symmetry plane 304 of the cross-section line. Therefore, the endpoint of the adjustment region is adjusted to the endpoint 50 of the cross-section line starting point point set.
[0099] More specifically, such as Figure 6-8 As shown, the endpoint of the cross-section line corresponding to the starting point of the adjustment area is rolled back, and the endpoint of the cross-section line corresponding to the ending point of the adjustment area is adjusted backward, as shown. Figure 6 As shown, 47, 48, and 49 are all starting points of abnormal cross-section lines, so as... Figure 7 As shown, the adjustment area is 46-215-243-50. Points 47, 48, and 49 are all moved into the adjustment area, and new points are reassigned to the points to be adjusted within the adjustment area.
[0100] Preferably, new points are redistributed to the points to be adjusted within the adjustment area in proportion to the new points, for example, according to the principle of proportional average distribution within the adjustment area.
[0101] like Figure 7As shown, according to the principle of proportional and average allocation of the adjustment area, the endpoint 212 of the cross-section line corresponding to 47 is adjusted to point c, the endpoint 245 of the cross-section line corresponding to 48 is adjusted to point d, and the endpoint 247 of the cross-section line corresponding to 49 is adjusted to point e. After complete adjustment, as shown... Figure 8 As shown. Figure 9-11 As shown, a post-adjustment process is performed on the endpoint of the cross-section line corresponding to the endpoint of the adjustment area, such as... Figure 9 As shown, 48 and 49 are the starting points of the abnormal cross-section lines, so as... Figure 10 As shown, the adjustment range is 47-220-239-50. Move point 245 to point f and point 247 to point g. After complete adjustment, it should look like this. Figure 11 As shown.
[0102] In this embodiment, after correcting and adjusting all self-intersecting points, a first set of symmetrical side points without self-intersections is obtained.
[0103] Step S208: Mirror the adjusted set of cross-sectional line points to the second symmetrical side with the symmetrical line as the center.
[0104] Specifically, step S208 mirrors the adjusted set of points on the first symmetrical side section to the second symmetrical side, centered on the line of symmetry. For example... Figure 12 As shown, the first symmetrical side of the adjusted cross-section line is used as the seed side, and the starting point set and the ending point set are mirrored onto the second symmetrical side, thus obtaining a complete non-intersecting cross-section line.
[0105] This embodiment ensures the symmetry of the process supplementation of symmetrical parts by mirroring from the first symmetrical side that does not intersect to the second symmetrical side, and also improves the efficiency of process drawing die surface design.
[0106] This invention selects a symmetrical side of a cross-section line and sequentially converts it into a set of starting points and corresponding ending points. Based on the ending points corresponding to the starting points, it determines whether the cross-section lines self-intersect, identifies abnormal starting points of self-intersecting cross-section lines, and then finds the self-intersecting adjustment region based on these abnormal starting points. Within this region, it adjusts the ending points corresponding to the abnormal starting points proportionally. Finally, it mirrors the adjusted cross-section line point set to the other symmetrical side, centered on the symmetrical line. This achieves symmetrical adaptive adjustment of the cross-section line direction for process supplementation, ensuring the symmetry of process supplementation for symmetrical parts and improving the efficiency of process drawing die design.
[0107] Best Practice
[0108] like Figure 3 The diagram illustrates the conversion of one symmetrical side of a cross-section line into a set of cross-section line points in a preferred embodiment of the present invention. Converting one symmetrical side of the obtained cross-section line into a set of cross-section line points specifically includes:
[0109] The point set (Mset) of the starting point of the cross-section line (points on the inner boundary of the cross-section line) is sorted in ascending order from the plane of symmetry to the plane of symmetry (e.g., 0-50);
[0110] The set of points (Nset) at the endpoint of the cross-section line (points on the outer boundary corresponding to the inner boundary of the cross-section line) (e.g., 57, 53, 64, 62, 69, ..., 215, 212, 245, 247, 243).
[0111] Determining whether cross-section lines self-intersect includes:
[0112] like Figure 3 As shown, calculate the common difference flag of the Mset point set numbering order (ascending or descending). Ascending order flag = 1, descending order flag = -1. This example is ascending order (flag = 1).
[0113] like Figure 4 As shown, Mset is an ascending set of feature points. Starting from point 1, the difference between the endpoint index of the current cross-section line and the endpoint index of the previous cross-section line is calculated sequentially. It is then determined whether the difference is opposite to the flag. If they are opposite, it is determined that an intersection has occurred at point 1. This point is the outlier point Nbad, and the corresponding cross-section line starting point is Mi = 1.
[0114] Determine the self-intersecting adjustment region, specifically including:
[0115] Determine the starting point number of the adjustment area. Point Mi = 1 is the first abnormal point, so the starting point of the cross-sectional line of the adjustment area is taken as point Mi-1 = 0.
[0116] like Figure 4 As shown, starting from point Mi-1 = 0, find the endpoint number of the cross-section line in the adjustment region. Sequentially determine the difference between the endpoint Ni+1 = 64 corresponding to the starting point of the cross-section line starting from Mi+1 = 2 and the endpoint Ni-1 = 57 corresponding to point Mi-1 = 0. The difference is 7, which is the same as the sign of flag = 1 (that is, the arrangement order of these two points is the same as the arrangement order of the starting point set of the cross-section line). Continue until a point 2 with the same sign is found (if no point with the same sign is found, take the last point of the endpoint point set of the cross-section line - the point Nend corresponding to the termination symmetry plane - as the endpoint of the adjustment region, that is, the adjustment region is 0-57-64-2.
[0117] Adaptive adjustments are made within the adjustment area, and new points are allocated proportionally within the adjustment range, specifically including:
[0118] like Figure 4 and Figure 5As shown, check whether the endpoint Ni-1=57 corresponding to the starting point Mi-1=0 of the adjustment region exceeds the termination symmetry plane. That is, compare the difference between the point Nend=243 corresponding to the termination symmetry plane and Ni-1=57. If it has the same sign as the flag, no backtracking is needed for the starting point of the adjustment region. If it has a different sign than the flag, then backtracking is necessary for the starting point of the adjustment region. Figures 6 to 8 As shown, the starting point of the adjustment area has been rolled back;
[0119] like Figure 4 and Figure 5 As shown, check whether the endpoint Ni+1 = 64 of the adjustment region exceeds the termination symmetry plane. That is, compare the difference between the point Nend = 243 corresponding to the termination symmetry plane and Ni+1 = 64. If it has the same sign as the flag, no further adjustment is needed for the endpoint of the adjustment region. If it has a different sign than the flag, then further adjustment is needed for the endpoint of the adjustment region. Figures 9 to 11 As shown, the endpoint of the adjustment area was post-adjusted.
[0120] The adjusted point set is mirrored to the other side of the symmetry plane, specifically including:
[0121] like Figure 12 As shown, if one of the symmetrical sides of the adjusted cross-section line is taken as the seed side, then the seed side cross-section line starting point set Mset is mirrored with the symmetry plane as the center to obtain the mirrored cross-section line starting point set (Msetsym); the seed side cross-section line ending point set Nset is mirrored with the symmetry plane as the center to obtain the mirrored cross-section line ending point set (Najustsym).
[0122] like Figure 13 The diagram shown is a hardware structure schematic of an electronic device according to the present invention, comprising:
[0123] At least one processor 1301; and,
[0124] A memory 1302 is communicatively connected to at least one of the processors 1301; wherein,
[0125] The memory 1302 stores instructions that can be executed by at least one of the processors to enable the at least one of the processors to perform the process supplement cross-section line direction symmetry adaptive adjustment method as described above.
[0126] Figure 13 Take the 1301 processor as an example.
[0127] The electronic device may also include an input device 1303 and a display device 1304.
[0128] The processor 1301, memory 1302, input device 1303 and display device 1304 can be connected by a bus or other means. The figure shows an example of connection by bus.
[0129] The memory 1302, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the process supplement cross-section line direction symmetry adaptive adjustment method in the embodiments of this application, for example, Figure 1 , Figure 2 The method flow is shown. The processor 1301 executes various functional applications and data processing by running non-volatile software programs, instructions, and modules stored in the memory 1302, thereby realizing the process supplement cross-section line direction symmetry adaptive adjustment method in the above embodiments.
[0130] Memory 1302 may include a program storage area and a data storage area. The program storage area may store an operating system and an application program required for at least one function. The data storage area may store data created using the process-supplemented cross-section direction symmetry adaptive adjustment method, etc. Furthermore, memory 1302 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 1302 may optionally include memory remotely located relative to processor 1301, and these remote memories may be connected via a network to means of performing the process-supplemented cross-section direction symmetry adaptive adjustment method. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0131] The input device 1303 can receive user clicks and generate user settings and function control related to the adaptive adjustment method for process supplement cross-section line direction symmetry. The display device 1304 may include a display screen or other display equipment.
[0132] When one or more modules are stored in the memory 1302 and are run by one or more processors 1301, the process supplement cross-section line direction symmetry adaptive adjustment method in any of the above method embodiments is executed.
[0133] This invention selects a symmetrical side of the cross-section line as a seed side, then sequentially converts the seed side into a set of starting points and corresponding ending points of the cross-section line. Based on the ending points corresponding to the starting points, it determines whether the cross-section lines self-intersect and identifies the self-intersection adjustment region. Within this region, the ending points corresponding to abnormal starting points of the cross-section lines are adjusted. Finally, the adjusted seed side point set is mirrored to the other symmetrical side with the symmetry plane as the center, obtaining the starting point and ending point sets of the cross-section lines on the other symmetrical side. This achieves symmetrical adaptive adjustment of the cross-section line direction for process supplementation, ensuring the symmetry of process supplementation for symmetrical parts and improving the efficiency of process drawing die design.
[0134] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
Claims
1. A method for adaptively adjusting the symmetrical direction of a process-supplemented cross-section line, characterized in that, include: The cross-section line is divided into two mirrored sides, the first and the second, by the central line of symmetry. Convert the first symmetrical side into a set of cross-sectional line points; Determine whether the cross sections divided by the cross lines are self-intersecting based on the set of points on the cross lines; If the set of cross-section points determines that the cross-sections divided by the cross-section line intersect with itself, then the set of cross-section points is adaptively adjusted, and the adjusted set of cross-section points is mirrored to the second symmetrical side with the symmetrical line as the center. The cross-sectional line point set includes a cross-sectional line start point set and a cross-sectional line end point set. The cross-sectional line start point set is the set of points at the start of the cross-sectional line, where the start point is a point on the inner boundary of the first symmetrical side of the cross-sectional line. The cross-sectional line end point set is the set of points at the end of the cross-sectional line, where the end point is the point on the outer boundary of the cross-sectional line corresponding to the start point. The step of determining whether the cross-sections divided by the cross-sectional line self-intersect based on the cross-sectional line point set specifically includes: Starting from the second cross-section line, traverse backwards, and compare the order of the end point of the cross-section line corresponding to the starting point of the cross-section line with the end point of the cross-section line corresponding to the previous starting point of the cross-section line. Determine whether the arrangement order is the same as the order of the starting point set of the cross-section line; If they are not the same, the cross-sections are considered to have self-intersected; otherwise, the cross-sections are considered not to have self-intersected. The adaptive adjustment of the cross-sectional line point set, mirroring the adjusted cross-sectional line point set to the second symmetrical side with the symmetrical line as the center, specifically includes: Determine the starting point of the abnormal cross-section line where self-intersection occurs; The self-intersecting adjustment area is determined based on the starting point of the abnormal cross-section line; The cross-sectional line point set is adaptively adjusted within the adjustment area; The adjusted set of cross-sectional line points is mirrored onto the second symmetrical side with the symmetrical line as the center. The determination of the self-intersecting adjustment region based on the starting point of the abnormal cross-section line specifically includes: The starting point of the adjustment area is determined based on the starting point of the abnormal cross-section line; Determine the endpoint of the adjustment area based on the starting point of the abnormal cross-section line; The area formed by connecting the starting point of the adjustment area and its corresponding end point of the cross-section line, and the end point of the adjustment area and its corresponding end point of the cross-section line, is defined as the adjustment area. The adaptive adjustment of the cross-sectional line point set within the adjustment area specifically includes: Determine whether the order of the endpoint corresponding to the starting point of the adjustment region and the last point of the endpoint point set of the cross-section line is the same as the order of the starting point point set of the cross-section line. If they are not the same, take the endpoint of the cross-section line corresponding to the starting point of the adjustment region as the point to be adjusted and perform the adjustment operation on the point to be adjusted. Determine whether the order of the endpoint of the cross-section line corresponding to the endpoint of the adjustment region and the last point of the endpoint point set of the cross-section line is the same as the order of the starting point point set of the cross-section line. If they are not the same, then take the endpoint of the cross-section line corresponding to the endpoint of the adjustment region as the point to be adjusted and perform the adjustment operation on the point to be adjusted. The adjustment operation includes: reallocating new points to the points to be adjusted within the adjustment area.
2. The process supplement cross-section line directional symmetrical adaptive adjustment method according to claim 1, characterized in that: The starting point set of the cross-section line is numbered sequentially as an arithmetic natural number along the direction of the cross-section line, starting from the plane of symmetry of the cross-section line.
3. The process supplement cross-section line directional symmetrical adaptive adjustment method according to claim 1, characterized in that, The step of determining the starting point of the adjustment area based on the starting point of the abnormal cross-section line specifically includes: The starting point of the adjustment area is obtained by subtracting one from the starting point of the abnormal cross-section line.
4. The process supplement cross-section line directional symmetrical adaptive adjustment method according to claim 1, characterized in that, The step of determining the endpoint of the adjustment area based on the starting point of the abnormal cross-section line specifically includes: Compare whether the order of the endpoints of the cross-section line corresponding to two adjacent points before and after the starting point of the abnormal cross-section line is the same as the order of the starting point set of the cross-section line. If they are the same, then add one to the starting point of the abnormal cross-section line to obtain the ending point of the adjustment area; If they are not the same, then starting from the starting point of the abnormal cross-section line, increment by one sequentially, compare the order of the cross-section line endpoints corresponding to the two points before and after it, and determine whether the order is the same as the order of the starting point set of the cross-section line, until a point is found whose order of the cross-section line endpoints corresponding to the two points before and after it is determined to be the starting point of the abnormal cross-section line. If no point with the same order is found, then the last point of the cross-section line endpoint set is taken as the endpoint of the adjustment area.
5. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to at least one of the processors; wherein, The memory stores instructions executable by at least one of the processors, which enable the at least one processor to perform the process supplement cross-section line orientation symmetry adaptive adjustment method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Single-curvature windscreen for control cabin of helicopter and design method
CN109533379A
Method for automatically arranging section lines of addendum surface
CN109634217A