Design method for uniform distribution of gap measurement points, electronic equipment and readable storage medium

Through automated calculation and segmented gap measurement points, the problem of unevenness of component gap measurement points caused by manual settings is solved, and the uniform distribution and accuracy of component gap measurement points are achieved, and the working efficiency is improved.

CN118965791APending Publication Date: 2024-11-15CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411115597.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the prior art, the arrangement of parts gap measurement points depends on manual experience, resulting in the distance between points that cannot be strictly controlled and cannot be set in batches, resulting in long and uneven time.

Method used

By obtaining the edge lines of the parts, setting the initial points according to the preset spacing, calculating the angle and circumferential radius, dividing edge segments, and laying gap measurement points according to the initial point type and segment length, and using electronic devices and readable storage media to achieve automated uniform distribution .

Benefits of technology

Ensure the accuracy of the distance between points, reduce manual investment, and realize the rapid and automatic generation of gap measurement points, reducing errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118965791A_ABST
    Figure CN118965791A_ABST
Patent Text Reader

Abstract

The invention provides a design method for uniform distribution of gap measurement points, and the method comprises the following steps: S1, obtaining a side line of a part of a to-be-designed gap measurement point, and setting an initial point on the side line according to a preset interval; s2, starting from the starting point of the initial points on the side line, sequentially dividing the three initial points into one group, and calculating an included angle theta i-1 and a circumcircle radius Ri-1 of each group; wherein the included angle theta i-1 is an included angle of a vector formed by two adjacent initial points in a group of initial points; s3, determining the type of the initial point according to the included angle theta i-1 and the radius Ri-1 of the circumcircle; s4, segmenting the side line according to the type of the initial point and the radius Ri-1 of the circumcircle; and S5, arranging gap measurement points according to the length of each side line and the type of the initial point. By means of the method, the gap measuring points can be rapidly arranged on the side line in a targeted mode, and it can be guaranteed that the distance between the points meets the requirement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of component gap measurement point planning, and in particular to a design method, electronic equipment and readable storage medium for uniform distribution of gap measurement points. Background Art

[0002] Gap measurement points are arranged at the edges of the vehicle and parts. The size of the gap measurement points can be used to determine whether the contour shape of the parts meets the size requirements. Currently, the arrangement of gap measurement points on parts, assemblies and vehicles is mainly done by manually setting measurement points. Manually setting measurement points relies on the experience of the layout personnel and easily leads to the inability to strictly control the distance between points, and the distance between points is random. In addition, manually set measurement points cannot be set in batches, but can only be set individually, and it takes a long time for the personnel to distribute gap measurement points.

[0003] Therefore, in order to solve the above technical problems, it is urgent to propose a new technical means. Summary of the invention

[0004] In view of this, in order to quickly and evenly set the gap measurement points, the present invention proposes a design method for evenly distributing the gap measurement points, an electronic device and a readable storage medium.

[0005] The present invention provides a design method for uniformly distributing gap measurement points, comprising the following steps:

[0006] S1. Obtain the edge of the part whose gap measurement point is to be designed, and set the initial point on the edge according to the preset spacing;

[0007] S2. Starting from the starting point of the initial point on the edge line, divide the three initial points into a group in turn, and calculate the angle θ of each group i-1 and the circumscribed circle radius R i-1 ;

[0008] Among them, [P1, P2, P3], [P2, P3, P4], …, [P i-2 ,P i-1 ,P i ],[P i-1 ,P i ,P i+1 ],…[P d-2 ,P d-1 ,P d ] is the divided group, P i represents the i-th initial point, d represents the total number of initial points, and the angle θ i-1 is the angle between the vectors formed by two adjacent initial points in a set of initial points;

[0009] S3. According to the angle θ i-1 and the circumscribed circle radius R i-1Determine the type of initial point;

[0010] S4. According to the type of initial point and the radius R of the circumscribed circle i-1 Segment the edge;

[0011] S5. Arrange the gap measurement points according to the length of each edge line and the type of the initial point, and output all the gap measurement points.

[0012] Furthermore, the type of the initial point is determined by the following method:

[0013]

[0014] in, Indicates the type of the initial point. a, b, and c represent the three types of initial points. R A and R B Respectively represent the upper and lower boundaries of the preset radius.

[0015] Furthermore, segmentation is performed by the following method: determining whether the types of two adjacent initial points are the same, if so, segmenting them into one segment, if not, not segmenting them into one segment.

[0016] Furthermore, when K j =a and L j ≤L p When , no gap measurement point is set on the jth edge line;

[0017] Among them, K j represents the jth edge, L j represents the length of the jth edge, L p Indicates the distance from the first preset gap measurement point to the starting point or the distance from the last preset gap measurement point to the end point.

[0018] Furthermore, when K j =b or K j = c, and L p ≤L j <0.5L, set a gap measurement point at the midpoint of the jth edge line;

[0019] Among them, K j represents the jth edge, L j represents the length of the jth edge, L p represents the distance from the first preset gap measurement point to the starting point or the distance from the last preset gap measurement point to the end point, and L represents the distance between two adjacent preset gap measurement points.

[0020] Furthermore, when K j =b or K j =c, and L≤L j<1.5L, two gap measurement points are arranged in the jth edge line, and the two gap measurement points Node1 and Node2 satisfy:

[0021]

[0022] Among them, P j,q and P j,z They represent the starting point and end point of the jth edge line, L p Indicates the distance from the first preset gap measurement point to the starting point or the distance from the last preset gap measurement point to the end point. j,1 and P j,2 They respectively represent the first gap measurement point and the second gap measurement point in the j-th edge line, and L represents the preset distance between two adjacent gap measurement points.

[0023] Furthermore, when K j =b or K j = c, and L j ≥1.5L, arrange n gap measurement points in the jth edge line, n≥3, and the n gap measurement points satisfy:

[0024]

[0025] Among them, P j,q and P j,z They represent the starting point and end point of the jth edge line, L p Indicates the distance from the first preset gap measurement point to the starting point or the distance from the last preset gap measurement point to the end point. j,1 and P j,e They represent the first gap measurement point and the last gap measurement point in the jth edge line, L represents the preset distance between two adjacent gap measurement points, Node m represents the mth measurement point, P j,m represents the mth measurement point in the jth edge line, t represents the proportional coefficient, when K j =b, t = 1; when K j When =c, t=1 / 2.

[0026] Furthermore, the angle θ of each group i-1 Calculated by the following formula:

[0027]

[0028] Among them, θ i-1 Indicates [P i-1 ,P i ,P i+1 ]Group and Angle.

[0029] Accordingly, the present invention further provides an electronic device, comprising:

[0030] A memory and a processor, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the design method for uniformly distributing the gap measurement points is implemented.

[0031] Accordingly, the present invention provides a readable storage medium, wherein the readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the above-mentioned design method for uniform distribution of gap measurement points is implemented.

[0032] The beneficial effects of the present invention are as follows: the present invention divides the edge line into different segments and arranges the gap measurement points on the edge line in a targeted manner, thereby ensuring that the distance between points meets the requirements and reducing the error of the distance between the gap measurement points; and the above method can quickly and automatically generate gap measurement points, thereby reducing manual input. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:

[0034] Figure 1 It is a flow chart of the present invention;

[0035] Figure 2 Schematic diagram of vectors and angles in this embodiment;

[0036] Figure 3 Schematic diagram of the circumscribed circle in this embodiment. DETAILED DESCRIPTION

[0037] The present invention is further described below in conjunction with the accompanying drawings:

[0038] The present invention provides a design method for uniformly distributing gap measurement points, comprising the following steps:

[0039] S1. Obtain the edge of the part whose gap measurement point is to be designed, and set the initial point on the edge according to the preset spacing;

[0040] S2. Starting from the starting point of the initial point on the edge line, divide the three initial points into a group in turn, and calculate the angle θ of each group i-1 and the circumscribed circle radius R i-1 ;

[0041] Among them, [P1, P2, P3], [P2, P3, P4], …, [P i-2 ,P i-1 ,P i ],[P i-1 ,P i ,P i+1 ],…[Pd-2 ,P d-1 ,P d ] is the divided group, P i represents the i-th initial point, d represents the total number of initial points, and the angle θ i-1 is the angle between the vectors formed by two adjacent initial points in a set of initial points;

[0042] S3. According to the angle θ i-1 and the circumscribed circle radius R i-1 Determine the type of initial point;

[0043] S4. According to the type of initial point and the radius R of the circumscribed circle i-1 Segment the edge;

[0044] S5. Arrange the gap measurement points according to the length of each edge line and the type of the initial point, and output all the gap measurement points.

[0045] This application is applicable to the setting of gap measurement points on the edges of parts, assemblies and complete vehicles.

[0046] In this embodiment, in step S1, the edge line of the part for which the gap measurement point is to be designed is obtained, and the initial point is set on the edge line according to the preset spacing; the preset spacing is set according to demand, the smaller the preset spacing, the higher the accuracy, but the more complicated the calculation, and the preset spacing is preferably one percent of the distance between two adjacent gap measurement points.

[0047] In this embodiment, in step S2, starting from the starting point of the initial point on the edge line, the three initial points are divided into a group in sequence, and the angle θ of each group is calculated. i-1 and the circumscribed circle radius R i-1 ;

[0048] Among them, [P1, P2, P3], [P2, P3, P4], …, [P i-2 ,P i-1 ,P i ],[P i-1 ,P i ,P i+1 ],…[P d-2 ,P d-1 ,P d ] is the divided group, P i represents the i-th initial point, d represents the total number of initial points, and the angle θ i-1 is the angle between the vectors formed by two adjacent initial points in a set of initial points;

[0049] Angle θ i-1 like Figure 2 As shown, the angle θ of each group i-1 Calculated by the following formula:

[0050]

[0051] Among them, θ i-1 Indicates [P i-1 ,P i ,P i+1 ]Group and The angle of

[0052] [P i-1 ,P i ,P i+1 The circumscribed circle of ] is Figure 3 As shown, determining a circumscribed circle based on three points and calculating the radius of the circumscribed circle is a prior art. In this embodiment, the radius of the circumscribed circle is calculated by the following steps:

[0053] First, according to P i-1 , P i and P i+1 The coordinates of the three points are used to calculate the equation of the plane. The calculation formula of the plane equation is as follows:

[0054] A1x+B1y+C1z+D1=0

[0055]

[0056] Among them, (x i-1 ,y i-1 , z i-1 ) is point P i-1 The coordinates of (x i ,y i , z i ) is point P i The coordinates of (x i+1 ,y i+1 , z i+1 ) is point P i+1 The coordinates of

[0057] Then, since the circumcircle center O to P i-1 , P i and P i+1 The lengths are equal, and we can get the following formula:

[0058]

[0059] Furthermore, the coefficients A1, A2, A3, B1, B2, B3, C1, C2, C3, D1, D2 and D3 are substituted into the circle center coordinate calculation formula to obtain the coordinates of the circle center O (x o ,y o , z o ); The formula for calculating the center coordinates is as follows:

[0060]

[0061] Finally, the radius R of the circumscribed circle is calculated based on the coordinates of any point on the circumscribed circle and the coordinates of the center of the circle. i-1 , the calculation formula is as follows:

[0062]

[0063] Among them, OP i-1 Indicates point P i-1 The distance to the center O.

[0064] In this embodiment, in step S3, according to the angle θ i-1 and the circumscribed circle radius R i-1 Determine the type of initial point;

[0065] The type of initial point is determined by the following method:

[0066]

[0067] in, Indicates the type of the initial point. a, b, and c represent the three types of initial points. R A and R B Respectively represent the upper and lower boundaries of the preset radius, R A and R B Set according to the requirements, between R A and R B Between means the line segment is smooth;

[0068] Class a indicates a small curvature, that is, an edge with a sharp change in curvature; class b indicates a large change in curvature, that is, an edge with a gentle change in curvature; class c indicates a moderate curvature, that is, an edge with a gentle change in curvature; class b is gentler than class c. The above method can provide a basis for the subsequent division of edge segments.

[0069] In this embodiment, in step S4, the edge line is segmented by the following method:

[0070] Determine whether the types of two adjacent initial points are the same. If so, divide them into one segment; if not, do not divide them into one segment.

[0071] For example, there are 100 initial points, of which the types of the 1st to 38th initial points are all type a, the types of the 39th to 76th initial points are all type b, the types of the 77th to 99th initial points are type a, and the 100th initial point is type c. Then the 1st to 38th initial points are divided into one section, the 39th to 76th initial points are divided into one section, and the 77th to 99th initial points are divided into one section. Through the above method, the edge lines with different curvatures can be divided, thereby providing a basis for the subsequent targeted setting of gap measurement points.

[0072] In this embodiment, in step S5, the gap measurement points are arranged according to the length of each edge line and the type of the initial point, and all the gap measurement points are output.

[0073] When K j =a and L j ≤L p When K j = a, the curvature changes dramatically and it is not suitable to set the gap measurement point; when L j ≤L p When , the length of the j-th edge line does not meet the distance requirement between the first gap measurement point and the starting point of the j-th edge line, so it is not suitable to set the gap measurement point;

[0074] Among them, K j represents the jth edge, L j represents the length of the jth edge, L p Indicates the distance from the first preset gap measurement point to the starting point or the distance from the last preset gap measurement point to the end point. p Set as required.

[0075] When K j =b or K j = c, and L p ≤L j <0.5L, a gap measurement point is set at the midpoint of the jth edge line, because when the edge line curvature changes more gently but the edge line length is very short, if the gap measurement point is set according to L p If two points are set on the edge, the two points may be very close to each other or cross each other, so to avoid the above situation, only one point is placed in the middle;

[0076] Among them, K j represents the jth edge, L j represents the length of the jth edge, L p It represents the distance from the first preset gap measurement point to the starting point or the distance from the last gap measurement point to the end point, and L represents the distance between two adjacent preset gap measurement points. L is set according to the requirements, and is preferably 100 mm.

[0077] When K j =b or K j =c, and L≤L j <1.5L, two gap measurement points are arranged in the jth edge line, because when the edge line curvature changes more gently but the edge line length is short, if according to L p Setting the first gap measurement point and the last gap measurement point on the edge line, and then setting the gap measurement point in the middle according to L will make the point positions uneven. Therefore, to avoid the above situation, only two gap measurement points are set;

[0078] The two gap measurement points Node1 and Node2 satisfy:

[0079]

[0080] Among them, P j,q and P j,z They represent the starting point and end point of the jth edge line, L p Indicates the distance from the first preset gap measurement point to the starting point or the distance from the last preset gap measurement point to the end point. j,1 and P j,2 They respectively represent the first gap measurement point and the second gap measurement point in the j-th edge line, and L represents the preset distance between two adjacent gap measurement points.

[0081] When K j =b or K j = c, and L j ≥1.5L, n gap measurement points are arranged in the jth edge line, n ≥ 3, because this indicates that the curvature change is moderate and the edge line is long enough to reserve enough line segment length to set the middle gap measurement point after setting the first gap measurement point and the last gap measurement point;

[0082] The n gap measurement points satisfy:

[0083]

[0084] Among them, P j,q and P j,z They represent the starting point and end point of the jth edge line, L p Indicates the distance from the first preset gap measurement point to the starting point or the distance from the last preset gap measurement point to the end point. j,1 and P j,e They represent the first gap measurement point and the last gap measurement point in the jth edge line, L represents the preset distance between two adjacent gap measurement points, Node m represents the mth measurement point, P j,m represents the mth measurement point in the jth edge line, t represents the proportional coefficient, when K j =b, t = 1; when K j =c, t=1 / 2; this is because class b is smoother than class c. To ensure the uniformity of point distribution, more gap measurement points are set on class c where the changes are more dramatic.

[0085] Through the above method, the gap measurement points of the entire edge are output (note that the gap measurement points do not include the start and end points of each edge segment); the gap measurement points of the entire edge are set specifically according to the curvature change and length of each edge segment, which can ensure that the distribution of the gap measurement points meets the setting requirements.

[0086] Accordingly, the present invention further provides an electronic device, comprising:

[0087] A memory and a processor, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the design method for uniformly distributing the gap measurement points is implemented.

[0088] Accordingly, the present invention provides a readable storage medium, wherein the readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the above-mentioned design method for uniform distribution of gap measurement points is implemented.

[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.

Claims

1. A design method for uniformly distributing gap measurement points, characterized in that: The following steps are involved: S1. Obtain the edge of the part whose gap measurement point is to be designed, and set the initial point on the edge according to the preset spacing; S2. Starting from the starting point of the initial point on the edge line, divide the three initial points into a group in turn, and calculate the angle θ of each group i-1 and the circumscribed circle radius R i-1 ; Among them, [P1, P2, P3], [P2, P3, P4], …, [P i-2 ,P i-1 ,P i ],[P i-1 ,P i ,P i+1 ],…[P d-2 ,P d-1 ,P d ] is the divided group, P i represents the i-th initial point, d represents the total number of initial points, and the angle θ i-1 is the angle between the vectors formed by two adjacent initial points in a set of initial points; S3. According to the angle θ i-1 and the circumscribed circle radius R i-1 Determine the type of initial point; S4. According to the type of initial point and the radius R of the circumscribed circle i-1 Segment the edge; S5. Arrange the gap measurement points according to the length of each edge line and the type of the initial point, and output all the gap measurement points.

2. The design method for uniformly distributing gap measurement points according to claim 1, characterized in that: The type of initial point is determined by the following method: in, Indicates the type of the initial point. a, b, and c represent the three types of initial points. R A and R B Respectively represent the upper and lower boundaries of the preset radius.

3. The design method for uniformly distributing gap measurement points according to claim 2, characterized in that: The segmentation is performed by the following method: determine whether the types of two adjacent initial points are the same, if so, divide them into one segment, if not, do not divide them into one segment.

4. The design method for uniformly distributing gap measurement points according to claim 3 is characterized in that: When K j =a and L j ≤L p When , no gap measurement point is set on the jth edge line; Among them, K j represents the jth edge, L j represents the length of the jth edge, L p Indicates the distance from the first preset gap measurement point to the starting point or the distance from the last preset gap measurement point to the end point.

5. The design method for uniformly distributing gap measurement points according to claim 3 is characterized in that: When K j =b or K j = c, and L p ≤L j <0.5L, set a gap measurement point at the midpoint of the jth edge line; Among them, K j represents the jth edge, L j represents the length of the jth edge, L p represents the distance from the first preset gap measurement point to the starting point or the distance from the last preset gap measurement point to the end point, and L represents the distance between two adjacent preset gap measurement points.

6. The design method for uniformly distributing gap measurement points according to claim 3, characterized in that: When K j =b or K j =c, and L≤L j <1.5L, two gap measurement points are arranged in the jth edge line, and the two gap measurement points Node1 and Node2 satisfy: Among them, P j,q and P j,z They represent the starting point and end point of the jth edge line, L p Indicates the distance from the first preset gap measurement point to the starting point or the distance from the last preset gap measurement point to the end point. j,1 and P j,2 They respectively represent the first gap measurement point and the second gap measurement point in the j-th edge line, and L represents the preset distance between two adjacent gap measurement points.

7. The design method for uniformly distributing gap measurement points according to claim 3 is characterized in that: When K j =b or K j = c, and L j ≥1.5L, arrange n gap measurement points in the jth edge line, n≥3, and the n gap measurement points satisfy: Among them, P j,q and P j,z They represent the starting point and end point of the jth edge line, L p Indicates the distance from the first preset gap measurement point to the starting point or the distance from the last preset gap measurement point to the end point. j,1 and P j,e They represent the first gap measurement point and the last gap measurement point in the jth edge line, L represents the preset distance between two adjacent gap measurement points, Node m represents the mth measurement point, P j,m represents the mth measurement point in the jth edge line, t represents the proportional coefficient, when K j =b, t = 1; when K j When =c, t=1 / 2.

8. The design method for uniformly distributing gap measurement points according to claim 2, characterized in that: The angle θ of each group i-1 Calculated by the following formula: Among them, θ i-1 Indicates [P i-1 ,P i ,P i+1 ]Group and Angle.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the design method for uniform distribution of gap measurement points according to any one of claims 1 to 8 is implemented.

10. A readable storage medium, characterized in that: The readable storage medium stores computer instructions, which, when executed by a processor, implement the design method for uniform distribution of gap measurement points according to any one of claims 1 to 8.