Two-dimensional contour line extraction method for maximum roughness of rock joint surface
The method efficiently converts 3D point clouds of rock joint surfaces into 2D contour lines of maximum roughness, addressing the inefficiencies of existing methods and enhancing rock mechanics analysis.
Patent Information
- Application Number
- CN202411157661.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-21
AI Technical Summary
Current methods struggle to convert 3D point cloud data of rock joint surfaces into 2D contour lines of maximum roughness efficiently and scientifically.
A method involving 3D laser scanning, denoising, rotating, centering, filtering, and interpolating 3D point clouds to extract 2D contour lines of maximum roughness, using techniques like standard deviation filtering, Rodriguez rotation, and coordinate transformations.
Accurately obtains two-dimensional joint contours and their coordinates, providing a powerful tool for rock mechanics testing by simplifying the analysis of joint roughness.
Smart Images

Figure CN119068004A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of rock mechanics experiments, and in particular to a method for extracting two-dimensional contour lines of maximum roughness of rock joint surfaces. Background Art
[0002] The geometric characteristics of rock joint surfaces play a decisive role in the mechanical properties and stability of rock masses. With the development of 3D scanning technology, point cloud data has become an important tool for characterizing the 3D roughness of rock joints. When using point cloud data to analyze the roughness of joint surfaces, the analysis process is extremely complex and the calculation efficiency is low due to the huge amount of data. Therefore, the current research on the roughness of rock joint surfaces is still mainly based on two-dimensional morphology. However, how to scientifically and effectively convert 3D point clouds into 2D point clouds and extract the 2D contour of the joint surface under maximum roughness is still a key problem that needs to be solved.
[0003] At present, there are patents that provide methods for establishing a three-dimensional discrete element model of a jointed rock mass based on point cloud data. For example, a Chinese patent with publication number CN112784403B discloses a numerical simulation method for establishing a discrete element model of a jointed rock mass based on point cloud data. The main steps are: obtaining a point cloud data set of a jointed rock mass, and performing denoising and streamlined filtering processing, and then calculating the structural surface occurrence, and establishing a three-dimensional model of the structural surface through the point cloud data. With the help of Fracman software and Rhino software, the model is processed into a data file readable by 3DEC software, and then imported into 3DEC software for numerical analysis to generate the final three-dimensional model of the jointed rock mass.
[0004] The above method can generate a three-dimensional numerical model of the jointed rock mass, but cannot generate a two-dimensional joint surface contour scientifically and reasonably. Summary of the invention
[0005] In order to solve the above technical problems, this application proposes the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a method for extracting a two-dimensional contour line of the maximum roughness of a rock joint surface, comprising:
[0007] Use 3D laser scanning equipment to scan the natural rock joint surface to obtain the 3D point cloud of the joint surface;
[0008] De-noising the three-dimensional point cloud of the joint surface to obtain a de-noised three-dimensional point cloud;
[0009] Rotating the denoised three-dimensional point cloud so that its normal vector is collinear with a unit vector of the z-axis of the three-dimensional coordinate system;
[0010] Moving the geometric center of the rotated three-dimensional point cloud to the origin of the three-dimensional coordinate system to obtain a centralized three-dimensional point cloud;
[0011] Filtering the centralized three-dimensional point cloud and retaining the three-dimensional point cloud within the range of an infinitely long cylinder with the z-axis of the coordinate system as the axis and the bottom radius R;
[0012] Given a profile equation, set the number of rotations n, take the z-axis as the rotation axis, rotate the given profile counterclockwise, rotate 180 / n degrees each time, and obtain a two-dimensional point cloud where the filtered point cloud is on the profile during each rotation;
[0013] Interpolate n groups of two-dimensional point clouds respectively, calculate the roughness of each group of interpolated two-dimensional point clouds, and find the maximum roughness and the corresponding two-dimensional point cloud;
[0014] The interpolated two-dimensional point cloud under the maximum roughness is output in a dxf format commonly used by discrete element software.
[0015] In a possible implementation, denoising the joint surface three-dimensional point cloud to obtain a denoised three-dimensional point cloud includes:
[0016] For each point p in the 3D point cloud i , calculate its K neighboring points (p i1 , p i2 ,…,p iK ) and the standard deviation σ of the distance from the neighborhood points to the mean i , the formulas are as follows:
[0017]
[0018] Set a threshold std, if Exceeded Then point p i is considered noise and should be removed.
[0019] In a possible implementation, rotating the denoised three-dimensional point cloud so that its normal vector is collinear with a unit vector of the z-axis of the three-dimensional coordinate system includes:
[0020] Calculate the rotation axis a and rotation angle α between the point cloud normal vector n and the coordinate system z-axis, where the rotation axis a is obtained by the cross product of the normal vector n and the z-axis unit vector k, and the formula is: a=n×k; the rotation angle α is calculated by the dot product of the normal vector n and the z-axis unit vector k, and the formula is:
[0021] The rotation matrix R is calculated using the Rodriguez rotation formula:
[0022] R=I+sin(α)K+(1-cos(α))K 2
[0023] Where K is the antisymmetric matrix of the rotation axis, and α is the rotation angle;
[0024] Multiply the denoised 3D point cloud by the rotation matrix R to obtain the rotated point cloud.
[0025] In a possible implementation, moving the geometric center of the rotated three-dimensional point cloud to the origin of the three-dimensional coordinate system to obtain a centralized three-dimensional point cloud includes:
[0026] Assume that the point cloud consists of N points, and the coordinates of each point are p i =(x i ,y i ,z i ), then the calculation formula of the center of mass C is:
[0027]
[0028] Subtract the centroid coordinates from the coordinates of each point in the point cloud to obtain the centralized point cloud. The formula is:
[0029] p i ′=p i -C=(x i ′,y i ′,z i ′)=(x i -C x ,y i -C y ,z i -C z ).
[0030] In a possible implementation, the centered 3D point cloud is screened and retained within the range of an infinitely long cylinder with the z-axis of the coordinate system as the axis and the bottom radius R, including: setting the radius R, for each point (x i ,y i , z i ), calculated value If d i >R, then delete the point.
[0031] In one possible implementation, the profile equation is:
[0032] y-tan(θ)x=0
[0033] Where θ is the angle between the intersection of the given section and the xoy plane and the positive direction of the x-axis.
[0034] In a possible implementation, obtaining the two-dimensional point cloud in which the filtered point cloud is on the cross section during each rotation includes:
[0035] Set the tolerance F;
[0036] Calculate the distance D from the filtered point cloud to the given section i , the formula is:
[0037]
[0038] In the formula, x i ,y i are the x-axis and y-axis coordinates of the i-th point in the point cloud;
[0039] If D i ≤F, the point is considered to be on the given section.
[0040] In a possible implementation, interpolating n groups of two-dimensional point clouds respectively includes:
[0041] Define a new plane coordinate system on a given section: the origin of the new plane coordinate system is the same as that of the original three-dimensional coordinate system, the x-axis of the new plane coordinate system is recorded as the x' axis, which is the intersection of the given section and the xoy plane, its positive direction is the positive direction of the original x-axis, and its negative direction is the negative direction of the original x-axis, and the y-axis of the new plane coordinate system is the z-axis of the original coordinate system, recorded as the y' axis;
[0042] The coordinate transformation formula between the new coordinate system and the original coordinate system is: y i ′=z i , where x i ,y i 、z i is the coordinate value of the i-th point in the original coordinate system; x i The sign of ′ is determined by the x-axis of the original coordinate system. i The sign determines;
[0043] Sort the x'-axis values from small to large, and then perform the following interpolation calculations:
[0044]
[0045] In the formula, x i ,y i are the horizontal and vertical coordinate values of the i-th point in the original coordinate system.
[0046] In a possible implementation, the roughness of the two-dimensional point cloud preferably uses the root mean square of the first-order derivative of the contour Z2, and the formula is as follows:
[0047]
[0048] Where N is the number of points after interpolation of the profile data; L is the projection length of the profile contour line; x i ,y i are the horizontal and vertical coordinates of the ith point respectively.
[0049] In the embodiment of the present application, based on the three-dimensional point cloud data of the joint surface, the two-dimensional joint contour and its coordinate value on any section are accurately obtained. From point cloud data denoising, screening point clouds within the target range, to the final output of the two-dimensional point cloud after interpolation under the maximum roughness, a powerful tool is provided for two-dimensional joint roughness analysis, which plays an important role in promoting the development of the field of rock mechanics testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic flow chart of a method for extracting a two-dimensional contour line of the maximum roughness of a rock joint surface provided in an embodiment of the present application;
[0051] Figure 2 This is a picture of a natural rock joint surface;
[0052] Figure 3 for Figure 2 Pictures of 3D point clouds of natural rock joint surfaces;
[0053] Figure 4 For Figure 3 Rotated point cloud image;
[0054] Figure 5 This is a picture of the point cloud after centering;
[0055] Figure 6 It is the top view of the point cloud after screening;
[0056] Figure 7 It is the interpolated two-dimensional point cloud image under the maximum roughness;
[0057] Figure 8 It is the two-dimensional contour line of the joint surface after interpolation under the maximum roughness in AutoCAD. DETAILED DESCRIPTION
[0058] The present solution is described below in conjunction with the accompanying drawings and specific implementation methods.
[0059] See also Figure 1 The method for extracting the two-dimensional contour line of the maximum roughness of the rock joint surface provided in this embodiment includes:
[0060] S101, using a three-dimensional laser scanning device to scan the natural rock joint surface to obtain a three-dimensional point cloud of the joint surface.
[0061] See also Figure 2 For a picture of a natural rock joint surface, clean the natural joint surface, and then use a 3D laser scanning device to scan the key research area of the natural rock joint surface to obtain the 3D point cloud data of the rock joint surface, such as Figure 3 Shown is a picture of a three-dimensional point cloud of a natural rock joint surface.
[0062] S102, denoising the three-dimensional point cloud of the joint surface to obtain a denoised three-dimensional point cloud.
[0063] Denoising of 3D point cloud of joint surface includes:
[0064] For each point p in the point cloud i , calculate its 30 neighboring points (p i1 , p i2 ,…,p i30 ) and the standard deviation σ of the distance from the neighborhood points to the mean i , the formulas are as follows:
[0065]
[0066] Set a threshold value std equal to 1, if Exceeded Then point p i is considered noise and should be removed.
[0067] S103, rotating the denoised three-dimensional point cloud so that its normal vector is collinear with the unit vector of the z-axis of the three-dimensional coordinate system.
[0068] 1) Calculate the rotation matrix
[0069] Calculate the rotation axis a and rotation angle α between the point cloud normal vector n and the coordinate system z-axis, where the rotation axis a is obtained by the cross product of the normal vector n and the z-axis unit vector k (0, 0, 1), and the formula is: a = n × k; the rotation angle α is calculated by the dot product of the normal vector n and the z-axis unit vector k (0, 0, 1), and the formula is:
[0070]
[0071] 2) Use the Rodriguez rotation formula to calculate the rotation matrix R, the formula is:
[0072] R=I+sin(α)K+(1-cos(α))K 2
[0073] Where K is the antisymmetric matrix of the rotation axis and α is the rotation angle.
[0074] 3) Multiply the denoised 3D point cloud by the rotation matrix R to obtain the rotated point cloud, see Figure 4 This is the image of the rotated point cloud.
[0075] S104, moving the geometric center of the rotated three-dimensional point cloud to the origin of the three-dimensional coordinate system to obtain a centralized three-dimensional point cloud.
[0076] 1) Calculate the centroid of the point cloud
[0077] Assume that the point cloud consists of N points, and the coordinates of each point are p i =(x i ,y i ,z i ), then the calculation formula of the center of mass C is:
[0078] 2) Centralize the point cloud
[0079] Subtract the centroid coordinates from the coordinates of each point in the point cloud to obtain the centralized point cloud (see Figure 5 is the image of the centralized point cloud), the formula is:
[0080] p i ′=p i -C=(x i ′,y i ′,z i ′)=(x i -C x ,y i -C y ,z i -C z ).
[0081] S105 , screening and retaining the centered three-dimensional point cloud within the range of an infinitely long cylinder with the z-axis of the coordinate system as the axis and the bottom radius R.
[0082] Set the radius R to 0.05, and for each point (x i ,y i , z i ), calculated value If d i >R, then delete the point, see Figure 6 This is the top view of the point cloud after filtering.
[0083] S106, given a section equation, set the number of rotations n, take the z-axis as the rotation axis, rotate the given section counterclockwise, each rotation is 180 / n degrees, and obtain a two-dimensional point cloud where the filtered point cloud is on the section during each rotation.
[0084] Given the profile equation: y-tan(θ)x=0, set the number of rotations to 180, take the z-axis as the rotation axis, rotate the given profile counterclockwise by 1 degree each time, that is, from 0 to 180°, with an interval of 1°, and obtain a two-dimensional point cloud in which the filtered point cloud is on the profile during each rotation, for a total of 180 sets of two-dimensional point clouds.
[0085] Set tolerance F = 0.0002;
[0086] Calculate the distance D from the filtered point cloud to the given section i , the formula is:
[0087]
[0088] In the formula, x i ,y i are the x-axis and y-axis coordinates of the i-th point in the point cloud.
[0089] S107, interpolating the n groups of two-dimensional point clouds respectively, calculating the roughness of each group of interpolated two-dimensional point clouds, and finding the maximum roughness and the corresponding two-dimensional point cloud.
[0090] The steps of 2D point cloud interpolation are:
[0091] 1) Define a new plane coordinate system on a given section: The origin of the new plane coordinate system is the same as that of the original three-dimensional coordinate system. The x-axis of the new plane coordinate system is recorded as the x' axis, which is the intersection of the given section and the xoy plane. Its positive direction is the positive direction of the original x-axis, and its negative direction is the negative direction of the original x-axis. The y-axis of the new plane coordinate system is the z-axis of the original coordinate system.
[0092] 2) The coordinate transformation formula between the new coordinate system and the original coordinate system is: y i ′=z i , where x i ,y i 、z i is the coordinate value of the i-th point in the original coordinate system; x i The sign of ′ is determined by the x-axis of the original coordinate system. i The plus or minus sign determines.
[0093] 3) Sort the values on the x' axis from small to large, and then perform the following interpolation calculations:
[0094]
[0095] In the formula, x i ,y i are the horizontal and vertical coordinates of the i-th point in the original coordinate system.
[0096] The roughness is calculated using the root mean square of the first-order derivative of the profile Z2. The formula is as follows:
[0097]
[0098] Where N is the number of points after interpolation of the profile data, L is the projection length of the profile contour line, and x i ,y i are the horizontal and vertical coordinates of the ith point, see Figure 7 It is the interpolated two-dimensional point cloud under the maximum roughness.
[0099] S108, outputting the interpolated two-dimensional point cloud under the maximum roughness into a dxf format commonly used by discrete element software.
[0100] The Python third-party software library ezdxf is used to output the interpolated 2D point cloud under the maximum roughness into the dxf format commonly used by discrete element software. Figure 8 It is the two-dimensional contour line of the joint surface after interpolation under the maximum roughness in AutoCAD.
[0101] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0102] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A two-dimensional contour line extraction method for the maximum roughness of a rock joint surface, characterized in that: include: Use 3D laser scanning equipment to scan the natural rock joint surface to obtain the 3D point cloud of the joint surface; De-noising the three-dimensional point cloud of the joint surface to obtain a de-noised three-dimensional point cloud; Rotating the denoised three-dimensional point cloud so that its normal vector is collinear with a unit vector of the z-axis of the three-dimensional coordinate system; Moving the geometric center of the rotated three-dimensional point cloud to the origin of the three-dimensional coordinate system to obtain a centralized three-dimensional point cloud; Filtering the centralized three-dimensional point cloud and retaining the three-dimensional point cloud within the range of an infinitely long cylinder with the z-axis of the coordinate system as the axis and the bottom radius R; Given a profile equation, set the number of rotations n, take the z-axis as the rotation axis, rotate the given profile counterclockwise, rotate 180 / n degrees each time, and obtain a two-dimensional point cloud where the filtered point cloud is on the profile during each rotation; Interpolate n groups of two-dimensional point clouds respectively, calculate the roughness of each group of interpolated two-dimensional point clouds, and find the maximum roughness and the corresponding two-dimensional point cloud; The interpolated two-dimensional point cloud under the maximum roughness is output in a dxf format commonly used by discrete element software.
2. The two-dimensional contour line extraction method of the maximum roughness of rock joint surface according to claim 1 is characterized in that: Denoising the three-dimensional point cloud of the joint surface to obtain the denoised three-dimensional point cloud includes: For each point p in the 3D point cloud i , calculate its K neighboring points (p i1 , p i2 ,…,p iK ) and the standard deviation σ of the distance from the neighborhood points to the mean i , the formulas are as follows: Set a threshold std, if Exceeded Then point p i is considered noise and should be removed.
3. The two-dimensional contour line extraction method of the maximum roughness of rock joint surface according to claim 2 is characterized in that: The step of rotating the denoised three-dimensional point cloud so that its normal vector is collinear with a unit vector of the z-axis of the three-dimensional coordinate system includes: Calculate the rotation axis a and rotation angle α between the point cloud normal vector n and the coordinate system z-axis, where the rotation axis a is obtained by the cross product of the normal vector n and the z-axis unit vector k, and the formula is: a=n×k; the rotation angle α is calculated by the dot product of the normal vector n and the z-axis unit vector k, and the formula is: The rotation matrix R is calculated using the Rodriguez rotation formula: R=I+sin(α)K+(1-cos(α))K 2 Where K is the antisymmetric matrix of the rotation axis, and α is the rotation angle; Multiply the denoised 3D point cloud by the rotation matrix R to obtain the rotated point cloud.
4. The two-dimensional contour line extraction method of the maximum roughness of rock joint surface according to claim 1 is characterized in that: Moving the geometric center of the rotated three-dimensional point cloud to the origin of the three-dimensional coordinate system to obtain a centralized three-dimensional point cloud includes: Assume that the point cloud consists of N points, and the coordinates of each point are p i =(x i ,y i ,z i ), then the calculation formula of the center of mass C is: Subtract the centroid coordinates from the coordinates of each point in the point cloud to obtain the centralized point cloud. The formula is: i ′=p i -C=(x i ′,y i ′,z i ′)=(x i -C x ,y i -C y ,z i -C z ).
5. The method for extracting the two-dimensional contour line of the maximum roughness of a rock joint surface according to claim 1, characterized in that: The centered 3D point cloud is screened and retained within the range of an infinitely long cylinder with the z-axis of the coordinate system as the axis and the bottom radius R, including: setting the radius R, for each point (x i ,y i , z i ), calculated value If d i >R, then delete the point.
6. The method for extracting the two-dimensional contour line of the maximum roughness of a rock joint surface according to claim 1, characterized in that: The profile equation is: y-tan(θ)x=0 Where θ is the angle between the intersection of the given section and the xoy plane and the positive direction of the x-axis.
7. The method for extracting the two-dimensional contour line of the maximum roughness of a rock joint surface according to claim 6, characterized in that: The step of obtaining a two-dimensional point cloud where the filtered point cloud is on the cross section during each rotation includes: Set the tolerance F; Calculate the distance D from the filtered point cloud to the given section i , the formula is: In the formula, x i ,y i are the x-axis and y-axis coordinates of the i-th point in the point cloud; If D i ≤F, the point is considered to be on the given section.
8. The method for extracting the two-dimensional contour line of the maximum roughness of a rock joint surface according to claim 1, characterized in that: The interpolating n groups of two-dimensional point clouds respectively comprises: Define a new plane coordinate system on a given section: the origin of the new plane coordinate system is the same as that of the original three-dimensional coordinate system, the x-axis of the new plane coordinate system is recorded as the x' axis, which is the intersection of the given section and the xoy plane, its positive direction is the positive direction of the original x-axis, and its negative direction is the negative direction of the original x-axis, and the y-axis of the new plane coordinate system is the z-axis of the original coordinate system, recorded as the y' axis; The coordinate transformation formula between the new coordinate system and the original coordinate system is: y i ′=z i , where x i ,y i 、z i is the coordinate value of the i-th point in the original coordinate system; x i The sign of ′ is determined by the x-axis of the original coordinate system. i The sign determines; Sort the x'-axis values from small to large, and then perform the following interpolation calculations: In the formula, x i ,y i are the horizontal and vertical coordinate values of the i-th point in the original coordinate system.
9. The method for extracting the two-dimensional contour line of the maximum roughness of a rock joint surface according to claim 8, characterized in that: The roughness of the two-dimensional point cloud preferably adopts the root mean square of the first-order derivative of the contour Z2, and the formula is as follows: Where N is the number of points after interpolation of the profile data; L is the projection length of the profile contour line; x i ,y i are the horizontal and vertical coordinates of the ith point respectively.
Citation Information
Patent Citations
Rock mass structure reconstruction method for generating curved surface joint disc by single joint trace
CN115688473A
Method and system for determining the propagation path of at least one crack from one or more fracture surfaces created by said crack(s)
US20070213942A1
System and method for rock mass structure detection and dangerous rock detection
US20220276383A1
