Water digital twin mass BIM and pipe network data light loading method

By generating lightweight model data through attribute filtering and differentiated grid simplification, and constructing a three-layer hybrid spatial index, the problem of slow response speed of BIM and pipeline data loading in urban water affairs digital twin applications is solved, and efficient data loading and rendering interaction are achieved.

CN122777573BActive Publication Date: 2026-11-20SHENZHEN EMAP INFORMATION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611258045.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-20
Estimated Expiration
2046-08-19

AI Technical Summary

Technical Problem

In existing technologies for digital twin applications of urban water affairs, the loading response speed of massive BIM and pipeline network data is slow, making it difficult to meet the business needs of high-concurrency scenarios. In particular, in water affairs scenarios with dense linear pipeline networks and scattered point structures, the loading response delay is significant.

Method used

By filtering the original BIM model data and pipeline data based on preset attribute classification rules, the target attributes to be retained are extracted and differentiated grid simplification is performed to generate lightweight model data. A three-layer hybrid spatial index of global rule grid, urban quadtree and pipeline line type R-tree is constructed. Data is queried based on the current viewpoint position and the data is rendered according to the preset LOD level threshold interval to which the view distance belongs.

Benefits of technology

It significantly reduced the model data volume, enabled efficient joint retrieval of linear pipe networks and point structures, improved data loading response speed and rendering interaction efficiency, and met the high concurrency requirements of urban-level water affairs digital twin scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122777573B_ABST
    Figure CN122777573B_ABST
Patent Text Reader

Abstract

The application discloses a water affair digital twin mass BIM and pipe network data light loading method, relates to the technical field of digital twin and water affair informatization, and comprises the following steps: acquiring BIM model data and pipe network data of a water affair scene; filtering the attributes of the BIM model data and the pipe network data, simplifying the BIM model data after attribute filtering, and generating light model data; constructing a global rule grid, a city four-tuple tree and a pipe network line type R-tree three-layer hybrid space index; querying target data in a view port range based on a current view point position through the three-layer hybrid space index, and rendering the target data to a display device at a corresponding detail level according to a threshold interval to which the current view distance belongs. The application reduces the data volume through attribute filtering and grid simplification, improves the loading efficiency through hybrid indexing and LOD hierarchical rendering, and improves the loading response speed of BIM and pipe network data in a water affair digital twin scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of digital twin and water information technology, and in particular to a lightweight loading method for massive BIM and pipeline network data of water digital twin. Background Technology

[0002] Current city-level water management digital twin applications need to load and manage BIM models and pipeline network data covering the entire city in a unified scenario to support pipeline network operation and maintenance, emergency dispatch, and other business operations. This type of data has spatial distribution characteristics of dense linear pipeline networks, scattered point structures, and strong topological correlations, and core facilities such as water plants, pumping stations, and main pipelines have high real-time loading requirements in business operations.

[0003] When dealing with such massive heterogeneous data, general BIM / CIM platforms typically use LOD hierarchies with fixed line-of-sight thresholds and a single spatial index structure for data loading and scheduling. However, such loading mechanisms do not take into account the spatial distribution characteristics of water scenarios and the differences in business priorities of core facilities. When faced with concurrent access to massive point and line composite data, the loading response delay is significant, making it difficult to meet the business needs in high-concurrency scenarios.

[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main purpose of this application is to provide a lightweight loading method for massive BIM and pipeline network data in water affairs digital twins, aiming to solve the technical problem of slow response speed in loading massive BIM and pipeline network data in urban water affairs scenarios.

[0006] To achieve the above objectives, this application provides a method for lightweight loading of massive BIM and pipeline network data in water affairs digital twins. The method includes: Obtain the original BIM model data and pipeline network data for city-level water management scenarios; Based on preset attribute classification rules, attribute filtering is performed on the original BIM model data and the pipeline network data to extract the target attributes to be retained. Then, according to the simplification parameters corresponding to different component types and multiple preset face number targets, differentiated mesh simplification processing is performed on the original BIM model data after attribute filtering to generate lightweight model data corresponding to multiple detail levels. Based on the lightweight model data and the attribute-filtered pipeline network data, a three-layer hybrid spatial index consisting of a global rule grid, an urban quadtree, and a pipeline linear R-tree is constructed. Based on the current viewpoint position, the target data to be loaded within the current viewport range is queried through the three-layer hybrid spatial index, and the queried target data is rendered to the display device at the corresponding level of detail according to the preset LOD level threshold range to which the current viewing distance belongs.

[0007] In one embodiment, the step of filtering the original BIM model data and the pipeline network data based on preset attribute classification rules and extracting the target attributes to be retained includes: Obtain the evaluation values ​​of each attribute in the original BIM model data and the pipeline network data in terms of topological connectivity, hydraulic physical characteristics and operational status indicators, respectively. The retention value score of the attribute is obtained by weighted summation of the various evaluation values. The attribute whose retention value score reaches the preset value score threshold is determined as the target attribute to be retained.

[0008] In one embodiment, the step of performing differentiated mesh simplification processing on the original BIM model data after attribute filtering according to the simplification parameters corresponding to different component types and multiple preset face number targets, and generating lightweight model data corresponding to multiple detail levels respectively, includes: Obtain the component type of each vertex in the original BIM model data after the attribute filtering; The corresponding business importance weight is determined based on the component type; The original geometric error of the vertex is weighted according to the business importance weight to obtain the corrected geometric error matrix; The collapse cost of each edge in the original BIM model data after attribute filtering is determined based on the corrected geometric error matrix. The edge collapse operation is performed sequentially in order of increasing collapse cost, and the corresponding model data is output when the preset number of faces is reached, thereby obtaining the lightweight model data corresponding to multiple detail levels.

[0009] In one embodiment, the step of querying the target data to be loaded within the current viewport range based on the current viewpoint position using the three-layer hybrid spatial index includes: The current viewport range is determined based on the current viewpoint position and viewing direction, and the viewport clipping bounding box is determined based on the current viewport range; The grid number covered by the viewport clipping bounding box is determined based on the spatial coordinates of the viewport clipping bounding box, and the active grid cell intersecting with the viewport clipping bounding box is located in the global regular grid based on the grid number. For active grid cells with an urban quadtree index, iteratively search downwards from the root node of the urban quadtree to extract point-like individual building instances that fall within the viewport clipping bounding box, thus obtaining the target lightweight model data; for active grid cells without an urban quadtree index, directly extract point-like individual building instances that intersect with the viewport clipping bounding box within the active grid cell. Extract the spatial boundary box of the point-like single-unit structure instance, and expand the spatial boundary box according to a preset expansion radius to obtain the candidate query range of the structure's pipeline network; retrieve candidate pipe segments that spatially intersect with the candidate query range of the structure's pipeline network through the pipeline network linear R-tree, and filter out the associated pipe segments that have a topological connection relationship with the point-like single-unit structure instance from the candidate pipe segments according to the pre-stored topological connection identifier; Using the viewport clipping bounding box as the query range, the visible pipe segments intersecting with the viewport clipping bounding box are retrieved through the pipeline network R-tree; the associated pipe segments are merged with the visible pipe segments and deduplicated to obtain the target pipeline network data.

[0010] In one embodiment, after the step of querying the target data to be loaded within the current viewport range based on the current viewpoint location using the three-layer hybrid spatial index, the lightweight loading method for massive BIM and pipeline network data of water affairs digital twin further includes: Obtain the preloading evaluation parameters of each unloaded component in the current viewport periphery, including the view orientation factor, historical access frequency factor, and business process topology association factor; Based on the perspective orientation factor, the historical access frequency factor, and the business process topology association factor, a weighted sum is performed according to their respective weight coefficients to obtain the comprehensive preloading score of each unloaded component. When the overall preloading score reaches the preloading trigger threshold, the lightweight model data corresponding to the unloaded component is asynchronously preloaded in the background.

[0011] In one embodiment, the step of rendering the queried target data to the display device at the corresponding level of detail based on the preset LOD (Level of Detail) threshold range to which the current viewing distance belongs includes: The current viewing distance is determined based on the current viewpoint position and the spatial position of the target data; Based on the preset LOD grading threshold range to which the current viewing distance belongs, the corresponding target detail level is determined. The preset LOD grading threshold range is divided into pipeline schematic layer, skeleton model layer, standard model layer and fine model layer according to the viewing distance from far to near. Based on the target detail level, the target data is rendered onto the display device.

[0012] In one embodiment, the step of rendering the target data to the display device based on the target detail level includes: Determine the transition interval of view distance overlap between the target detail level and adjacent detail levels; When the current viewing distance is within the transition interval, the first transparency weight corresponding to the target detail level and the second transparency weight corresponding to the adjacent detail level are determined according to the relative position of the current viewing distance within the transition interval. The sum of the first transparency weight and the second transparency weight is 1, and the first transparency weight and the second transparency weight change continuously with the current viewing distance. According to the first transparency weight and the second transparency weight, the target data corresponding to the target detail level and the target data corresponding to the adjacent detail level are rendered respectively.

[0013] In one embodiment, after the step of rendering the queried target data to the display device at the corresponding level of detail according to the preset LOD (Level of Detail) threshold range to which the current viewing distance belongs, the lightweight loading method for massive BIM and pipeline network data of water affairs digital twin further includes: Store the loaded target data into the cache; For each cache block in the cache, obtain the cache block's time coldness parameter, access frequency parameter, and business priority parameter; The eviction coldness value of the cache block is determined based on the time coldness parameter, the access frequency parameter, and the service priority parameter. When the cache space reaches a preset capacity threshold, the cache block with the highest evictory coldness value is evicted first, according to the order of the evictory coldness value of each cache block from high to low.

[0014] In one embodiment, the step of obtaining the service priority parameter of the cache block includes: Obtain the facility level to which the data stored in the cache block belongs; The service priority parameter of the cache block is determined based on the facility level; The service priority parameter has different values ​​corresponding to different facility levels. The service priority parameter is used to reduce the evicting priority of the cache block corresponding to the higher facility level in the calculation of the evicting coldness value of the cache block.

[0015] In one embodiment, the lightweight loading method for massive BIM data and pipeline network data of water affairs digital twin further includes: During system initialization, the hardware configuration parameters of the current terminal device are obtained; The preload trigger threshold, cache space capacity threshold, and threshold range corresponding to each detail level are dynamically adjusted based on the hardware configuration parameters.

[0016] This application embodiment also provides a lightweight loading device for water affairs digital twin massive BIM and pipeline network data. The lightweight loading device for water affairs digital twin massive BIM and pipeline network data includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps of the lightweight loading method for water affairs digital twin massive BIM and pipeline network data as described above.

[0017] This application embodiment also provides a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, it implements the steps of the water affairs digital twin massive BIM and pipeline network data lightweight loading method described above.

[0018] One or more technical solutions proposed in this application have at least the following technical effects: This application filters the original BIM model data and pipeline network data based on preset attribute classification rules to accurately extract the target attributes to be retained. Based on this, it performs differentiated mesh simplification processing on the attribute-filtered BIM model data according to simplification parameters corresponding to different component types and multiple preset face count targets, generating lightweight model data corresponding to multiple detail levels. This significantly reduces the model data volume while effectively retaining core business attributes. By constructing a three-layer hybrid spatial index—a global rule grid, an urban quadtree, and a pipeline linear R-tree—based on the generated lightweight model data and attribute-filtered pipeline network data, and using this three-layer hybrid spatial index to query target data within the current viewport location, it achieves efficient joint retrieval of the spatial locations of the two types of data in the massive composite spatial data of linear pipelines and point structures in water management scenarios. Furthermore, by rendering the queried target data to the display device at the corresponding detail level according to the preset LOD (Level of Detail) threshold range of the current view distance, the system only needs to load the detail level data corresponding to the current view distance, effectively avoiding the loading overhead of unnecessary data. The above methods work together to comprehensively improve the overall loading response speed and rendering interaction efficiency of BIM and pipeline network data in urban-level water affairs digital twin scenarios. Attached Figure Description

[0019] Figure 1 This is a flowchart illustrating the first embodiment of the method for lightweight loading of massive BIM and pipeline network data for water affairs digital twins in this application. Figure 2This is a flowchart illustrating the second embodiment of the method for lightweight loading of massive BIM and pipeline network data for water affairs digital twins in this application. Figure 3 This is a flowchart illustrating the third embodiment of the method for lightweight loading of massive BIM and pipeline network data for water affairs digital twins in this application. Figure 4 This is a flowchart illustrating the fourth embodiment of the method for lightweight loading of massive BIM and pipeline network data for water affairs digital twins in this application. Figure 5 This is a schematic diagram of the hardware operating environment of the water affairs digital twin massive BIM and pipeline network data lightweight loading device involved in the water affairs digital twin massive BIM and pipeline network data lightweight loading method in the embodiments of this application.

[0020] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0021] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0022] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0023] Current city-level water management digital twin applications need to load and manage BIM models and pipeline network data covering the entire city in a unified scenario to support pipeline network operation and maintenance, emergency dispatch, and other business operations. This type of data has spatial distribution characteristics of dense linear pipeline networks, scattered point structures, and strong topological correlations, and core facilities such as water plants, pumping stations, and main pipelines have high real-time loading requirements in business operations.

[0024] When dealing with such massive heterogeneous data, general BIM / CIM platforms typically use LOD hierarchies with fixed line-of-sight thresholds and a single spatial index structure for data loading and scheduling. However, such loading mechanisms do not take into account the spatial distribution characteristics of water scenarios and the differences in business priorities of core facilities. When faced with concurrent access to massive point and line composite data, the loading response delay is significant, making it difficult to meet the business needs in high-concurrency scenarios.

[0025] In view of the above problems, this application proposes a lightweight loading method for massive BIM and pipeline network data in water affairs digital twins. The method involves acquiring original BIM model data and pipeline network data for a city-level water affairs scenario; filtering the original BIM model data and pipeline network data based on preset attribute classification rules to extract target attributes to be retained; and performing differentiated mesh simplification processing on the attribute-filtered original BIM model data according to simplification parameters corresponding to different component types and multiple preset face count targets to generate lightweight model data corresponding to multiple detail levels; constructing a three-layer hybrid spatial index consisting of a global regular mesh, an urban quadtree, and a pipeline linear R-tree based on the lightweight model data and the attribute-filtered pipeline network data; querying the target data to be loaded within the current viewport range using the three-layer hybrid spatial index based on the current viewpoint position; and rendering the queried target data to the display device at the corresponding detail level according to the preset LOD (Level of Detail) threshold range to which the current viewing distance belongs.

[0026] This application provides a solution that filters the original BIM model data and pipeline network data based on preset attribute classification rules to accurately extract the target attributes to be retained. Furthermore, based on this, it performs differentiated mesh simplification processing on the attribute-filtered BIM model data according to simplification parameters corresponding to different component types and multiple preset face count targets, generating lightweight model data corresponding to multiple detail levels. This significantly reduces the model data volume while effectively retaining core business attributes. A global rule network is then constructed based on the generated lightweight model data and the attribute-filtered pipeline network data. A three-layer hybrid spatial index—grid, urban quadtree, and pipeline linear R-tree—is used to query target data within the current viewport based on the current viewpoint location. This enables efficient joint retrieval of the spatial locations of the massive composite spatial data containing both linear pipelines and point structures in water management scenarios. Furthermore, by determining the preset LOD (Level of Detail) threshold range for the current view distance, the queried target data is rendered to the display device at the corresponding level of detail. This ensures the system only needs to load the level of detail data corresponding to the current view distance, effectively avoiding the overhead of loading unnecessary data. These combined methods comprehensively improve the overall loading response speed and rendering interaction efficiency of BIM and pipeline data in urban-level water management digital twin scenarios.

[0027] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a workstation, cloud server, tablet computer, personal computer, etc., or an electronic device, digital twin system, city-level water affairs digital twin platform, city-level water affairs digital twin massive BIM and pipeline network data lightweight loading system, etc., capable of realizing the above functions. The following uses a digital twin system as an example to describe this embodiment and the following embodiments.

[0028] The first embodiment of this application proposes a lightweight loading method for massive BIM and pipeline network data in water affairs digital twins. Please refer to [link / reference]. Figure 1 The method includes steps S10 to S40: Step S10: Obtain the original BIM model data and pipeline data for the city-level water affairs scenario.

[0029] In a city-level water management digital twin scenario, BIM model data and pipeline network data are two independent data sources with different origins, formats, and descriptive content. BIM model data is a digital model based on 3D digital technology, integrating information on the entire lifecycle of water facilities such as water plants and pumping stations. It includes the geometric mesh of components and attribute information such as equipment parameters and materials, and its format is typically IFC or RVT. Pipeline network data is vector data describing the spatial location and topological connections of linear and point-like water facilities such as water supply pipes, drainage pipes, manholes, and valves. It includes attribute information such as pipe diameter, burial depth, flow direction, and upstream and downstream connections, and its format is typically Shapefile or GeoJSON. These two types of data are spatially registered and overlaid using a unified spatial coordinate reference system, forming the data foundation of a city-level water management digital twin scenario.

[0030] The system acquires the original BIM model data and pipeline data within the initial bounding box of the current scene or the user-defined initial viewpoint location, avoiding the bandwidth pressure caused by transmitting all data simultaneously during initial loading. When the user's viewpoint moves or the scene range changes, the system queries and loads data within the newly added range as needed using a subsequently constructed spatial index.

[0031] Raw BIM model data may originate from different modeling software and come in various formats, including RVT, DGN, and SKP. These different formats have significantly different data structures, and direct processing can lead to inconsistent processing logic. As an alternative approach, after acquiring the raw BIM model data, the system first converts it into a unified intermediate format, such as the IFC standard format or glTF format, to standardize the processing of BIM model data from different sources. Similarly, pipeline network data needs to be converted from various sources such as Shapefile, GeoJSON, and DWG into a standard vector data format and unified to the same coordinate system, such as the National Coordinate System 2000, to ensure the accuracy of subsequent spatial coordinate calculations.

[0032] Step S20: Based on preset attribute classification rules, attribute filtering is performed on the original BIM model data and the pipeline network data to extract the target attributes to be retained. Then, according to the simplification parameters corresponding to different component types and multiple preset surface number targets, differentiated mesh simplification processing is performed on the original BIM model data after attribute filtering to generate lightweight model data corresponding to multiple detail levels.

[0033] The original BIM model data and pipeline network data contain a large amount of redundant information that has no practical value for water utility operations and maintenance. BIM model data may include details of office building doors and windows, building exterior wall decorations and curtain walls, non-manufacturing stair railings and steps, micro-finishes of pipe exteriors, non-critical fasteners, non-manufacturing power wiring harnesses inside control boxes, and geometric details of equipment bases, among other non-manufacturing geometric information. Pipeline network data may contain duplicate fields, descriptive fields unrelated to hydraulic calculations and topology tracing, historically obsolete fields, and coordinate data exceeding the current display accuracy requirements. This redundant information consumes storage space and transmission bandwidth but has no substantial impact on core water utility operations such as pipeline network maintenance, flood control scheduling, and burst pipe repair. Meanwhile, key attributes such as pipe diameter, material, burial depth, flow direction, upstream and downstream topology connections, and equipment operation identifiers should be retained to support hydraulic analysis, topology tracing, and equipment operation monitoring.

[0034] To this end, this embodiment constructs a set of preset attribute classification rules. For each type of water facility attribute in the original BIM model data and pipeline network data, the system calculates the retention value score of the attribute by weighted summing of the attribute's evaluation values ​​in topological connectivity, hydraulic and physical characteristics, and operational status indicators. Topological connectivity reflects whether the attribute participates in the description of the topological relationship between components; hydraulic and physical characteristics reflect whether the attribute participates in hydraulic calculations or fluid simulations; and operational status indicators reflect whether the attribute is related to the real-time operation monitoring of the equipment. The retention value score is compared with a preset value score threshold. Attributes with retention value scores that reach or exceed the preset value score threshold are identified as target attributes and retained, while attributes with retention value scores below the preset value score threshold are identified as non-target attributes and removed. Through this rule, the system constructs a water-specific semantic filtering matrix. The key retention attributes and mandatory removal contents corresponding to various water facilities are shown in Table 1.

[0035] Specifically, the above retention value score is calculated using the following formula:

[0036] in, This represents the rating factor for this attribute in the dimension of topological connectivity. This represents the evaluation factor for this attribute in the dimension of hydraulic and physical properties. This represents the evaluation factor of this attribute in the dimension of operational status indicators. The values ​​of the three evaluation factors are all in the range of [0, 1]. , , Let be the weight coefficients corresponding to each dimension, and satisfy . + + =1.

[0037] As an optional implementation, in the preset attribute classification rules, the weight coefficients of the three evaluation factors—topology connectivity, hydraulic and physical characteristics, and operational status indicators—are configured according to the dynamic needs of the application scenario. For example, in a pipeline network operation and maintenance scenario, increasing the weight coefficient of the topology connectivity factor allows attributes such as flow direction and upstream / downstream connection relationships to receive higher retention value scores; in an equipment maintenance scenario, increasing the weight coefficient of the operational status indicator factor allows the equipment's operating parameter attributes to receive higher retention value scores.

[0038] As an example, when attributes are directly used to construct upstream and downstream connections, node-pipeline connections, or device interface relationships, Set to 1; when the attribute is only used to assist in validating topological relationships, set to 1. Set to 0.5; when it is independent of topological relationships, Set to 0. Correspondingly, when the attribute is directly used as input or constraint for hydraulic calculations, it will... Set to 1; set to 0.5 when used as an auxiliary calculation parameter; set to 0 when unrelated to hydraulic calculations; when the attribute is a field for real-time equipment operation monitoring, set to... Set to 1; set to 0.5 for non-real-time operation and maintenance fields; set to 0 for fields unrelated to operation monitoring. As an example, you can set... =0.4、 =0.35、 =0.25; Each weight coefficient can be adjusted according to the specific business scenario.

[0039] Table 1. Semantic Filtering Matrix Specific to Water Utilities

[0040] It should be noted that the above-mentioned quantitative indicators are exemplary results obtained under specific project data, model accuracy, and hardware conditions, used to illustrate the technical effects achievable in this embodiment, and do not constitute a fixed numerical limitation on the scope of protection of this application. Actual indicators can be adjusted according to the complexity of the original model, the number of attribute fields, the component type, and preset simplification parameters.

[0041] As an example, the value rating threshold is set at 0.6, meaning that a value rating of 0.6 or higher is retained. Attributes with a value of 0.6 or higher are identified as target attributes and retained; attributes with a value lower than 0.6 are excluded. The attribute was identified as a non-target attribute and removed.

[0042] Furthermore, step S20 includes steps S21 to S24: Step S21: Obtain the component type of each vertex in the original BIM model data after attribute filtering; Step S22: Determine the corresponding business importance weight based on the component type; Step S23: The original geometric error of the vertex is weighted according to the business importance weight to obtain the corrected geometric error matrix; Step S24: Determine the collapse cost of each edge in the original BIM model data after attribute filtering based on the corrected geometric error matrix, perform edge collapse operations sequentially in order of low to high collapse cost, and output the corresponding model data when the preset number of faces is reached, thereby obtaining the lightweight model data corresponding to multiple detail levels.

[0043] In the geometric mesh simplification stage, for different waterworks components, this embodiment abandons the traditional QEM (Quadric Error Metrics) algorithm that relies solely on geometric curvature. Instead, it introduces business importance weights to correct vertex geometric errors, achieving differentiated simplification intensity control. Furthermore, it outputs lightweight models at different detail levels in stages according to multiple preset facet count targets. For each vertex in the BIM model, the system first parses the semantic type of the component to which the vertex belongs and assigns a corresponding business importance weight based on the component type. Specifically, for each vertex in the BIM model… Let its original geometric error matrix be... The system determines the corresponding business importance weight based on the semantic type of the component to which the vertex belongs. The corrected geometric error matrix is ​​calculated according to the following formula:

[0044] in, Represents vertices The original geometric error matrix, This indicates the business importance weight of the component type to which the vertex belongs. This represents the corrected geometric error matrix.

[0045] Through the above modifications, core process components, such as the pump impeller housing and the main inlet valve core components, are assigned higher business importance weights, for example, by setting... At this point, the geometric error in the region is amplified. When calculating the minimum shrinkage cost, the edge collapse algorithm prioritizes protecting the geometric precision of this region to prevent deformation of water equipment features due to oversimplification, which could affect the intuitive judgment of equipment status by maintenance personnel. For vertices that are not process auxiliary components, such as greenery, sunshades, and walls, lower business importance weights are assigned, their geometric errors are compressed, and the edge collapse operation is performed in advance, thereby achieving a significant reduction in the number of faces. Moreover, the simplification of such components does not affect the identification and operation of core water business. In addition, the pipe network data after attribute filtering does not undergo mesh simplification; its geometry remains as a linear vector, retaining only the filtered attribute information, which is directly used for subsequent hybrid spatial index construction.

[0046] After correcting the geometric errors of each vertex, the system calculates the collapse cost of each edge in the BIM model based on the corrected geometric error matrix. The collapse cost reflects the degree of impact on the overall shape of the model after the edge is merged. During execution, the system arranges the edges in order of increasing collapse cost. Since the edge with the lowest cost has the least impact on the model shape after merging, it is merged first. The merged new vertex is then included in subsequent edge collapse calculations, iterating until the preset face count target is reached. Whenever the current face count of the model is reduced to a certain preset face count target, the system outputs the model data corresponding to that preset face count target as a lightweight model for the corresponding detail level. Edge collapse is then performed on the remaining mesh until the next preset face count target is reached and the model is output again, ultimately obtaining lightweight model data corresponding to multiple detail levels.

[0047] To generate multi-level LOD models corresponding to different view distances, the system records the original vertex identifiers, merged target vertex identifiers, vertex position changes, and component identifiers involved in each edge collapse operation, forming a progressive simplification record. The system outputs corresponding model data when multiple preset face count targets are reached: the model retaining only the outer contours and main structures is used as the skeleton model layer; the model retaining the geometry of main equipment and core processes is used as the standard model layer; and the high-precision model before simplification or the model processed with a lower simplification ratio is used as the fine model layer. The pipeline schematic layer is generated from the pipeline centerline, main line topology, and core hub locations. The model data at each detail level retains unified component identifiers, and the vertex mapping relationship between adjacent detail levels is saved through the progressive simplification record, so that the data of the corresponding detail level can be loaded according to the current view distance at runtime.

[0048] Step S30: Based on the lightweight model data and the attribute-filtered pipeline data, construct a three-layer hybrid spatial index consisting of a global rule grid, an urban quadtree, and a pipeline linear R-tree.

[0049] Lightweight model data and attribute-filtered pipeline network data need to be queried and scheduled efficiently. City-level pipeline network data is extremely large; the number of pipe segments in the water supply network of a single medium-sized city can reach tens to hundreds of thousands. If a globally unified index is used, the system needs to traverse all pipeline network data to determine which pipe segments enter the viewport when the user's perspective moves. Query time increases linearly with the data size, which cannot meet the needs of real-time interaction. The special characteristic of the water utilities scenario is the high spatial correlation between point structures and linear pipelines. When a user views a water plant, the system needs to simultaneously load the main pipelines connected to that water plant. Therefore, the index structure must not only be able to efficiently retrieve point structures and linear pipeline data separately, but also enable fast linked queries from point to line. A single quadtree is highly efficient for retrieving point structures, but its efficiency drops significantly when performing topological queries on dense linear pipe networks. A single R-tree is highly efficient for retrieving linear data, but the cost of building and maintaining its global index increases dramatically with the size of the data. Neither of these two indexes can meet the needs of rapid joint retrieval of point structures and linear pipe networks in water management scenarios.

[0050] Based on this, this embodiment constructs a three-level linked hybrid spatial index structure. The first level is a global regular grid, which divides the spatial scope of the urban water management scenario into multiple regularly arranged grid units at a first-level grid scale. A hash mapping relationship is established based on the spatial coordinates of each grid unit. Candidate areas can be quickly located through constant-time hash lookup using a single grid number, while excluding large areas that do not intersect with the current viewport. The second level is a quadtree for urban areas, built for grid units within the urban area, used to retrieve point-like individual structure data in the lightweight model data. The third level is a pipeline linear R-tree, used to retrieve pipeline data after attribute filtering. Its leaf nodes store the minimum bounding rectangle of each pipe segment. The three levels of indexes are linked through spatial candidate range transfer and topology connection verification. Once the quadtree index retrieves a point-like individual structure instance, the system extracts the spatial boundary box of that instance and generates a candidate query range for the pipeline network according to a preset expansion radius. The pipeline network's linear R-tree is used to retrieve candidate pipe segments that spatially intersect with the candidate query range. The system then matches the candidate pipe segments with the corresponding topological connection identifiers of the point-like individual structure instances, filtering out associated pipe segments with actual topological connections from the candidate segments. Thus, the spatial index is used to narrow down the candidate set, and the topological connection identifiers are used to confirm the actual connection relationships, enabling a joint retrieval from point-like structures to linear pipeline networks.

[0051] As an example, the first-level grid scale is 1km × 1km. At this scale, each grid cell covers a geographical area of ​​approximately 1 square kilometer. The main urban areas of most cities in China have hundreds to thousands of grid cells, and hash mapping can complete grid location in constant time. The partitioning depth of the quadtree in the urban area is dynamically adjusted. When the density of structures within a grid cell exceeds a preset threshold, the quadtree is subdivided to the next level until the number of structures contained in each leaf node does not exceed a preset upper limit. The construction method of the pipeline network linear R-tree is to use the minimum bounding rectangle of each pipeline segment as the leaf node of the R-tree, and aggregate from bottom to top to generate the R-tree index structure.

[0052] Step S40: Based on the current viewpoint position, query the target data to be loaded within the current viewport range through the three-layer hybrid spatial index, and render the queried target data to the display device with the corresponding level of detail according to the preset LOD classification threshold range to which the current viewing distance belongs.

[0053] Based on a three-layer hybrid spatial index, this embodiment enables on-demand querying and hierarchical rendering of runtime data. As the user's perspective continuously changes within the 3D scene, each frame requires re-determining the visible data within the viewport based on the current viewpoint position. The real-time nature of the query directly impacts the smoothness of the interactive experience. The system, based on a linkage mechanism of the three-layer hybrid spatial index, quickly filters the target data to be loaded within the current viewport from massive amounts of data, then determines the corresponding level of detail based on the current viewing distance, and renders the target data to the display device with matching precision.

[0054] In this embodiment, the target data includes target lightweight model data and target pipeline data.

[0055] Specifically, step S40 includes steps S41 to S45: Step S41: Determine the current viewport range based on the current viewpoint position and viewing direction, and determine the viewport clipping bounding box based on the current viewport range; Step S42: Determine the grid number covered by the viewport clipping bounding box based on the spatial coordinates of the viewport clipping bounding box, and locate the active grid cell intersecting with the viewport clipping bounding box in the global regular grid based on the grid number; Step S43: For active grid cells with an urban quadtree index, iteratively search downwards from the root node of the urban quadtree to extract point-like single-structure instances that fall within the viewport clipping bounding box, and obtain the target lightweight model data; for active grid cells without an urban quadtree index, directly extract point-like single-structure instances that intersect with the viewport clipping bounding box within the active grid cell. Step S44: Extract the spatial boundary box of the point-like single-unit structure instance, and expand the spatial boundary box according to a preset expansion radius to obtain the candidate query range of the structure's pipeline network; retrieve candidate pipe segments that spatially intersect with the candidate query range of the structure's pipeline network through the pipeline network linear R-tree, and filter out the associated pipe segments that have a topological connection relationship with the point-like single-unit structure instance from the candidate pipe segments according to the pre-stored topological connection identifier; Step S45: Using the viewport clipping bounding box as the query range, retrieve the visible pipe segments that intersect with the viewport clipping bounding box through the pipeline network R-tree; merge the associated pipe segments with the visible pipe segments and remove duplicates to obtain the target pipeline network data.

[0056] When the user's viewpoint changes, the system determines the viewport range based on the current viewpoint position and viewing direction, and then calculates the viewport clipping bounding box based on this viewport range. This serves as a spatial constraint for subsequent queries. Specifically, the viewport extent is determined by the viewpoint coordinates, the viewing angle orientation, and the camera's horizontal and vertical field of view. The viewport clipping bounding box is the spatial boundary obtained after calculating the axis-aligned bounding box of the viewport extent.

[0057] In order to quickly locate data related to the current viewport in massive amounts of data, this embodiment designs a three-layer linkage query mechanism, with each layer adopting a different indexing strategy for different data characteristics.

[0058] The first layer uses a global regular grid for coarse screening. The system divides the spatial scope of the city-level water management scenario into regular grid units according to a preset scale (e.g., 1km × 1km), and establishes a hash mapping based on the spatial coordinates of each grid unit. During the query, the system calculates the grid number it covers based on the spatial coordinates of the viewport clipping bounding box, and then locates the active grid cell corresponding to each grid number in the global regular grid through hash mapping. This narrows the subsequent search scope from the entire scene to the relevant grid area. The hash lookup time complexity for a single grid number is O(log n). When the viewport clipping bounding box covers k grid cells, the overall time complexity of the query at this layer is O(k), thus avoiding traversing all scene data.

[0059] The second layer uses a quadtree for precise positioning within the urban area. The first layer selects the grid cells. In this process, not all areas require detailed searching. For active grid cells with an urban quadtree index, the system iteratively searches downwards from the root node of the urban quadtree, determining layer by layer whether the spatial region represented by each node intersects with the viewport clipping bounding box. If they do not intersect, the system skips the node and all its child nodes; if they intersect, it continues to the next level until it reaches the leaf node. Finally, it extracts the geometric instances and spatial boundaries of all point-like individual structures falling within the viewport range, obtaining the target lightweight model data required for the current viewport. For active grid cells without an urban quadtree index, the system directly extracts the point-like individual structure instances within the active grid cell that intersect with the viewport clipping bounding box. Through this multi-path retrieval strategy, the system ensures retrieval accuracy in high-density urban scenes while avoiding the additional overhead of maintaining redundant indexes for low-density areas.

[0060] The third layer is used to complete the pipeline network spatial candidate query and the structure topology association query. The leaf nodes of the pipeline network linear R-tree store the minimum bounding rectangle of each pipe segment and the corresponding pipe segment identifier. The pipeline network topology data stores the upstream and downstream node identifiers or equivalent topology connection identifiers of each pipe segment. When the urban quadtree retrieves point-like individual structure instances, the system extracts the spatial bounding boxes of these point-like individual structure instances and expands the spatial bounding boxes according to a preset expansion radius to obtain the pipeline network candidate query range. The pipeline network linear R-tree first returns the candidate pipe segments that intersect with the spatial query range of the structure. The system then filters the candidate pipe segments according to the topology connection identifier to obtain the associated pipe segments that are actually connected to the point-like individual structure instance. At the same time, the system directly queries the pipeline network linear R-tree with the viewport clipping bounding box to obtain the visible pipe segments located within the current viewport. After merging and deduplicating the associated pipe segments with the visible pipe segments, they are used as the target pipeline network data to be loaded. This avoids equating spatial intersections directly with topological connections and prevents the omission of pipe segments that are not connected to the current point structure but are located within the viewport.

[0061] Furthermore, step S40 includes steps S46 to S48: Step S46: Determine the current viewing distance based on the current viewpoint position and the spatial position of the target data; Step S47: Determine the corresponding target detail level according to the preset LOD classification threshold range to which the current viewing distance belongs. The preset LOD classification threshold range is divided into pipeline schematic layer, skeleton model layer, standard model layer and fine model layer according to the viewing distance from far to near. Step S48: Render the target data to the display device based on the target detail level.

[0062] During the rendering stage, in order to avoid unnecessary performance overhead caused by loading detailed models from a distance, and to avoid affecting display quality by loading overly coarse models from a close distance, this embodiment divides the BIM model data into four detail levels according to the multi-view distance business requirements of macro-flood control scheduling and micro-process operation and maintenance in water affairs scenarios, from far to near. Each detail level corresponds to a LOD grading threshold range.

[0063] Specifically, Level 0 is the pipeline schematic layer, located at a line-of-sight distance of 3000 meters or more. This layer is activated when the line of sight to the city's main pipeline network is at a macro scale, rendering only the central topology and 3D markers of key hub stations. This layer does not render pipe wall and diameter details, has the smallest data volume, and is used for macro-level situational awareness. Level 1 is the skeleton model layer, used when the line of sight is greater than or equal to 800 meters and less than 3000 meters. When activated, it renders the simplified outer shell of the macroscopic pipeline network skeleton and structures such as water plants and pumping stations, and removes all internal components, significantly reducing rendering overhead while maintaining scene recognizability. Level 2 is the standard model layer, used when the view distance is greater than or equal to 200 meters and less than 800 meters. When activated, Level 3 renders a standard, detailed BIM model of the entire digital pipeline network, including the 3D pipe walls and individual water treatment plants, carrying core process attributes. It is the primary viewing level for daily operation and maintenance. Level 3 is the detailed model layer, used when the viewing distance is less than 200 meters. When activated, it renders detailed components and processes with high precision, such as water pump control cabinets, specific valve flanges, and filter screens. It also completes virtual-real mapping and binding with real-time operating data of the Internet of Things (IoT) for equipment maintenance and precision operation. The above four levels switch naturally through viewing distance thresholds to ensure that the displayed content matches the user's viewing needs at any viewing distance.

[0064] As an optional implementation, a transition interval with overlapping viewing distances is set between the viewing distance thresholds of adjacent detail levels. When the current viewing distance enters the transition interval, a fade-out operation is performed on the data of the previous level and a fade-in operation is performed on the data of the next level within the transition interval, so that the two levels are visually smoothly connected.

[0065] As an example, the range of the transition interval can be dynamically configured according to a preset ratio around a preset LOD threshold. For instance, when the view distance threshold between the standard model layer and the fine model layer is 200 meters, the system can set the transition interval to 180 meters to 220 meters, that is, expanding the range by 10% before and after this threshold. Within this transition interval, the standard model layer gradually fades out, and the fine model layer gradually fades in. When the view distance is less than 180 meters, it completely switches to the fine model layer, and when the view distance is greater than 220 meters, it completely switches to the standard model layer. The 10% expansion ratio in this example is only a feasible value. In actual applications, it can be flexibly adjusted according to scene complexity, model differences, and performance requirements.

[0066] Optionally, a dynamic weight allocation method can be used to control the fade-in and fade-out degree within the transition interval. The initial transition weight corresponding to the current target detail level is obtained; this weight is the coefficient controlling the change in opacity of that level from 0 to 1. Simultaneously, the projected area of ​​the target lightweight model data on the display device, its motion speed within the viewport, and its texture complexity are obtained. The projected area reflects the visual proportion of the model on the display screen; a larger projected area makes the human eye more sensitive to transition details, so the transition speed should be appropriately reduced to make the weight change smoother. Motion speed reflects the drasticness of the viewpoint change; the faster the motion speed, the lower the human eye's ability to distinguish transition details, so the transition speed can be appropriately increased to accelerate the weight change and reduce visual ghosting. Texture complexity reflects the richness of detail on the model surface; the more complex the texture, the more obvious the texture flickering during the transition process, requiring more precise adjustment of the transition weights.

[0067] The system dynamically adjusts the initial transition weights based on the aforementioned parameters to obtain the adjusted transition weights. These adjusted transition weights then control the fade-in and fade-out levels of the target data within the transition interval. By introducing a visual perception factor to dynamically adjust the transition weights, the transition speed is matched to the visual sensitivity of the current scene, reducing unnecessary transition computation overhead while ensuring visual smoothness.

[0068] Building upon fade-in / fade-out, to further eliminate abrupt changes in geometry when switching to adjacent detail levels, this embodiment introduces a dual rendering mechanism for inter-level gradation. Within the transition interval, data from two adjacent detail levels are loaded simultaneously, and their respective opacities are continuously adjusted according to the viewing distance to achieve smooth blending. Specifically, step S48 is followed by steps S481-S483: Step S481: Determine the transition interval of view distance overlap between the target detail level and adjacent detail levels; Step S482: When the current viewing distance is within the transition interval, the first transparency weight corresponding to the target detail level and the second transparency weight corresponding to the adjacent detail level are determined according to the relative position of the current viewing distance within the transition interval. The sum of the first transparency weight and the second transparency weight is 1, and the first transparency weight and the second transparency weight change continuously with the current viewing distance. Step S483: Render the target data corresponding to the target detail level and the target data corresponding to the adjacent detail level according to the first transparency weight and the second transparency weight, respectively.

[0069] During LOD (Level of Detail) level switching, model data at different detail levels have different geometric precision and face counts. When the user's viewing distance crosses the level switching threshold, if they jump directly from one level to another, even with a fade-in / fade-out transition using transparency, the differences in vertex positions and geometric contours between the two levels will still result in double images of geometric shapes or contour misalignment, visually appearing as a geometric abrupt change. To address this issue, this embodiment pre-sets a transition interval for overlapping viewing distances for each adjacent detail level. This transition interval spans the original level switching threshold, ensuring that both levels are simultaneously active within a certain viewing distance range.

[0070] The system determines the transition interval for view distance overlap between the current target detail level and adjacent detail levels based on the preset view distance range for each detail level. For example, the view distance range for the fine model level (Level 3) is <200m, and the view distance range for the standard model level (Level 2) is 200m ≤ view distance < 800m. Therefore, they form an overlapping transition interval around 200m. For instance, the transition interval can be set to 190m~210m, ensuring that both levels are active simultaneously when the view distance is within this range. When the current view distance falls into this transition interval, the system calculates the first transparency weight corresponding to the target detail level and the second transparency weight corresponding to the adjacent detail level based on the relative position of the current view distance within the transition interval. The sum of these two weights is always 1. In one implementation, the weight values ​​are determined by linear interpolation. When the viewing distance moves from the near end to the far end of the transition interval, the first transparency weight decreases continuously from 1 to 0, while the second transparency weight increases continuously from 0 to 1. This ensures that the visual contributions of the two levels change smoothly and continuously throughout the transition process.

[0071] After determining two sets of transparency weights, the system renders the target data corresponding to the target detail level with the first transparency weight and the target data corresponding to the adjacent detail level with the second transparency weight. The rendering results are then blended and output to the display device. Through this mechanism, within the transition interval of level switching, the geometric data of two adjacent detail levels are simultaneously visible but the transparency changes continuously. Utilizing the visual characteristic that the human eye is more sensitive to gradual changes in transparency than to abrupt changes in geometric contours, this effectively masks abrupt geometric shape changes caused by differences in vertex positions, making the model transition perceived by the user during continuous changes in viewing distance smoother and more natural.

[0072] This embodiment filters the original BIM model data and pipeline network data based on preset attribute classification rules, extracts the target attributes to be retained, and performs differentiated mesh simplification on the attribute-filtered BIM model data according to the simplification parameters corresponding to different component types. This effectively reduces the amount of data to be transmitted and rendered while retaining core business attributes. By constructing a three-layer hybrid spatial index of global rule grid, urban quadtree, and pipeline line type R-tree based on lightweight model data and attribute-filtered pipeline network data, and querying target data within the current viewport range through this three-layer hybrid spatial index based on the current viewpoint position, point structures and linear pipeline network data can be jointly retrieved using the linkage query mechanism of the three-level index, significantly reducing the spatial query time. Furthermore, by rendering the queried target data to the display device at the corresponding level of detail according to the preset LOD level threshold range to which the current viewing distance belongs, the system only loads and renders the level of detail data required for the current viewing distance, reducing the loading overhead of unnecessary level data. At the same time, the multi-level LOD level division ensures that the display content at different viewing distances matches the viewing needs. The above-mentioned methods work together to comprehensively improve the loading response speed of BIM and pipeline network data in urban water affairs digital twin scenarios from three aspects: data volume reduction, query efficiency improvement, and on-demand rendering.

[0073] Based on the above embodiments of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 Based on the current viewpoint location, after querying the target data to be loaded within the current viewport range through a three-layer hybrid spatial index, the lightweight loading method for massive BIM and pipeline network data of water affairs digital twin further includes steps S50~S70: Step S50: Obtain the preloading evaluation parameters of each unloaded component in the current viewport periphery. The preloading evaluation parameters include the view orientation factor, the historical access frequency factor, and the business process topology association factor.

[0074] In this embodiment, the current viewport periphery refers to the adjacent area outside the current viewport range boundary, typically defined by a radius of a preset multiple of the current viewing distance (e.g., 1.5 times). Data within this area has not yet been loaded, but may enter the viewport range with slight movement of the user's viewpoint, and is therefore a target object for preloading. The preloading evaluation parameters for each unloaded component are used to quantify the urgency of loading that component.

[0075] The pre-loaded evaluation parameters include the viewing orientation factor, historical access frequency factor, and business process topology correlation factor. The viewing orientation factor is characterized by the cosine of the angle between the direction vector pointing from the current viewpoint to the component and the current viewpoint's line-of-sight direction vector. The smaller the angle, the larger the value of the viewing orientation factor. When the angle is greater than 90 degrees, the component is located behind the viewport, and the viewing orientation factor is zero. The historical access frequency factor is obtained by normalizing the number of times each component has been accessed within a preset time period (e.g., 24 hours) with the highest number of times the component has been accessed in the current entire scenario. Components with higher access frequencies have higher business importance or user attention. The business process topology correlation factor is determined based on whether the component is on the core process path corresponding to the current business scenario.

[0076] Step S60: Based on the perspective orientation factor, the historical access frequency factor, and the business process topology association factor, the weighted sum is performed according to their respective weight coefficients to obtain the comprehensive preloading score of each unloaded component.

[0077] This embodiment constructs a preloading priority score calculation model based on dynamic weight distribution. This model is used to quantitatively assess the urgency of preloading each unloaded component in the current viewport's peripheral neighborhood before the user's viewpoint moves to a new area, so as to load data that may enter the viewport in advance and reduce the waiting time during actual loading.

[0078] Specifically, the system maintains a dynamic preload candidate queue in the background in real time to manage all unloaded components in the peripheral area of ​​the current viewport. For each component in the preload candidate queue, the system calculates the view orientation factor, historical access frequency factor, and business process topology association factor, and then performs a weighted sum according to their respective weight coefficients to obtain the comprehensive preload score of the component.

[0079] Let the viewing angle orientation factor be... The number of historical visits to the component within the preset time period is The highest number of historical visits to a component in the current scenario is The business process topology correlation factor is The corresponding weighting coefficients are respectively , , If the sum of all weighting coefficients is 1, then the overall preload score is calculated. The calculation method is as follows:

[0080] Among them, the perspective orientation factor Let the normalized 3D vector of the current camera's line of sight be... The vector pointing from the viewpoint to the geometric center point of the unloaded component is The angle between the two is .definition:

[0081] Historical access frequency factor ,in This refers to the cumulative frequency of a component being clicked, viewed, or having its topology query initiated within a preset time period. The frequency of the component with the highest number of visits in the current entire scenario; when When the value is 0, the normalization denominator is set to 1 to make the value of the historical access frequency item 0 and avoid division by zero.

[0082] Business process topology correlation factors The determination is based on whether the component is on the core process path corresponding to the current business scenario. Definition:

[0083] As an optional implementation, the system dynamically adjusts the weight coefficients of the perspective orientation factor, historical access frequency factor, and business process topology association factor according to the current business scenario type.

[0084] As an example, in the scenario of pipe burst repair, the weight coefficient of the business process topology association factor is increased, so that components related to the repair path receive a higher preloading priority; in the scenario of pipeline inspection, the weight coefficient of the view orientation factor is increased, so that components in front of the view are preloaded first; in the scenario of data analysis, the weight coefficient of the historical access frequency factor is increased, so that frequently accessed components maintain a higher preloading priority.

[0085] The weighted summation calculation above yields a comprehensive preloading score for each component. This score quantifies the overall urgency of preloading the component. A higher score indicates a stronger overall preloading requirement for the component based on the current viewpoint, historical access patterns, and business scenario.

[0086] Step S70: When the comprehensive preloading score reaches the preloading trigger threshold, the lightweight model data corresponding to the unloaded component is asynchronously preloaded in the background.

[0087] The system sets a dynamic score threshold as the preloading trigger threshold. During the idle intervals of each rendering frame, the system automatically scans all neighboring meshes within the viewport range and calculates the comprehensive preload score for each unloaded component in the current viewport's peripheral neighborhood. Once the comprehensive preload score of a component reaches or exceeds the preload trigger threshold ( The system immediately starts a background asynchronous worker thread to download the lightweight model data corresponding to the component, such as a Level 2 or Level 3 model file; in a browser runtime environment, the background asynchronous worker thread can be implemented by a Web Worker.

[0088] Background asynchronous preloading executes during the idle time of the main rendering thread. It downloads the corresponding lightweight model data through a separate asynchronous thread, without affecting the rendering frame rate of the current scene. The preloaded data is stored in a cache. When the user's view actually moves to that area, the data is ready and can be read directly from the cache for rendering, without waiting for network transmission and disk reads.

[0089] To avoid resource contention caused by multiple components triggering simultaneously, the system can also sort eligible components according to their comprehensive preloading scores from high to low, prioritizing the loading of the component with the highest score.

[0090] As an optional implementation, the timing of preloading is dynamically determined based on the rendering load of the current frame. Specifically, the rendering frame rate and GPU utilization are monitored in real time. When the rendering frame rate is higher than a preset frame rate threshold and the GPU utilization is lower than a preset utilization threshold, the system is determined to be in an idle state, and the preloading operation is triggered. When the rendering frame rate decreases or the GPU utilization increases, the preloading operation is paused to prioritize the smoothness of rendering the current scene.

[0091] This embodiment obtains the viewing orientation factor, historical access frequency factor, and business process topology correlation factor of each unloaded component in the current viewport's peripheral neighborhood. These factors are then weighted and summed to obtain a comprehensive preloading score. When the score reaches a threshold, the corresponding lightweight model data is asynchronously preloaded in the background, enabling the prediction and early loading of potential user observation targets. Compared to the traditional approach of loading data only after the user's viewpoint moves, this method incorporates the user's line of sight, historical access patterns, and the topological correlation of the current business scenario into the preloading decision-making process. This makes the preloading behavior forward-looking and business-specific. When the user's viewpoint moves to a new area, the target data is already ready, effectively reducing waiting time and improving interaction smoothness. Simultaneously, the background asynchronous preloading mechanism fully utilizes the rendering thread's idle time, avoiding negative impacts on the current scene's frame rate and improving the system's data scheduling efficiency in multi-user concurrent scenarios.

[0092] Based on the above embodiments of this application, in the third embodiment of this application, the same or similar content as the above embodiments can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3 Based on the preset LOD (Level of Detail) threshold range to which the current viewing distance belongs, the queried target data is rendered to the display device at the corresponding level of detail. The lightweight loading method for massive BIM and pipeline network data in water affairs digital twins further includes steps S80-S110: Step S80: Store the loaded target data into the cache; In this embodiment, the loaded target data is stored in the cache after rendering is complete. The cache adopts a multi-level storage architecture, including a memory cache, a local high-speed cache (such as IndexedDB or other local persistent caches), and a distributed cluster cache. The memory cache has the fastest access speed and is used to store data that is frequently accessed in the current frame or recent frames; the local high-speed cache is used for persistent storage of large-scale data; and the distributed cluster cache is used for data sharing in multi-user concurrent scenarios. When storing data in the cache, the system allocates it to the appropriate cache level based on the access timeliness, access frequency, and business priority. Data that is accessed frequently and has high business priority is stored in the memory cache first, while data that is accessed infrequently or has low business priority is stored in the local high-speed storage or the distributed cluster cache.

[0093] Step S90: For each cache block in the cache, obtain the time coldness parameter, access frequency parameter and business priority parameter of the cache block; A cache block is the basic unit of cache management. Each cache block stores the model data and attribute information corresponding to a component or data fragment. The time coolness parameter records the time since the cache block was last accessed. This parameter measures the timeliness of the data; the longer it has been since it was last accessed, the lower the probability of it being accessed again. The access frequency parameter records the total number of times the cache block has been accessed during system operation. This parameter measures the popularity of the data; the more times it is accessed, the higher its business value or user attention.

[0094] The business priority parameter reflects the business importance of the facility corresponding to the data stored in the cache block. This parameter is obtained by first determining the facility level to which the data stored in the cache block belongs, and then determining the corresponding business priority parameter value based on that facility level. Different facility levels correspond to different business priority parameter values. Data corresponding to core process components such as water plants and raw water pumping stations, as well as the main water transmission pipeline network, has the highest business priority, while data corresponding to non-process auxiliary components has the lowest business priority. The specific values ​​for different levels can be configured according to actual business needs. In the subsequent calculation of the obsolescence priority value, the business priority parameter is used to reduce the obsolescence priority of cache blocks corresponding to higher facility levels, ensuring that core facility data can still be retained when cache space is limited.

[0095] Specifically, the time-cooling parameter is normalized based on the system's longest survival threshold. Let the current time be... The last time the cache block was accessed was The system's maximum survival threshold is set to be The normalized time-cooling parameter is then... This value is between 0 and 1. The larger the value, the longer the cache block has not been accessed and the higher the urgency of its eviction.

[0096] The system maintains an access counter for each cache block. The counter is incremented by 1 each time the cache block is hit. The access frequency parameter is the cumulative value of the counter within the current system cycle.

[0097] Step S100: Determine the eviction cold value of the cache block based on the time coldness parameter, the access frequency parameter, and the service priority parameter; To prevent high-priority but infrequently accessed core water infrastructure (such as raw water pumping stations located in remote suburbs) from being mistakenly evicted by the traditional LRU (Least Recently Used) algorithm when cache space is insufficient, this embodiment constructs a three-dimensional hybrid weighted eviction algorithm that integrates access timeliness, access frequency, and water service priority. The system calculates the eviction coldness value for each cache block by fusing the time coldness parameter, access frequency parameter, and service priority parameter according to their respective weights. The eviction coldness value comprehensively reflects the urgency of eviction of the cache block at the current moment; a higher value indicates that it should be evicted more quickly.

[0098] In this embodiment, the time cooling parameter is set as follows: The access frequency parameter is The business priority parameter is The corresponding weighting coefficients are respectively , , And satisfy Then eliminate the cooling value. The calculation method is as follows:

[0099] in, The normalization coefficient is dynamically adjusted by the terminal configuration of the running host (such as the available video memory and memory baseline), and satisfies... .

[0100] The core quantization parameters are defined as follows: (Time-related coolness): This represents the proportion of time elapsed since the last time this data block was viewed by the camera, relative to the system's longest survival threshold. For the current moment, The time when the cache block was last accessed. The preset maximum survival time; when the calculation result is greater than 1, Cut off to 1, so that The value range is [0, 1].

[0101] (Access Frequency): This is the cumulative number of times the model data corresponding to this cache block is loaded into the rendering pipeline during the current system cycle. Fvisit is an integer greater than or equal to 0. A constant 1 is added to the denominator of the formula to avoid division by zero when the Fvisit of a new cache block is 0, and to give cache blocks with lower access counts a higher eviction coldness component.

[0102] Water business priority For the quantization assignment criteria, please refer to Table 2 below: Table 2. Criteria for Quantitative Assignment of Priority Values ​​for Water Services

[0103] According to the above formula, the eviction cooling value of a data block is determined by three factors: the larger the time cooling parameter (the longer it has not been accessed), the higher the eviction cooling value; the lower the access frequency, the higher the eviction cooling value; and the higher the business priority, the greater the reduction in the eviction cooling value. The combined effect of these three factors ensures that the eviction decision takes into account timeliness, popularity, and business importance.

[0104] Step S110: When the cache space reaches a preset capacity threshold, the cache block with the highest evictory coldness value is evicted first, according to the order of the evictory coldness value of each cache block from high to low.

[0105] In this embodiment, the system monitors the cache space occupancy rate in real time. When the used cache space reaches a preset capacity threshold (e.g., 85% of the total capacity), an eviction operation is triggered. The system sorts all cache blocks according to their eviction coldness value from high to low, prioritizing the eviction of the cache block with the highest coldness value to release storage space until the cache space occupancy rate falls back to a safe level (e.g., 70% of the total capacity).

[0106] As an optional implementation, for cache blocks with the highest business priority parameter, their eviction coldness value is forcibly set to the lowest value after calculation, so that they are always ranked last in the eviction sorting, thereby ensuring that core facility data resides in memory and is not evicted.

[0107] This embodiment calculates the eviction coldness value by comprehensively considering three dimensions: time-based coldness parameter, access frequency parameter, and business priority parameter. Eviction is then performed in descending order of eviction coldness value. This cache eviction mechanism introduces a water affairs business priority dimension on top of the traditional LRU and LFU algorithms. For core facility data with low access frequency but high business importance, such as raw water pumping stations located in remote suburbs, even if their time-based coldness parameter is high and their access frequency parameter is low, their eviction coldness value is effectively suppressed due to their high business priority parameter, preventing accidental eviction. For data with low access frequency and low business priority, their eviction coldness value is high, and they will be prioritized for removal when cache space is insufficient. This three-dimensional eviction mechanism effectively improves the cache hit rate, avoids duplicate network transmission overhead caused by accidental eviction of high-value data, and supports data reuse requirements in multi-user concurrent scenarios.

[0108] Based on the above embodiments of this application, in the fourth embodiment of this application, the same or similar content as the above embodiments can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 4 The method for lightweight loading of massive BIM and pipeline network data using water affairs digital twins further includes steps S101~S102: Step S101: During system initialization, obtain the hardware configuration parameters of the current terminal device; When the system starts, it acquires the hardware configuration parameters of the current terminal device, including video memory capacity, RAM size, and available network bandwidth. These parameters reflect the computing power, storage resources, and network transmission capabilities of the current operating environment, and serve as the basis for subsequent dynamic adjustment of various operating parameters. Different terminal devices have significantly different hardware configurations; for example, high-performance workstations and lightweight mobile devices differ by orders of magnitude in graphics rendering capabilities and memory capacity. Therefore, these parameters need to be uniformly acquired and recorded by the system during the initialization phase.

[0109] Step S102: Dynamically adjust the preload trigger threshold, cache space capacity threshold, and threshold range corresponding to each detail level according to the hardware configuration parameters.

[0110] In this embodiment, based on the obtained hardware configuration parameters, the system performs differentiated configuration of core operating parameters, so that the system can achieve a better operating state on different terminals.

[0111] On high-performance workstations, the large video memory and system memory provide the capacity to support high-precision models. The system automatically increases the cache space capacity threshold to a higher level. For example, it raises the eviction trigger threshold from the default value, allowing more data to reside in memory; it shortens the opacity change step size of the transition interval between detail levels, making the level switching response faster; and it lowers the preload trigger threshold, allowing more potential targets to be loaded in advance, maximizing the display of fine-level model details.

[0112] On low-spec, lightweight mobile devices, such as tablets or phones, video memory and RAM are limited, and network bandwidth may also be constrained. The system automatically lowers the weight of non-process auxiliary components in the lightweight algorithm, allowing these components to be significantly simplified during the mesh simplification stage; it forcibly filters large standard-level and higher models to ensure that only the appropriate level of data required for the current view distance is loaded; simultaneously, it tightens the coarse-sieving range of the global regular grid in the hybrid spatial index, reducing the amount of data returned per query. Through these adjustments, while maintaining a stable frame rate at the preset operating frame rate, the system ensures the smooth operation of core water management business processes in multi-concurrency scenarios.

[0113] As an example, the cache space capacity threshold is adjusted to 90% of the total capacity on high-performance terminals and reduced to 60% to 70% of the total capacity on low-performance terminals. The preload trigger threshold is lowered on high-performance terminals to allow more components to meet the preload conditions; it is raised on low-performance terminals to reduce the network and memory usage of preload. The threshold ranges corresponding to each detail level are set wider for fine model layers on high-performance terminals, while the LOD grading threshold range for fine model layers is narrowed or fine model layers are directly disabled on low-performance terminals. The specific values ​​mentioned above can be dynamically adapted according to the actual terminal hardware configuration, and this embodiment is not limited to the above fixed values.

[0114] This application provides a lightweight loading device for water affairs digital twin massive BIM and pipeline network data. The water affairs digital twin massive BIM and pipeline network data lightweight loading device includes: at least one processor; and a memory communicatively connected to at least one processor; wherein the memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor to enable at least one processor to execute the water affairs digital twin massive BIM and pipeline network data lightweight loading method in the above embodiment 1.

[0115] The following is for reference. Figure 5The diagram illustrates a structural schematic suitable for implementing the lightweight loading device for water affairs digital twin massive BIM and pipeline network data in the embodiments of this application. The lightweight loading device for water affairs digital twin massive BIM and pipeline network data in the embodiments of this application may include various hardware and software components for implementing the lightweight loading method for water affairs digital twin massive BIM and pipeline network data. Figure 5 The water affairs digital twin massive BIM and pipeline network data lightweight loading device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0116] like Figure 5 As shown, the lightweight loading device for water affairs digital twin massive BIM and pipeline network data may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage device 1003 into the random access memory (RAM) 1004. The random access memory 1004 also stores various programs and data required for the operation of the water affairs digital twin massive BIM and pipeline network data lightweight loading device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the water digital twin massive BIM and pipeline network data lightweight loading device to communicate wirelessly or wiredly with other devices to exchange data. Although the water digital twin massive BIM and pipeline network data lightweight loading device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented alternatively.

[0117] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0118] The lightweight loading device for massive BIM and pipeline network data of water affairs digital twins provided in this application, employing the lightweight loading method for massive BIM and pipeline network data of water affairs digital twins in the above embodiments, can solve the technical problem of slow response speed in loading massive BIM and pipeline network data in urban water affairs scenarios. Compared with the prior art, the beneficial effects of the lightweight loading device for massive BIM and pipeline network data of water affairs digital twins provided in this application are the same as the beneficial effects of the lightweight loading method for massive BIM and pipeline network data of water affairs digital twins provided in the above embodiments, and other technical features in the lightweight loading device for massive BIM and pipeline network data of water affairs digital twins are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0119] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0120] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0121] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the lightweight loading method for water affairs digital twin massive BIM and pipeline network data in the above embodiments.

[0122] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.

[0123] The aforementioned computer-readable storage medium may be included in the water affairs digital twin massive BIM and pipeline network data lightweight loading device; or it may exist independently and not be installed in the water affairs digital twin massive BIM and pipeline network data lightweight loading device.

[0124] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by the water affairs digital twin massive BIM and pipeline network data lightweight loading device, the water affairs digital twin massive BIM and pipeline network data lightweight loading device performs the following: acquires the original BIM model data and pipeline network data of the city-level water affairs scenario; performs attribute filtering on the original BIM model data and pipeline network data based on preset attribute classification rules, extracts the target attributes to be retained, and performs differentiated mesh simplification processing on the attribute-filtered original BIM model data according to the simplification parameters corresponding to different component types and multiple preset face number targets, generating lightweight model data corresponding to multiple detail levels respectively; constructs a three-layer hybrid spatial index of global rule grid, urban quadtree and pipeline network line type R-tree based on the lightweight model data and attribute-filtered pipeline network data; queries the target data to be loaded within the current viewport range through the three-layer hybrid spatial index based on the current viewpoint position, and renders the queried target data to the display device at the corresponding detail level according to the preset LOD classification threshold range to which the current viewing distance belongs.

[0125] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., using an internet connection from an internet service provider).

[0126] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation that may be implemented in systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0127] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0128] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described method for lightweight loading of massive BIM and pipeline network data in water affairs digital twins. This method can solve the technical problem of slow response speed in loading massive BIM and pipeline network data in urban water affairs scenarios. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the lightweight loading method for massive BIM and pipeline network data in water affairs digital twins provided in the above embodiments, and will not be repeated here.

[0129] This application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method for lightweight loading of massive BIM and pipeline network data in water affairs digital twins.

[0130] The computer program product provided in this application can solve the technical problem of slow response speed in loading massive BIM and pipeline network data in urban water affairs scenarios. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the lightweight loading method for massive BIM and pipeline network data of water affairs digital twins provided in the above embodiments, and will not be repeated here.

[0131] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0132] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.

[0133] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A lightweight loading method for massive BIM and pipeline network data in water affairs digital twins, characterized in that, The method for lightweight loading of massive BIM data and pipeline network data in water affairs digital twin includes: Obtain the original BIM model data and pipeline network data for city-level water management scenarios; Based on preset attribute classification rules, attribute filtering is performed on the original BIM model data and the pipeline network data to extract the target attributes to be retained. Then, according to the simplification parameters corresponding to different component types and multiple preset face number targets, differentiated mesh simplification processing is performed on the original BIM model data after attribute filtering to generate lightweight model data corresponding to multiple detail levels. Based on the lightweight model data and the attribute-filtered pipeline network data, a three-layer hybrid spatial index is constructed, consisting of a global rule grid, an urban quadtree, and a pipeline linear R-tree. Based on the current viewpoint position, the target data to be loaded within the current viewport range is queried through the three-layer hybrid spatial index, and the queried target data is rendered to the display device at the corresponding level of detail according to the preset LOD classification threshold range to which the current viewing distance belongs; The step of querying the target data to be loaded within the current viewport range based on the current viewpoint position using the three-layer hybrid spatial index includes: The current viewport range is determined based on the current viewpoint position and viewing direction, and the viewport clipping bounding box is determined based on the current viewport range. The grid number covered by the viewport clipping bounding box is determined based on the spatial coordinates of the viewport clipping bounding box, and the active grid cell intersecting with the viewport clipping bounding box is located in the global regular grid based on the grid number. For an active grid cell with an urban quadtree index, iteratively search downwards from the root node of the urban quadtree to extract point-like individual building instances that fall within the viewport clipping bounding box, and obtain the target lightweight model data. For active grid cells that do not have an urban quadtree index, directly extract point-like individual structure instances that intersect with the viewport clipping bounding box within the active grid cell; Extract the spatial boundary box of the point-like individual structure instance, and expand the spatial boundary box according to the preset expansion radius to obtain the candidate query range of the structure pipeline network; Candidate pipe segments that intersect with the candidate query range of the pipeline network are retrieved using the pipeline network R-tree, and associated pipe segments that have a topological connection relationship with the point-like single-unit structure instance are selected from the candidate pipe segments according to the pre-stored topological connection identifier. Using the viewport clipping bounding box as the query range, the visible pipe segments intersecting with the viewport clipping bounding box are retrieved through the pipe network line type R-tree; The associated pipe segment and the visible pipe segment are merged and deduplicated to obtain the target pipe network data; The step of rendering the queried target data to the display device at the corresponding level of detail according to the preset LOD (Level of Detail) threshold range to which the current viewing distance belongs includes: The current viewing distance is determined based on the current viewpoint position and the spatial position of the target data; Based on the preset LOD grading threshold range to which the current viewing distance belongs, the corresponding target detail level is determined. The preset LOD grading threshold range is divided into pipeline schematic layer, skeleton model layer, standard model layer and fine model layer according to the viewing distance from far to near. Based on the target detail level, the target data is rendered onto the display device.

2. The lightweight loading method for massive BIM and pipeline network data in water affairs digital twins as described in claim 1, characterized in that, The step of filtering the original BIM model data and the pipeline network data based on preset attribute classification rules and extracting the target attributes to be retained includes: Obtain the evaluation values ​​of each attribute in the original BIM model data and the pipeline network data in terms of topological connectivity, hydraulic physical characteristics and operational status indicators, respectively. The retention value score of the attribute is obtained by weighted summation of the various evaluation values. The attribute whose retention value score reaches a preset value score threshold is determined as the target attribute to be retained.

3. The lightweight loading method for massive BIM and pipeline network data in water affairs digital twins as described in claim 1, characterized in that, The step of performing differential mesh simplification processing on the original BIM model data after attribute filtering according to the simplification parameters corresponding to different component types and multiple preset face number targets, and generating lightweight model data corresponding to multiple detail levels respectively, includes: Obtain the component type of each vertex in the original BIM model data after the attribute filtering; The corresponding business importance weight is determined based on the component type; The original geometric error of the vertex is weighted according to the business importance weight to obtain the corrected geometric error matrix; The collapse cost of each edge in the original BIM model data after attribute filtering is determined based on the corrected geometric error matrix. The edge collapse operation is performed sequentially in order of increasing collapse cost, and the corresponding model data is output when the preset number of faces is reached, thereby obtaining the lightweight model data corresponding to multiple detail levels.

4. The lightweight loading method for massive BIM and pipeline network data of water affairs digital twin as described in claim 1, characterized in that, Following the step of querying the target data to be loaded within the current viewport range based on the current viewpoint location using the three-layer hybrid spatial index, the lightweight loading method for massive BIM and pipeline network data in water affairs digital twins further includes: Obtain the preloading evaluation parameters of each unloaded component in the current viewport periphery, including the view orientation factor, historical access frequency factor, and business process topology association factor; Based on the perspective orientation factor, the historical access frequency factor, and the business process topology association factor, a weighted sum is performed according to their respective weight coefficients to obtain the comprehensive preloading score of each unloaded component. When the overall preloading score reaches the preloading trigger threshold, the lightweight model data corresponding to the unloaded component is asynchronously preloaded in the background.

5. The lightweight loading method for massive BIM and pipeline network data in water affairs digital twins as described in claim 1, characterized in that, The step of rendering the target data to the display device based on the target detail level includes: Determine the transition interval of view distance overlap between the target detail level and adjacent detail levels; When the current viewing distance is within the transition interval, the first transparency weight corresponding to the target detail level and the second transparency weight corresponding to the adjacent detail level are determined according to the relative position of the current viewing distance within the transition interval. The sum of the first transparency weight and the second transparency weight is 1, and the first transparency weight and the second transparency weight change continuously with the current viewing distance. According to the first transparency weight and the second transparency weight, the target data corresponding to the target detail level and the target data corresponding to the adjacent detail level are rendered respectively.

6. The lightweight loading method for massive BIM and pipeline network data of water affairs digital twin as described in claim 1, characterized in that, Following the step of rendering the queried target data to the display device at the corresponding level of detail based on the preset LOD (Level of Detail) threshold range of the current viewing distance, the lightweight loading method for massive BIM and pipeline network data of water affairs digital twin further includes: Store the loaded target data into the cache; For each cache block in the cache, obtain the cache block's time coldness parameter, access frequency parameter, and business priority parameter; The eviction coldness value of the cache block is determined based on the time coldness parameter, the access frequency parameter, and the service priority parameter. When the cache space reaches a preset capacity threshold, the cache block with the highest evictory coldness value is evicted first, according to the order of the evictory coldness value of each cache block from high to low.

7. The lightweight loading method for massive BIM and pipeline network data of water affairs digital twin as described in claim 6, characterized in that, The steps for obtaining the business priority parameters of the cache block include: Obtain the facility level to which the data stored in the cache block belongs; The service priority parameter of the cache block is determined based on the facility level; The service priority parameter has different values ​​corresponding to different facility levels. The service priority parameter is used to reduce the evicting priority of the cache block corresponding to the higher facility level in the calculation of the evicting coldness value of the cache block.

8. The lightweight loading method for massive BIM and pipeline network data of water affairs digital twin as described in claim 1, characterized in that, The lightweight loading method for massive BIM data and pipeline network data in water affairs digital twin also includes: During system initialization, the hardware configuration parameters of the current terminal device are obtained; The preload trigger threshold, cache space capacity threshold, and threshold range corresponding to each detail level are dynamically adjusted based on the hardware configuration parameters.

Citation Information

Patent Citations

  • Smart city data linkage method based on digital twinning

    CN121213325A

  • Factory service pipe network multi-objective optimization path simulation and visualization method based on digital twinning

    CN122528357A