## 4 Case Study  
To implement the designed methodology a case study was chosen. The case study is the Church of Santa Casa da Misercordia of Aveiro (Figures 2 and 3), in Aveiro, Portugal, which was built in the XVI and XVII centuries and is an important part of the architectural  
Figure 1: Workflow of the methodology proposed. and historical heritage of the city of Aveiro in mainland Portugal. Designed by the architect [PERSON], the church is characterized by a religious, mannerist architecture. It presents a rectangular plan composed of a single nave and deep chancel and the rectangular inner courtyard of the Dispatch House. The roof is composed of two slopes with ceramic tile cover. Over the centuries, this building has benefited from several restoration and consolidation interventions. It is a masonry structure, with wedges and opening frames of stone, with a ceramic tile coating on the interior facade, vaults and pulpit and baptismal sinks of limestone. The front of the church, 14 m wide, develops through rectilinear lines marked by the wedges that finish as Tuscan pilasters, on which rests the general threshold, growing up the triangular pediment, bordered laterally by small pyramids with a pedestal in the extension of the wedges as in the line of the eaves. In the center, the finish is achieved by a high cross of stone, also with a pedestal, in the closure of the gable. The austere character of the church's frontage is aggravated by the application of stamped blue and white ceramic tiles, dated from 1867 [36]. The building was surveyed for data acquisition by utilizing different sources, namely direct observation, fieldwork, archival data and a Terrestrial Laser Scanner (TLS), to obtain a 3D point cloud. Regarding the survey campaign developed with the TLS, the instrument used was the Leica BLK360. This equipment is a stationary laser scanner of the Continuous Wave-Frequency Modulation (CW-FM) type. The system can measure with great precision the direction of pointing, in addition to a distance meter that emits continuous light radiation. A survey design should first define the TLS station locations to ensure complete coverage of the object at the required spatial resolution and to avoid areas of occlusion. Considering the architectonical features in the interior space of the church, the instrument was set to have a resolution of 6 mm in 10 m. The 3D point cloud model was obtained by means of 12 scans. With a total of 12 internal scans and 5 external scans (belonging only to the facade), the TLS acquisition campaign took almost 3 h, with a single-scan time of approximately 6 min. The 3D building model was produced by means of the 3D point cloud obtained. The scanner processing was performed in Cyclone Register 360 software from Leica, which processes the scans to eliminate the reconstruction of a 3D geometric model of the structure based on georeferenced images and laser scanner algorithms. The data processing was performed with Cyclone Register 360 utilizing the Iterative Closest Point algorithm: given the set of scans, the ICP algorithm searches for all the possible connections between the pairs of point clouds with overlap. For each connection, a pairwise ICP is performed and the best matching point pairs between the two scans are saved. A final non-linear minimization is run only among these matching point pairs of all the connections. The global registration error of these point pairs is minimized, having as unknown variables the scan poses [37]. As previously noted, the scanner processing was performed in Cyclone Register 360 software; then, by means of RECAP Pro, it was possible to import the point cloud into the Revit software, in which the building modeling was performed. Regarding the accuracy of the geometry, the level of development used was LOD 300, which allows the modeling of specific families, objects or assemblies in terms of quantity, size, shape, location and orientation.