A method for aligning measured 3D point cloud and BIM model coordinates based on axis grid

By aligning the measured 3D point cloud and the BIM model using an axis network-based method, the problem of difficulty in coordinate alignment during the construction process was solved, and the accuracy and efficiency of construction quality evaluation were improved.

CN114329705BActive Publication Date: 2024-08-27GUANGDONG HUAIXIN ENGINEERING CONSULTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111590117.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-23
Publication Date
2024-08-27
Estimated Expiration
2041-12-23

AI Technical Summary

Technical Problem

During the building construction process, it is difficult to effectively align the coordinates of the measured three-dimensional point cloud and the BIM model with existing technology, which makes it difficult to evaluate the differences in construction quality. In particular, there are primary and secondary issues when selecting alignment benchmarks.

Method used

Using the axis network-based method, by extracting the coordinate axis network and center from the BIM model, combined with point cloud slicing and line feature extraction, the line segments corresponding to the non-axis network are eliminated, and the corresponding line segments of the axis network are regularized to form a closed rectangular frame and the center coordinates are calculated. and quadrant angles, and achieve coordinate alignment between the point cloud and the BIM model through rigid body transformation.

Benefits of technology

It achieves accurate alignment of point clouds and BIM models, solves coordinate alignment problems in construction process monitoring and change detection, and improves the accuracy and efficiency of construction quality evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114329705B
    Figure CN114329705B
Patent Text Reader

Abstract

The present invention discloses a method for aligning coordinates of measured three-dimensional point cloud and BIM model based on axis network, comprising the following steps: step 1: BIM axis network extraction and axis network center calculation; step 2: point cloud slicing and line feature extraction; step 3: non-axis network corresponding line segment elimination, eliminate the line segment deviating from the selected axis, retain the line segment that can correspond to the selected axis, and obtain the axis network corresponding line segment set; step 4: axis network corresponding line segment regularization, regularize the reserved axis network corresponding line segment set, extend the regularized straight line segment to form a closed rectangular frame, calculate the center coordinates and quadrant angle; step 5: center homogeneous coordinate transformation, according to the posture of the axis network center and the rectangular center extracted from the axis network corresponding line segment extracted from the point cloud, change the position and direction of the original point cloud through rigid body transformation, and realize the coordinate alignment of the two models. The present invention can solve the problem of point cloud and BIM model coordinate alignment required for construction process monitoring and change detection using point cloud.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for aligning measured three-dimensional point clouds and BIM model coordinates based on an axis grid, and belongs to the technical field of building civil engineering and laser measurement. Background Art

[0002] With the rapid development of the economy and society, large-scale modern urban buildings continue to emerge, such as commercial complexes, convention and exhibition centers, museums, railway stations, terminals, underground transportation hubs, etc. Building information modeling (BIM) as a new concept and method can meet the building information integration of the entire life cycle of building design, construction, and operation. BIM refers to the general term for the process and results of digitally expressing the physical and functional characteristics of construction projects and facilities throughout their life cycle, and designing, constructing, and operating them accordingly. From the design, construction, and operation of a building to the end of its life cycle, BIM always integrates various information into a three-dimensional model information database, so that the design team, construction unit, facility operation department, owner and other parties can work together based on BIM, effectively improve work efficiency, save resources, reduce costs, and achieve sustainable development.

[0003] As a new type of surveying and mapping technology, laser scanning technology provides a new data source for municipal engineering construction monitoring. Ground 3D laser scanning has the characteristics of non-contact measurement, high data sampling rate, high precision, high resolution, and panoramic scanning, which can greatly save time and reduce costs. Laser scanning can achieve a panoramic presentation of real scenes, which is of great significance for construction process monitoring and quality evaluation. The 3D model in the design stage will undergo great changes in the construction, interior decoration and operation stages. How to use the measured laser point cloud to monitor the construction process and conduct construction quality evaluation is an urgent problem to be solved. The core of the evaluation is the comparison of differences, and the key to the problem is the coordinate alignment problem. It is manifested in the following aspects:

[0004] (1) There are many construction equipment and facilities on the construction site, which can be fully displayed in the point cloud, but usually do not exist in the design BIM model;

[0005] (2) The key to coordinate registration is to find the same-name points. However, it is very difficult to find the same-name points from the BIM model and the measured laser point cloud.

[0006] (3) The essence of quality inspection is the comparison of differences. The realization of difference comparison depends on the selection of alignment reference. If the lower left corner point is aligned, the difference may mainly appear in the upper right corner. If the center alignment is used, the difference is distributed around. Therefore, when using the measured point cloud for construction monitoring, the selection of alignment reference is very important. Summary of the invention

[0007] In view of the problems existing in the above-mentioned prior art, the present invention provides a method for aligning the coordinates of a measured three-dimensional point cloud and a BIM model based on an axis grid, thereby solving the above-mentioned technical problems.

[0008] In order to achieve the above object, the technical solution adopted by the present invention is: a method for aligning the measured three-dimensional point cloud and the BIM model coordinates based on the axis grid, comprising the following steps:

[0009] Step 1: Extract BIM axis grid and calculate axis grid center. Derive the coordinate axis grid from the BIM model, extract the typical four axes of east, west, south and north. Usually, the four axes of the calibrated interior walls are selected, and the axis grid center and quadrant angle are calculated based on the coordinate values ​​of the extracted four axes.

[0010] Step 2: Point cloud slicing and line feature extraction The vertically oriented laser scanning point cloud is sliced ​​in multiple layers along the Z axis direction, and several layers of slices are selected to be projected to the XOY plane, and line features are extracted to obtain a plane line feature set;

[0011] Step 3: Eliminate the line segments that are not corresponding to the axis grid, eliminate the line segments that deviate from the selected axis, retain the line segments that can correspond to the selected axis, and obtain the set of line segments corresponding to the axis grid;

[0012] Step 4: Regularize the corresponding line segments of the axis grid. Regularize the reserved corresponding line segment set of the axis grid, extend the regularized straight line segments to form a closed rectangular frame, and calculate the center coordinates and quadrant angles.

[0013] Step 5: Central homogeneous coordinate transformation. According to the posture of the axis grid center and the center of the rectangle extracted from the corresponding line segment of the axis grid extracted from the point cloud, the position and direction of the original point cloud are changed through rigid body transformation to achieve coordinate alignment of the two models, and the algorithm ends.

[0014] Furthermore, the specific implementation steps of point cloud slicing and line feature extraction in step 2 are:

[0015] 2.1. First, slice the oriented point cloud, that is, along the Z-axis direction, according to the given slice thickness, use a set of parallel planes to segment the measured laser point cloud, and project the layered point cloud onto the corresponding reference plane to form contour point cloud slices;

[0016] Assume that the measured laser point cloud P = {p1, p2, ..., p n}, p i ={x,y,z}∈R 3 , the coordinate range of the point cloud can be recorded as (x min ,y min , z min )~(x max ,y max , zmax );

[0017] Assume that the slice is segmented along the Z axis and set the slice thickness z thickness ;

[0018] The projection plane method is used to generate slices from the layered point cloud. For each layer, the middle position is defined as the projection reference plane of the layer, and all data points in the layer are projected onto the reference plane to form a point cloud slice. The calculation formula for the reference plane of each layer is as follows

[0019]

[0020] In the formula, z i Represents the projection reference plane of the i-th layer. The normal vector of the plane points to the positive direction of the Z axis. min Indicates the z value of the projection reference plane of the lowest slice;

[0021] 2.2. Select multiple slices roughly evenly in the Z direction and project them onto the XOY plane to form a fused point cloud slice P s , a double radius threshold line tracking method is used to extract line features; the algorithm uses two distance thresholds, and the distance threshold d1 is used to speed up the search; a suitable d1 value can ensure the continuity of the extracted line segments;

[0022] The algorithm steps are as follows:

[0023] 2.2.1. Construct the KD tree of point cloud slices;

[0024] 2.2.2. Randomly select a point (non-branch point, unvisited), search for its neighboring points within the radius of d2, calculate the PCA main direction of the point cloud based on the neighboring point set Q; search along the main direction, and then search in the reverse direction of the main direction;

[0025] 2.2.3. Traverse the neighboring points within the radius d2, obtain all points whose distance to the current point is greater than d1, determine whether the angle between the point set and the main direction is less than Δθ (for example, the angle threshold is 10°), and add the point with the smallest angle as the new current point to the curve branch. The points added to the branch are marked as nodes, and all points less than d1 are marked as visited;

[0026] 2.2.4. Until there are no neighboring points that meet the conditions, merge the two line segments searched in opposite directions and return the line segment;

[0027] 2.2.5. Repeat steps (2.2.2)-(2.2.4) until all slice points are marked as visited and branch points.

[0028] Furthermore, the specific implementation steps of the step of regularizing the line segments corresponding to the four-axis line are:

[0029] 3.1. Since four axes, east, west, south and north, are selected from the axis grid, a rectangular bounding box is formed; the corresponding line segments in the measured three-dimensional point cloud should also meet the requirements of parallelism and orthogonality to best determine the center of the point cloud;

[0030] Assume that each straight line uses the method of "point + direction vector" to represent the straight line parameters, recorded as The longest straight line segment, or the straight line containing the largest number of point clouds, is taken as the first line, i.e. the reference straight line L ref , then other orthogonal and parallel lines L i , the conditional rule for i=1,2,3,… is defined as:

[0031]

[0032] The angle between the other straight line and the reference straight line is recorded as θ; Δθ is the angle threshold set according to experience (generally 10°); if condition 1 is met, the straight line is considered to be parallel to the reference straight line; if condition 2 is met, the straight line is considered to be perpendicular to the reference straight line;

[0033] In the process of regularization, in order to obtain the optimal line parameters for each line, the constrained least squares method is used to solve this problem; the formula for line feature regularization used in the present invention is as follows:

[0034]

[0035]

[0036] M s =M u or M v , M u M v =1 r(10);

[0037] Where L is the equation of the line, A i and B i is the parameter of the line equation, O represents the relationship between the line and the reference line (vertical M v , parallel M u ); Let x = (c0, c1, ..., c i , a0, b0) T , we get the linear equation system Ax=b; where A represents the coefficient matrix of the linear equation system, x represents the unknown parameter vector, and the right side Perform QR decomposition on the coefficient matrix A to reduce the complexity of solving the problem;

[0038] Perform singular value SVD decomposition on the decomposition result upper triangular matrix R to obtain the final solution of x, and assign new parameter values ​​to each line accordingly; after the line segments are regularized to be perpendicular and parallel, the collinearity rule is further applied to merge the parallel line segments whose distances are less than a given threshold, and the collinear line segments are merged using the mean method;

[0039] 3.2. Extend the regularized straight line segment to form a closed rectangular frame, and calculate the center coordinates and quadrant angle.

[0040] Furthermore, the specific implementation steps of the central homogeneous coordinate transformation in step 5 are:

[0041] 4.1. The coordinates of the center point of the axis grid and the quadrant angle are recorded as p0(α x , α y , 0, 0), the coordinates and quadrant angle of the point cloud are p1(β x , β y , 0, θ2);

[0042] First, move point p1 to the coordinate origin:

[0043]

[0044] 4.2 Rotation around the Z axis:

[0045]

[0046] 4.3 Move p1 to the center of the grid p0:

[0047]

[0048] The homogeneous coordinate transformation matrix is:

[0049] M=T(p0)·Rz(θ2)·T(-p1); (9);

[0050] 4.4. Apply the transformation matrix to the original point cloud to obtain the aligned point cloud file.

[0051] The beneficial effects of the present invention are as follows: the present invention discloses a method for aligning the coordinates of a measured three-dimensional point cloud with a BIM model based on an axis grid, the basic idea of ​​which can be summarized as "axis grid centering and center alignment". The present invention can solve the problem of aligning the coordinates of a point cloud with a BIM model required for monitoring the construction process and detecting changes using a point cloud. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a flow chart of the coordinate alignment method of the measured three-dimensional point cloud and the BIM design model based on the axis grid of the present invention;

[0053] Figure 2This is a diagram showing the BIM design model axis grid extraction and axis grid center coordinate calculation results of the present invention;

[0054] Figure 3 It is a diagram of the process and results of an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present invention more clear, the present invention is further described in detail below through the accompanying drawings and embodiments. However, it should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the scope of the present invention.

[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which the present invention belongs. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0057] like Figure 1 As shown, the present invention provides a method for aligning the coordinates of a measured three-dimensional point cloud and a BIM model based on an axis grid, which can solve the problem of aligning the coordinates of a point cloud and a BIM design model required for construction process monitoring and change detection using a point cloud.

[0058] Step 1: If Figure 2 As shown in the figure, the axis grid is derived from the BIM design model, and the four typical east-west, south-north axes are extracted. The four axes selected in this example are consistent with the coordinates of the inner wall, and the center coordinates of the axis grid are calculated based on the vertical and horizontal coordinate values ​​of the four axes. The coordinates of the axis grid in the BIM model are relative to the project base point. The center point calculated by the four axes may or may not coincide with the project base point, depending on the selected axis.

[0059] Step 2: If Figure 3 As shown in (b), the vertically oriented laser scanning point cloud is sliced ​​into multiple layers; Figure 3 As shown in (c), several slices are selected to be projected onto the XOY plane, and line features are extracted to obtain a plane line feature set ( Figure 3 (d));

[0060] The specific implementation steps of point cloud slicing and line feature extraction in step 2 are:

[0061] 2.1. First, slice the oriented point cloud, that is, along the Z-axis direction, according to the given slice thickness, use a set of parallel planes to segment the measured laser point cloud, and project the layered point cloud onto the corresponding reference plane to form contour point cloud slices;

[0062] Assume that the measured laser point cloud P = {p1, p2, ..., p n}, pi ={x,y,z}∈R 3 , the coordinate range of the point cloud can be recorded as (x min ,y min , z min )~(x max ,y max , z max );

[0063] Assume that the slice is segmented along the Z axis and set the slice thickness z thickness ;

[0064] The projection plane method is used to generate slices from the layered point cloud. For each layer, the middle position is defined as the projection reference plane of the layer, and all data points in the layer are projected onto the reference plane to form a point cloud slice. The calculation formula for the reference plane of each layer is as follows

[0065]

[0066] In the formula, z i Represents the projection reference plane of the i-th layer. The normal vector of the plane points to the positive direction of the Z axis. min Indicates the z value of the projection reference plane of the lowest slice;

[0067] 2.2. Select multiple slices roughly evenly in the Z direction and project them onto the XOY plane to form a fused point cloud slice P s , a double radius threshold line tracking method is used to extract line features; the algorithm uses two distance thresholds, and the distance threshold d1 is used to speed up the search;

[0068] The algorithm steps are as follows:

[0069] 2.2.1. Construct the KD tree of point cloud slices;

[0070] 2.2.2. Randomly select a point (non-branch point, unvisited), search for its neighboring points within the radius of d2, calculate the PCA main direction of the point cloud based on the neighboring point set Q; search along the main direction, and then search in the reverse direction of the main direction;

[0071] 2.2.3. Traverse the neighboring points within the radius d2, obtain all points whose distance to the current point is greater than d1, determine whether the angle between the point set and the main direction is less than Δθ (for example, the angle threshold is 10°), and add the point with the smallest angle as the new current point to the line segment branch. The points added to the branch are marked as nodes, and all points less than d1 are marked as visited;

[0072] 2.2.4. Until there are no neighboring points that meet the conditions, merge the two line segments searched in opposite directions and return the line segment;

[0073] 2.2.5. Repeat steps (2.2.2)-(2.2.4) until all slice points are marked as visited and branch points.

[0074] Step 3: If Figure 3 As shown in (e), the line segments that are not corresponding to the axis grid are eliminated. The line segments that can correspond to the axis in the plane line feature set are retained, and the line segments that deviate from the axis are eliminated to obtain the axis grid corresponding line segment set.

[0075] Step 4: If Figure 3 As shown in (f), the line segments corresponding to the axis grid are regularized. The reserved line segment set corresponding to the axis grid is regularized, and the regularized straight line segments are extended to form a closed rectangular frame, and the center coordinates and direction vector are calculated.

[0076] Step 4: The specific implementation steps for regularizing the line segments corresponding to the axis are:

[0077] 3.1. Since four axes, east, west, south and north, are selected from the axis grid, a rectangular bounding box is formed; the corresponding line segments in the measured three-dimensional point cloud should also meet the requirements of parallelism and orthogonality to best determine the center of the point cloud;

[0078] Assume that each straight line uses the method of "point + direction vector" to represent the straight line parameters, recorded as The longest straight line segment, or the straight line containing the largest number of point clouds, is taken as the first line, i.e. the reference straight line L ref , then other orthogonal and parallel lines L i , the conditional rule for i=1,2,3,… is defined as:

[0079]

[0080] The angle between the other straight line and the reference straight line is recorded as θ; Δθ is the angle threshold set according to experience (generally 10°); if condition 1 is met, the straight line is considered to be parallel to the reference straight line; if condition 2 is met, the straight line is considered to be perpendicular to the reference straight line;

[0081] In the process of regularization, in order to obtain the optimal line parameters for each line, the constrained least squares method is used to solve this problem; the formula for line feature regularization used in the present invention is as follows:

[0082]

[0083]

[0084] M s =M u or M v , M u M v =1 (15);

[0085] Where L is the equation of the line, A i and B i is the parameter of the line equation, O represents the relationship between the line and the reference line (vertical M v , parallel M u ); Let x = (c0, c1, ..., c i , a0, b0) T , we get the linear equation system Ax=b; where A represents the coefficient matrix of the linear equation system, x represents the unknown parameter vector, and the right side Perform QR decomposition on the coefficient matrix A to reduce the complexity of solving the problem;

[0086] Perform singular value SVD decomposition on the decomposition result upper triangular matrix R to obtain the final solution of x, and assign new parameter values ​​to each line accordingly; after the line segments are regularized to be perpendicular and parallel, the collinearity rule is further applied to merge the parallel line segments whose distances are less than a given threshold, and the collinear line segments are merged using the mean method;

[0087] 3.2. Extend the regularized straight line segment to form a closed rectangular frame, and calculate the center coordinates and quadrant angle.

[0088] Step 5: Center homogeneous coordinate transformation According to the posture of the axis grid center and the center of the rectangle extracted from the axis grid corresponding to the line segment extracted from the point cloud, the position and direction of the original point cloud are changed through rigid body transformation to achieve coordinate alignment of the two models.

[0089] Step 5 The specific implementation steps of the central homogeneous coordinate transformation are:

[0090] 4.1. Record the coordinates of the center point of the axis grid and the quadrant angle p0(α x , α y , 0, 0), the coordinates of the point in the point cloud and the quadrant angle p1(β x , β y , 0, θ2);

[0091] First, move point p1 to the coordinate origin:

[0092]

[0093] 4.2 Rotation around the Z axis:

[0094]

[0095] 4.3 Move p1 to the center of the grid p0:

[0096]

[0097] The homogeneous coordinate transformation matrix is:

[0098] M=T(p0)·Rz(θ2)·T(-p1); (9);

[0099] 4.4. Apply the transformation matrix to the original point cloud to obtain the aligned point cloud file.

[0100] At this point, the algorithm ends.

[0101] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for aligning measured three-dimensional point cloud and BIM model coordinates based on an axis grid, applied in the field of building measurement, characterized in that: The following steps are involved: Step 1: Extract BIM axis grid and calculate axis grid center. Derive the coordinate axis grid from the BIM model, extract the typical four axes of east, west, south and north. Usually, the four axes of the calibrated interior walls are selected, and the axis grid center and quadrant angle are calculated based on the coordinate values ​​of the extracted four axes. Step 2: Point cloud slicing and line feature extraction The vertically oriented laser scanning point cloud is sliced ​​in multiple layers along the Z axis direction, and several layers of slices are selected to be projected to the XOY plane, and line features are extracted to obtain a plane line feature set; Step 3: Eliminate the line segments that are not corresponding to the axis grid, eliminate the line segments that deviate from the selected axis, retain the line segments that can correspond to the selected axis, and obtain the set of line segments corresponding to the axis grid; Step 4: Regularize the corresponding line segments of the axis grid. Regularize the reserved corresponding line segment set of the axis grid, extend the regularized straight line segments to form a closed rectangular frame, and calculate the center coordinates and quadrant angles. Step 5: Center homogeneous coordinate transformation: according to the position of the axis grid center and the center of the rectangle extracted from the corresponding line segment of the axis grid extracted from the point cloud, the position and direction of the original point cloud are changed through rigid body transformation to achieve the coordinate alignment of the two models, and the algorithm ends; The specific implementation steps of the step of regularizing the line segments corresponding to the four-axis line are as follows: 3.

1. Since four axes, east, west, south and north, are selected from the axis grid, a rectangular bounding box is formed; the corresponding line segments in the measured 3D point cloud should also meet the requirements of parallelism and orthogonality to best determine the center of the point cloud; Assume that each straight line uses the method of "point + direction vector" to represent the straight line parameters, recorded as i = 0, 1, 2, ..., and the longest straight line segment, or the straight line containing the largest number of point clouds, is taken as the first line, i.e., the reference straight line L ref , then other orthogonal and parallel lines L i , the conditional rule for i=1,2,3,… is defined as: The angle between the other straight lines and the reference straight line is recorded as θ; Δθ is the angle threshold set based on experience; if condition 1 is met, the straight line is considered to be parallel to the reference straight line; if condition 2 is met, the straight line is considered to be perpendicular to the reference straight line; In the process of regularization, in order to obtain the optimal line parameters for each line, the constrained least squares method is used to solve this problem; the formula for line feature regularization used in the present invention is as follows: Where L is the equation of the line, A i and B i is the parameter of the line equation, O represents the relationship between the line and the reference line, and the perpendicular M v , parallel M u ; Let x = (c0, c1, ..., c i , a0, b0) T , we get the linear equation system Ax=b; where A represents the coefficient matrix of the linear equation system, x represents the unknown parameter vector, and the right side Perform QR decomposition on the coefficient matrix A to reduce the complexity of solving the problem; Perform singular value SVD decomposition on the decomposition result upper triangular matrix R to obtain the final solution of x, and assign new parameter values ​​to each line accordingly; after the line segments are regularized to be perpendicular and parallel, the collinearity rule is further applied to merge the parallel line segments whose distances are less than a given threshold, and the collinear line segments are merged using the mean method; 3.

2. Extend the regularized straight line segment to form a closed rectangular frame, and calculate the center coordinates and quadrant angle; The specific implementation steps of the central homogeneous coordinate transformation in step 5 are: 4.

1. The coordinates of the center point of the axis grid and the quadrant angle are recorded as p0(α x , α y , 0, 0), the point coordinates p1 and quadrant angle in the point cloud are (β x , β y , 0, θ2); First, move point p1 to the coordinate origin: 4.2 Rotation around the Z axis: 4.3 Move p1 to the center of the grid p0: The homogeneous coordinate transformation matrix is: M=T(p0)·Rz(θ2)·T(-p1); (9); 4.

4. Apply the transformation matrix to the original point cloud to obtain the aligned point cloud file.

2. The method for aligning measured three-dimensional point cloud and BIM model coordinates based on axis grid according to claim 1, characterized in that: The specific implementation steps of point cloud slicing and line feature extraction in step 2 are: 2.

1. First, slice the oriented point cloud, that is, along the Z-axis direction, according to the given slice thickness, use a set of parallel planes to segment the measured laser point cloud, and project the layered point cloud onto the corresponding reference plane to form contour point cloud slices; Assume that the measured laser point cloud P = {p1, p2, ..., p n }, p i ={x,y,z}∈R 3 , the coordinate range of the point cloud can be recorded as (x min ,y min , z min )~(x max ,y max , z max ); Assume that the slice is segmented along the Z axis and set the slice thickness z thickness ; The projection plane method is used to generate slices from the layered point cloud. For each layer, the middle position is defined as the projection reference plane of the layer, and all data points in the layer are projected onto the reference plane to form point cloud slices. The calculation formula for the reference plane of each layer is as follows In the formula, z i Represents the projection reference plane of the i-th layer. The normal vector of the plane points to the positive direction of the Z axis. min Indicates the z value of the projection reference plane of the lowest slice; 2.

2. Select multiple slices roughly evenly in the Z direction and project them onto the XOY plane to form a fused point cloud slice P s , a double radius threshold line tracking method is used to extract line features; the algorithm uses two distance thresholds, and the distance threshold d1 is used to speed up the search; The algorithm steps are as follows: 2.2.

1. Construct the KD tree of point cloud slices; 2.2.

2. Randomly select a point, search for its neighboring points within the radius of d2, and calculate the PCA main direction of the point cloud based on the neighboring point set Q; search along the main direction, and then search in the reverse direction of the main direction; 2.2.

3. Traverse the neighboring points within the radius d2, obtain all points whose distance to the current point is greater than d1, determine the point concentration whose angle with the main direction is less than Δθ, and add the point with the smallest angle as the new current point to the line segment branch. The points added to the branch are marked as nodes, and all points less than d1 are marked as visited; 2.2.

4. Until there are no neighboring points that meet the conditions, merge the two line segments searched in opposite directions and return the line segment; 2.2.

5. Repeat steps (2.2.2)-(2.2.4) until all slice points are marked as visited and branch points.