A method for processing profile point structure of a concave polygon thin-walled part of an airplane
By combining methods of contour point classification, intra-cluster local sorting, and global inter-cluster sorting with spline curve fitting, the overall structuring problem of contour points in concave polygonal thin-walled parts of aircraft was solved, achieving accurate sorting and smooth continuity of contour points.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DALIAN UNIV OF TECH
- Filing Date
- 2025-09-15
- Publication Date
- 2026-07-21
AI Technical Summary
Existing technologies often lead to partial sequence disorder when processing the contour points of concave polygonal thin-walled parts of aircraft, making it difficult to achieve overall structuring.
The process involves four steps: contour point classification, intra-cluster local sorting, global inter-cluster sorting, and spline curve fitting. These steps involve linear fitting of neighborhood points, DBSCAN classification, polar angle and projection sorting of contour points, ultimately forming a structured smooth contour curve.
The overall structuring of contour points for concave polygonal thin-walled parts of aircraft was achieved, avoiding local order disorder caused by a single sorting method and improving the sorting accuracy and continuity of contour points.
Smart Images

Figure CN121190798B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of contour point cloud data processing technology, and relates to a method for structuring contour points for concave polygonal thin-walled parts of aircraft. Background Technology
[0002] In aerospace, precision manufacturing, and other fields, many irregular thin-walled parts have complex concave polygonal contours, with shapes composed of geometric features such as straight lines and arcs. To obtain the contours of these parts and provide a reference for subsequent machining or assembly, 3D laser scanning is typically used to acquire a point cloud of the part, then edge points are extracted and fitted to obtain a complete boundary contour line. However, the contour points extracted from the point cloud are usually unstructured, meaning the arrangement of contour points is disordered. Before fitting, a sorting method is needed to form a structured sequence of contour points.
[0003] Xu Jinting et al., in their patent "A Method for Generating Parallel Tool Paths for CNC Machining Contours Based on Point Cloud Data," used a nearest-neighbor search method for contour point sorting. After specifying a starting point, they searched for the nearest point as the next sequential point, setting an angle threshold to limit the search direction. This iterative search continued until the starting point was found again, forming a structured closed-loop contour. Zhang Hui et al., in their patent "Workpiece Contour Extraction Method, Storage Medium, and Terminal Equipment," used an angle-based contour point structuring method. After decentering the contour point cloud, they calculated the angle value of the line connecting each point to the origin, and sorted the contour points based on the magnitude of the monotonic angle values. These two methods are commonly used contour point cloud sorting methods, offering advantages of simplicity and speed. However, when sorting complex concave polygon contours, they are prone to partial order disorder, making it difficult to achieve overall structuring of the contour points. Summary of the Invention
[0004] This invention addresses the problem of easily disordered partial ordering and difficulty in overall structuring during the sorting of contour points for complex contour parts of aircraft. It proposes a method for structuring contour points of concave polygonal thin-walled aircraft parts. This method achieves its function through a four-step process: First, it determines the type of points and performs clustering based on the residuals of linear fitting of neighborhood points; second, it sorts arc clusters and straight line clusters according to polar angle and projection axis respectively, completing local ordering within clusters; third, it achieves inter-cluster ordering based on endpoint nearest search; finally, it reconstructs the discrete contour point group into a structured smooth contour curve based on spline curve fitting, thus realizing the structuring of contour points for concave polygonal thin-walled aircraft parts.
[0005] The technical solution of this invention: A method for structuring contour points of concave polygonal thin-walled parts for aircraft includes the following steps: Step 1: Classify contour points; There is a set of contour points of a concave polygonal thin-walled part of an aircraft in the global coordinate system. P =[ p 1, p 2, , p N For any point in the contour points p i =[ x i , y i , z i ] Calculate the Euclidean distance between the point and other points in the global coordinate system XY plane, and select all points whose distance from the point is less than a distance threshold as neighborhood points, where the distance threshold is equal to the radius of the arc part in the contour; Calculate the coordinates of all points in the neighborhood in the global coordinate system. x Direction and y The projection range in the direction, if x The projection range of the direction is smaller than y The projection range of the direction will include the neighboring points. x , y The coordinates are swapped to avoid the fitted line obtained after fitting neighboring points being perpendicular. x To address the issue of poor fitting performance caused by the axis, a linear least squares fitting is performed on the neighborhood points to obtain a fitted straight line. The perpendicular distance from each neighborhood point to the fitted straight line is calculated and used as the fitting residual. The average value of the residuals is calculated, and a residual threshold is set. If the average value of the fitting residuals is greater than the residual threshold, the point is considered to be in a region with large curvature changes and is classified as an arc point; otherwise, it is classified as a straight line point. The residual threshold is equal to one-tenth of the radius of the arc portion in the contour. DBSCAN is used to classify arc points and straight points in three-dimensional space. The clustering radius and minimum number of core points are set to obtain clusters of arc points and straight points respectively. The clusters of arc points and straight points are then merged to form a set containing multiple independent clusters. Each independent cluster is an arc or a straight line, and the attribute of each independent cluster is recorded as an arc or a straight line. Step 2: Local sorting within the cluster; The set containing multiple independent clusters obtained in step 1 is processed by sorting the contents of each independent cluster. For the arc clusters obtained by clustering arc points, calculate the centroid coordinates of all points within the cluster in the XY plane. Subtract the centroid coordinates from the coordinates of each point in the cluster. Translate the arc cluster until the centroid coincides with the origin of the global coordinate system. Convert the coordinates of the translated point clusters to polar coordinates and sort them in ascending order according to the polar angle to obtain arc point clusters sorted counterclockwise. (1) in, For the first in the cluster i The polar angle corresponding to each contour point; For the sorted number i One outline point; To avoid the sorting starting point being inside the arc, check the polar angle difference between all adjacent points to see if there are any sudden changes in polar angle. Points with a polar angle difference greater than a threshold are designated as breakpoints. idx From the mutation point idx +1 to reorder, the new order is: ; To achieve local ordering within a cluster of arc points, the polar coordinate system is restored to the Cartesian coordinate system and the translation is added to obtain the ordered arc point group in the original coordinate system. For a family of lines, calculate the family of lines in the global coordinate system. x and y The projection range of the direction, when x The projection range of the direction is greater than y The projection range of the direction, according to x Sort the points within the cluster in ascending order by coordinates; otherwise, sort them in descending order. y Sort the points within the cluster in ascending order by coordinates; Step 3: Global inter-cluster sorting; Let the set of clusters that have been locally ordered be . Define cluster C i The starting point is The destination is Initially, the first cluster index π(1) = 1 is selected, and a cluster set for global ordering is defined. S The first cluster S (π(1))= C 1. At this time, the set S There is only one cluster, and the last point in the set. p cur The end point of the first cluster ; Starting from the second cluster, iteratively search for distances. p cur The nearest intra-cluster start and end points are calculated. p cur Euclidean distance to the two endpoints of all unsorted clusters, i.e., the start and end points. and Choose the cluster index corresponding to the minimum distance endpoint as ,like < If the order is not specified, the internal order of the cluster remains unchanged; otherwise, the point cloud of the cluster is arranged in reverse order. Add to the current sorted set S (k ), update the current point to ; Repeat the above process until all are completed. n After sorting the clusters, we obtain an ordered set of clusters: This involves including all clusters, then releasing the points from each cluster and combining them according to the pre-arranged cluster order to obtain a structured, ordered set of points. ; Step 4: Structured contour point spline curve fitting; B-spline curve fitting point group To obtain a smooth and continuous profile curve, the spline order is set. m Number of control points N +1, construct node vectors U ={ u 0, u 1, , u N+m},forward m The first node is 0, then... m Each node is 1, and the internal nodes are uniformly distributed in the interval (0,1). The B-spline basis function is calculated based on the Cox–de Boor recursive formula. N i,m ( u The calculated curve is in the parameter u Coordinates of the location: (2) In the node interval [ u m-1 , u N+1 Within a set step size, the fitted curve is sampled uniformly to obtain a continuous set of points on the fitted curve.
[0006] The beneficial effects of this invention are as follows: This invention effectively combines angle- and distance-based sorting methods by first classifying and then sorting locally and globally. This achieves the structuring of contour points of concave polygonal thin-walled parts of aircraft with complex structures, avoiding the problem of local order disorder caused by a single sorting method. It can be applied to the sorting of contour points of various parts in aircraft manufacturing. Attached Figure Description
[0007] Figure 1 This is a flowchart of the present invention.
[0008] Figure 2 This is a diagram illustrating the classification results.
[0009] Figure 3 This is a schematic diagram of the localized ordering of a cluster of circular arcs.
[0010] Figure 4 This is a schematic diagram showing the result after structuring the contour points of a certain part as a whole and fitting it with a spline curve. Detailed Implementation
[0011] The specific implementation of this method is further explained below with reference to the accompanying drawings and technical solutions.
[0012] Example 1 like Figure 1 As shown in the flowchart, a method for structuring contour points of concave polygonal thin-walled parts for aircraft includes the following steps: (1) Classification of contour points There is a set of contour points of a concave polygonal thin-walled part of an aircraft in the global coordinate system. P =[ p 1, p 2, , p N For any point in the contour points p i =[ x i , y i , z i ] Calculate the Euclidean distance between the point and other points in the global coordinate system XY plane, and select all points whose distance from the point is less than a distance threshold as neighborhood points, where the distance threshold is equal to the radius of the arc part in the contour; Calculate the coordinates of all points in the neighborhood in the global coordinate system. x Direction and y The projection range in the direction, if x The projection range of the direction is smaller than y The projection range of the direction will include the neighboring points. x , y The coordinates are swapped to avoid the fitted line obtained after fitting neighboring points being perpendicular. x To address the issue of poor fitting due to the axis, a linear least-squares fitting is performed on the neighborhood points to obtain a fitted straight line. The perpendicular distance from each neighborhood point to the fitted line is calculated and used as the fitting residual. The average residual is calculated, and a residual threshold is set. If the average residual is greater than the residual threshold, the point is considered to be in a region of large curvature change and is classified as an arc point; otherwise, it is classified as a straight line point. The residual threshold is equal to one-tenth of the radius of the arc portion in the contour. The results are as follows: Figure 2 As shown, the dots represent arc points, and the star points represent straight line points; DBSCAN classification was performed on arc points and straight line points in 3D space. Clustering radii and minimum number of core points were set to obtain clusters for arc points and straight line points respectively. These clusters were then merged to form a set containing multiple independent clusters. Each independent cluster represents either an arc or a straight line, and the attribute of each cluster was recorded as either an arc or a straight line. The classification results are shown below. Figure 2 As shown.
[0013] (2) Local ordering within a cluster The set containing multiple independent clusters obtained above is processed, and the internal order of each independent cluster is sorted. like Figure 3 As shown, for the arc clusters obtained by clustering arc points, the centroid coordinates of all points within the cluster on the XY plane are calculated. The coordinates of each point in the cluster are subtracted from the centroid coordinates. The arc cluster is then translated until its centroid coincides with the origin of the global coordinate system. The coordinates of the translated point clusters are converted to polar coordinate system expressions and sorted in ascending order according to the polar angle to obtain arc point clusters sorted counterclockwise. (3) in, For the first in the cluster i The polar angle corresponding to each contour point; To avoid the sorting starting point being inside the arc, check the polar angle difference between all adjacent points to see if there are any sudden changes in polar angle. Points with a polar angle difference greater than a threshold are designated as breakpoints. idx From the mutation point idx +1 to reorder, the new order is: ; This achieves local ordering within the cluster of arc points, then restores the polar coordinate system to the Cartesian coordinate system and adds translations to obtain the ordered arc point group in the original coordinate system; For a family of lines, calculate the family of lines in the global coordinate system. x and y The projection range of the direction, when x The projection range of the direction is greater than y The projection range of the direction, according to x Sort the points within the cluster in ascending order by coordinates; otherwise, sort them in descending order. y Sort the points within the cluster in ascending order by coordinates; (3) Global inter-cluster sorting Let the set of clusters that have been locally ordered be . Define cluster C i The starting point is The destination is Initially, the first cluster index π(1) = 1 is selected, and a cluster set for global ordering is defined. S The first clusterS (π(1))= C 1. At this time, the set S There is only one cluster, and the last point in the set. p cur The end point of the first cluster ; Starting from the second cluster, iteratively search for distances. p cur The nearest intra-cluster start and end points are calculated. p cur Euclidean distance to the two endpoints of all unsorted clusters, i.e., the start and end points. and Choose the cluster index corresponding to the minimum distance endpoint as ,like < If the order is not specified, the internal order of the cluster remains unchanged; otherwise, the point cloud of the cluster is arranged in reverse order. Add to the current sorted set S ( k ), update the current point to ; Repeat the above process until all are completed. n After sorting the clusters, we obtain an ordered set of clusters: This involves including all clusters, then releasing the points from each cluster and combining them according to the pre-arranged cluster order to obtain a structured, ordered set of points. ; (4) Structured contour point spline curve fitting B-spline curve fitting point group To obtain a smooth and continuous profile curve, the spline order is set. m Number of control points N +1, construct node vectors U ={ u 0, u 1, , u N+m},forward m The first node is 0, then... m Each node is 1, and the internal nodes are uniformly distributed in the interval (0,1). The B-spline basis function is calculated based on the Cox–de Boor recursive formula. N i,m ( u The calculated curve is in the parameter u Coordinates of the location: (4) In the node interval [ u m-1 , u N+1Within a set step size, the fitted curve is uniformly sampled to obtain a continuous set of points on the fitted curve. The result of structuring the overall contour points of a part and fitting a spline curve is shown below. Figure 4 As shown.
[0014] The specific embodiments of the present invention have been described in detail above. The present invention proposes a structured processing method for contour points of concave polygonal thin-walled parts for aircraft. By linearly fitting the residuals of neighborhood points, the contour points are divided into arc and straight line portions. DBSCAN classification is used to form independent cluster sets. Polar angle sorting and projection sorting are used to sort the arc and straight line clusters within each cluster, respectively. Structured global contour points are searched by endpoint proximity. Spline curve fitting is applied to the discrete contour points to obtain a structured smooth contour, thus realizing the structured sorting of contour points for concave polygonal thin-walled parts of aircraft.
Claims
1. A method for structuring contour points of concave polygonal thin-walled parts for aircraft, characterized in that, Includes the following steps: Step 1: Classify contour points; There is a set of contour points of a concave polygonal thin-walled part of an aircraft in the global coordinate system. P =[ p 1, p 2, , p N For any point in the contour points p i =[ x i , y i , z i ] Calculate the Euclidean distance between the point and other points in the global coordinate system XY plane, and select all points whose distance from the point is less than a distance threshold as neighborhood points, where the distance threshold is equal to the radius of the arc part in the contour; Calculate the coordinates of all points in the neighborhood in the global coordinate system. x Direction and y The projection range in the direction, if x The projection range of the direction is smaller than y The projection range of the direction will include the neighboring points. x , y The coordinates are swapped to avoid the fitted line obtained after fitting neighboring points being perpendicular. x To address the issue of poor fitting performance caused by the axis, a linear least squares fitting is performed on the neighborhood points to obtain a fitted straight line. The perpendicular distance from each neighborhood point to the fitted straight line is calculated and used as the fitting residual. The average value of the residuals is calculated, and a residual threshold is set. If the average value of the fitting residuals is greater than the residual threshold, the point is considered to be in a region with large curvature changes and is classified as an arc point; otherwise, it is classified as a straight line point. The residual threshold is equal to one-tenth of the radius of the arc portion in the contour. DBSCAN is used to classify arc points and straight points in three-dimensional space. The clustering radius and minimum number of core points are set to obtain clusters of arc points and straight points respectively. The clusters of arc points and straight points are then merged to form a set containing multiple independent clusters. Each independent cluster is an arc or a straight line, and the attribute of each independent cluster is recorded as an arc or a straight line. Step 2: Local sorting within the cluster; The set containing multiple independent clusters obtained in step 1 is processed by sorting the contents of each independent cluster. For the arc clusters obtained by clustering arc points, calculate the centroid coordinates of all points within the cluster in the XY plane. Subtract the centroid coordinates from the coordinates of each point in the cluster. Translate the arc cluster until the centroid coincides with the origin of the global coordinate system. Convert the coordinates of the translated point clusters to polar coordinates and sort them in ascending order according to the polar angle to obtain arc point clusters sorted counterclockwise. (1) in, For the first in the cluster i The polar angle corresponding to each contour point; For the sorted number i One outline point; To avoid the sorting starting point being inside the arc, check the polar angle difference between all adjacent points to see if there are any sudden changes in polar angle. Points with a polar angle difference greater than a threshold are designated as breakpoints. idx From the mutation point idx +1 to reorder, the new order is: ; To achieve local ordering within a cluster of arc points, the polar coordinate system is restored to the Cartesian coordinate system and the translation is added to obtain the ordered arc point group in the original coordinate system. For a family of lines, calculate the family of lines in the global coordinate system. x and y The projection range of the direction, when x The projection range of the direction is greater than y The projection range of the direction, according to x Sort the points within the cluster in ascending order by coordinates; otherwise, sort them in descending order. y Sort the points within the cluster in ascending order by coordinates; Step 3: Global inter-cluster sorting; Let the set of clusters that have been locally ordered be . Define cluster C i The starting point is The destination is Initially, the first cluster index π(1) = 1 is selected, and a cluster set for global ordering is defined. S The first cluster S (π(1))= C 1. At this time, the set S There is only one cluster, and the last point in the set. p cur The end point of the first cluster ; Starting from the second cluster, iteratively search for distances. p cur The nearest intra-cluster start and end points are calculated. p cur Euclidean distance to the two endpoints of all unsorted clusters, i.e., the start and end points. and Choose the cluster index corresponding to the minimum distance endpoint as ,like < If the order is not specified, the internal order of the cluster remains unchanged; otherwise, the point cloud of the cluster is arranged in reverse order. Add to the current sorted set S ( k ), update the current point to ; Repeat the above process until all are completed. n After sorting the clusters, we obtain an ordered set of clusters: This involves including all clusters, then releasing the points from each cluster and combining them according to the pre-arranged cluster order to obtain a structured, ordered set of points. ; Step 4: Structured contour point spline curve fitting; B-spline curve fitting point group To obtain a smooth and continuous profile curve, the spline order is set. m Number of control points N +1, construct node vector U ={ u 0, u 1, , u N+m },forward m The first node is 0, then... m Each node is 1, and the internal nodes are uniformly distributed in the interval (0,1). The B-spline basis function is calculated based on the Cox–de Boor recursive formula. N i,m ( u The calculated curve is in the parameter u Coordinates of the location: (2) In the node interval [ u m-1 , u N+1 Within a set step size, the fitted curve is sampled uniformly to obtain a continuous set of points on the fitted curve.