An automatic planning method for measuring points of surface features of aviation parts
By calculating the minimum two-dimensional bounding box and initial sampling step size of aerospace parts, the set of measurement points is optimized, which solves the problem of sparsity and unmeasurability of measurement points on complex surfaces of aerospace parts in the existing technology, and improves detection efficiency.
Patent Information
- Application Number
- CN202410534831.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-04-30
AI Technical Summary
Existing software tools and measurement point planning algorithms have problems with poor point sparsity and unmeasurable locations in complex surface measurements of aerospace parts, resulting in low measurement point selection efficiency and quality, affecting detection efficiency.
By obtaining the planning parameters and the target surface model, the minimum two-dimensional bounding box and the initial sampling step are calculated, the point set is obtained by sampling, and the point set is optimized to generate a set of measurement points that meet the constraints and optimize the measurement sequence.
It realizes automatic adjustment of sampling density under multiple parameter constraints, deletes bad sampling points, generates a better measurement data set, and improves the efficiency of complex surface detection of aviation parts.
Smart Images

Figure CN118133464B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of aviation parts quality inspection, and in particular to a method for automatically planning measurement points for aviation parts surface features. Background Art
[0002] As a testing device for parts processing quality, three-dimensional coordinate measuring machines are widely used in the field of mechanical processing. In industries with confidentiality requirements such as aerospace, it is inconvenient to transmit digital models of parts, and measurement point files are often used as the basis for part measurement. Rapid and efficient generation of measurement point files can effectively shorten the process preparation cycle and improve part production efficiency.
[0003] The measurement of various surface features is one of the main contents of three-dimensional coordinate measurement. Due to the characteristics of complex curvature changes, rich holes, and complex boundaries of aviation parts, the measurement points planned by existing software tools and measurement point planning algorithms have problems such as poor point sparsity and unmeasurable positions. Therefore, the current measurement points of surface features mainly rely on process personnel to manually create them one by one in CAD software. The number and spacing of measurement points depend on the experience of process personnel. The efficiency and quality of measurement point selection are low, which seriously affects the inspection efficiency of complex surfaces of aviation parts. Therefore, in order to improve the inspection efficiency of complex surfaces of aviation parts, it is necessary to design and standardize the selection of measurement points, and realize the automatic selection of measurement points to improve work efficiency. Summary of the invention
[0004] The main purpose of the present application is to provide a method for automatically planning measurement points for surface features of aviation parts, aiming to solve the defect of poor point planning accuracy in the prior art.
[0005] This application achieves the above objectives through the following technical solutions:
[0006] A method for automatically planning measurement points of surface features of aviation parts, comprising the following steps:
[0007] Obtain planning parameters and target surface model , where the planning parameters include the minimum number of measurement points M p , maximum measurement point spacing D pp , the minimum distance D between the measuring point and the target surface boundary pe ;
[0008] Calculate the minimum two-dimensional bounding box of the target surface numerical modulus according to the target surface numerical modulus;
[0009] Calculate the initial sampling step length according to the minimum two-dimensional bounding box and planning parameters;
[0010] Sampling within the minimum two-dimensional bounding box according to the initial sampling step length to obtain a sampling point set;
[0011] The sampling point set is optimized according to the planning parameters to obtain a measurement point set.
[0012] Optionally, calculating the initial sampling step length according to the minimum two-dimensional bounding box and planning parameters includes the following steps:
[0013] Determine whether the target surface numerical model meets the sampling condition according to the surface constraint condition, if not, end the calculation, otherwise proceed to the next step;
[0014] Calculate the initial sampling step length according to the sampling step length calculation formula.
[0015] Optional, the expression of the surface constraint condition is: max -u min ≥2*D pe and
[0016] V max -v min ≥2*D pe ; The calculation formula for the initial sampling step length satisfies:
[0017] and
[0018] ; where u max ,u min , v max , v min is the minimum two-dimensional bounding box B 2d (u min , v min ,u max , v max ) parameters.
[0019] Optionally, sampling within the minimum two-dimensional bounding box according to the initial sampling step to obtain a sampling point set includes the following steps:
[0020] According to the parameter B of the minimum two-dimensional bounding box 2d (u min , v min ,u max , v max ) Calculate the initial value of the loop variable;
[0021] Calculating the number of loops according to the initial value of the loop variable;
[0022] Substitute the number of cycles into the determination formula. If the determination formula is not established, then the target surface numerical model is obtained according to the number of cycles. Calculate sampling points , and adjusting the loop variable, and repeatedly calculating the number of loops according to the loop variable;
[0023] If the determination formula is established, the loop variable is adjusted, and the number of loops is repeatedly calculated according to the loop variable until all sampling points are obtained;
[0024] Gather all sampling points to obtain the sampling point set .
[0025] Optional, the initial value of the loop variable is calculated as i0=u min +D pe , j0=v min +D pe ; The expression of the loop variable is j n+1 =j n +v step ,i n+1 =i n +u step , where n represents the number of loops. When n is 0, it represents the initial value of the loop variable. n Indicates the loop variable with the number of loops in the U direction being n, i n A loop variable that represents a loop with a number of n loops in the v direction;
[0026] The calculation formula for the number of cycles is: ; where u step represents the initial sampling step in the u direction, v step Indicates the initial sampling step in the v direction;
[0027] The expression of the judgment formula is or
[0028] ; Among them, % represents the remainder, & represents the AND operation, ‖ represents the OR operation, v min and u min is the minimum two-dimensional bounding box B 2d (u min , v min ,u max , v max ) of the two parameters.
[0029] Optionally, the sampling point parameter calculation formula is expressed as:
[0030] , where u max ,u min , v max , v min is the minimum two-dimensional bounding box B 2d (u min , vmin ,u max , v max ) parameter, u step represents the initial sampling step in the u direction, v step Indicates the initial sampling step size in the v direction.
[0031] Optionally, adjusting the loop variable comprises the following steps:
[0032] According to the formula n+1 =j n +v step Adjust and generate loop variable j n+1 , if j n+1> v max , then execute the next step, otherwise according to the loop variable j n+1 and i n Recalculate the number of cycles; where n is the cycle number, 0 represents the initial cycle;
[0033] Let j0 = v min +D pe ,i n+1 =i n +u step , if i n+1> u max , then the sampling point calculation ends, otherwise according to the loop variable j n+1 and i n+1 Recalculate the number of loops; where n is the loop number, 0 represents the initial loop, and u max is the minimum two-dimensional bounding box B 2d (u min , v min ,u max , v max ) parameter, j n Indicates the loop variable with n number of loops in the u direction, i n represents a loop variable with a loop count of n in the direction v, where u step represents the initial sampling step in the u direction, v step Indicates the initial sampling step size in the v direction.
[0034] Optionally, optimizing the sampling point set according to the planning parameters to obtain a measurement point set includes the following steps:
[0035] Get sampling point set Any point in , calculation point The target surface model If the distance is greater than 0, the point is removed , otherwise keep it and get a set of filtered sampling points ;
[0036] From a screening sampling point set Choose any one , calculation point The target surface model The distance of each boundary, if any distance value is less than the minimum distance D between the measuring point and the target surface boundary pe , then remove the point , otherwise keep the point , and obtain the secondary screening sampling point set ;
[0037] Statistics of the secondary screening sampling point set The number of sampling points in ;
[0038] If the number of sampling points is less than the minimum number of measurement points M p , then the initial sampling step is scaled and the sampling is repeated until a set of measurement points is obtained. ;
[0039] If the number of sampling points is greater than the minimum number of measurement points M p , then the secondary screening sampling point set Reorder and output the measurement point set .
[0040] Optionally, scaling the initial sampling step size comprises the following steps:
[0041] Determine a scaling factor t, wherein the scaling factor t has a value range of 1 < t < 1.5;
[0042] Compare the initial sampling step size u step and v step ;
[0043] like > ,but = , = ,otherwise = , = .
[0044] Optionally, the secondary screening sampling point set The reordering process includes the following steps:
[0045] Secondary screening sampling point set Perform initial sorting and obtain a sorted sampling point set;
[0046] The secondary screening sampling point set The last element in is transferred to the sorted sampling point set;
[0047] calculate Each element in The distance to the last element in the , and the element with the smallest distance from Removed and added to at last;
[0048] Repeat step calculation Each element in The distance to the last element in the , and the element with the smallest distance from Removed and added to Finally, the secondary screening sampling point set Add all elements in to the sorted sampling point set and output the measurement point set .
[0049] Compared with the prior art, this application has the following beneficial effects:
[0050] The present application first obtains planning parameters and target surface numerical models, then calculates the minimum two-dimensional bounding box of the target surface numerical model, and then calculates the initial sampling step according to the minimum two-dimensional bounding box and planning parameters, samples the minimum two-dimensional bounding box according to the initial sampling step to obtain a sampling point set, and then optimizes the sampling point set according to the planning parameters to obtain a measurement point set, and finally sorts the measurement point set, optimizes the measurement order, and obtains the final measurement set;
[0051] Compared with the prior art, the present invention can automatically adjust the sampling density and delete bad sampling points under the constraints of multiple parameters, and finally generate a set of sampling points that meet the constraints. Then, the point set is sorted by the closest distance, thereby optimizing the measurement path and obtaining a better set of measurement data. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A flowchart of a method for automatically planning measurement points of surface features of aviation parts provided in Example 1 of the present application;
[0053] Figure 2 Schematic diagram of the minimum two-dimensional bounding box of the target surface model;
[0054] Figure 3 Schematic diagram of sampling points within the minimum two-dimensional bounding box;
[0055] Figure 4 This is a schematic diagram of a set of sampling points for one screening;
[0056] Figure 5It is a schematic diagram of the secondary screening sampling point set;
[0057] Figure 6 This is a comparison chart before and after sorting the secondary screening sampling point set;
[0058] The purpose, features and advantages of this application will be further described in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0061] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0062] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing in the full text includes three parallel schemes. Taking "robot coordinate system and / or m" as an example, it includes the robot coordinate system scheme, or the m scheme, or the scheme that the robot coordinate system and m satisfy at the same time. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0063] Example 1
[0064] Reference Figures 1 to 4 This embodiment discloses a method for automatically planning measurement points of surface features of aviation parts. At the same time, this application will be specifically described in conjunction with specific examples, including the following steps:
[0065] S1. Obtain planning parameters and target surface digital model ;
[0066] According to the technical requirements, the planning parameters are obtained, and the planning parameters include the minimum number of measurement points M. p , maximum measurement point spacing D pp , the minimum distance D between the measuring point and the target surface boundary pe ;
[0067] Get the target surface model ;
[0068] In the specific example, enter the minimum number of measurement points =10, maximum measurement point spacing =50mm, distance between measuring point and boundary =5mm
[0069] S2, calculating the minimum two-dimensional bounding box of the target surface numerical modulus according to the target surface numerical modulus;
[0070] In practice, the expression for calculating the minimum two-dimensional bounding box based on the target surface model is: =(-68.0782,-25.9564,69.1531,64.1265);
[0071] S3, calculating the initial sampling step length according to the minimum two-dimensional bounding box and planning parameters;
[0072] S31, judging whether the target surface numerical model meets the sampling condition according to the surface constraint condition, if not, ending the calculation, otherwise proceeding to the next step;
[0073] Set the minimum distance D between the measuring point and the target surface boundary pe and the minimum two-dimensional bounding box B 2d (u min , v min ,u max , v max ) is substituted into the surface constraint condition, and the expression of the surface constraint condition is: max -u min ≥2*D pe And V max -v min ≥2*D pe ;
[0074] If the above constraints are met, it is determined that the target surface model meets the requirements and the feature point automatic planning can be performed. Otherwise, it is determined that the target surface model does not meet the requirements and the entire automatic planning process ends.
[0075] Through this determination formula and cyclic calculation, the measured data can be staggered in the u and v directions on the patch, thereby more accurately reflecting the patch accuracy.
[0076] In the specific example, the relevant parameters are substituted into the surface constraints, namely: ,
[0077] and ; Therefore, the surface constraints are satisfied.
[0078] S32. Calculate the initial sampling step length according to the sampling step length calculation formula.
[0079] If the target surface model meets the requirements, the initial sampling step length is calculated. The initial sampling step length formula is expressed as:
[0080] and
[0081] ; where u max ,u min , v max , v min is the parameter B of the minimum two-dimensional bounding box 2d (u min , v min ,u max , v max ) parameters;
[0082] According to the above formula, the initial sampling step length u can be calculated step and v step .
[0083] In the specific example, because ,so mm
[0084] because ,
[0085] so mm.
[0086] The above formula calculates the step size and can automatically adjust the initial sampling distance according to the size of the patch, thereby taking into account both sampling efficiency and sampling quality.
[0087] S4, sampling within the minimum two-dimensional bounding box according to the initial sampling step length to obtain a sampling point set;
[0088] S41, according to the parameter B of the minimum two-dimensional bounding box 2d (u min , v min ,u max , v max ) Calculate the initial value of the initial loop variable;
[0089] The calculation formula based on the initial value of the loop variable is i0=u min +D pe , j0=v min +D pe Calculate the initial values of loop variables i0 and j0;
[0090] Substitute the initial values of the loop variables i0 and j0 into the calculation formula for the number of loops to calculate the number of loops. The calculation formula for the number of loops is: ;
[0091] In the specific example, initialize the loop variable , ;
[0092] The number of cycles is .
[0093] S42, substituting the number of cycles into a determination formula, if the determination formula is not established, calculating the sampling point parameters according to the number of cycles, and then calculating the target surface numerical model according to the sampling point parameters. Calculate sampling points , and adjusting the loop variable, and repeatedly calculating the number of loops according to the loop variable;
[0094] The number of cycles N calculated in step S41 i = 0 and N j =0 is substituted into the determination formula, and the expression of the determination formula is:
[0095] or : Among them, % means taking the remainder, & means AND operation, ‖ means OR operation;
[0096] The above determination formula can be used to stagger the measuring points in the U and V directions, thereby improving the detection rate of abnormal surfaces.
[0097] If the judgment formula is not established, the number of cycles N calculated in step S41 is i and N j Substitute into the sampling point In the calculation formula, the sampling point The calculation formula is: ;
[0098] Calculate the sampling point The detailed parameters of the sampling point will be calculated Assign to sampling point set Inside.
[0099] In the specific example, the sampling point parameters are ;
[0100] In a specific example, the sampling point set is obtained as: ={ , , };
[0101] After the calculation is completed, according to the formula j n+1 =j n +v step Adjust and generate loop variable j n+1 If j n+1> v max , then execute the next step, otherwise the loop variable j n+1 and i n The calculation formula for the number of cycles in step S41 is imported to recalculate the number of cycles; wherein n is the number of cycles, and 0 represents the initial cycle.
[0102] Let j0 = v min +D pe ,i n+1 =i n +u step , if i n+1> u max , then the sampling point calculation ends, otherwise the loop variable j n+1 and i n+1 The calculation formula for the number of cycles in step S41 is imported to recalculate the number of cycles; wherein n is the number of cycles, and 0 represents the initial cycle.
[0103] All sampling points are obtained by continuously performing the above cycle;
[0104] The above sampling point parameter calculation formula arranges the measuring points starting from the center of the profile, which can avoid the measuring points being biased to one side of the profile, thereby improving the planning quality of the measuring points.
[0105] S43, if the determination formula is established, adjusting the loop variable, and repeatedly calculating the number of loops according to the loop variable until all sampling points are obtained;
[0106] If the judgment formula is established, the loop variable needs to be adjusted. The specific adjustment method is as follows;
[0107] According to the formula n+1 =j n +v stepAdjust and generate loop variable j n+1 , if j n+1> v max , then execute the next step, otherwise according to the loop variable j n+1 and i n Recalculate the number of cycles; where n is the cycle number, with 0 representing the initial cycle.
[0108] Let j0 = v min +D pe ,i n+1 =i n +u step , if i n+1> u max , then the sampling point calculation ends, otherwise according to the loop variable j n+1 and i n+1 Recalculate the number of cycles; where n is the cycle number, with 0 representing the initial cycle.
[0109] In a specific example , , , if the condition is not met, recalculate the loop variable;
[0110] , , , recalculate the number of cycles;
[0111] , , , recalculate the number of cycles;
[0112] , if the conditions are met, proceed to the next step;
[0113] ,make ,at this time, , , , = .
[0114] S45. Collect all sampling points to obtain a sampling point set ;
[0115] S5. Optimize the sampling point set according to the planning parameters to obtain a measurement point set.
[0116] S51. Obtaining a sampling point set Any point in , calculation point The target surface model If the distance is greater than 0, the point is removed , otherwise keep;
[0117] Since the patch boundaries do not overlap with the UV boundaries, may be outside the patch boundary, and this step removes points that are outside the boundary.
[0118] S52: traverse the sampling point set , from the sampling point set Delete all unqualified points and get a screening sampling point set ;
[0119] Traversal , calculate any point With bounded surface The distance is calculated; arrive The distance is 4.65mm, arrive The distance is 0, The distance is 9.55mm. On bounded surfaces In, get :
[0120] ={ }
[0121] This step can delete points that are too close to the boundary to avoid interference during measurement.
[0122] By deleting the sampling points that are not in the target surface model points on the grid, thereby avoiding sampling abnormal points from becoming detection points, thereby improving the quality of detection points.
[0123] S53, from a screening sampling point set Choose any one , calculation point The target surface model The distance of each boundary, if any distance value is less than the minimum distance D between the measuring point and the target surface boundary pe , then remove the point , otherwise keep the point
[0124] The above method steps can delete points in the sampling point set that are closer to the surface boundary, thereby improving the quality of the detection points;
[0125] S54, traverse once to filter the sampling point set , from the primary screening sampling point set Delete all unqualified points from the set to obtain the secondary screening sampling point set ;
[0126] Traversal ,for Any point in , calculate its difference with the target surface The distance of any edge, where and The maximum distance between the sides is 2.15mm, which is less than =5mm, from delete , get the set of measurement points , = .
[0127] S55. Counting the secondary screening sampling point set The number of sampling points in ;
[0128] S56: If the number of sampling points is less than the minimum number of measurement points M p , then the initial sampling step is scaled, and the sampling is repeated until a set of measurement points is obtained. .
[0129] In the specific example, the number of sampling points is 0, which is less than =10, so the initial sampling step size is scaled;
[0130] S561, determining a scaling factor t, wherein the scaling factor t has a value range of 1<t<1.5;
[0131] The scaling factor t is determined by the technician as needed, and its value range is 1<t<1.5;
[0132] S562, compare initial sampling step and ;
[0133] S563, if > ,but = , = ,otherwise = , = .
[0134] In a specific example, > ,Pick , = , = Repeat steps (3) to (6) to obtain a new ,until The number of sampling points is greater than or equal to =10. At this time:
[0135] ={ , , , , , , , , , , }
[0136] Scaling the sampling step size can increase the sampling density and expand the set of secondary screening sampling points.
[0137] Through the above method steps, unidirectional scaling is performed in the u or V direction, so that it has better adaptability to narrow and long surfaces.
[0138] S57, if the number of sampling points is greater than the minimum number of measurement points M p , then the secondary screening sampling point set Reorder and output the measurement point set ;
[0139] S571, secondary screening sampling point set Perform initial sorting and obtain a sorted sampling point set;
[0140] S572, the secondary screening sampling point set The last element in is moved into the sorted sampling point set;
[0141] In a specific example, Add The last element in ,at the same time Delete the last element ;
[0142] S573, Calculation Each element in The distance to the last element in the , and the element with the smallest distance from Removed and added to at last;
[0143] In the specific example, the calculation Each element in The last element in The element with the smallest distance is , the minimum distance is 16.7mm, from Removed and added to at last;
[0144] S574, repeat step calculation Each element in The distance to the last element in the , and the element with the smallest distance from Removed and added to Finally, the secondary screening sampling point set Add all elements in to the sorted sampling point set and output the measurement point set .
[0145] In the specific example, the calculation Each element in The last element in The element with the smallest distance is , the minimum distance is 26.073mm, from Removed and added to at last;
[0146] Repeat the above steps and finally output the measurement point set ={ , , , , , , , , , , }.
[0147] The above arrangement can make the order of measurement points more conducive to measurement trajectory planning, thereby improving subsequent measurement efficiency.
[0148] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for automatically planning measurement points of surface features of aviation parts, characterized in that: The following steps are involved: Obtain planning parameters and target surface model , where the planning parameters include the minimum number of measurement points M p , maximum measurement point distance D pp , the minimum distance D between the measuring point and the target surface boundary pe ; Calculate the minimum two-dimensional bounding box of the target surface numerical modulus according to the target surface numerical modulus; Calculate the initial sampling step length according to the minimum two-dimensional bounding box and planning parameters; Sampling within the minimum two-dimensional bounding box according to the initial sampling step length to obtain a sampling point set; Get sampling point set Any point in , calculation point The target surface model If the distance is greater than 0, the point is removed , otherwise keep it and get a set of filtered sampling points ; From a screening sampling point set Choose any one , calculation point The target surface model The distance of each boundary, if any distance value is less than the minimum distance D between the measuring point and the target surface boundary pe , then remove the point , otherwise keep the point , and obtain the secondary screening sampling point set ; Statistics of the secondary screening sampling point set The number of sampling points in ; If the number of sampling points is less than the minimum number of measurement points M p , then the initial sampling step is scaled and the sampling is repeated until a set of measurement points is obtained. ; If the number of sampling points is greater than the minimum number of measurement points M p , then the secondary screening sampling point set Reorder and output the measurement point set .
2. The method for automatically planning measurement points of surface features of aviation parts according to claim 1, characterized in that: The step of calculating the initial sampling step length according to the minimum two-dimensional bounding box and planning parameters comprises the following steps: Determine whether the target surface numerical model meets the sampling condition according to the surface constraint condition, if not, end the calculation, otherwise proceed to the next step; Calculate the initial sampling step length according to the sampling step length calculation formula.
3. The method for automatically planning measurement points of surface features of aviation parts according to claim 2, characterized in that: The expression of the profile constraint condition is: max -u min ≥2*D pe And V max -v min ≥2*D pe ; The calculation formula for the initial sampling step length satisfies: ; where u max ,u min , v max , v min is the minimum two-dimensional bounding box B 2d (u min , v min ,u max , v max ) parameters.
4. The method for automatically planning measurement points of surface features of aviation parts according to claim 1, characterized in that: The step of sampling within the minimum two-dimensional bounding box according to the initial sampling step length to obtain a sampling point set comprises the following steps: According to the parameters of the minimum two-dimensional bounding box Calculate the initial value of the loop variable; Calculating the number of loops according to the initial value of the loop variable; Substitute the number of cycles into the determination formula. If the determination formula is not established, calculate the sampling point parameters according to the number of cycles, and then calculate the target surface numerical model according to the sampling point parameters. Calculate sampling points , and adjusting the loop variable, and repeatedly calculating the number of loops according to the loop variable; If the determination formula is established, the loop variable is adjusted, and the number of loops is repeatedly calculated according to the loop variable until all sampling points are obtained; Gather all sampling points to obtain the sampling point set .
5. The method for automatically planning measurement points of surface features of aviation parts according to claim 4, characterized in that: The initial value calculation formula of the loop variable is i0=u min +D pe , j0=v min +D pe ; The expression of the loop variable is j n+1 =j n +v step ,i n+1 =i n +u step , where n represents the number of loops. When n is 0, it represents the initial value of the loop variable. n Indicates the loop variable with the number of loops in the U direction being n; i n Indicates the loop variable with the number of loops n in the direction v; The calculation formula for the number of cycles is: ; where u step represents the initial sampling step in the u direction, v step Indicates the initial sampling step in the v direction; The expression of the judgment formula is or ; Among them, % represents the remainder, & represents the AND operation, ‖ represents the OR operation, v min and u min is the minimum two-dimensional bounding box B 2d (u min , v min ,u max , v max ) of the two parameters.
6. The method for automatically planning measurement points of surface features of aviation parts according to claim 4, characterized in that: The expression of the sampling point parameter calculation formula is: , where u max ,u min , v max , v min is the minimum two-dimensional bounding box B 2d (u min , v min ,u max , v max ) parameter, u step represents the initial sampling step in the u direction, v step Indicates the initial sampling step size in the v direction.
7. The method for automatically planning measurement points of surface features of aviation parts according to claim 4, characterized in that: The adjusting of the loop variable comprises the following steps: According to the formula n+1 =j n +v step Adjust and generate loop variable j n+1 , if j n+1> v max , then execute the next step, otherwise according to the loop variable j n+1 and i n Recalculate the number of cycles; where n is the cycle number, 0 represents the initial cycle; Let j0 = v min +D pe ,i n+1 =i n +u step , if i n+1> u max , then the sampling point calculation ends, otherwise according to the loop variable j n+1 and i n+1 Recalculate the number of loops; where n is the loop number, 0 represents the initial loop, and u max is the minimum two-dimensional bounding box B 2d (u min , v min ,u max , v max ) parameter, j n Indicates the loop variable with n number of loops in the u direction, i n represents a loop variable with a loop count of n in the direction v, where u step represents the initial sampling step in the u direction, v step Indicates the initial sampling step size in the v direction.
8. The method for automatically planning measurement points of surface features of aviation parts according to claim 1, characterized in that: The step of scaling the initial sampling step comprises the following steps: Determine a scaling factor t, wherein the scaling factor t has a value range of 1 < t < 1.5; Compare the initial sampling step size u step and v step ; like > ,but = , = ,otherwise = , = .
9. The method for automatically planning measurement points of surface features of aviation parts according to claim 1, characterized in that: The secondary screening sampling point set The reordering process includes the following steps: Secondary screening sampling point set Perform initial sorting and obtain a sorted sampling point set; The secondary screening sampling point set The last element in is transferred to the sorted sampling point set; calculate Each element in The distance to the last element in the , and the element with the smallest distance from Removed and added to at last; Repeat step calculation Each element in The distance to the last element in the , and the element with the smallest distance from Removed and added to Finally, the secondary screening sampling point set Add all elements in to the sorted sampling point set and output the measurement point set .
