A method and system for dynamic evolution of historic buildings based on component lifecycle
By establishing cross-period component correspondences and lifecycle data for 3D digital models of historical buildings, the problem of identifying and differentiated display of component change types was solved. This enabled the association of status information and quantitative determination of change types for the same component, thereby improving display efficiency.
Patent Information
- Application Number
- CN202611694760.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot establish component-level correspondences between three-dimensional digital models of historical buildings across multiple periods, cannot identify component change types, and cannot provide differentiated displays.
By acquiring 3D digital models of historical buildings from multiple historical periods, cross-period component correspondences are established, globally unique identifiers are assigned, component lifecycle data is generated, change types are determined based on state differences, and visual encoding and rendering are performed for display.
It enables the association of state information of the same physical component in different historical periods, quantifies the types of changes, and improves the information transmission efficiency of the historical building evolution display.
Smart Images

Figure CN123179948A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of historical building display, and in particular to a method and system for the dynamic evolution of historical buildings based on the life cycle of components. Background Technology
[0002] With the popularization of digital technologies such as 3D laser scanning and UAV oblique photogrammetry, more and more historical buildings have established high-precision 3D digital models. Some core cultural relics buildings have even completed digital restorations of multiple historical periods. For example, a Ming Dynasty ancestral hall may simultaneously have 3D digital models of multiple historical periods, including a Song Dynasty speculative restoration model, an early Ming Dynasty model, a Qing Dynasty model after renovation, and the current model.
[0003] However, existing technologies lack component-level correspondences between these multi-period 3D digital models when processing and displaying them. The Song Dynasty, Ming Dynasty, and Qing Dynasty models are stored and displayed as three separate model files. When viewers switch from the Song Dynasty to the Qing Dynasty, they can only see the entire building change from its Song Dynasty appearance to its Qing Dynasty appearance, without knowing which specific component changed or what kind of change occurred.
[0004] Furthermore, existing BIM lifecycle management technologies are primarily geared towards new construction, tracking the construction progress of components from production to installation to operation and maintenance, rather than the evolution of historical buildings over hundreds of years. In historical buildings, the same component may exist in different states at different historical periods, such as unchanged, under repair, replaced, added, or disappeared. However, existing technologies cannot identify and classify these types of changes, nor can they filter and focus on them according to the type of change during the display.
[0005] Therefore, there is a need for a method that can establish cross-period correspondences at the component level for three-dimensional digital models of historical buildings across multiple periods, identify the state changes of each component in different historical periods, and achieve differentiated visualization based on the type of change. Summary of the Invention
[0006] This application provides a method and system for dynamic evolution of historical buildings based on component lifecycles, which solves the technical problems in the prior art of lacking component-level correspondence between three-dimensional digital models of historical buildings in multiple periods, being unable to identify component change types, and being unable to perform differentiated display based on change types.
[0007] To achieve the above objectives, the first aspect of this application provides a method for the dynamic evolution of historical buildings based on the component lifecycle, comprising: acquiring three-dimensional digital models of historical buildings in multiple historical periods, wherein the three-dimensional digital models contain component-level segmentation data and each three-dimensional digital model is associated with a corresponding period label; for two three-dimensional digital models in adjacent historical periods, establishing a cross-period component correspondence relationship, and assigning a globally unique identifier that remains unchanged across all historical periods to each group of cross-period components; concatenating the state information of components with the same globally unique identifier in the three-dimensional digital models of each historical period in chronological order to generate lifecycle data of the component, wherein the lifecycle data includes at least the existence state and morphological parameters of the component in each historical period; for components with the same globally unique identifier, comparing the state differences between adjacent historical periods, determining the change type based on the state differences, wherein the change type includes unchanged, repaired, replaced, added, and disappeared; and selecting corresponding visual encoding parameters for rendering and display based on the change type of each component.
[0008] Optionally, establishing cross-period component correspondence includes: using the spatial features of the building that remain unchanged throughout its historical evolution as a benchmark, unifying two three-dimensional digital models from adjacent historical periods into the same spatial coordinate system; calculating the three-dimensional coordinates of the centroid of each component in the same spatial coordinate system, and marking component pairs in the three-dimensional digital models from adjacent historical periods with a spatial distance less than a preset threshold as candidate correspondences; for components with multiple candidate correspondences or no candidate correspondences, extracting the semantic features of the component, the semantic features including at least component type, spatial location, and structural level, encoding the semantic features into a semantic feature vector, calculating the semantic similarity between components from adjacent historical periods, and using the match with the highest semantic similarity as the correspondence.
[0009] Optionally, the morphological parameters are extracted from the three-dimensional digital models of various historical periods in the following ways: For column-type components, the column diameter and column height are extracted. The column diameter is obtained by calculating the minimum circumcircle diameter of the projection points of all vertices of the component on the horizontal plane, and the column height is obtained by extracting the difference between the maximum and minimum values of all vertices of the component in the vertical direction; For beam-type components, the beam height, beam width, and cross-sectional shape code are extracted. The beam height is the maximum thickness of the component in the vertical direction, and the beam width is the maximum width of the component in the horizontal direction; For bracket-type components, the number of brackets and the overhang distance are extracted. The number of brackets is obtained by identifying the number of repeated bracket sub-units in the component instance, and the overhang distance is obtained by calculating the horizontal distance from the outermost end of the bracket to the surface of the supporting column.
[0010] Optionally, the change type is determined based on the state difference, including: if the state in the previous historical period was non-existent and the state in the subsequent historical period was present, it is determined to be added; if the state in the previous historical period was present and the state in the subsequent historical period was non-existent, it is determined to be disappeared; if the state in both historical periods is present, the difference rate of the morphological parameters is calculated, the difference rate is equal to the absolute value of the difference between the morphological parameters of the subsequent historical period and the morphological parameters of the previous historical period divided by the morphological parameters of the previous historical period and multiplied by 100%; if the difference rate is less than a first threshold, it is determined to be unchanged; if the difference rate is greater than or equal to the first threshold and less than a second threshold, it is determined to be repaired; if the difference rate is greater than or equal to the second threshold, it is determined to be replaced.
[0011] Optionally, the repair in the change type also includes sub-classification: if only the column diameter changes while the column height remains unchanged, it is marked as surface repair; if both the column diameter and column height change, it is marked as structural repair; if only the surface texture or color changes, it is marked as decorative repair; the sub-classification results are stored as a component of the life cycle data.
[0012] Optionally, the visual encoding parameters include color values and transparency values; unchanged corresponds to the first color; repair corresponds to the second color with added blinking animation; replacement corresponds to the third color, in which the transparency of the component in the previous historical period decreases while the transparency of the component in the next historical period increases in the transition animation; addition corresponds to the fourth color, in which the transparency of the component increases in the transition animation; disappearance corresponds to the fifth color, in which the transparency of the component decreases in the transition animation.
[0013] Optionally, the dynamic evolution method for historical buildings further includes: responding to a user-inputted filtering command, setting components with unchanged change type to completely transparent in the visualization interface, and only displaying components that have changed; responding to a user's selection operation on any component, extracting the state information of the component in all historical periods, generating and displaying the life history of the component, wherein the life history includes at least the existence state, morphological parameters and corresponding historical period names of the component in each historical period; wherein the life history display interface includes a three-dimensional digital model display area and a timeline information area, and when the user clicks on a certain historical period on the timeline, the three-dimensional digital model display area switches to the model form of the component in that historical period.
[0014] Optionally, the dynamic evolution method for historical buildings further includes: performing aggregate analysis on the life cycle data of all components, wherein the aggregate analysis includes: counting the number of components of each change type between adjacent historical periods; identifying components that have always existed from the earliest historical period to the latest historical period and have not been replaced; for components that existed in history but disappeared in the latest historical period, calculating their existence duration and calculating the average value by grouping them by component type; calculating the change intensity between adjacent historical periods, wherein the change intensity is equal to the proportion of the number of components that have changed to the total number of components.
[0015] This application also provides a dynamic evolution system for historical buildings based on component lifecycles, comprising: a model library module for storing three-dimensional digital models of historical buildings in multiple historical periods, wherein the three-dimensional digital models contain component-level segmentation data and each three-dimensional digital model is associated with a corresponding period label; a component registration module for establishing cross-period component correspondence between two three-dimensional digital models of adjacent historical periods and assigning a globally unique identifier that remains unchanged across all historical periods to each group of cross-period components; a lifecycle database module for concatenating the state information of components with the same globally unique identifier in the three-dimensional digital models of each historical period in chronological order to generate lifecycle data of the component, wherein the lifecycle data includes at least the existence state and morphological parameters of the component in each historical period; a change type determination module for comparing the state differences between adjacent historical periods for components with the same globally unique identifier and determining the change type based on the state differences; and a differentiated rendering engine for selecting corresponding visual encoding parameters for rendering and displaying according to the change type of each component.
[0016] Compared to existing technologies, it has the following advantages:
[0017] This application establishes a component-level correspondence between three-dimensional digital models of adjacent historical periods and assigns globally unique identifiers that remain unchanged across periods, thereby realizing the association of the state information of the same physical component in different historical periods. This solves the problem in the prior art that the three-dimensional digital models of each historical period are independent of each other and the state of the same component across periods cannot be traced.
[0018] This application classifies changes in components into five types with clear historical and cultural significance by comparing the differences in the state of components between adjacent historical periods and calculating the difference rate of morphological parameters. This achieves quantitative determination of change types and avoids the inefficiency and inconsistent judgment standards caused by relying on manual judgment one by one.
[0019] This application achieves differentiated visualization of components with different change types by mapping change types to corresponding visual encoding parameters and driving the rendering pipeline. This allows viewers to intuitively distinguish the change types of each component through color and animation when watching the architectural evolution process, thereby improving the information transmission efficiency of the historical building evolution display. Attached Figure Description
[0020] Figure 1 This is a flowchart of the method for dynamic evolution of historical buildings based on the component life cycle provided in this embodiment of the invention;
[0021] Figure 2 This is a rendering of the dynamic evolution of the historical building provided in this embodiment;
[0022] Figure 3 This is a structural diagram of the dynamic evolution system of historical buildings based on the component life cycle provided in this embodiment of the invention. Detailed Implementation
[0023] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While some embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this application.
[0024] In the description of the embodiments of this application, the term "including" and similar terms should be understood as open-ended inclusion, i.e., including but not limited to. The term "based on" should be understood as at least partially based on. The term "an embodiment" or "this embodiment" should be understood as at least one embodiment. The terms "first," "second," etc., may refer to different or the same objects.
[0025] For ease of understanding, some terms that may be used in the embodiments of this application are defined below.
[0026] Component: Refers to the smallest independent unit that makes up a 3D digital model of a historical building. At the data level, a component is defined by its geometric mesh, semantic type label, and a globally unique identifier. The geometric mesh consists of a set of vertex coordinates, a set of normals, and a set of face indices. The semantic type label identifies the component's functional type.
[0027] Globally unique identifier: A code that remains unchanged across all historical periods, used to associate the state of the same physical component in a three-dimensional digital model at different historical periods.
[0028] Lifecycle data: For a component with a globally unique identifier, the data record is formed by concatenating its existence status and morphological parameters in the three-dimensional digital model of various historical periods in chronological order.
[0029] Change type: Used to describe the nature of changes that occur to the same component between adjacent historical periods, including five types: unchanged, repaired, replaced, added, and disappeared.
[0030] Reference Figure 1 , Figure 1 A schematic flowchart illustrating a method for dynamic evolution of historical buildings based on component lifecycle according to an embodiment of this application is shown. Exemplary embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0031] Step S101: Obtain three-dimensional digital models of historical buildings in multiple historical periods.
[0032] In practice, 3D digital models of historical buildings can be obtained in various ways. One method is to accurately measure the current state of the building using 3D laser scanning to acquire high-precision point cloud data, and then generate a 3D mesh model using point cloud registration and mesh reconstruction algorithms. Another method is to use UAV oblique photogrammetry to capture images of the building from multiple angles, and generate 3D point clouds and mesh models using motion reconstruction algorithms. Yet another method is to reconstruct architectural models from non-existent historical periods based on historical drawings and documents through manual modeling. All of the above modeling methods are well-known 3D digitization technologies in the field, and this application does not limit their specific implementation.
[0033] In this embodiment, the Luo Clan Ancestral Hall, a Hui-style building, is used as an example. This building was originally constructed in the Song Dynasty and underwent reconstruction in the Ming Dynasty and renovation in the Qing Dynasty. This embodiment selects three-dimensional digital models from three historical periods: Historical period T1 corresponds to the Song Dynasty, 1200 AD, with the 3D digital model ID Luo_1200; Historical period T2 corresponds to the Ming Dynasty, 1550 AD, with the 3D digital model ID Luo_1550; Historical period T3 corresponds to the Qing Dynasty, 1850 AD, with the 3D digital model ID Luo_1850.
[0034] Each 3D digital model uses the standard OBJ format. OBJ is a text-based 3D digital model file containing rows of vertex coordinates starting with "v," recording the X, Y, and Z coordinates of each vertex; rows of normals starting with "vn"; rows of texture coordinates starting with "vt"; and rows of facets starting with "f," recording the indices of the three vertices that make up each triangle. Each 3D digital model is accompanied by a JSON file with the same name, used to store the period label of the 3D digital model. For example, Luo_1550.json records that the historical period to which the 3D digital model belongs is the Ming Dynasty, the corresponding year is 1550, and the building name is Luo Clan Ancestral Hall.
[0035] It should be noted that each 3D digital model has been pre-component-level segmentation, meaning that each independent component in the 3D digital model is segmented into an independent mesh object. Component-level segmentation refers to decomposing the 3D digital model into a series of non-overlapping mesh subsets, each subset corresponding to a physical component.
[0036] If the 3D digital model has not yet completed component-level segmentation, the component segmentation module calls a PointNet++-based 3D instance segmentation network to perform component-level semantic segmentation on the 3D digital model for each historical period. It should be noted that the purpose of the 3D instance segmentation network is to assign each vertex in the 3D digital model to a corresponding component instance and assign a semantic label to each instance. PointNet++ is a deep learning network architecture specifically designed for processing point cloud data. Its core lies in achieving effective processing of irregular point cloud data through multi-layer pointwise feature extraction and ensemble abstraction operations. The input to this network is a complete OBJ file, and the output is multiple component instances, each containing its 3D mesh data and semantic label.
[0037] The specific processing flow of the segmentation network is as follows: First, the 3D coordinates and normal information of each vertex are extracted from the OBJ file to form the input matrix; then, feature extraction is performed on each vertex using a multilayer perceptron in PointNet++ to generate a feature vector for each vertex; next, the vertices are downsampled and clustered to group vertices belonging to the same component together; finally, a classification layer outputs a semantic label for each component instance. This network is pre-trained using a labeled dataset of Hui-style architectural components, which includes more than 20 common component types of Hui-style architecture, such as main columns, eaves columns, moon beams, flat beams, brackets, dougong (bracket sets), and corbels. In another embodiment, other 3D instance segmentation networks, such as Mask3D or SparseConvNet, or traditional segmentation algorithms based on region growing can also be used.
[0038] After segmentation, each component instance is assigned a local number within a historical period. The format of the local number is a combination of the 3D digital model ID, component type abbreviation, location, and sequence number. For example, the main column in the central area of the Luo_1200 3D digital model is labeled as Luo_1200_Col_Main_01, where Col represents column, Main represents central area, and 01 represents the sequence number of this type in that location.
[0039] A manual verification interface is also provided for the segmentation network output. Users can view the labels of each component through this interface. If incorrect labels are found, they can be manually modified. If oversegmentation is found, multiple fragments can be selected and merged into one component. If undersegmentation is found, the component can be split by drawing dividing lines. After manual verification, the segmentation results are saved.
[0040] Through the above segmentation process, this application decomposes the three-dimensional digital model of the historical building into independent units at the component level, enabling subsequent cross-period component tracking to be carried out at the component granularity, thus avoiding the defect of being unable to locate specific components when comparing them as a whole three-dimensional digital model.
[0041] Step S102: For two three-dimensional digital models from adjacent historical periods, establish cross-period component correspondences and assign a globally unique identifier that remains unchanged across all historical periods to each set of cross-period components.
[0042] In this embodiment, components in two three-dimensional digital models from adjacent historical periods are matched to determine which components represent the same physical component in different historical periods, and each set of components corresponding across periods is assigned a globally unique identifier that remains unchanged across all historical periods.
[0043] The core logic of establishing cross-period component correspondences lies in the fact that although the spatial position of the same physical component may slightly shift in different historical periods due to modeling errors or local reconstructions, its spatial position and functional role within the building remain continuous. Therefore, matching can be performed using two dimensions: spatial position and semantic features. Spatial position matching is used to quickly filter candidate correspondences, while semantic feature matching is used for fine-grained matching when spatial position matching cannot uniquely determine the correspondence. Combining the two ensures both matching efficiency and accuracy.
[0044] In this embodiment, the three-dimensional digital model of the Luo Clan Ancestral Hall in historical period T1 and historical period T2 are specifically explained on how to establish the cross-period component correspondence.
[0045] (1) Spatial alignment of three-dimensional digital models.
[0046] Spatial alignment requires that the two 3D digital models be in the same spatial coordinate system. Since 3D digital models from different historical periods may be generated by different modeling methods, their coordinate system origins and orientations may be inconsistent, thus spatial alignment is necessary first.
[0047] Using the spatial features of a building that have remained unchanged throughout its historical evolution as a benchmark, two three-dimensional digital models from adjacent historical periods are unified into the same spatial coordinate system. The selection principle for spatial features is that the feature maintains its position or undergoes only minor changes during the building's historical evolution, and can be accurately extracted from the three-dimensional digital models of both historical periods.
[0048] In this embodiment, the four corner points of the building's foundation are selected as registration references. The foundation is the basic structure at the bottom of the building, and historically it usually remains unchanged or undergoes only minor changes, making it suitable as a reference point for registration. The three-dimensional coordinates of the four corner points of the foundation are read from the JSON metadata of the three-dimensional digital model of historical period T1, denoted as set A; the three-dimensional coordinates of the four corner points of the foundation are read from the JSON metadata of the three-dimensional digital model of historical period T2, denoted as set B. Then, the rigid body transformation matrix from A to B is calculated, which contains a rotation matrix and a translation vector. The specific calculation process is as follows: first, the centroids of the two sets of corner points are calculated; then, the optimal rotation matrix is calculated through singular value decomposition; finally, the translation vector is calculated. The transformation matrix is applied to all component vertices in the three-dimensional digital model of historical period T1, transforming them to the coordinate system of the three-dimensional digital model of historical period T2. The above-mentioned method for calculating the rigid body transformation matrix is a well-known mathematical method in the art. This application applies it to the spatial alignment of three-dimensional digital models of historical buildings from multiple periods, making the three-dimensional digital models of different historical periods have comparable spatial positions, providing a basis for coordinate consistency for subsequent spatial position matching.
[0049] In another embodiment, if the corner points of the platform cannot be accurately extracted, other invariant spatial features can be selected as registration benchmarks, such as the two endpoints of the building's central axis, the intersection points of the main walls, or the four corner points of the courtyard. In yet another embodiment, if the overall layout of the building has changed significantly during historical evolution, an iterative nearest-point registration method can be used. This method does not rely on specific feature points but rather achieves overall geometric alignment of the two 3D digital models through iterative optimization.
[0050] (2) Spatial location matching.
[0051] After aligning the 3D digital models, the 3D coordinates of the centroid of each component in the 3D digital model of historical period T1 in a unified coordinate system are calculated. The centroid is calculated by extracting the 3D coordinates of all vertices of the component and calculating the arithmetic mean of these coordinates.
[0052] For each component in the 3D digital model of historical period T1, components in the 3D digital model of historical period T2 whose centroid spatial distance is less than a preset threshold are searched to form a candidate matching pair list. The spatial distance uses Euclidean distance. The threshold is set based on the fact that, due to surveying errors and 3D digital model reconstruction errors, the centroid position of the same physical component may have slight shifts in different historical periods' 3D digital models, but the shift amount usually does not exceed a certain proportion of the component's own size.
[0053] In this embodiment, for column-type components, the threshold is preset to 30% of their average diameter. Specifically, the diameters of all columns in the 3D digital model of historical period T1 are first calculated, then the average of these diameters is calculated, and then multiplied by 30% to obtain the threshold. For beam-type components, the threshold is preset to 40% of their average width. For other types of components, the threshold is preset to 25% of the diagonal length of the component's bounding box. The component's bounding box refers to the smallest axis-aligned cuboid that can contain all vertices of the component, and its diagonal length is obtained by calculating the square root of the sum of the squares of the bounding box's ranges in the X, Y, and Z directions. By setting different thresholds for different component types, spatial position matching can work effectively for components of different sizes.
[0054] In another embodiment, the threshold may be a fixed value rather than a relative proportion. In yet another embodiment, the threshold may be dynamically adjusted based on the accuracy of the 3D digital model.
[0055] If a component in historical period T1 has a unique match in historical period T2 (meaning only one component in historical period T2 has a centroid distance less than a threshold), then this pair is directly marked as a match. For most components that have not undergone spatial displacement, the correspondence can be established simply through position matching, without the need for more complex semantic matching, thus improving overall processing efficiency.
[0056] (3) Semantic feature matching.
[0057] Spatial location matching has limitations: when a building undergoes partial renovation, some components may shift significantly in spatial location, causing the spatial distance to exceed a threshold and preventing a match from being found; or due to errors in the 3D digital model, a single component may correspond to multiple candidate components in space. In these cases, it is necessary to further utilize the semantic features of the components for matching.
[0058] It should be noted that the selection principle for semantic features is that the feature should reflect the functional role and structural position of the component in the building, and remain relatively stable in the three-dimensional digital models of the same physical component at different historical periods. Based on the above principles, this application selects the following three dimensions as semantic features.
[0059] The first dimension is the component type, such as main pillars, eaves pillars, moon beams, bracket sets, and corbels. This feature is obtained through the semantic labels output by the segmentation network in step S201. The component type reflects the functional role of the component; the same physical component usually has the same functional role in different historical periods.
[0060] The second dimension is spatial location, such as the main bay, left secondary bay, right secondary bay, left end bay, and right end bay. This feature is determined by calculating the relative position of the centroid of the structural members in the building plan. Specifically, first, the central axis of the building is determined, which is a straight line passing through the center of the building along the depth direction. The method for determining the central axis is as follows: identify the front eaves and rear eaves lines of the building from the four corner points of the platform, take the midpoint of the front eaves line and the midpoint of the rear eaves line, and connect the two points to obtain the central axis. Then, calculate the vertical distance and horizontal offset direction of the centroid of each structural member relative to the central axis, and combine this with the bay division of the building to determine the spatial location. The bay division is obtained by analyzing the spacing of the column grid in the horizontal direction; the area between a group of adjacent columns is one bay. Spatial location reflects the positional relationship of structural members in the building plan; the same physical structural member usually occupies the same spatial location in different historical periods.
[0061] The third dimension is the structural hierarchy, such as the lower eaves, upper eaves, and roof. This feature is determined by the Z-axis coordinate of the component's centroid. Cluster analysis is performed on the distribution of all components along the Z-axis to identify the main hierarchy boundaries. Then, based on the clustering results, each component is assigned to its corresponding structural hierarchy. The structural hierarchy reflects the positional relationship of components in the vertical structure of the building; the same physical component typically resides at the same structural hierarchy in different historical periods.
[0062] The features of the above three dimensions are encoded into semantic feature vectors. In this embodiment, one-hot encoding is used to encode component types and spatial locations. One-hot encoding is a method to convert categorical variables into numerical vectors, where the vector length equals the total number of categories, with the position corresponding to the category taking a value of 1 and the remaining positions taking a value of 0. The system maintains a component type vocabulary, including 20 types such as main columns, eaves columns, child columns, melon columns, moon beams, flat beams, following beams, through beams, purlins, brackets, corbels, corbels, tenon arches, walls, doors and windows, railings, roof boards, tiles, platform bases, and column bases. The system maintains a spatial location vocabulary, including 10 locations such as main bay, left secondary bay, right secondary bay, left end bay, right end bay, left end bay, right end bay, front porch, and rear porch. Numerical encoding is used to encode structural levels, with the lower eaves encoded as 1, the upper eaves as 2, and the roof as 3. Then, the codes are concatenated to form a multi-dimensional semantic feature vector.
[0063] In this embodiment, the cosine similarity of semantic feature vectors between components from adjacent historical periods is calculated. The calculation of cosine similarity is a well-known mathematical method in the art; its formula is the dot product of two vectors divided by the product of their magnitudes, with a value ranging from 0 to 1. A larger value indicates greater similarity between the two vectors. In another embodiment, semantic similarity can be calculated using Euclidean distance, Manhattan distance, or the Jaccard similarity coefficient.
[0064] For component C1 in historical period T1 and component C2 in historical period T2, if the cosine similarity between the semantic feature vectors of C1 and C2 is the highest, and this similarity exceeds a preset semantic similarity threshold, then C1 and C2 are confirmed as corresponding entities. Through semantic feature matching, this application utilizes the semantic information of components within a building for matching when spatial location matching cannot determine a unique correspondence. This is because although the spatial location of the same physical component may shift in different historical periods due to surveying errors or partial reconstruction, its functional role and structural hierarchy within the building usually remain unchanged. This semantic information can serve as a reliable basis for matching, thereby improving the accuracy and coverage of the matching.
[0065] In another embodiment, when semantic feature matching still cannot determine a unique correspondence, geometric shape matching is further employed as an auxiliary method. The shape descriptor of each component is extracted, including the dimensional proportions along the three principal axes and the volume-to-surface area ratio. The three principal axes are obtained through principal component analysis. The volume is obtained by calculating the closed volume of the component mesh, and the surface area is obtained by summing the areas of all triangular facets. Then, the Euclidean distance between the shape descriptors of candidate components from adjacent historical periods is calculated, and the match with the smallest distance is confirmed as the correspondence.
[0066] (4) Assign a globally unique identifier.
[0067] After the above registration, a globally unique identifier that remains unchanged across time periods is assigned to each group of components corresponding to different time periods.
[0068] The core function of a globally unique identifier is to establish cross-period data connections. At the data structure level, a globally unique identifier is used to index and query all historical state information of a component. By establishing data links between 3D digital models from different historical periods through globally unique identifiers, when a viewer queries a component on a display terminal, they can retrieve the component's state records from all historical periods. Without this identifier, components in the 3D digital models of different historical periods would be isolated individuals, making it impossible to establish cross-period data links.
[0069] The encoding format of a globally unique identifier should meet the following requirements: First, it should be unique within the data scope of the system; second, the encoding length should be moderate to facilitate storage and retrieval; and third, it should contain certain semantic information where possible to facilitate manual identification.
[0070] In this embodiment, the globally unique identifier is a combination of building abbreviation, component type, location, and sequence number. The building abbreviation is a shortened version of the building name, such as Luo for Luo Clan Ancestral Hall. The component type uses English abbreviations, such as Col for column. The location uses English abbreviations, such as Main for main room. The sequence number is a three-digit number, incrementing from 001. Luo_1200_Col_Main_01 in historical period T1, Luo_1550_Col_Main_01 in historical period T2, and Luo_1850_Col_Main_01 in historical period T3 are identified as the same physical component, and they are uniformly assigned the globally unique identifier Luo-Col-Main-001.
[0071] In another embodiment, the globally unique identifier can adopt a purely numeric encoding format, such as an integer sequence incrementing from 1. The advantages of purely numeric encoding are short encoding length, small storage space, and high query efficiency, making it suitable for indexing large-scale data. In yet another embodiment, the globally unique identifier can adopt the UUID format, i.e., a 128-bit universally unique identifier. The advantage of the UUID format is that it guarantees global uniqueness without centralized allocation, making it suitable for distributed systems. In yet another embodiment, the globally unique identifier can adopt an encoding format that includes semantic information, such as a combination of building ID, historical period, component type, and sequence number.
[0072] In this embodiment, a component index table is created to record the mapping relationship between globally unique identifiers and local numbers in the 3D digital models of each historical period. The component index table includes a globally unique identifier field, a local number field corresponding to each historical period, a component type field, and a spatial location field. The creation of the database table and the data recording itself adopt relational database technology known in the art.
[0073] Step S103: Connect the state information of components with the same globally unique identifier in the three-dimensional digital models of each historical period in chronological order to generate the life cycle data of the component.
[0074] It should be noted that the lifecycle data includes the existence status and morphological parameters of the component in each historical period.
[0075] It should be noted that for each globally unique identifier, the state information of the component is extracted from the 3D digital models of various historical periods, and then this information is organized into a continuous data record in chronological order. This data organization method makes the historical evolution trajectory of each component queryable, analyzable, and visualizeable. Before the generation of lifecycle data, the component's state information was scattered in the 3D digital model files of various historical periods; after generation, all information is aggregated into a single record.
[0076] In this embodiment, the lifecycle data includes a globally unique identifier field, a component type field, a spatial location field, and a status field and a morphological parameter field corresponding to each historical period. The status field records whether the component exists or not in that historical period. The morphological parameter field records the quantifiable geometric parameters of the component.
[0077] The method for determining the existence status is as follows: if a 3D digital model of a certain historical period contains a component instance corresponding to the globally unique identifier, then the status is existence; otherwise, it is non-existence.
[0078] In this embodiment, the type of morphological parameter is determined according to the component type. The selection principle for morphological parameters is that the parameter can reflect the morphological changes of the component during its historical evolution and can be calculated from the component mesh data. For column-type components, the morphological parameters include at least the column diameter and column height. The column diameter is calculated by extracting the projected coordinates of all vertices of the component on the horizontal plane and then calculating the minimum circumcircle diameter of these projected points. The minimum circumcircle is calculated using an iterative algorithm known in the art, specifically: the average coordinates of all vertices are used as the initial center, and the center is iteratively optimized to gradually approach the center of the minimum circumcircle, finally using twice the distance from the center to the farthest vertex as the column diameter. The column height is calculated by extracting the coordinates of all vertices of the component in the vertical direction and taking the difference between the maximum and minimum values.
[0079] For beam-type components, the morphological parameters include at least beam height, beam width, and cross-sectional shape code. Beam height is the maximum thickness of the component in the vertical direction, beam width is the maximum width of the component in the horizontal direction, and the cross-sectional shape code is represented by a numerical code. For bracket-type components, the morphological parameters include at least the number of brackets and the cantilever distance. The number of brackets is obtained by identifying the number of repeating bracket sub-units in the component instance. The cantilever distance is obtained by calculating the horizontal distance from the outermost end of the bracket to the surface of the supporting column.
[0080] Taking Luo-Col-Main-001 as an example, its life cycle record is as follows: the component type is a gold column, the spatial location is the east side of the main room, the state of historical period T1 is existing, the column diameter is 30.0 cm, and the column height is 4.2 m; the state of historical period T2 is existing, the column diameter is 35.0 cm, and the column height is 4.5 m; the state of historical period T3 is existing, the column diameter is 38.0 cm, and the column height is 4.6 m.
[0081] Step S104: For components with the same globally unique identifier, compare the state differences between adjacent historical periods and determine the change type based on the state differences.
[0082] The core logic of change type determination is: first, determine whether the component exists in both historical periods. If it does not exist, it is directly determined as newly added or disappeared. If it exists in both periods, the degree of change is quantified by calculating the difference rate of morphological parameters. Then, based on a preset threshold, the continuous change is discretized into categories with clear semantics.
[0083] The specific judgment logic is as follows:
[0084] First, read the state information of the component in two adjacent historical periods. If the state of either historical period is non-existent, then directly determine: if the state of the previous historical period is non-existent and the state of the next historical period is existent, it is determined to be added; if the state of the previous historical period is existent and the state of the next historical period is non-existent, it is determined to be disappeared.
[0085] If the state exists in both historical periods, the difference rate of morphological parameters is further calculated. The column diameter difference rate and column height difference rate are calculated, and the larger of the two is taken as the comprehensive difference rate. The formula for calculating the column diameter difference rate is: the column diameter difference rate equals the absolute value of the difference between the column diameter of the later historical period and the column diameter of the earlier historical period, divided by the column diameter of the earlier historical period, multiplied by 100%. In another embodiment, the column diameter difference rate, column height difference rate, and volume difference rate can be calculated simultaneously, and then the weighted average of these difference rates is taken as the comprehensive difference rate.
[0086] The threshold setting is based on the fact that different types of morphological changes correspond to different historical and cultural meanings. Small morphological changes are usually caused by natural aging or surface repairs, without changing the structural function of the component; moderate morphological changes are usually caused by local repairs or reinforcements; and large morphological changes indicate that the component has been replaced or rebuilt. Based on the above considerations, a first threshold and a second threshold are set to divide the continuous amount of change into three intervals.
[0087] In this embodiment, the first threshold is set to 5%, and the second threshold is set to 15%. If the overall difference rate is less than 5%, it is determined to be unchanged; if the overall difference rate is greater than or equal to 5% and less than 15%, it is determined to be repaired; if the overall difference rate is greater than or equal to 15%, it is determined to be replaced. The specific value of the threshold can be adjusted according to the component type. In another embodiment, for wooden structure components, due to the natural shrinkage and expansion of wood, small dimensional changes may be normal, so the threshold can be appropriately relaxed; for stone structure components, since the dimensional changes of stone are small, the threshold can be appropriately tightened.
[0088] In this embodiment, for Luo-Col-Main-001, the column diameter changed from 30 cm to 35 cm between historical period T1 and historical period T2, with a difference rate of (35-30) / 30 approximately equal to 16.7%, which is greater than or equal to 15%, and is therefore determined to be a replacement. Between historical period T2 and historical period T3, the column diameter changed from 35 cm to 38 cm, with a difference rate of (38-35) / 35 approximately equal to 8.6%, which is greater than or equal to 5% and less than 15%, and is therefore determined to be a repair.
[0089] To determine the replacement type, it is necessary to further confirm whether the components from the two historical periods are indeed the same physical component. This is because replacement and the combination of disappearance and addition may produce the same results in terms of morphological parameters, but their historical and cultural meanings are completely different. Replacement means that the component is replaced in its original location, while disappearance and addition mean that the original component disappears and the new component is newly built in another location. The distinction is based on the records of manual verification in step S202. If the manual verification records confirm that the two are the same component, it is marked as replacement; if the manual verification records confirm that the two are different components, it is marked as a combination of disappearance and addition.
[0090] In some other embodiments, the repair type also needs to be subcategorized. The subcategorization is based on the specific dimension of the change. If only the column diameter changes while the column height remains unchanged, it indicates that the component's surface has been treated but the structural dimensions have not changed, and this is marked as surface repair. If both the column diameter and height change, it indicates that the structural dimensions of the component have been adjusted, and this is marked as structural repair. If only the surface texture or color changes, it is marked as decorative repair.
[0091] By determining the type of change, this application quantifies the change in component form into a calculable difference rate, and classifies the change into types with clear semantic meaning based on the difference rate, thus avoiding the inefficiency and inconsistent judgment criteria caused by relying on manual judgment of each change type.
[0092] Step S105: Select the corresponding visual encoding parameters for rendering and display based on the change type of each component.
[0093] When viewers view the architectural evolution process through the display terminal, the display terminal sends a display request, which includes the current viewer's position information on the timeline.
[0094] Upon receiving a display request, the system first reads the lifecycle data of each component, including its state of existence, morphological parameters, and types of change in different historical periods. This data is then converted into visual encoding parameters and sent to the display terminal.
[0095] The core logic of differentiated rendering is to map abstract types of change into intuitive visual codes, enabling viewers to quickly identify the types of changes each component undergoes during its evolution through visual perception without needing to read textual descriptions. The design principles of visual coding are: different types of visual codes should be clearly distinguishable, and the coding method should conform to the viewer's intuitive understanding.
[0096] Visual encoding parameters include color values and transparency values. Color values are used to distinguish different types of changes, and transparency values are used to implement transition animations. For each component, the visual encoding parameters are determined based on its type of change.
[0097] In the implementation, the visual encoding parameters are determined as follows: a color value is assigned to each type of change, and the color value selection should ensure a clear color difference between different types of change. For change types requiring animation effects, a transparency curve is also set, defining how the transparency of the component changes over time in the transition animation. The total duration of the transition animation can be set according to the display requirements.
[0098] In this embodiment, for components whose change type is unchanged, the color value is gray and the transparency value is 1.0, indicating that the component has remained stable throughout its evolution. For components whose change type is repair, the color value is yellow and the transparency value is 1.0, with an added blinking animation parameter and a blinking period of 2 seconds, indicating that the component has undergone partial repair. For components whose change type is replacement, the color value is orange, and in the transition animation, the transparency value of the component in the previous historical period linearly decreases from 1.0 to 0, while the transparency value of the component in the subsequent historical period linearly increases from 0 to 1.0, indicating that the component has been replaced. For components whose change type is addition, the color value is blue, and in the transition animation, the component's transparency value linearly increases from 0 to 1.0, indicating that the component is newly created. For components whose change type is disappearance, the color value is red, and in the transition animation, the component's transparency value linearly decreases from 1.0 to 0, indicating that the component has been demolished.
[0099] In another embodiment, the color values can employ different hue combinations, such as using softer hues to reduce visual stimulation, or using more vibrant colors to enhance recognizability. In yet another embodiment, the display terminal provides a settings interface that allows users to customize the color values and animation parameters corresponding to each type of change. In yet another embodiment, in addition to color and transparency, other visual encoding methods can be used, such as adding outlines, changing surface textures, or adding label text.
[0100] In this embodiment, the display terminal renders each component according to the received visual encoding parameters. It should be noted that the rendering process involved in this application employs a well-known 3D digital model rendering technique. Specifically, the 3D mesh data of each component is loaded into the video memory of the graphics processing unit, and the material properties of the component are set in the rendering pipeline. During the rendering process of each frame, the display terminal determines the target color value and target transparency value of each component based on the current timeline position. Then, it calculates the actual color value and actual transparency value of the current frame using linear interpolation. The interpolation result is passed as a uniform variable to the vertex shader and fragment shader, whereby the shaders complete the calculation and output of the final pixel color. The transparency value interpolation uses a linear interpolation method, that is, the transparency of the current frame is equal to the transparency of the previous frame plus the difference between the target transparency and the transparency of the previous frame multiplied by the inter-frame interpolation coefficient. The inter-frame interpolation coefficient is equal to the difference between the current frame time and the previous frame time divided by the total transition duration. The aforementioned rendering technology is well known in the art. This application applies it to differentiated visualization based on change type. By mapping change type to color and transparency values and driving the rendering pipeline, visual distinction between components of different change types is achieved.
[0101] The rendered image of this embodiment is as follows: Figure 2 As shown, from Figure 2 It can be seen that color changes can be used to visually distinguish between unchanged, repaired, replaced, added, or disappeared components, allowing viewers to intuitively differentiate the types of changes in each component through color and animation when watching the architectural evolution process, thus improving the information transmission efficiency of the historical building evolution display.
[0102] Reference Figure 3 This application also provides a dynamic evolution system for historical buildings based on the component lifecycle, including:
[0103] The model library module 100 is used to store three-dimensional digital models of historical buildings in multiple historical periods. The three-dimensional digital models contain component-level segmentation data, and each three-dimensional digital model is associated with a corresponding period label. It should be noted that since the specific methods for acquiring and segmenting the three-dimensional digital models have been described in detail in step S101 of the above-mentioned dynamic evolution method of historical buildings based on component life cycle, they will not be repeated here.
[0104] The component registration module 200 is used to establish cross-period component correspondence for two three-dimensional digital models of adjacent historical periods, and to assign a globally unique identifier that remains unchanged across all historical periods to each group of cross-period components. It should be noted that since the specific component registration method has been described in detail in step S102 of the above-mentioned dynamic evolution method of historical buildings based on component life cycle, it will not be repeated here.
[0105] The life cycle database module 300 is used to concatenate the state information of components with the same globally unique identifier in the three-dimensional digital model of each historical period in chronological order to generate the life cycle data of the component. The life cycle data includes at least the existence state and morphological parameters of the component in each historical period. It should be noted that since the specific method for constructing life cycle data has been described in detail in step S103 of the above-mentioned dynamic evolution method of historical buildings based on component life cycle, it will not be repeated here.
[0106] The change type determination module 400 is used to compare the state differences between adjacent historical periods for components with the same globally unique identifier, and determine the change type based on the state differences. It should be noted that since the specific change type determination method has been described in detail in step S104 of the above-mentioned dynamic evolution method of historical buildings based on the component life cycle, it will not be repeated here.
[0107] The differential rendering engine 500 is used to select the corresponding visual encoding parameters for rendering and display based on the change type of each component. It should be noted that since the specific differential rendering method has been described in detail in step S105 of the above-mentioned dynamic evolution method of historical buildings based on the component life cycle, it will not be repeated here.
[0108] Based on the same inventive concept, this embodiment also provides a computer-readable storage medium, wherein the computer-readable storage medium may store a program that, when executed, includes some or all of the steps of any of the historical building dynamic evolution methods based on the component life cycle described in the above method embodiments.
[0109] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0110] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0111] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0112] The above description, with reference to the accompanying drawings, illustrates an exemplary flowchart for implementing a method for dynamic evolution of historical buildings based on component lifecycles, according to embodiments of the present invention. It should be noted that the numerous details included in the above description are merely illustrative of the invention and not intended to limit it. In other embodiments of the invention, the method may have more, fewer, or different steps, and the order, inclusion, function, and other relationships between the steps may differ from those described and illustrated.
Claims
1. A method for the dynamic evolution of historical buildings based on the component lifecycle, characterized in that, include: Obtain three-dimensional digital models of historical buildings in multiple historical periods. The three-dimensional digital models contain component-level segmentation data, and each three-dimensional digital model is associated with a corresponding period label. For two three-dimensional digital models from adjacent historical periods, establish cross-period component correspondences and assign a globally unique identifier that remains unchanged across all historical periods to each set of cross-period components. The state information of components with the same globally unique identifier in the three-dimensional digital model of each historical period is concatenated in chronological order to generate the life cycle data of the component. The life cycle data includes at least the existence state and morphological parameters of the component in each historical period. For components with the same globally unique identifier, compare the state differences between adjacent historical periods, and determine the change type based on the state differences. The change type includes unchanged, repaired, replaced, added, and disappeared. The corresponding visual encoding parameters are selected for rendering and display based on the type of change of each component.
2. The method for dynamic evolution of historical buildings according to claim 1, characterized in that, The establishment of cross-period component correspondence includes: Based on the spatial characteristics of buildings that have remained unchanged throughout historical evolution, two three-dimensional digital models from adjacent historical periods are unified into the same spatial coordinate system; Calculate the three-dimensional coordinates of the centroid of each component in the same spatial coordinate system, and mark the component pairs in the three-dimensional digital models of adjacent historical periods whose spatial distance is less than a preset threshold as candidate correspondences; For components with multiple candidate correspondences or no candidate correspondences, the semantic features of the component are extracted. The semantic features include at least component type, spatial location and structural level. The semantic features are encoded into semantic feature vectors. The semantic similarity between components in adjacent historical periods is calculated, and the match with the highest semantic similarity is taken as the correspondence.
3. The method for dynamic evolution of historical buildings according to claim 1, characterized in that, The morphological parameters were extracted from the three-dimensional digital models of various historical periods in the following manner: For column-type components, the column diameter and column height are extracted. The column diameter is obtained by calculating the minimum circumcircle diameter of the projection points of all vertices of the component onto the horizontal plane. The column height is obtained by extracting the difference between the maximum and minimum values of all vertices of the component in the vertical direction. For beam-type components, the beam height, beam width, and cross-sectional shape codes are extracted. The beam height is the maximum thickness of the component in the vertical direction, and the beam width is the maximum width of the component in the horizontal direction. For bracket-type components, the number of brackets and the overhang distance are extracted. The number of brackets is obtained by identifying the number of repeated bracket sub-units in the component instance, and the overhang distance is obtained by calculating the horizontal distance from the outermost end of the bracket to the surface of the supporting column.
4. The method for dynamic evolution of historical buildings according to claim 1, characterized in that, The type of change is determined based on the state differences, including: If the state in the previous historical period did not exist and the state in the subsequent historical period exists, it is determined to be newly added; If the state in the previous historical period exists and the state in the next historical period does not exist, it is determined to have disappeared; If the state exists in both historical periods, calculate the difference rate of the morphological parameters. The difference rate is equal to the absolute value of the difference between the morphological parameters of the later historical period and the morphological parameters of the earlier historical period, divided by the morphological parameters of the earlier historical period, and then multiplied by 100%. If the difference rate is less than the first threshold, it is determined to be unchanged; if the difference rate is greater than or equal to the first threshold and less than the second threshold, it is determined to be repaired; if the difference rate is greater than or equal to the second threshold, it is determined to be replaced.
5. The method for dynamic evolution of historical buildings according to claim 4, characterized in that, The repair category within the change types also includes subcategories: If only the column diameter changes while the column height remains the same, it is marked as surface repair. If both the column diameter and column height change, it is marked as a structural repair; If only the surface texture or color changes, it is marked as a decorative repair. The subclassification results are stored as a component of the lifecycle data.
6. The method for dynamic evolution of historical buildings according to claim 1, characterized in that, The visual encoding parameters include color values and transparency values; Unchanged corresponds to the first color; Repair corresponds to the second color with a blinking animation; Replace corresponds to the third color, in which the transparency of the component in the previous history period decreases while the transparency of the component in the next history period increases during the transition animation; Add corresponds to the fourth color, in which the transparency of the component increases during the transition animation; Disappear corresponds to the fifth color, in which the transparency of the component decreases during the transition animation.
7. The method for dynamic evolution of historical buildings according to claim 6, characterized in that, Also includes: In response to the user's input filtering command, the components with the change type "unchanged" are set to completely transparent in the visualization interface, and only the components that have changed are displayed; In response to a user's selection of any component, extract the state information of the component in all historical periods, generate and display the life history of the component, which includes at least the existence state, morphological parameters and corresponding historical period names of the component in each historical period. The life history display interface includes a three-dimensional digital model display area and a timeline information area. When the user clicks on a historical period on the timeline, the three-dimensional digital model display area switches to the model form of that component in that historical period.
8. The method for dynamic evolution of historical buildings according to claim 1, characterized in that, Also includes: The lifecycle data of all components are aggregated and analyzed, including: Count the number of components for each type of change between adjacent historical periods; Identify components that have existed from the earliest to the latest historical period without being replaced; For components that existed in history but disappeared in the latest historical period, calculate their duration of existence and calculate the average value by grouping them by component type; Calculate the intensity of change between adjacent historical periods, whereby the intensity of change is equal to the proportion of the number of components that changed to the total number of components.
9. A dynamic evolution system for historical buildings based on the life cycle of building components, characterized in that, include: The model library module is used to store three-dimensional digital models of historical buildings in multiple historical periods. The three-dimensional digital models contain component-level segmentation data, and each three-dimensional digital model is associated with a corresponding period label. The component registration module is used to establish cross-period component correspondence between two 3D digital models from adjacent historical periods, and to assign a globally unique identifier that remains unchanged across all historical periods to each set of cross-period components. The lifecycle database module is used to concatenate the state information of components with the same globally unique identifier in the three-dimensional digital model of each historical period in chronological order to generate the lifecycle data of the component. The lifecycle data includes at least the existence state and morphological parameters of the component in each historical period. The change type determination module is used to compare the state differences between adjacent historical periods for components with the same globally unique identifier, and determine the change type based on the state differences. The differential rendering engine is used to select the corresponding visual encoding parameters for rendering and display based on the type of change of each component.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for dynamic evolution of historical buildings based on the component life cycle as described in any one of claims 1 to 8.
