A Drawing System for Pole Diagram and Rose Diagram of Rock Mass Structural Surface

+e distribution of structural planes is complex and irregular. How to quickly and effectively obtain the occurrence and distribution characteristics of structural planes and improve the efficiency of data processing is a key technical issue in structural plane analysis. +e paper combined fuzzy equivalent clustering algorithm, rose diagram drawing method, and C++ language, developed a drawing system for the pole diagram and rose diagram of rock mass structural planes, and verified the practicability of the system through an engineering case analysis. In the article, the fuzzy equivalent clustering of the occurrence of structural planes, the drawing of pole diagram, and the statistical analysis of structural planes were realized based on the fuzzy equivalent clustering algorithm. +e rapid drawing of the striking rose diagram, trending rose diagram, and dip rose diagram module were realized based on the rose diagram drawing method. +e system integrated the structure plane pole diagram and the occurrence rose diagram together and realized the rapid analysis and drawing of the structure plane.


Introduction
In the analysis of rock slope stability, the occurrence of structural planes has a great influence on slope stability. How to quickly and effectively obtain the occurrence and distribution characteristics of structural planes is a key issue in the acquisition and analysis of structural planes.
At present, the commonly used methods for collecting structural plane occurrence include the survey line method, precise survey line method, sampling window method, and borehole core joint collection method. For example, Zhao et al. [1] used the survey line method to evaluate the stability of the underground surrounding rock of the Lingbao Luoshan Gold Mine. Chaminé et al. [2] measured the actual data of rock outcrops using the precise line method. Xu et al. [3] improved the statistical method of sampling window to obtain the structural surface data of granite outcrops. Manzoor et al. [4] used the measurement while drilling method to count the data of different structural planes in open-pit mines and established the relationships between drilling parameters and rock mass structure. ese measurement methods have shortcomings such as large workload, large error, and poor effect when applied in the field. At the same time, the obtained structural data is complex and irregular, which is very cumbersome and difficult to process manually. erefore, an intelligent software system is needed to automatically realize the processing of structural data. e pole diagram and rose diagram are commonly used statistical methods of structural plane occurrence. e rose diagram is a simple, clear, and intuitive basic geological map, which is widely used in characterizing the development degree and dominant orientation of structural surfaces. e rose diagram is simple and helpful to analyze the regional structure. It can be more clear in reflecting the direction of the main joints. For example, Wang et al. [5] realized the rapid analysis and recognition of the rose diagram of the structural plane based on the MATLAB computing platform. Dong et al. [6] used rose diagrams and pole diagrams to perform statistical analysis on the structural plane information of fractured rock masses.
In geological analysis, the joint rose diagram is usually plotted on the geological map according to the positions of the survey point to clearly reflect the relationship between the joints, folds, or faults in different structural parts. Among them, the strike rose diagram is mostly used in situations where the joint occurrence is relatively steep. For example, Tao et al. [7] used equatorial horizon projection and strike rose diagram to determine the dominant structural plane. Wei et al. [8] used the strike rose diagram method to calculate the structural plane information of the rock mass in the Beishan area. e trend rose diagram and dip rose diagram are mostly used in situations where the joint occurrence changes greatly. For example, Jifeng et al. [9] realized the automatic drawing of the trend rose diagram with the help of the MATLAB program, which can quickly obtain structural information. Li et al. [10] took the tunnel face as the background and used the dip rose diagram method to realize the difference visualization analysis of the tunnel radial rock mass structure. e disadvantage of the occurrence rose diagram is that it is grouped only according to the distribution of occurrence. When there are multiple sets of structural planes for the same occurrence, the rose diagram of the occurrence cannot be fully represented. It is difficult to realize the intelligent drawing of large-scale structure surface data because the drawing method of the occurrence rose diagram is cumbersome. It needs to be repeated many times when there are multiple sets of structural planes for a certain occurrence. erefore, it is necessary to realize the automatic drawing of the rose diagram of the occurrence state through a software program. e pole diagram represents the projection of the poles of the measured structural plane onto the stereographic projection diagram. It is a graphical method that uses points and lines on a plane to analyze lines and surfaces in three-dimensional space. e pole diagram can be rotated and transformed to restore the joints and stratum occurrence before the structural failure. e pole diagram can simultaneously show the distribution of the tendency and dip of the structural plane, which is more scientific and accurate than the rose diagram method. For example, Zhao et al. [11] used the pole diagram to study the distribution characteristics of dominant structural planes. Zhong et al. [12] used a combination of the rose diagram and pole diagram to perform statistical analysis on structural planes and determined the dominant structural planes. But the illustration process of the pole diagram is quite tedious. When a pole map is manually completed, such as an isodensity map, it needs to go through the processes of casting points, density statistics, percentage conversion, drawing straight lines, etc., which is time-consuming and errorprone. e grouping of pole diagrams mainly relies on empirical methods, and the results lack objectivity. erefore, statistical analysis methods and computer processing programs have gradually become important methods for drawing pole diagrams. Cluster analysis is a method of statistically studying classification problems. It allocates all sample data to several clusters so that the sample data of the same cluster are gathered around the cluster center. e cluster analysis methods include systematic clustering method, ordered sample clustering method, dynamic clustering method, and fuzzy clustering method. Among them, the fuzzy equivalent clustering method has better advantages in processing structure. For example, Li et al. [13] proposed a new method for identifying local high-density samples. Hou et al. [14] carried out a cluster analysis of the dominant occurrence of rock mass structural planes based on a netting algorithm. Li et al. [15] clustered the structural planes of rock mass based on the ant colony clustering method, which effectively realized the grouping of structural planes. Jun et al. [16] proposed an improved fast clustering analysis method. Guo et al. [17] introduced the firefly algorithm and the fuzzy cmeans algorithm to accurately obtain the discontinuity information of the rock mass. Bei et al. [18] used the fuzzy clustering method to process the structural surface information of rock masses and obtained satisfactory results.
rough the equivalent fuzzy clustering method, the cluster analysis of structural plane occurrence can be realized. e analysis result can accurately reflect the actual distribution of the data and obtain the precise occurrence distribution and data of the structural plane. Cluster analysis overcomes the subjectivity of human experience grouping. erefore, writing a computer program system can quickly and accurately obtain structural plane occurrence information based on the fuzzy equivalent clustering analysis method.
Both the rose diagram and pole diagram can reflect the different aspects of the structural plane. ere are more or fewer problems in the application and drawing of a single graphical method. If the amount of structural data obtained by field measurement is too large, there will be cumbersome and time-consuming processing problems. erefore, if the two drawing methods can be integrated into one drawing system, the rose diagram and the pole diagram can be drawn at the same time, which will bring great benefits to the analysis of the occurrence of structural surfaces. Although scholars at home and abroad have realized the recognition of structural plane occurrences by writing programs, few scholars have formed it into a systematic and intelligent software system. e article developed a drawing system for the pole map and occurrence rose diagram of rock mass structural plane based on fuzzy equivalent clustering algorithm and C++ language programming to realize the rapid and intelligent drawing of rock mass structural plane.

System Composition and Theoretical Basis
e paper programming developed a drawing system of the pole map and rose diagram of rock mass structural plane based on fuzzy equivalent clustering analysis method, C++ language, and the method of drawing rose diagram of structural plane occurrence. e paper combined theoretical algorithms and software system development to provide a drawing system for pole diagrams and rose diagrams of rock mass structural planes. e system included 8 modules: the import module of data, the calculation module of the fuzzy equivalent clustering algorithm, the drawing module of pole diagram, the statistical analysis module of the structural plane, the output module of data, the drawing module of the striking rose diagram, the drawing module of trending rose diagram and drawing module of dip rose diagram. e system flow chart is shown in Figure 1.
e theoretical basis and realization functions of each module of the system were as follows.

Import Module of the Data.
is module was used to import the structural plane data obtained by digital photogrammetry into the software system.

Calculation Module of Fuzzy Equivalent Clustering Algorithm.
is module realized the fuzzy equivalent clustering of structural plane occurrence based on the fuzzy equivalent clustering algorithm. e process was as follows.
Supposing the number of the measured samples of the structural plane was N, and the i-th sample was represented as (x i1 , x i2 ). x i1 was the inclination of the structural plane, and x i2 was the dip of the structural plane. e fuzzy relation matrix R was as follows: e element r ij in the matrix was the similarity coefficient between the i-th sample and the j-th sample, which represents the degree of similarity. e larger the r ij , the more similar the sample i and the sample j. e calculation of the similarity coefficient r ij : In (2), i � 1, 2, . . ., N; j � 1, 2, . . ., N, c was the calculation parameter (0 ≤c ≤ 1), and the value of c was appropriately selected to make r ij spread out in [0, 1].
Solve the closure t(R): (3) Carry out structure plane grouping judgment. e steps of fuzzy matrix multiplication were similar to those of ordinary matrix multiplication. e difference was that instead of multiplying the two items first and then adding them, it took the smaller and then the larger. If C � AB, then the e n-level fuzzy relation matrix R was the continuous multiplication of n Rs. at is, (4) Take the cut-set level λ ∈ [0, 1], if r ij ≥ λ, then the structural planes i and j belong to the same category. at is,

Drawing Module of the Pole Diagram.
According to the clustering results and the structural plane grouping results, the pole diagram of the structural plane was drawn. e process was as follows. e lower hemisphere equal-angle projection method was used to draw the pole diagram. e joint occurrence data represented by inclination α d and dip β d were converted into the joint occurrence data represented by the unit normal vector. Assuming that α n and β n were the tilt direction and tilt angle of the unit normal vector of the structural plane. e unit normal vector for any structural surface was expressed as X � (x 1 , x 2 , x 3 ), and each point on the hemispherical surface corresponded to a joint occurrence. e formula was as follows: e occurrence data of the structural plane expressed by the unit normal vector was obtained.
e coordinates x n and y n of A′ on the stereographic projection diagram were calculated based on the normal occurrence data of the structural plane and the stereographic projection principle diagram. Among them, point A′ was the equatorial projection of the plane normal. e formula was as follows: x n � r sin α n , y n � r cos α n .
Mobile Information Systems e stereographic projection coordinate points of all structural surface normals were solved.
A base circle whose diameter was unit length was drawn, and the vertical and horizontal diameters were drawn, and E, S, W, and N directions were marked. e stereographic projection coordinates of all structural surfaces were drawn on the base circle diagram. e pole diagram of the structural plane was drawn.

Statistical Analysis Module of the Structural Plane.
is module was used for the statistical analysis of the structural planes after clustering to obtain the mean and variance of the inclination, dip, trace length, spacing, and rock bridges of each group of structural planes. e process was as follows.
e sample partition interval m was determined firstly. e sample range R was solved according to the following formula: Each partition interval was calculated according to the following formula: e probability of the sample falling in each partition interval was determined. e method was to first use the computer loop language to count the number of samples N m that fall in each interval, and then combine the total number of samples N to calculate the sample number probability P m : e sample mean was solved according to the following formula: e sample variance S 2 was solved according to the following formula, where S was the standard deviation: According to the probability value P m , the probability distribution patterns of the inclination, dip, trace, spacing, and rock bridges of each group of structural planes were drawn automatically.

Output Module of the Data.
e classification information of structural planes was output, including the mean and variance of the inclination, dip, trace, spacing, and rock bridges of each group of structural planes.

Drawing Module of the Rose Diagram.
e drawing module of the rose diagram includes the strike rose diagram, the trend rose diagram, and the dip rose diagram. e drawing module of the trend rose diagram was taken as an example to clarify its theoretical basis. e process was as follows: e joints were sorted according to the size of the tendency data and grouped every θ � 10°. Each group was named as D j . e formula was as follows: e number of joints in each group was named S D j , and the average tendency of each joint was named D j . Calculate D j according to the following formula: D j � the sum of the structure of the D j group S D j , j ∈ (1, 36).

(14)
According to the size of the drawing and the number of each group of joints, a certain length of line segment was selected to represent a group of joints, and the scale of the line segment L d was determined. e group of joints denoted by the L d with the largest number was represented as S D j max . A semicircle was marked with the length L D j max of the line segment of S D j max as the radius.
For each group of joints D j , the average direction D j was used as the azimuth angle, and a mark was made on the semicircle. From the center of the circle to the radius of the circle marking point, a point L D j was determined according to the number of S D j in the group and the scale L d .
e L D j and L D j+1 were connected sequentially. If a certain group of joint numbers was zero, the connection would return to the center of the circle and then be connected to the next group from the center of the circle.
A tendency rose diagram of joints was drawn.

Engineering Case Application
e engineering case used in this study was a rock mass area on a 1300 m platform on the south slope of the Anjialing Coal Mine, as shown in Figure 2. Anjialing Coal Mine was located in the south-central of Pingshuo mining area in Shuozhou City, Shanxi Province, China. e topography of the mining area was a typical loess plateau. Occurrence strata in the mining area were mainly Quaternary loess, Tertiary laterite, and Carboniferous bedrock. e contact relationship between various levels was unconformable contact. e 1300 m platform was located in the middle section of the slope, and the platform height was 12 meters. e overall slope angle was 75°∼85°, and the mining method was steep slope mining. e geological survey revealed that the rock mass had an obvious stratum. e lithology of the rock formations was mainly mudstone and sandstone with severe weathering. e rock mass was dry and there was basically no water seepage phenomenon. A large number of joints were developed in the rock mass with good penetration. e cutting effect of the structural surface on the surface of the rock mass was very obvious.

Application of the Data Import Module.
A field structural surface measurement was carried out on a rock mass of 1300 m platform on the southern slope of Anjialing Coal Mine by using the method of on-site measurement. en the measured structural surface data was automatically imported into the software system.

Application of the Calculation Module of Fuzzy Equivalent
Clustering Algorithm. According to the data information of the imported structural plane, the fuzzy equivalent cluster analysis of the structural plane occurrence was realized based on the fuzzy equivalent clustering algorithm. rough cluster analysis, the structural planes were divided into 3 groups. Among them, joint group 1 obtained a total of 30 structural planes, joint group 2 obtained a total of 38 structural planes, and joint group 3 obtained a total of 57 structural planes. Limited by the length of the article, only 20 structural information of each group of joints are listed in Table 1.

Application of the Pole Diagram Drawing Module.
According to the clustering results and the grouping results of the structural planes, the lower hemisphere equal-angle projection method was used to draw the pole diagram of the structural planes, as shown in Figure 3.

Application of the Statistical Analysis Module and Data Output Module.
e statistical analysis was performed on the structural planes after clusterin. e mean and variance of the tendency, dip, trace, spacing, strike, and bridge of each group of structural planes were obtained. e classification information of the occurrence state of the structural plane was output.
rough the statistical analysis of the structural plane, the geometric parameter statistical distribution results of joint group 1 are shown in Figure 4.
According to the statistical distribution results in Figure 4, the data output module was used to output the classification information of the occurrence of joint group 1, as shown in Table 2.
rough the statistical analysis of the structural plane, the geometric parameter statistical distribution results of joint group 2 are shown in Figure 5.
According to the statistical distribution results in Figure 5, the data output module was used to output the classification information of the occurrence of joint group 2, as shown in Table 3.
rough the statistical analysis of the structural plane, the geometric parameter statistical distribution results of joint group 3 are shown in Figure 6.
According to the statistical distribution results in Figure 6, the data output module was used to output the classification information of the occurrence of joint group 3, as shown in Table 4.

Application of the Drawing Module of Tendency, Dip, and
Strike Rose Diagrams. According to the rose diagram drawing method, the tendency, dip, and strike rose diagram of each group of joints were drawn, as shown in Figures 7-9.

Discussion
e paper combined fuzzy equivalent clustering algorithm, rose diagram drawing method, and C++ language and developed a drawing system for the pole diagram and rose diagram of rock mass structural planes. e system contained 8 modules, which could be easily applied to engineering.          e data import module can realize the recognition and import of the structural plane, which solves the difficulty of handling the complex structural planes on-site and reduces the inefficient and repetitive manual operation at the same time.
e calculation module of the fuzzy equivalent clustering algorithm realizes the rapid grouping of structural planes.
is module is fast and efficient in processing the structure plane grouping, which saves a lot of processing time.
e pole diagram drawing module can accurately obtain the occurrence distribution and data of the structural plane.
is module overcomes the unobjectivity of grouping brought by personal experience and reflects the actual distribution characteristics of the structure data. e statistical analysis module can perform statistical analysis on the mean value, variance, and probability distribution form of the geometric parameters of the structural plane. is module solves the problems of large workload and high repeatability in the statistical process, which improves work efficiency. e data output module outputs the grouping and statistical analysis results of the structure plane. e strike rose diagram drawing module, trending rose diagram drawing module, and dip rose diagram drawing module can realize large-scale repetitive drawing of the trend of multiple sets of structural planes, which reduces the workload and improves the work efficiency.
At present, there are many articles and methods in the treatment of rock mass structural planes, but these articles and methods are often research and analysis on a certain part of the structural plane processing process, and there is no systematic and intelligent structural plane processing system. In the application process, due to the complexity and esoteric content, there are many program algorithms involved, which will cause users to be unable to effectively implement a series of process operations from data import to analysis processing and graphic drawing of structure plane data. It will be more difficult to apply, especially for beginners or laymen. e processing of structural plane data is the most basic and most important link in the analysis of rock mass mechanics. If ordinary geological practitioners are not able to do simple analysis and application of structural plane data, it will greatly reduce their enthusiasm for practicing. erefore, this paper has developed a drawing system for the pole diagram and rose diagram of rock mass structural planes, which realizes the digital process operation of the structural plane data import, classification, drawing, statistical analysis, and output. e research and development of this system are beneficial to the processing of the structural surface in the field.

Conclusion
e paper combined fuzzy equivalent clustering algorithm, rose diagram drawing method, and C++ language and developed a drawing system for the pole diagram and rose diagram of rock mass structural planes, which realized the rapid analysis and drawing of structural planes. e system included the import of data, the fuzzy equivalent clustering grouping, and the drawing of pole diagram, which realized the rapid cluster analysis of the geometric parameters of structural planes. e system included statistical analysis and a data output module, which realized the rapid acquisition and analysis of the probability distribution form of the geometric parameters of the structural plane.
e system included a striking rose diagram, a trending rose diagram, and a dip rose diagram module, which realized the rapid drawing and analysis of the rose diagram of the structural plane. Finally, the practicality and convenience of the system were verified through the application of engineering case analysis.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e author declares that there are no conflicts of interest regarding the publication of this paper.