An Automatic Sorting and Same-Name Assignment Method for Data Point Positions in the Unfolding of 3D Models

By using the automatic sorting method in the three-dimensional CAD software, the points in the expanded data are sorted based on the distance between the reference points and the auxiliary reference points, the problems of confusing point order and missing correspondence relationships are solved, and efficient and accurate point name assignment is achieved.

CN115906212BActive Publication Date: 2025-06-17AVIC XIAN AIRCRAFT IND GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211237838.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-11
Publication Date
2025-06-17
Estimated Expiration
2042-10-11

AI Technical Summary

Technical Problem

In the aircraft MBD design, the order of points in the expansion data is chaotic and the corresponding relationship before and after expansion is lacking, resulting in the inefficiency of manually copying point names and making errors prone.

Method used

By implementing the automatic sorting method in three-dimensional CAD software, the distance between the reference points and the auxiliary reference points is used to sort, the correspondence relationship between the points before and after the expansion is established, and the same name assignment of the points after the expansion is realized based on the name of the point before the expansion is implemented.

Benefits of technology

It realizes automatic sorting of unordered points and establishing correspondence relationships, improving the efficiency and accuracy of point name assignment, and reducing the error rate of manual operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115906212B_ABST
    Figure CN115906212B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for automatically sorting the names of data points in a three-dimensional model unfolding and assigning the same name to the same points. To solve the problem of assigning the same name to the point names in the unfolding data of the aircraft hole drilling template design and the fastener information of the aircraft MBD design points, and to ensure the accurate transmission of the point fastener information, a method for automatically sorting the names of data points in a three-dimensional model unfolding and assigning the same name to the same points is invented. It can sort the selected points according to the distance from the reference point and the auxiliary reference point. By sorting the points before and after unfolding, a corresponding relationship is established for the original disordered points, and the same name assignment of the point names before and after unfolding is achieved accordingly. This method uses the API interface provided by the three-dimensional CAD software to realize the connection operations, calculations, judgments and adjustments between various processes, and is a method with high automation and high precision and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of aircraft digital manufacturing, and specifically relates to a method for automatically sorting point positions in unfolded data. By automatically sorting, a corresponding relationship is established between the point positions before and after unfolding in the unordered unfolded data, and the same name assignment of the point positions after unfolding is realized according to the point position name before unfolding. Background Art

[0002] In the MBD design of an aircraft, the connection positions of fasteners are represented by point positions, and information such as the bolt specifications and nut specifications in the fasteners (for example: XXA341-12-29A + XXA372-12) are identified by assigning the point position name on the design digital model structure tree. Due to the structure of the aircraft, the fasteners of the same component on the aircraft have the characteristics of a large number, various specifications, and irregular arrangements. A common manufacturing process method is to make a drill template after unfolding the point position data in a 3D design software, and drill holes in the aircraft component according to the drill template. In the unfolded data design, the point positions need to be renamed and assigned according to the corresponding point position name in the design digital model.

[0003] In a 3D CAD software, after the surface disconnection and association relationship is unfolded, the unfolded data of the point positions has no corresponding relationship before and after unfolding on the structure tree, and the order is chaotic. The name of the point position after unfolding is automatically named in the way of a point plus a sequence number (for example: Point.138). The conventional design method is to manually copy the point position name before unfolding and paste it onto the attribute of the corresponding point position after unfolding after aligning the relative positions of the corresponding point positions before and after unfolding in the 3D design interface, and repeat all the point positions to complete the same name copying of the point position names after unfolding. Due to the large amount of point position data, the manual same name copying and pasting is inefficient and error-prone. Summary of the Invention

[0004] Aiming at the problems described in the background art, the method for automatically sorting and assigning the same name to the point positions in the unfolded data of the present invention can realize the automatic sorting of the point positions in the unfolded data in a 3D CAD software, establish a corresponding relationship, and realize the same name assignment of the point positions after unfolding according to the point position name before unfolding.

[0005] A method for automatically sorting and assigning the same name to the point positions in the unfolded data of a 3D model includes the following steps:

[0006] Step 1: Select a reference point:

[0007] Open the point position unfolded data in a 3D CAD software, select any point position before unfolding as the reference point PT0 for sorting before unfolding, and then select the corresponding point position on the point position after unfolding as the reference point PTU0 for sorting the point position after unfolding.

[0008] Step 2: Establish auxiliary reference points before and after unfolding:

[0009] Develop a program using the API interface provided by 3D CAD software. Use the measurement function to obtain the coordinate values of the sorting reference points PT0 and PTU0, which are respectively recorded as arrays PT0(2) and PTU0(2). Establish the auxiliary reference points PTA0 and PTUA0 before and after unfolding by adding a deviation value △ (where 0 < △ < 2) to the x, y, and z coordinate values of the points PT0 and PTU0. Among them:

[0010] The coordinate value of PTA0 is (PT0(0) + △, PT0(1) + △, PT0(2) + △)

[0011] The coordinate value of PTUA0 is (PTU0(0) + △, PTU0(1) + △, PTU0(2) + △)

[0012] Step 3: Select the points before unfolding:

[0013] In the point unfolding data opened in the 3D CAD software, select all the points before unfolding.

[0014] Step 4: Obtain the coordinate data of the points before unfolding:

[0015] Develop a program using the API interface provided by 3D CAD software. Use the selection function to judge the number N of the points before unfolding selected by the user, and loop to use the measurement function to obtain the coordinates and point names of all the points before unfolding, which are recorded as the array PT(N - 1, 3). Among them, the row represents the point number, and the columns are the x, y, and z coordinate values and the point name in sequence.

[0016] Step 5: Calculate the distance from the points before unfolding to the reference point PT0:

[0017] Develop a program using the API interface provided by 3D CAD software. Use the loop statement and the two-point distance function to calculate the distance D(i) from the i-th point before unfolding to the reference point PT0

[0018]

[0019] Step 6: Calculate the distance from the points before unfolding to the auxiliary reference point PTA0:

[0020] Develop a program using the API interface provided by 3D CAD software. Use the loop statement and the two-point distance function to calculate the distance DA(i) from the i-th point before unfolding to the reference point PTA0

[0021]

[0022] Step 7: Calculate the judgment distance DJ(i) and sort it:

[0023] Sum D(i) and DA(i) to calculate the judgment distance DJ(i), and sort DJ(i) from smallest to largest to establish the sorted array m(i).

[0024] Step Eight: Re-establish the pre-unfolding point position sorting array:

[0025] According to the sorted array m(i), from 1 to N, re-establish the pre-unfolding point position sorted array PTJ(N - 1, 3).

[0026] Step Nine: Select all post-unfolding point positions:

[0027] In the opened point position unfolding data, select the post-unfolding point positions.

[0028] Step Ten: Obtain the post-unfolding point position coordinate data:

[0029] Use the API interface provided by the 3D CAD software for program development, and loop through the measurement function to obtain the coordinates and names of all post-unfolding point positions, recorded as the array PTU(N - 1, 3). Among them, the rows represent the point numbers, and the columns are the x, y, z coordinate values and the point position names in sequence.

[0030] Step Eleven: Calculate the distance of the post-unfolding point positions from the reference point PTU0:

[0031] Use the API interface provided by the 3D CAD software for program development, and use loop statements and the two-point distance function to calculate the distance D U(j) of the j-th post-unfolding point from the reference point PTU0 respectively

[0032]

[0033] Step Twelve: Calculate the distance of the pre-unfolding points from the auxiliary reference point PTUA0:

[0034] Use the API interface provided by the 3D CAD software for program development, and use loop statements and the two-point distance function to calculate the distance DUA(i) of the j-th post-unfolding point from the auxiliary reference point PTUA0 respectively

[0035]

[0036] Step Thirteen: Calculate the judgment distance DUJ(j) and sort it:

[0037] Sum DU(j) and DUA(j) to calculate the judgment distance DUJ(j), and sort DUJ(j) from smallest to largest to establish the sorted array s(j).

[0038] Step Fourteen: Re-establish the post-unfolding point position sorting array:

[0039] Re - establish the pre - unfolding point position sorted array PTUJ(N - 1, 3) from 1 to N according to the sorted array s(j).

[0040] Step 15: Assign the same name to the unfolded point positions:

[0041] According to the pre - unfolding point position sorted array PTJ(N - 1, 3) and the post - unfolding point position sorted array PTUJ(N - 1, 3) after re - sorting, use the API interface provided by the CATIA software for program development. The loop statement reads each point position name in PTJ(N - 1, 3), and uses the rename function to rename the name of the corresponding serial number point in PTUJ(N - 1, 3), so as to achieve the assignment of the same name for the unfolded point position names and the pre - unfolding point positions.

[0042] The beneficial effects of the present invention are as follows: Through a method for automatically sorting and assigning the same name to the point positions of three - dimensional model unfolding data, the point positions with chaotic order and no corresponding relationship can be automatically sorted according to the distances from the reference point and the auxiliary reference point. By sorting the point positions before and after unfolding respectively, the corresponding relationship between the original disordered point positions is established, and the assignment of the same name for the point position names before and after unfolding is achieved. This method uses the API interface provided by the three - dimensional CAD software to realize the connection operations, calculations, judgments and adjustments between each process, with high calculation efficiency and high automation degree. Brief Description of the Drawings

[0043] Figure 1 Schematic diagram of the unfolded data point positions.

[0044] Explanation of the numbers in the figure: 1 - pre - unfolding point position, 2 - post - unfolding point position, 3 - pre - unfolding reference point, 4 - post - unfolding reference point Detailed Embodiment

[0045] The present invention will be further described below in conjunction with the drawings:

[0046] Step 1: Select the pre - unfolding reference point 3 and the post - unfolding reference point 4:

[0047] Open the point position unfolding data in the three - dimensional CAD software, select any point in the pre - unfolding point position 1 as the pre - unfolding reference point 3, and select the corresponding point in the post - unfolding point position 2 as the post - unfolding reference point 4 corresponding to the pre - unfolding reference point 3.

[0048] Step 2: Establish the pre - and post - unfolding auxiliary reference points:

[0049] Use the API interface provided by the three - dimensional CAD software for program development, and use the measurement function to obtain the coordinate values of the pre - unfolding reference point 3 and the post - unfolding reference point 4, which are respectively recorded as arrays PT0 and PTU0.

[0050] PT0(20214.553, -12392.927, 2659.073)

[0051] PTU0(20228.015, -12376.004, 2495.044)

[0052] By adding a deviation value △ = 1 to the x, y, and z coordinate values at points PT0 and PTU0, the auxiliary reference lines PTA0 and PTUA0 before and after unfolding are established.

[0053] PTA0(20215.553, -12391.927, 2660.073)

[0054] PTUA0(20229.015, -12375.004, 2496.044)

[0055] Step 3: Select the point position 1 before unfolding:

[0056] In the point position unfolding data opened in the 3D CAD software, select all the point positions 1 before unfolding.

[0057] Step 4: Obtain the coordinate data of the point position 1 before unfolding:

[0058] Use the API interface provided by the 3D CAD software for program development. Use the selection function to judge that the number N of the point positions 1 before unfolding selected by the user is 10, and loop through the measurement function to obtain the coordinates and names of all the point positions 1 before unfolding, which are recorded as the array PT(9, 3). Among them, the row represents the serial number of the point, and the columns are the x, y, z coordinate values and the point name in sequence.

[0059] PT(9, 3) = {{20219.604, -12288.038, 2653.434, XXA301 - 10 - 18A / XXA352 - 10},

[0060] {20194.259, -12299.671, 2650.472, XXA301 - 10 - 18A / XXA352 - 10},

[0061] {20237.589, -12327.655, 2657.596, XXA301 - 14 - 20A / XXA352 - 14},

[0062] {20161.572, -12228.285, 2646.057, XXA301 - 10 - 20A / XXA352 - 12},

[0063] {20186.897, -12216.620, 2649.137, XXA301 - 10 - 20A / XXA352 - 12},

[0064] {20177.780, -12263.577, 2647.724, XXA301-8-18A / XXA352-8},

[0065] {20203.114, -12251.925, 2650.746, XXA301-8-18A / XXA352-8},

[0066] {20212.230, -12339.262, 2654.697, XXA301-14-20A / XXA352-14},

[0067] {20271.789, -12370.017, 2665.743, XXA301-16-18A / XXA352-16}}

[0068] Step 5. Calculate the distance from point 1 before unfolding to reference point 3 before unfolding:

[0069] Use the API interface provided by the 3D CAD software for program development, and use loop statements and the two-point distance function to calculate the distance D(i) from the i-th point before unfolding to reference point 3 before unfolding

[0070]

[0071] Among them, the distance D(2) from the second point in point 1 to reference point 3 before unfolding is calculated as

[0072]

[0073] Complete the calculation of the distance from point 1 before unfolding to reference point 3 before unfolding by looping 10 times, and establish an array D(9)

[0074] D(9) = (105.1626219, 95.82625314, 69.23447464, 173.445574, 178.739827, 134.9540925, 141.7102513, 53.89326848, 62.01114091, 0)

[0075] Step 6. Calculate the distance from point 1 before unfolding to auxiliary reference point PTA0:

[0076] Use the API interface provided by the 3D CAD software for program development, and use loop statements and the two-point distance function to calculate the distance DA(i) from the i-th point before unfolding to reference point PTA0

[0077]

[0078] Among them, the distance DA(2) from the second point in point 1 to the auxiliary reference point PTA0 is calculated as

[0079]

[0080] The distance from point 1 before expansion to the auxiliary reference point PTA0 is calculated by looping 10 times, and an array DA(9) is established

[0081] DA(9) = (104.180, 95.168, 67.991, 172.885, 177.970, 134.362, 140.863, 53.043, 60.620, 1.732)

[0082] Step 7: Calculate the judgment distance DJ(i) and sort it

[0083] The judgment distance DJ(9) is calculated by summing D(9) and DA(9)

[0084] DJ(9) = (209.343, 190.994, 137.225, 346.330, 356.710, 269.316, 282.573, 106.936, 122.631, 1.732)

[0085] Sort DJ(9) from smallest to largest to establish a sorted array m(9)

[0086] m(9) = (6, 5, 4, 9, 10, 7, 8, 2, 3, 1)

[0087] Step 8: Re-establish the sorted array PTJ(9, 3) of point 1 before expansion

[0088] According to the values of the sorted array m(9), from 1 to 10, re-establish the sorted array PTJ(9, 3) of point 1 before expansion

[0089] PTJ(9, 3) =

[0090] {{20214.553, -12392.927, 2659.073, XXA301-16-18A / XXA352-16},

[0091] {20212.230, -12339.262, 2654.697, XXA301-14-20A / XXA352-14},

[0092] {20271.789, -12370.017, 2665.743, XXA301-16-18A / XXA352-16},

[0093] {20237.589, -12327.655, 2657.596, XXA301-14-20A / XXA352-14},

[0094] {20194.259, -12299.671, 2650.472, XXA301-10-18A / XXA352-10},

[0095] {20219.604, -12288.038, 2653.434, XXA301-10-18A / XXA352-10},

[0096] {20177.780, -12263.577, 2647.724, XXA301-8-18A / XXA352-8},

[0097] {20203.114, -12251.925, 2650.746, XXA301-8-18A / XXA352-8},

[0098] {20161.572, -12228.285, 2646.057, XXA301-10-20A / XXA352-12},

[0099] {20186.897, -12216.620, 2649.137, XXA301-10-20A / XXA352-12}}

[0100] Step 9: Select all the expanded points 2:

[0101] In the point expansion data opened in the CATIA software, select all the expanded points 2.

[0102] Step 10: Obtain the coordinate data of all the expanded points 2:

[0103] Use the API interface provided by the CATIA software for program development. Loop through the measurement function to obtain the coordinates and point names of all the expanded points 2, and record them as an array PTU(N-1, 3). Here, the row represents the point number, and the columns are the x, y, z coordinate values and the point name in sequence.

[0104] PTU(9, 3) = {{20188.703, -12247.438, 2507.299, Point.11},

[0105] {20231.068, -12271.630, 2507.665, Point.12},

[0106] {20205.759, -12283.248, 2504.352, Point.13},

[0107] {20214.008, -12235.803, 2510.613, Point.14},

[0108] {20197.355, -12200.781, 2513.498, Point.15},

[0109] {20224.524, -12322.566, 2501.120, Point.16},

[0110] {20285.203, -12353.099, 2502.132, Point.17},

[0111] {20228.015, -12376.004, 2495.044, Point.18},

[0112] {20249.838, -12310.970, 2504.430, Point.19},

[0113] {20172.053, -12212.430, 2510.182, Point.20}}

[0114] Step Eleven: Calculate the distance between Point 2 after unfolding and Reference Point 4:

[0115] Use the API interface provided by 3D CAD software for program development, and use loop statements and the two-point distance function to calculate the distance DU(j) between the j-th point after unfolding and Reference Point 4 after unfolding

[0116]

[0117] Among them, the distance DU(2) between the second point in Point 2 and Reference Point 4 after unfolding is calculated as

[0118]

[0119] Complete the calculation of the distance between Point 2 after unfolding and Reference Point 4 after unfolding by looping 10 times, and establish an array DU(9)

[0120] DU(9) = (134.999, 105.178, 95.842, 141.756, 178.840, 53.896, 62.011, 0.000, 69.237, 173.543)

[0121] Step Twelve: Calculate the distance between the expanded Point 2 and the auxiliary reference point PTUA0:

[0122] Use the API interface provided by the 3D CAD software for program development, and use loop statements and the two-point distance function to calculate the distances DUA(i) between the j-th point after expansion and the reference point PTUA0

[0123]

[0124] Among them, the distance DUA(2) between the second point in Point 2 and the auxiliary reference point PTUA0 is calculated as

[0125] Loop 10 times to complete the calculation of the distance between the expanded Point 2 and the auxiliary reference point PTA0, and establish an array DUA(9)

[0126] DUA(9) = (134.257, 104.045, 95.021, 140.764, 177.934, 52.874, 60.614, 1.732, 67.855, 172.843)

[0127] Step Thirteen: Calculate the judgment distance DUJ(9) and sort it

[0128] Sum DU(9) and DUA(9) to calculate the judgment distance DUJ(9)

[0129] DUJ(9) = (269.256, 209.224, 190.864, 282.520, 356.774, 106.770, 122.625, 1.732, 137.091, 346.386)

[0130] Sort DUJ(9) from smallest to largest to establish a sorted array s(9)

[0131] s(9) = (7, 6, 5, 8, 10, 2, 3, 1, 4, 9)

[0132] Step Fourteen: Re-establish the sorted array of the expanded Point 2

[0133] According to the values of the sorted array s(9), from 1 to 10, re-establish the sorted array PTUJ(N - 1, 3) of Point 1 before expansion

[0134] PTUJ(9, 3) = {{20228.015, -12376.004, 2495.044, Point.18},

[0135] {20224.524, -12322.566, 2501.120, Point.16},

[0136] {20285.203, -12353.099, 2502.132, Point.17},

[0137] {20249.838, -12310.970, 2504.430, Point.19},

[0138] {20205.759, -12283.248, 2504.352, Point.13},

[0139] {20231.068, -12271.630, 2507.665, Point.12},

[0140] {20188.703, -12247.438, 2507.299, Point.11},

[0141] {20214.008, -12235.803, 2510.613, Point.14},

[0142] {20172.053, -12212.430, 2510.182, Point.20},

[0143] {20197.355, -12200.781, 2513.498, Point.15}}

[0144] Step 15: Assign the same name to the data point names after expansion

[0145] According to the sorted array PTJ(9, 3) of points before expansion and the sorted array PTUJ(9, 3) of points after expansion, use the API interface provided by CATIA software to develop a program. Use a loop statement to read each point name in PTJ(9, 3), use the name of the corresponding point in PTUJ(9, 3) to select the point using the selection function, and use the rename function to rename the selected point to achieve the same name assignment of the point 2 after expansion and the point 1 before expansion. After renaming, PTUJ(9, 3) is

[0146] PTUJ(9, 3) = {20228.015, -12376.004, 2495.044, XXA301 - 16 - 18A / XXA352 - 16},

[0147] {20224.524, -12322.566, 2501.120, XXA301 - 14 - 20A / XXA352 - 14},

[0148] {20285.203, -12353.099, 2502.132, XXA301-16-18A / XXA352-16},

[0149] {20249.838, -12310.970, 2504.430, XXA301-14-20A / XXA352-14},

[0150] {20205.759, -12283.248, 2504.352, XXA301-10-18A / XXA352-10},

[0151] {20231.068, -12271.630, 2507.665, XXA301-10-18A / XXA352-10},

[0152] {20188.703, -12247.438, 2507.299, XXA301-8-18A / XXA352-8},

[0153] {20214.008, -12235.803, 2510.613, XXA301-8-18A / XXA352-8},

[0154] {20172.053, -12212.430, 2510.182, XXA301-10-20A / XXA352-12},

[0155] {20197.355, -12200.781, 2513.498, XXA301-10-20A / XXA352-12}

Claims

1. A method for automatically sorting the data points of a 3D model unfolding and assigning the same name to the points, characterized in that, It includes the following steps: Step 1: Select the reference point: Open the point position unfolding data in the 3D CAD software, select any point position before unfolding as the reference point PT0 for sorting before unfolding, and then select the corresponding point position on the unfolded point position as the reference point PTU0 for sorting the unfolded point positions; Step 2: Establish auxiliary reference points before and after unfolding: Use the API interface provided by the 3D CAD software for program development, use the measurement function to obtain the coordinate values of the sorting reference points PT0 and PTU0, denoted as arrays PT0(2) and PTU0(2) respectively. By adding a deviation value △ to the x, y, and z coordinate values of the points PT0 and PTU0, where 0 < △ < 2, establish the auxiliary reference points PTA0 and PTUA0 before and after unfolding, where The coordinate value of PTA0 is (PT0(0)+△, PT0(1)+△, PT0(2)+△) The coordinate value of PTUA0 is (PTU0(0)+△, PTU0(1)+△, PTU0(2)+△); Step 3: Select the point positions before unfolding: In the point position unfolding data opened in the 3D CAD software, select all the point positions before unfolding; Step 4: Obtain the coordinate data of the point positions before unfolding: Use the API interface provided by the 3D CAD software for program development, use the selection function to judge the number N of the point positions before unfolding selected by the user, and loop to use the measurement function to obtain the coordinates and point names of all the point positions before unfolding, denoted as the array PT(N - 1, 3), where the row represents the serial number of the point, and the columns are the x, y, z coordinate values and the point name in sequence; Step 5: Calculate the distance from the point position before unfolding to the reference point PT0: Use the API interface provided by the 3D CAD software for program development, use the loop statement and the two-point distance function to calculate the distance D(i) from the i-th point before unfolding to the reference point PT0 respectively; Step 6: Calculate the distance from the point before unfolding to the auxiliary reference point PTA0: Use the API interface provided by the 3D CAD software for program development, use the loop statement and the two-point distance function to calculate the distance DA(i) from the i-th point before unfolding to the auxiliary reference point PTA0 respectively; Step 7: Calculate the judgment distance DJ(i) and sort it Sum D(i) and DA(i) to calculate the judgment distance DJ(i), and sort DJ(i) from small to large to establish the sorting array m(i); Step 8: Re-establish the sorting array of the point positions before unfolding According to the sorting array m(i), from 1 to N, re-establish the sorted array PTJ(N - 1, 3) of the point positions before unfolding; Step 9: Select all the point positions after unfolding: In the opened point position unfolding data, select the point positions after unfolding; Step 10: Obtain the coordinate data of the point positions after unfolding: Use the API interface provided by the 3D CAD software for program development, loop to use the measurement function to obtain the coordinates and point names of all the point positions after unfolding, denoted as the array PTU(N - 1, 3), where the row represents the serial number of the point, and the columns are the x, y, z coordinate values and the point name in sequence; Step 11: Calculate the distance from the point position after unfolding to the reference point PTU0: Develop a program using the API interface provided by the 3D CAD software. Use loop statements and the two-point distance function to calculate the distance DU(j) from the j-th point after unfolding to the reference point PTU0 respectively; Step Twelve: Calculate the distance from the point before unfolding to the auxiliary reference point PTUA0: Develop a program using the API interface provided by the 3D CAD software. Use loop statements and the two-point distance function to calculate the distance DUA(i) from the j-th point after unfolding to the auxiliary reference point PTUA0 respectively; Step Thirteen: Calculate the judgment distance DUJ(j) and sort it Sum DU(j) and DUA(j) to calculate the judgment distance DUJ(j). Sort DUJ(j) from small to large using the bubble sort method to establish the sorted array s(j); Step Fourteen: Re-establish the sorted array of the points after unfolding According to the sorted array s(j), from 1 to N, re-establish the sorted array PTUJ(N - 1, 3) of the points after unfolding; Step Fifteen: Assign the same name to the point names after unfolding According to the sorted array PTJ(N - 1, 3) of the points before unfolding and the sorted array PTUJ(N - 1, 3) of the points after unfolding after re-sorting, develop a program using the API interface provided by the CATIA software. Use loop statements to read each point name in PTJ(N - 1, 3), and use the rename function to rename the name of the corresponding serial number point in PTUJ(N - 1, 3), so as to realize the assignment of the same name for the point names after unfolding and before unfolding.

2. A method for automatically sorting and naming the same-named data points in the unfolded data of a 3D model according to claim 1, characterized in that, In the second step: Develop a program using the API interface provided by the 3D CAD software. Use the measurement function to obtain the coordinate values of the sorting reference points PT0 and PTU0, which are respectively recorded as the arrays PT0(2) and PTU0(2). Establish the auxiliary reference points PTA0 and PTUA0 before and after unfolding by adding a deviation value △ (where 0 < △ < 2) to the x, y, and z coordinate values of the points PT0 and PTU0, where The coordinate value of PTA0 is (PT0(0)+△, PT0(1)+△, PT0(2)+△) The coordinate value of PTUA0 is (PTU0(0)+△, PT0U(1)+△, PT0U(2)+△).

3. A method for automatically sorting and naming the same-named data points in the unfolded data of a 3D model according to claim 1, characterized in that, In the seventh and thirteenth steps: Sum D(i) and DA(i) to calculate the judgment distance DJ(i). Sort DJ(i) from small to large to establish the sorted array m(i). Sum DU(j) and DUA(j) to calculate the judgment distance DUJ(j). Sort DUJ(j) from small to large to establish the sorted array s(j).

4. A method for automatically sorting and naming the same-named data points in the unfolded data of a 3D model according to claim 1, characterized in that, In the eighth and fourteenth steps, according to the sorted array m(i), from 1 to N, re-establish the sorted array PTJ(N - 1, 3) of the points before unfolding; according to the sorted array s(j), from 1 to N, re-establish the sorted array PTUJ(N - 1, 3) of the points after unfolding.

5. A method for automatically sorting and naming the same-named data points in the unfolded data of a 3D model according to claim 1, characterized in that, In step 15: Based on the pre-unfolding point position sorted array PTJ(N - 1, 3) and the post-unfolding point position sorted array PTUJ(N - 1, 3) after reordering, use the API interface provided by CATIA software for program development. The loop statement reads each point name in PTJ(N - 1, 3), and uses the rename function to rename the name of the corresponding serial number point in PTUJ(N - 1, 3), so as to realize the same name assignment of the post-unfolding point name and the pre-unfolding point.

Citation Information

Patent Citations

  • System and method for designing and processing characters for tire mold in three-dimensional CAD / CAM environment

    CN101968896A

  • Object detecting method and object detecting device

    CN104006740A