A method for loading building information model components

By determining the visual hierarchy values ​​and levels based on component size and position, combining three-dimensional tile format and dynamic model loading, the problem of slow loading speed of building information model components in smart cities is solved, and more efficient rendering and loading efficiency is achieved.

CN118586088BActive Publication Date: 2024-11-05SHENZHEN EMAP INFORMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411061389.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-05
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

The existing smart city rendering engine is slow when loading building information model components and cannot adapt to the needs of different scenarios, resulting in inefficiency.

Method used

By determining the visual level value based on the size and position information of components in the building information model, the component level and loading order are determined, the model is compressed using a three-dimensional tile format, and the shell and inner layer model are dynamically loaded when the camera distance changes, component loading is optimized. process.

Benefits of technology

It improves the loading speed of building information model components, adapts to the rendering needs of different scenarios, and improves the efficiency and response speed of smart city systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586088B_ABST
    Figure CN118586088B_ABST
Patent Text Reader

Abstract

The present application discloses a method for loading building information model components, which relates to the technical field of image data processing, and comprises: determining a visual grade value corresponding to a building information model component according to the size of the component and the position information of the component in the building information model; determining a component level according to the visual grade value; determining a display order of the components when loading the building information model components according to the component level, loading the building information model components according to the display order of the components, and improving the loading speed of the building information model components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image data processing, and in particular to a method for loading building information model components. Background Art

[0002] Smart city is a high degree of integration of information technology and urban development. As one of the important information sources of the digital foundation of smart city, building information model is precise, accurate and can accommodate spatial matching information, which enables it to serve the real scene restoration, event simulation and other needs of smart city well.

[0003] Currently, mainstream smart city-related rendering engines all support the loading of 3D tile format data, but different software and different manufacturers have different hierarchical construction ideas and scheduling sequences. In addition, the building information model itself is highly accurate and large in size. Inappropriate component loading order cannot adapt to building models in different scenarios, resulting in slow loading of building information model components.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present application is to provide a method for loading building information model components, aiming to solve the technical problem of slow loading speed of building information model components.

[0006] To achieve the above-mentioned purpose, the present application proposes a method for loading building information model components, the method comprising:

[0007] Determine the visual grade value corresponding to the building information model component according to the size of the component and the location information of the component in the building information model;

[0008] Determining a component level according to the visual grade value;

[0009] According to the component levels, a display order of the components when loading the building information model components is determined, and the building information model components are loaded according to the display order of the components.

[0010] In one embodiment, the position information of the component includes the center point of the component, and the step of determining the visual grade value corresponding to the building information model component according to the size of the component and the position information of the component in the building information model includes:

[0011] Determine an intersection line between a center point of the component and a center point of the building information model, and determine an intersection point of the intersection line with a boundary of a range of the building information model;

[0012] Determining a first distance between a center point of the building information model and a center point of the component, and a second distance between the center point of the building information model and the intersection, and determining a position-related value according to a ratio of the first distance to the second distance;

[0013] determining a size-related value based on the size of the component and the size of the building information model;

[0014] The visual level value is determined based on the position-related value and the size-related value.

[0015] In one embodiment, the step of determining the size-related value according to the size of the component and the size of the building information model comprises:

[0016] Determine the diagonal length of the cuboid component corresponding to the size of the component;

[0017] Determine the model diagonal length of the cuboid corresponding to the size of the building information model;

[0018] The size-related value is determined based on the ratio of the component diagonal length to the model diagonal length.

[0019] In one embodiment, the step of determining the component level according to the visual grade value comprises:

[0020] Traversing the building information model components from small to large according to the visual grade value, determining the upper-level component with the smallest distance to the target component and having a visual grade value greater than the target component, the target component being the building information model component currently traversed;

[0021] When the difference in the visual grade value between the target component and the upper-level component is less than a preset difference, it is determined that the target component and the upper-level component have the same component level.

[0022] In one embodiment, before the step of determining the visual grade value corresponding to the building information model component according to the size of the component and the location information of the component in the building information model, the step further includes:

[0023] Acquire a first parameter and a second parameter, wherein the first parameter is used to determine the closeness of the shell triangulation network of the building information model with the building information model, and the second parameter is used to determine the density of the shell triangulation network;

[0024] Obtain the shell triangulation network according to the first parameter and the second parameter;

[0025] Compressing the shell triangulated mesh into tiles and exporting them into a three-dimensional tile format to obtain a shell model of the building information model;

[0026] Compressing the building information model components into tiles and exporting them into a three-dimensional tile format to obtain an inner layer model of the building information model;

[0027] The outer shell model and the inner layer model are merged to obtain the building information model.

[0028] In one embodiment, the method further comprises:

[0029] Get the trigger distance value;

[0030] When the distance between the camera and the building information model is greater than the trigger distance value, loading the shell model;

[0031] When the distance between the camera and the building information model is less than or equal to the trigger distance value, the building information model components in the inner layer model are loaded based on the display order of the components.

[0032] In one embodiment, the step of compressing the building information model components into tiles and exporting them into a three-dimensional tile format to obtain an inner layer model of the building information model comprises:

[0033] Acquire a reused component in the building information model component and determine the number of reuses of the reused component;

[0034] If the reuse number is greater than a preset number, compressing the reused components respectively and exporting them into three-dimensional multiplexed tiles in the three-dimensional tile format;

[0035] Acquire other components except the reused components in the building information model components, compress the other components and export them into three-dimensional component tiles in the three-dimensional tile format;

[0036] The three-dimensional reused tiles and the three-dimensional component tiles are organized into a three-dimensional tile file to obtain an inner layer model of the building information model.

[0037] The present application provides a method for loading building information model components. The method determines a visual grade value corresponding to a building information model component according to the size of the component and the position information of the component in the building information model; determines the component level according to the visual grade value; determines the display order of the components when loading the building information model components according to the component level, loads the building information model components according to the display order of the components, and improves the loading speed of the building information model components. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0040] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the method for loading a building information model component of the present application;

[0041] Figure 2 A schematic diagram of a method flow provided for the first embodiment of the method for loading a building information model component of the present application;

[0042] Figure 3 A schematic diagram of a flow chart for determining a visual grade value provided in Example 1 of a method for loading a building information model component of the present application;

[0043] Figure 4 A schematic diagram of a method flow provided for the first embodiment of the method for loading a building information model component of the present application;

[0044] Figure 5 A schematic diagram of a method flow provided for the first embodiment of the method for loading a building information model component of the present application;

[0045] Figure 6 A schematic diagram of a process for determining a component level provided in Example 1 of a method for loading a component of a building information model of the present application;

[0046] Figure 7 A flow chart of the second embodiment of the method for loading building information model components of the present application;

[0047] Figure 8 A schematic diagram of a method flow provided for the second embodiment of the method for loading a building information model component of the present application;

[0048] Fig. 9 A schematic diagram of a flow chart provided for the third embodiment of the method for loading building information model components of the present application;

[0049] Fig.10 A schematic diagram of a process for obtaining a building information model provided by the building information model component loading method of the present application;

[0050] Fig.11 A schematic diagram of the process of constructing a shell model provided by the building information model component loading method of the present application;

[0051] Fig.12 A schematic diagram of the process of constructing an inner layer model provided for the building information model component loading method of the present application;

[0052] Fig.13An example diagram of the fusion of the outer shell model and the inner layer model provided for the building information model component loading method of the present application;

[0053] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0054] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0055] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0056] Smart cities integrate information technology with urban construction. Building information models, with their sophisticated and accurate spatial information matching capabilities, have become a key source of information for the digital foundation of smart cities, serving scene restoration and event simulation. However, existing rendering engines have software and vendor differences when processing 3D tile format data. This difference makes it difficult for building models to adapt to various scenarios, and the loading speed of components is slow, affecting the efficiency of smart city construction.

[0057] In view of the above problems, the present application proposes a method for loading building information model components, which determines the visual grade value corresponding to the building information model component according to the component size and the position information of the component in the building information model; determines the component hierarchy according to the visual grade value; and determines the display order of the components when loading the building information model components according to the component hierarchy, thereby improving the loading speed of the building information model components.

[0058] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions or an electronic device capable of implementing the above functions. The following takes the smart city system as an example to illustrate this embodiment and the following embodiments.

[0059] It should be noted that smart city refers to a form of urban development that realizes the intelligence of urban management and services, improves the level of modernization of urban governance, optimizes the quality of life of citizens, and promotes high-quality economic development through the innovative application of information technology. The smart city system integrates the Building Information Modeling (BIM), in which the building information model contains the geometric information, material properties, equipment information, etc. of the buildings in the city, and can simulate the three-dimensional form of buildings and facilities with high precision, providing an intuitive reference for urban planning and transformation. In the smart city system, by controlling the camera to view the buildings in the building information model, users can adjust the position, direction and focal length of the camera to obtain different perspectives and levels of detail.

[0060] Based on this, the first embodiment proposed in this application provides a method for loading building information model components, referring to Figure 1 In this embodiment, the building information model component loading method includes steps S10 to S30:

[0061] Step S10, determining the visual grade value corresponding to the building information model component according to the size of the component and the location information of the component in the building information model.

[0062] It should be noted that in the building information model, the component is the basic unit that makes up the entire building information model, representing the parts in the building model, such as doors, windows, beams, etc. The size of the component can be represented by a minimum cuboid or cube that can completely surround the component, representing the limit range of each component in three-dimensional space. The location information of the component includes the position of the component in the building information model and the center point of the component.

[0063] The visual grade value is a quantitative indicator that reflects the visual importance or visibility of a component. The visual grade value can help determine the priority of component display or loading when rendering or displaying a building information model, or which components should be displayed more prominently and in detail. The larger the visual grade value, the higher the priority of the loading order and the more detailed the display.

[0064] In one possible implementation, refer to Figure 2 , step S10 includes steps S11 to S14:

[0065] Step S11, determining an intersection line between a center point of the component and a center point of the building information model, and determining an intersection point between the intersection line and a boundary of the building information model.

[0066] Step S12, determining a first distance between the center point of the building information model and the center point of the component, and a second distance between the center point of the building information model and the intersection, and determining a position-related value according to a ratio of the first distance to the second distance.

[0067] It should be noted that the center point of the building information model refers to the geometric center point of the entire building information model in three-dimensional space, which represents the overall position of the model.

[0068] Optionally, the center point of the building information model is taken by calculating the average value of the coordinates of all vertices of the building information model.

[0069] For example, a three-dimensional (x, y, z) coordinate system is established in the three-dimensional space, the coordinates of all vertices of the building information model are determined according to the three-dimensional coordinate system, and the average value of the coordinates of all vertices is calculated: the coordinates of the center point of the building information model (Sum of x-axis coordinates of all vertices / total number of vertices, sum of y-axis coordinates of all vertices / total number of vertices, sum of z-axis coordinates of all vertices / total number of vertices).

[0070] In addition, it should be noted that the method for determining the center point of a component is the same as the center point of the above-mentioned building information model, but is performed separately for each component.

[0071] Optionally, the center point of the building information model may also be determined according to the density of components in the building information model.

[0072] Exemplarily, the location with the highest density of building information model components is selected as the center point of the building information model. When loading the building information model components, the closer the building information model components are to the center point, the later they are displayed in the order, so that when the camera approaches the center point, the building information model components can be gradually displayed according to the distance between the camera and the center point.

[0073] Optionally, the building information model range boundary is determined by finding the minimum and maximum x, y, z axis coordinate values ​​among all vertices of the building information model.

[0074] Exemplarily, the minimum x, y, and z axis coordinate values ​​among all vertices of the building information model are found to determine the first corner point. Then the maximum x, y, and z axis coordinate values ​​among all vertices of the building information model are found to determine another corner point, and the distance between the two corner points is calculated to obtain the size of the cuboid or cube, thereby determining the range boundary of the building information model.

[0075] For example, refer to Figure 3 Assume that the center point of the building information model is O, the center point of a component is A, and the line from O to A intersects the boundary of the building information model at B. The position-related value = length of OA / length of OB.

[0076] Step S13, determining a size-related value according to the size of the component and the size of the building information model.

[0077] In one possible implementation, refer to Figure 4 , step S13 may include steps S131 to S133:

[0078] Step S131, determining the diagonal length of the cuboid component corresponding to the size of the component.

[0079] Step S132, determining the model diagonal length of the cuboid corresponding to the size of the building information model.

[0080] Step S133, determining the size-related value according to the ratio of the diagonal length of the component to the diagonal length of the model.

[0081] Exemplarily, the size of a component may be represented by a minimum cuboid or cube that can completely surround the component, and the size of a building information model may also be represented by a minimum cuboid or cube that can completely surround the building information model.

[0082] For example, refer to Figure 3 , assuming that the length, width and height of the rectangular parallelepiped or cube representing the size of the building information model are L, W, and H respectively, and the length, width and height of the rectangular parallelepiped or cube representing the size of the component are Lc, Wc, and Hc respectively, determine the size-related values :

[0083]

[0084] in, is the diagonal length of the component, is the diagonal length of the model.

[0085] Step S14, determining the visual level value according to the position-related value and the size-related value.

[0086] For example, the visual grade value Among them, f(x) and g(x) are weight functions of the correlation value, which define the weight distribution of the position and size in the model through simple transformation, including custom functions, linear functions, smooth interpolation functions, etc. The change in the size of the derivative of the weight function represents the severity of the change in the level value caused by the change in the correlation value of the corresponding position.

[0087] Alternatively, use a function for size-dependent values ​​that is steep on both sides and gentle in the middle, such as or ; Use a linear function for position-dependent values, such as or ,in .

[0088] Optionally, if you want to handle a certain type of component specially, you can lock the component according to the feature information of the corresponding component and manually assign the appropriate visual grade value. If the building information model has special display needs, you can also modify the above and The present application does not impose any specific limitation on the calculation method.

[0089] In this embodiment, size-related values ​​and position-related values ​​are calculated through the size and position information of the components of the building information model, and the visual grade values ​​of all components are determined based on the two related values. It is possible to determine which components are more visually important, and then determine the display order of the components when loading the building information model components. These components can be loaded and rendered first during rendering, so that computing resources are reasonably allocated and the loading speed of the building information model components is accelerated.

[0090] Step S20: determining the component level according to the visual level value.

[0091] It should be noted that in the building information model, the component hierarchy refers to the position of the component in the component tree and the hierarchical relationship between components. The component tree is a hierarchical structure that shows the organization and relationship of all components in the building information model.

[0092] In one possible implementation, refer to Figure 5 , step S20 includes steps S21-S22:

[0093] Step S21, traversing the building information model components from small to large according to the visual grade values, determining the upper-level component with the shortest distance to the target component and having a visual grade value greater than the target component, the target component being the building information model component currently traversed.

[0094] For example, refer to Figure 6 First, sort all components according to their visual grade values ​​from small to large, and then start traversing from the component with the smallest visual grade value. For each target component currently traversed, find the nearest parent component with a higher grade value than it, where the distance between the parent component and the target component is determined by calculating the distance between the center points of the two components. Mount the target component under the parent component. Repeat the above process until all components are mounted to the corresponding positions.

[0095] Step S22: when the difference in visual grade value between the target component and the upper-level component is less than a preset difference, determining that the target component and the upper-level component have the same component level.

[0096] It should be noted that the preset difference is a pre-set value used to determine whether the difference in visual grade value between the target component and the upper-level component is large enough.

[0097] Exemplarily, the difference between the visual level values ​​of the target component and the upper component is determined, and if the difference between the visual level values ​​is less than a preset difference, the target component is promoted by one level so that it is at the same level as the original upper component and mounted under the same component. The above process is repeated until all components are adjusted to the corresponding level.

[0098] In this embodiment, the hierarchical relationship of the building information model components is determined by the visual level value, and two components with a smaller difference in visual level values ​​are placed at the same level, which reduces the number of levels that need to be traversed during the rendering process, thereby improving the loading speed of the components. At the same time, components that are closely related visually are placed at the same level to maintain spatial continuity and improve the quality of visual effects.

[0099] Step S30: determining, according to the component levels, a display order of the components when loading the building information model components, and loading the building information model components according to the display order of the components.

[0100] It should be noted that the visual grade value of the building information model component decreases as the component level decreases. The building information model components in the hierarchy are displayed from high to low according to the component level to ensure that visually more important components can be displayed first when loading the building information model components.

[0101] In this embodiment, by determining the visual grade values ​​of components in the building information model, reorganizing the building information model components according to the visual grade values, determining the component hierarchy, determining the display order of the building information model components according to the component hierarchy, and performing rendering scheduling according to the display order, it is ensured that in the process of zooming in the perspective, visually more important components are loaded first, dispersing the pressure of network requests and rendering scheduling, and thereby improving the loading speed of the building information model components.

[0102] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 7 After step S20, the building information model component loading method further includes steps S40 to S80:

[0103] Step S40, obtaining a first parameter and a second parameter, wherein the first parameter is used to determine the closeness between the shell triangulation network of the building information model and the building information model, and the second parameter is used to determine the density of the shell triangulation network;

[0104] It should be noted that the shell triangulation refers to a layer of triangular mesh on the outer surface of the building information model extracted for visualization rendering or specific analysis purposes in the building information model. This mesh is composed of many small triangular facets. Determine the first parameter, that is, determine the tightness of the shell triangulation and the building information model. The tightness indicates the degree of fit between the shell triangulation and the outer surface of the building information model. Determine the second parameter, that is, determine the density of the shell triangulation. The higher the density of the shell triangulation, the smoother the triangulation surface and the richer the details. Determining the appropriate density and tightness through the above two parameters can make the surface details of the shell triangulation richer and conform to the actual building geometry.

[0105] Step S50: obtaining the outer shell triangulation network according to the first parameter and the second parameter.

[0106] Optionally, an Alpha Wrapping algorithm is used with the offset value as the first parameter and the alpha value as the second parameter to construct the shell triangulation.

[0107] Exemplarily, the offset value is used to adjust the fit between the shell triangulated mesh and the outer surface of the building information model, so that the triangular facets fit the building information model more closely and are more consistent with the shape of the actual building; the alpha value is used to adjust the density of the shell triangulated mesh.

[0108] Optionally, overlapping or adjacent triangular facets in the shell triangulation are merged by a triangulation fusion algorithm to reduce the total number of triangular facets in the shell triangulation, thereby optimizing the mesh.

[0109] Exemplarily, adjacent or overlapping triangular patches are aggregated into a new triangular patch through a clustering algorithm to reduce the number of triangular patches, or adjacent triangular patches in a mesh are connected to form a large triangular patch through a connection algorithm.

[0110] Optionally, the simplification algorithm is used to further remove triangular facets that have little impact on the visual effect to reduce the size of the hull triangulation network and improve loading and rendering efficiency. Exemplarily, triangular facets smaller than a certain area are deleted to simplify the mesh.

[0111] Step S60: compress the shell triangulated mesh into tiles and export them into a three-dimensional tile format to obtain a shell model of the building information model.

[0112] It should be noted that a tile is a basic unit in the 3D Tiles data format, which contains all the geometric data and attribute data of an area in space, such as the material, color, and function of the components. The 3D Tiles format is an open standard for streaming large-scale 3D geographic data. It is designed for efficient rendering of 3D maps on web pages and mobile devices. The processed tile data is organized and exported in the 3D Tiles format to obtain a shell model that retains the appearance characteristics of the building information model for use in various 3D viewers and applications.

[0113] Step S70: compress the building information model components into tiles and export them into a three-dimensional tile format to obtain an inner layer model of the building information model.

[0114] In one possible implementation, refer to Figure 8 , step S70 includes steps S71 to S74:

[0115] Step S71, obtaining a reused component in the building information model component and determining the number of reuses of the reused component.

[0116] It should be noted that in the building information model, the same components, such as windows and doors of the same standard size, will be reused many times. Such components are called reused components. In the process of traversing the building information model components according to the level value, the number of times the reused components are reused is recorded.

[0117] Step S72: If the reuse times are greater than a preset times, the reused components are respectively compressed and exported into three-dimensional multiplexed tiles in the three-dimensional tile format.

[0118] Step S73, obtaining other components except the reused components in the building information model components, compressing the other components and exporting them into three-dimensional component tiles in the three-dimensional tile format.

[0119] It should be noted that the preset number of times is a threshold value used to determine the minimum number of times a component is reused. When the number of times a component is reused exceeds the preset number of times, it means that the component is frequently loaded in the building information model. The component is compressed to generate reuse tiles and saved as three-dimensional reuse tiles for subsequent reuse.

[0120] For example, suppose a building information model has 200 components. In the process of traversing these 200 components, when the reuse times of a certain reused component exceeds a preset number of times, such as 30 times, the reused component is compressed to generate a reused tile. If there are 40 reused components whose reuse times exceed 30 times, these 40 reused components are respectively generated into 40 reused tiles, and these 40 reused tiles are respectively exported into 3D reused tiles in 3D tile format. After that, the remaining 160 components of the building information model are compressed to generate one or more component tiles and exported as 3D component tiles.

[0121] Step S74: Organize the three-dimensional multiplexed tiles and the three-dimensional component tiles into a three-dimensional tile file to obtain an inner layer model of the building information model.

[0122] It should be noted that the inner model includes all building information model components that have been reconstructed through the component hierarchy according to the visual grade value.

[0123] In this embodiment, by obtaining the reused components in the building information model and saving the reused components separately as three-dimensional reused tiles, the smart city system only needs to load the geometric data and attribute data of the reused components once when loading the building information model, which significantly reduces the loading time of the reused components and improves the loading speed of the building information model components.

[0124] Step S80: fusing the outer shell model and the inner layer model to obtain the building information model.

[0125] It should be noted that the building information model is obtained by fusing the outer shell model and the inner layer model. When the camera approaches the building information model from far to near, the outer shell model and the inner layer model are displayed in an alternating manner. The building information model formed after fusion retains the main appearance and structure of the building information model, while reducing the duplication of internal tiles, making it more efficient during rendering and loading.

[0126] Optionally, the components in the building information model and the detailed attribute information of each component are stored in different data files, or the components and attribute data are stored separately according to different professional field types of the building information model to ensure clear organization of the data and facilitate subsequent management and processing.

[0127] Exemplarily, the component structure of the building information model is stored as a json file, and the attribute data of the building information model is stored as a database file.

[0128] In this embodiment, an inner layer model and an outer shell model in 3D Tiles format are established, and the two models are merged to form a lighter building information model, thereby reducing the volume and complexity of the model during rendering, thereby speeding up the model loading speed.

[0129] Based on the above embodiment, in the third embodiment of the present application, the same or similar contents as those in the above embodiment can be referred to the above introduction, and will not be described in detail later. Fig. 9 The building information model component loading method further includes steps S90 to S110:

[0130] Step S90, obtaining a trigger distance value.

[0131] It should be noted that the trigger distance value is a parameter for dynamically loading the building information model, which determines the distance from the model at which the detailed internal structure of the building information model can be seen.

[0132] Optionally, the building information model is exported according to professional fields, such as architecture, structure, electromechanical, etc. The building information model of each professional field is processed according to the steps described in the above embodiment, and finally fused to obtain the building information models of different professional fields. Different trigger distance values ​​can be set for building information models of different professional fields. For example, a larger trigger distance value can be set for architecture and structure, and a smaller trigger distance value can be set for electromechanical models, as the individual components of the electromechanical model are often smaller in size.

[0133] Step S100: when the distance between the camera and the building information model is greater than the trigger distance value, the shell model is loaded.

[0134] Step S110: when the distance between the camera and the building information model is less than or equal to the trigger distance value, loading the building information model components in the inner layer model based on the display order of the components.

[0135] For example, in a smart city system, a building project can be viewed through a camera. When the camera is greater than a trigger distance value such as 30 meters from the building, the shell model is loaded to maintain smooth performance, and the appearance of the building can be seen through the camera screen. When the distance between the camera and the building is less than or equal to 30 meters, visually more important components are loaded first based on the display order of the components to provide a more realistic visual effect.

[0136] In this embodiment, the dynamic loading of the building information model is realized by triggering the distance value, which can improve the response speed of the system and balance the performance and visual effect.

[0137] For example, to help understand the implementation process of the building information model component loading method obtained in the above embodiment, please refer to Fig.10 , Fig.10A flow chart for obtaining a building information model is provided: the building information model is shelled and exported to 3DTiles format to obtain an outer shell model, the component hierarchy is reconstructed according to the visual grade value to form a new inner layer model, the outer shell model and the inner layer model are merged to form an optimized building information model, and the components and attribute data of the building information model are stored in files respectively.

[0138] For example, refer to Fig.11 , Fig.11 A schematic diagram of the process of building a shell model is provided: select appropriate alpha and offset values, use the Alpha Wrapping algorithm, build the shell triangulation of the building information model, compress the shell triangulation into a tile, and export it to the 3D Tiles format.

[0139] For example, refer to Fig.12 , Fig.12 A flow chart of building the inner model is provided: obtaining the building information model and the size and position of the components in the model, calculating the visual grade value of the components, and instantiating the reused components that have been reused more than a preset number of times into reused tiles, and finally obtaining the inner model.

[0140] For example, refer to Fig.13 , Fig.13 An example diagram of the fusion of the outer shell model and the inner model is provided: modify the tileset.json file of the outer shell model, mount the children node for the outer shell tile, point to the tileset.json file of the inner model 3D Tiles, calculate the box array of the newly added children node, and update the node. Calculate the inverse transformation of the transformation experienced by the outer shell tile, convert it into a column-major homogeneous coordinate matrix, and update it to the transform matrix of the newly added node. The refine of the outer layer tile is defined as REPLACE, that is, the tile is displayed by replacement according to the distance. The geometricError value of the outer layer tile node is the trigger distance value, which can be defined according to different scene requirements.

[0141] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the building information model component loading method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0143] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for loading building information model components, characterized in that: The method includes: Determine a visual grade value corresponding to a building information model component according to the size of a building information model component and the position information of the building information model component, wherein the position information of the building information model component includes the center point of the building information model component, wherein an intersection line between the center point of the building information model component and the center point of the building information model is determined, an intersection point of the intersection line with a range boundary of the building information model is determined, a first distance between the center point of the building information model and the center point of the building information model component, and a second distance between the center point of the building information model and the intersection point are determined, a position-related value is determined according to a ratio of the first distance to the second distance, a component diagonal length of a rectangular parallelepiped corresponding to the size of the building information model component is determined, a model diagonal length of a rectangular parallelepiped corresponding to the size of the building information model is determined, a size-related value is determined according to a ratio of the component diagonal length to the model diagonal length, and the visual grade value is determined according to the position-related value and the size-related value; Determine the component level according to the visual grade value, wherein the building information model components are traversed from small to large according to the visual grade value, and the upper-level component with the smallest distance to the target component and a visual grade value greater than the target component is determined, the target component is the building information model component currently traversed, and when the difference in the visual grade value between the target component and the upper-level component is less than a preset difference, it is determined that the target component and the upper-level component have the same component level; According to the component levels, a display order of the building information model components when loading the building information model components is determined, and the building information model components are loaded according to the display order.

2. The method according to claim 1, characterized in that Before the step of determining the visual grade value corresponding to the building information model component according to the size of the building information model component and the location information of the building information model component, the method further includes: Acquire a first parameter and a second parameter, wherein the first parameter is used to determine the closeness of the shell triangulation network of the building information model with the building information model, and the second parameter is used to determine the density of the shell triangulation network; Obtain the shell triangulation network according to the first parameter and the second parameter; Compressing the shell triangulated mesh into tiles and exporting them into a three-dimensional tile format to obtain a shell model of the building information model; Compressing the building information model components into tiles and exporting them into a three-dimensional tile format to obtain an inner layer model of the building information model; The outer shell model and the inner layer model are merged to obtain the building information model.

3. The method according to claim 2, characterized in that The method further comprises: Get the trigger distance value; When the distance between the camera and the building information model is greater than the trigger distance value, loading the shell model; When the distance between the camera and the building information model is less than or equal to the trigger distance value, the building information model components in the inner layer model are loaded based on the display order.

4. The method according to claim 2, characterized in that The step of compressing the building information model components into tiles and exporting them into a three-dimensional tile format to obtain an inner layer model of the building information model comprises: Acquire a reused component in the building information model component and determine the number of reuses of the reused component; If the reuse number is greater than a preset number, compressing the reused components respectively and exporting them into three-dimensional multiplexed tiles in the three-dimensional tile format; Acquire other components except the reused components in the building information model components, compress the other components and export them into three-dimensional component tiles in the three-dimensional tile format; The three-dimensional reused tiles and the three-dimensional component tiles are organized into a three-dimensional tile file to obtain an inner layer model of the building information model.