Abstract

To improve the digital protection effect of ancient buildings, this study improves the space digital technology, combines the digital interpolation method to carry out the space digital simulation algorithm research, and combines the BIM simulation technology on the basis of the improved algorithm to carry out the digital protection processing of the ancient buildings. Moreover, this study starts from the actual situation to construct an intelligent digital protection system of ancient building. In addition, through the ancient building spatial data database, this study uses the visualization function and the powerful spatial analysis ability of GIS technology to design and research the digital protection system of ancient building. Through simulation research, it can be known that the digital protection system of ancient buildings based on BIM simulation technology proposed in this study has a good simulation effect and can provide reliable technical support for the protection and subsequent restoration of ancient buildings.

1. Introduction

The value of ancient buildings in our country lies in their historicity, artistic attributes, and their use in scientific research. The purpose of protection of ancient buildings is to preserve or extend the use value of ancient buildings to the greatest extent. The protection of ancient buildings, on the one hand, protects the body of ancient buildings. A lot of historical comprehensive information contained in ancient buildings can only exist depending on the building itself, and the main protection methods adopted are repairs. The other is the protection of ancient building information, including the establishment of archives, data accumulation, information dissemination, and public education. The main protection methods include historical data protection, surveying and mapping collection and storage, and digital storage. Due to the different concepts of protection of ancient buildings, it has not been possible to establish a complete protection system for ancient buildings, which has caused many ancient buildings to gradually lose their historicity, artistic value, and scientific research value during the protection process. In this situation, the protection of ancient building information becomes more and more important.

The popularization and promotion of CAD technology liberated the protection and maintenance personnel of cultural relics from traditional manual drawing, which can be said to be the first digital revolution in the field of cultural relic protection [1]. With the rapid development of science and technology, more and more digital technology methods have been applied to the field of ancient building protection, which has brought about a great improvement in efficiency and effectiveness. People are also paying more and more attention to the field of digital protection of ancient buildings. The digital protection technology of ancient buildings has undergone the transformation from two-dimensional to three-dimensional stages, the transformation from graphics to informatization, and the development from targeted protection of ancient buildings to systematic protection [2].

Ancient architectural surveying and mapping is the product of combining the basic principles and methods of surveying and mapping with the actual needs of architectural heritage protection and is restricted by certain material conditions. Therefore, compared with general measurement work, it has particularity, forming its own classification system, measurement means, workflow, and organization method. Surveying and mapping of ancient buildings can be understood as measuring the shape, size, and spatial location of ancient buildings and drawing corresponding plan and elevation views of ancient buildings. Moreover, it is a direct application of surveying and mapping in the field of cultural heritage protection in the field of ancient building heritage recording, testing, and protection project implementation. The essence of its engineering purpose is to objectively and truly reflect the original historical appearance of ancient buildings and provide detailed and systematic information for ancient buildings [3].

In the process of surveying an ancient building, it is necessary to conduct three levels of surveys according to the scope of the ancient building, namely comprehensive surveying and mapping, typical surveying and mapping, and abbreviated surveying and mapping. According to the depth and scope of surveying and mapping of ancient buildings, comprehensive surveying and mapping is the highest level of surveying and mapping. Comprehensive surveying and mapping requires the control and measurement of the overall building and the measurement of the size and spatial position of different components of the building. In particular, the target is a large-scale wooden structure, which requires comprehensive and detailed surveys and surveys. When repairing and relocating important ancient buildings, comprehensive surveying and mapping is necessary. Compared with comprehensive surveying and mapping, the measurement range of typical surveying and mapping is relatively small. The requirements of typical surveying and comprehensive surveying are roughly the same in control surveying. In the process of ancient building measurement, you need to select typical components for measurement. The measurement range is all types of components, and the categories are classified according to the style and design size of the components. Typical components refer to the original components that best reflect a specific form, structure, craftsmanship, and style. The measurement level is not as good as the typical surveying and mapping belongs to the simple surveying and mapping. Sometimes due to factors such as manpower, material resources, and financial resources, short surveying and mapping are temporarily adopted. Such results cannot be used as formal surveying and mapping records. Once conditions are available, higher-level surveying and mapping should be carried out. When making measurements, more and more accurate data should be obtained.

This article combines BIM simulation technology to digitally protect ancient buildings and builds an intelligent digital protection system for ancient buildings based on actual conditions, which provides a theoretical reference for subsequent digital protection of ancient buildings.

In the initial stage of the development of digital technology of ancient buildings, two-dimensional drawings and digital archiving have improved the efficiency of ancient building protection to a certain extent, but the two-dimensional drawings of ancient buildings cannot directly reflect the complex contours of ancient buildings. With the rapid development of three-dimensional technology, the virtual reality technology of three-dimensional reconstruction of ancient buildings has gradually become the focus of research [4]. The three-dimensional reconstruction of ancient buildings can be achieved by analyzing the characteristics of wooden ancient buildings, using mainstream software packages such as AutoCAD, 3DMAX, SketchUp, and other mainstream software for architectural modeling to realize the modeling of ancient buildings, and the three-dimensional model is put into Google Earth to show models of ancient buildings that are more three-dimensional and closer to the real world [5]. Ancient buildings can also use 3D laser scanners and digital cameras to quickly scan the surface of ancient buildings, obtain point cloud data, and perform registration processing to quickly reconstruct the 3D model of ancient buildings [6]. This method is used to reconstruct ancient buildings. The three-dimensional model of the building has the characteristics of fast construction efficiency and high accuracy of the building structure, and it can also be combined with geographic information technology for three-dimensional digital reconstruction that integrates a variety of precision measurement technologies [7]. Although many of the above technical methods can better achieve the purpose of three-dimensional reconstruction of ancient buildings, the reconstruction process is complex, time-consuming, and laborious. Reconstruction is often specific to specific ancient buildings and does not have reusability or the limitations of the patch-type model built. As a result, the practical value of the built model was greatly reduced, and people began to study the reusable 3D reconstruction method of ancient buildings [8]. The parameterized three-dimensional model of ancient buildings can solve the time-consuming and laborious features of ancient building models that are not reusable. Through specific parameter adjustments, it can realize the driving of different types of ancient building three-dimensional models to generate the required ancient building three-dimensional models [9]. The complex structural characteristics of ancient buildings determine that the establishment of a digital overall model of ancient buildings by parameterization is difficult to reflect the detailed structure of ancient buildings. It is assembled to realize the creation of refined parametric ancient building models, and then, the form of ancient building component library is used to manage the established parameterized components and is continued to expand to form a complete ancient building component library and digital archives [10]. Regardless of the three-dimensional components of ancient buildings, or the point cloud data obtained by three-dimensional lasers, they can be stored and managed in the form of a database and continued to expand into the digital archive of ancient buildings [11].

The complex structure and artistic forms of ancient buildings make it difficult for people to systematically protect ancient buildings. Their restoration and research work often focus on a specific aspect of ancient buildings, such as the study of protection principles during the restoration of ancient buildings, research on digital technology, research on antiseismic aspects of ancient buildings, inclined restoration work, maintenance work of ancient buildings, and partial repair work [12]. Targeted protection work can often solve complex problems quickly and effectively, but scattered protection forms often result in overlap or omission of protection work and waste of ancient building protection resources that are not sufficient. The establishment of a digital protection system for ancient buildings and the integration of targeted protection capabilities can not only solve the specific problems faced by the protection of ancient buildings, but also integrate the protection resources of ancient buildings and avoid resource waste [13].

To sum up, the three-dimensional model of ancient buildings uses the idea of parameterization to improve the reusability of the model, builds ancient building component libraries, builds ancient building information models, builds ancient building information platforms, and builds ancient building digital protection systems. The demand for the protection of ancient buildings is the direction of the development of digital technology for ancient buildings. The emergence of BIM technology provides the ability to integrate the above requirements [16]. BIM-based ancient building parameterized information model components are established, an ancient building information platform through ancient building assembly is built, database technology to manage ancient building components and assembly models is used, and a function platform for ancient building information through ancient building information is established. The expansion and formation of a complete digital protection system for ancient buildings are a new direction for digital protection of ancient buildings [17].

3. Digital Interpolation of Ancient Buildings

For the spline interpolation method that adopts the principle of data sampling, the final thing that needs to be determined is the parameter corresponding to the interpolation data point after the end of the next interpolation cycle. By comparing the characteristics of the efficiency control of the former building structure construction and the efficiency control of the post-building structure construction, according to the accuracy and efficiency requirements of the NURBS interpolation, this chapter adopts the former building structure construction efficiency control to ensure the contour accuracy of NURBS interpolation and avoid system impact.

The NURBS direct interpolation of the previous acceleration and deceleration plan needs to accurately calculate the length of the spline curve in advance. The research on the NURBS curve theory shows that the form of the curve is relatively complicated, and there is no direct and accurate solution method. In this study, the complex Simpson method is used to integrate the arc length of the NURBS curve.

If , the arc length of the function is obtained according to the Simpson integral formula [18]:

Then, the piecewise quadratic value function is used to approximate the integrated function; that is, after dividing the cells, (1) is used to calculate the approximate value of the integral on the cells to obtain the complex Simpson formula. Next, we derive the NURBS curve using the Fuhua Simpson quadrature formula to find the arc length .

The node interval of the NURBS curve is divided into K (K is an even number) equal parts, and then, the length of each parameter subinterval is , and the points in the middle of the interval have the following rules.

The division point is , and so on, the step size is . Here, , and the NURBS arc length corresponding to the node interval is denoted as .

Then, the complex Simpson quadrature operation of the NURBS curve on the node interval is [19]as follows:

The total length of NURBS is as follows:

Here, is the number of control points minus one, which is also the number of parameter intervals in the NURBS curve node vector.

BIM building structure construction efficiency control requires that each axis can quickly reach the maximum preset building structure construction efficiency of the servo system, respond quickly when slowing down, and can accurately reach the required position to achieve the goal of improving accuracy and simulation efficiency. The stability in the acceleration and deceleration process also needs to be guaranteed by the efficiency control of building structure construction, so it is very important for the BIM system to choose an excellent acceleration and deceleration control algorithm. Commonly used acceleration and deceleration control algorithms include linear acceleration and deceleration algorithms, trigonometric function acceleration and deceleration algorithms, exponential acceleration and deceleration algorithms, and S-type acceleration and deceleration algorithms.

3.1. Linear Acceleration and Deceleration Algorithm

Linear acceleration and deceleration algorithm is also called trapezoidal acceleration and deceleration algorithm. It has the characteristics of simple structure of the algorithm and small amount of calculation, so the time consumption is low. The construction efficiency of the building structure and the change in the construction efficiency of the building structure are shown in Figure 1.

The building structure construction efficiency of the linear acceleration and deceleration algorithm in the acceleration phase is , and the building structure construction efficiency is . The calculation method is as follows [20]:

It can be seen from Figure 1 that the building structure construction efficiency of this algorithm has only the acceleration phase, the uniform speed phase, and the deceleration phase. Although it is simple and quick to respond, there are many jumps in the construction efficiency of the building structure in the acceleration phase, which causes the flexible impact of the systems to reduce the life of the systems and tool. Therefore, linear acceleration and deceleration algorithms are generally only used in low-end BIM systems.

3.2. Trigonometric Function Acceleration and Deceleration Algorithm

As shown in Figure 2, a type of algorithm that integrates trigonometric functions into the acceleration and deceleration phases is called trigonometric acceleration and deceleration control.

The construction efficiency of the building structure of the acceleration section is as follows:

At this time, .

The construction efficiency of the building structure of the deceleration section is [21] as follows:

At this time, .

Because both the sine function and the cosine function have infinitely differentiable characteristics, after it is applied to the building structure construction efficiency planning algorithm, it can ensure the smooth changes in the building structure construction efficiency curve, the building structure building efficiency curve, and the building structure building efficiency curve in the acceleration and deceleration planning process. This increases the flexibility of the BIM system and reduces the impact of flexibility in simulation. However, because the calculation process of trigonometric function is relatively complicated, it cannot meet the real-time requirements of BIM simulation.

3.3. Exponential Acceleration and Deceleration Algorithm

The construction efficiency of the building structure of the exponential acceleration and deceleration algorithm and the change law of the construction efficiency of the building structure are shown in Figure 3.

The characteristic of exponential acceleration and deceleration is the sudden change in the construction efficiency of the building structure at the start and stop into a method of increasing or decreasing exponentially. Compared with linear acceleration and deceleration, this algorithm has better accuracy and smoothness, and the flexible impact is improved. Similarly, the algorithm is generally composed of three stages: acceleration, uniform speed, and deceleration. The expressions for the construction efficiency of each segment of the building structure and the construction efficiency of the building structure are as follows:

Here, is the parameter of the exponential function. Since the exponential algorithm is more complicated, it is more time-consuming. It can also be seen that there is a sudden change in the construction efficiency of the building structure from the beginning and end of the construction efficiency of the building structure, which affects the stability of the systems.

3.4. S-Type Acceleration and Deceleration Algorithm

The S-type acceleration and deceleration algorithm is more stable than the previous several acceleration and deceleration control algorithms, and high-end BIM systems often use this method. The complete S-shaped acceleration and deceleration process generally includes seven stages: an increased acceleration phase, a uniform acceleration phase, a descending acceleration phase, a constant speed phase, an increased deceleration phase, a uniform deceleration phase, and a descending deceleration phase. The algorithm for building structure construction efficiency, building structure building efficiency, and building structure building efficiency change rules is shown in Figure 4.

The solution methods of the building structure construction efficiency V(t), the building structure construction efficiency A(t) in the acceleration phase, the building structure construction efficiency J(t), and the displacement S(t) in the increased acceleration phase are as follows:

Here, is the construction efficiency of the building structure, is the maximum construction efficiency of the building structure, and is the maximum construction efficiency of the building structure, that is, the construction efficiency of the building structure at a uniform speed. and are the beginning and end of building structure construction efficiency, respectively. In formula (13), ; that is, the size of , and is consistent with the size of the last stage of the construction efficiency of the last building structure. Similarly, , and in formula (9) are consistent with the length of the last stage of the previous stage.

From Figure 4 and the S-type acceleration and deceleration algorithm formula, it can be seen intuitively that the construction efficiency of the building structure of the algorithm is very smooth in each change phase. In addition, by controlling the construction efficiency of the added building structure, the sudden change in the construction efficiency of the building structure can be avoided, and the vibration of the systems caused by the sudden change in the construction efficiency of the building structure during the simulation process can be avoided.

In summary, according to the different types of functions selected for acceleration and deceleration planning, it can be divided into linear building structure construction efficiency planning, trigonometric function building structure construction efficiency planning, exponential building structure construction efficiency planning, and S-shaped building structure construction efficiency planning. The efficiency control algorithm of building structure construction is the key technology of the BIM system, and it is required to satisfy the stability of the simulation process and the simulation efficiency at the same time. Excellent building structure construction efficiency control algorithms can greatly improve the performance of system, and different types of systems can choose appropriate acceleration and deceleration control methods according to actual needs. Although the linear, triangular, and exponential acceleration and deceleration control algorithms are simple, they are less stable. From an economic point of view, they are generally suitable for low- and mid-end BIM systems where the construction efficiency of simulated building structures is slow. S-type acceleration and deceleration can obtain the best planning algorithm of maximum feed rate and time under the constraints of maximum building structure construction efficiency, maximum building structure construction efficiency, and maximum feed building structure construction efficiency. Moreover, its high stability and high simulation accuracy are suitable for high-speed simulation system, so this algorithm is also used in this study.

In the construction efficiency planning model of the S-shaped building structure, the 7 time periods of increasing acceleration running time, uniform acceleration running time, decreasing acceleration running time, constant speed running time, increasing deceleration running time, uniform deceleration running time, and reducing deceleration running time are set to , respectively. According to the characteristics of the construction efficiency planning model of the S-shaped building structure, there must be two stages of acceleration and deceleration. In the acceleration phase, there will be increased acceleration and reduced acceleration, and the two phases consume the same time. Whether there is a uniform acceleration phase should be determined according to the actual maximum building structure construction efficiency that can be reached during the acceleration period and the given maximum building structure construction efficiency . The deceleration phase will inevitably have two phases: increasing deceleration and decreasing deceleration. Similarly, whether there is a uniform deceleration stage should be determined according to the minimum building structure construction efficiency that can be achieved during the deceleration stage and the final building structure construction efficiency . Finally, it can be determined whether there is a uniform speed stage according to the displacement of the acceleration section and the deceleration section in combination with the simulated spline trajectory length . Since the spline interpolation method used in this study is to interpolate the entire simulation trajectory, there is generally a uniform speed stage. The calculation method of the time of each stage and the construction efficiency of the building structure is as follows.

3.4.1. Acceleration Phase

At this stage, if , the three stages of increasing acceleration, uniform acceleration, and decreasing acceleration in the acceleration stage all exist at this time. The formula for the time and the construction efficiency of the building structure is as follows:

If , there is no uniform acceleration. For increasing acceleration and decreasing acceleration in the acceleration phase at this time, the formula for the time and the construction efficiency of the building structure is as follows:

After judging the two situations, we put the obtained building structure construction efficiency and time into formula (13) to get the distance traveled by the systems in the acceleration section, denoted as .

3.4.2. Deceleration Phase

At this stage, if , the three parts of increasing deceleration, uniform deceleration, and reducing deceleration in the deceleration phase are all present. The formula for time and construction efficiency of building structure is as follows:

If , there is no uniform deceleration in the acceleration phase at this time. Then, the formula of of uniform deceleration, increasing deceleration, and reducing deceleration and the construction efficiency of building structure is as follows:

After judging the two situations, the obtained building structure construction efficiency and time are brought into (9) to obtain the distance traveled by the systems in the acceleration section, which is denoted as .

3.4.3. Constant Speed Section

Since the building structure construction efficiency plan has been mathematically obtained before the length of the simulation tool spline trajectory, the two trajectory lengths and obtained by combining the construction efficiency of the building structure during the acceleration phase and the deceleration phase can be compared to determine whether the uniform velocity section exists. Since the construction efficiency planning of the building structure in the uniform speed section is relatively simple, it will not be described here.

4. Digital Protection of Ancient Buildings Based on BIM Simulation Technology

Intuitively speaking, when one of the two depth images on the surface of the same object is placed in an appropriate position and adjusted to the appropriate direction, so that it is “consistent” with the position of the other image (the overlapped area is exactly the same), then the two images are said to be registered. Of course, to achieve the registration of two depth images, there should be a potential premise; that is, there should be overlapping parts in the two depth images; that is, part of the actual object or scene should be scanned in both scans. Generally speaking, the overlapping part should account for about 30% of the entire image. If the proportion is too small, it is difficult to guarantee the accuracy of registration. If the proportion is too large, the number of registrations and the amount of calculation for each registration are increased. Since the registration of multiple depth images can be converted into two-by-two registration in sequence, only the registration of two depth images is considered here, as shown in Figure 5.

This study is based on GIS, virtual reality technology, and laser scanning technology to construct a digital protection system for ancient buildings. Moreover, this study uses the ancient building spatial data database and uses the visualization function of GIS technology and the powerful spatial analysis ability to design and research the ancient building digital protection system. The system provides technical services such as decision support and data query for the restoration and protection of ancient buildings in the future. The system structure designed in this study is shown in Figure 6.

The development of computers and surveying and mapping science and technology has enabled the current surveying and mapping technology to be applied to the protection of cultural relics and historic sites and can meet the special requirements of cultural relic and historic site surveying and mapping. New techniques, new designs, and new methods of surveying and mapping can be applied to the protection of complex and irregular cultural relics, playing another level of new functions of modern surveying and mapping. For different cultural relics, the methods of surveying and mapping are also different. Therefore, it is necessary to formulate different surveying and mapping plans according to the characteristics of different cultural relics. Modern surveying and mapping methods of cultural relics are gradually replacing traditional surveying methods. For example, satellite remote sensing, aerial photogrammetry, close-range photogrammetry, three-dimensional laser scanning, and other technologies have entered the field of cultural relic surveying and mapping. Methods such as remote sensing images and digital mapping can provide high-quality services for the protection of cultural relics. This article combines digital scanning technology to scan and digitally draw the structure of ancient buildings, as shown in Figure 7.

During the operation of the system, the time required for iteration and the calculated result have a lot to do with the initial position. If the initial position is not selected properly, it will not only affect the iteration speed, but may also lead to a local minimum instead of a global minimum. Therefore, this study uses the registration result obtained by the algorithm shown in Figure 8 as the initial position of the improved operation and then brings it into the system operation. This can improve the convergence speed of the algorithm and achieve a global minimum.

Based on the system constructed in this study, the simulation calculation is carried out. This study takes the common dovetail tenon in ancient buildings as an example for research. The result of digital processing is shown in Figure 9.

After constructing the above system model, the effect of digital simulation of the BIM system proposed in this study is evaluated. Through simulation analysis and evaluation, the results shown in Table 1 and Figure 10 are obtained.

From the analysis of the above diagrams, it can be seen that the digital protection system of ancient buildings based on BIM simulation technology proposed in this study has a good simulation effect and can provide reliable technical support for the protection and subsequent restoration of ancient buildings.

5. Conclusion

The gradual maturity of BIM technology has brought about the rapid development of informatization in the construction industry. In the field of digital protection of ancient buildings, there is an urgent need for the support of powerful information processing capabilities brought by BIM technology. At the same time, BIM technology is inseparable from the application of professional fields to promote its continuous development. Research on the digital protection technology of ancient buildings based on BIM can improve the efficiency of information protection of ancient buildings, make up for the shortcomings of traditional protection methods, and explore the application of BIM technology in professional fields to promote the continuous development of BIM technology. This article combines BIM simulation technology to digitally protect ancient buildings and builds an intelligent digital protection system for ancient buildings based on the actual situation. Through simulation research, it can be known that the digital protection system of ancient buildings based on BIM simulation technology proposed in this study has a good simulation effect and can provide reliable technical support for the protection and subsequent restoration of ancient buildings.

Data Availability

The labeled dataset used to support the findings of this study is available from the corresponding author upon request.

Conflicts of Interest

The author declares no conflicts of interest.

Acknowledgments

This study was sponsored by JiMei University.