A lightweight display method, device and medium for target BIM models

By acquiring and displaying the first-level, second-level, and third-level components of the BIM model in a web environment based on component distance and preset processing methods, the problem of slow loading and rendering of BIM models in existing technologies is solved, resulting in a smoother user interaction experience.

CN119668739BActive Publication Date: 2025-10-28CHINA COMM INFORMATION TECH GRP CO LTD HANGZHOU BRANCH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411509439.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-10-28
Estimated Expiration
2044-10-28

AI Technical Summary

Technical Problem

Existing technologies cannot hide some components when displaying BIM models in a web environment, resulting in large model files, long loading times, high memory consumption, slow rendering speed when device performance is insufficient, and poor user experience.

Method used

Based on component distance and preset processing methods, the system acquires and displays the first-level, second-level, and third-level components of the BIM model, showing them in the order they appear, prioritizing important components and hiding unnecessary ones.

Benefits of technology

It reduces the display burden of BIM models in the web environment, provides a smoother interactive experience, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668739B_ABST
    Figure CN119668739B_ABST
Patent Text Reader

Abstract

This invention provides a lightweight display method, device, and medium for a target BIM model. The method obtains intermediate components corresponding to the target BIM model based on the average component distance, a first specified distance, and a second specified distance. It then processes all intermediate components according to a preset processing method to obtain primary, secondary, and tertiary components. These components are then displayed in the target model according to their corresponding display order, with primary components displayed before secondary components, and secondary components displayed before tertiary components. This invention reduces the display load on BIM models in a web environment, providing a smoother interactive experience and improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of BIM modeling technology, and in particular to a lightweight display method, device and medium for a target BIM model. Background Technology

[0002] In recent years, Building Information Modeling (BIM) has become a widely adopted digital tool in the construction industry. BIM models contain rich data and geometric information, which can be used for the design, construction, and operation of buildings. Displaying BIM models in a web environment can improve the accessibility of project information and collaboration efficiency, support remote review and decision-making, and enhance information sharing and understanding. It is an important part of modern construction project management. In the current technology, the method of displaying BIM models in a web environment is to download the complete model data to the client at once and then parse and render it locally to display the BIM model in the web environment.

[0003] However, the above method also has the following technical problems:

[0004] When loading a BIM model using the above method, all components in the BIM model can be displayed, but some components cannot be hidden, meaning it is not possible to display only a portion of the components. As the project expands, the complexity of the BIM model will continue to increase. When the complexity of the BIM model is high, the corresponding model file is large, containing a large amount of model data. Therefore, loading the BIM model takes a long time and consumes a lot of memory resources. Rendering and processing large, highly complex BIM models requires strong computing power. If the user's device performance is insufficient, the rendering speed of the BIM model will slow down, the interaction will become sluggish, and the user experience will be reduced. Summary of the Invention

[0005] To address the aforementioned technical problems, the technical solution adopted by this invention is as follows:

[0006] According to a first aspect of the present invention, a lightweight display method for a target BIM model is provided, the method comprising the following steps:

[0007] S1. When the average component distance corresponding to the target BIM model is greater than the first specified distance, the initial component whose initial distance is greater than the first specified distance is used as the intermediate component corresponding to the target BIM model. When the average component distance corresponding to the target BIM model is greater than the second specified distance but not greater than the first specified distance, the initial component whose initial distance is greater than the second specified distance but not greater than the first specified distance is used as the intermediate component corresponding to the target BIM model. When the average component distance corresponding to the target BIM model is not greater than the second specified distance, the initial component whose initial distance is not greater than the second specified distance is used as the intermediate component corresponding to the target BIM model. Here, the average component distance corresponding to the target BIM model is the average of the initial distances corresponding to all initial components, the initial distance corresponding to the initial component is the distance between the initial component and the current display view of the target BIM model, and the initial component is a component in the target BIM model.

[0008] S2. Process all intermediate components corresponding to the target BIM model according to the preset processing method of intermediate components to obtain the first-level components, second-level components and third-level components corresponding to the target BIM model.

[0009] S3. In the target model, the primary, secondary, and tertiary components are displayed in the order corresponding to the target BIM model. The primary components are displayed before the secondary components, and the secondary components are displayed before the tertiary components.

[0010] According to a second aspect of the present invention, a non-transitory computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the aforementioned method.

[0011] According to a third aspect of the present invention, an electronic device is provided, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the aforementioned method.

[0012] The present invention has at least the following beneficial effects:

[0013] This invention provides a lightweight display method, device, and medium for a target BIM model. The method obtains intermediate components corresponding to the target BIM model based on the average component distance, a first specified distance, and a second specified distance. It then processes all intermediate components according to a preset processing method to obtain primary, secondary, and tertiary components. These components are then displayed in the target model according to their corresponding display order, with primary components displayed before secondary components, and secondary components displayed before tertiary components. This invention effectively obtains the primary, secondary, and tertiary components of a target BIM model and displays them in the target model according to their corresponding display order, reducing the display load on BIM models in a web environment, providing a smoother interactive experience, and improving user experience. Attached Figure Description

[0014] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 A flowchart illustrating a lightweight display method for a target BIM model provided in an embodiment of the present invention. Detailed Implementation

[0016] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0017] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar tasks and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0018] Embodiments of the present invention provide a lightweight display method for a target BIM model, the method comprising the following steps, such as... Figure 1 As shown:

[0019] S1. When the average component distance corresponding to the target BIM model is greater than the first specified distance, the initial component whose initial distance is greater than the first specified distance is used as the intermediate component corresponding to the target BIM model. When the average component distance corresponding to the target BIM model is greater than the second specified distance but not greater than the first specified distance, the initial component whose initial distance is greater than the second specified distance but not greater than the first specified distance is used as the intermediate component corresponding to the target BIM model. When the average component distance corresponding to the target BIM model is not greater than the second specified distance, the initial component whose initial distance is not greater than the second specified distance is used as the intermediate component corresponding to the target BIM model. Here, the average component distance corresponding to the target BIM model is the average of the initial distances corresponding to all initial components, the initial distance corresponding to the initial component is the distance between the initial component and the current display view of the target BIM model, and the initial component is a component in the target BIM model.

[0020] Specifically, before step S1, steps S10-S40 are included to obtain the first specified distance and the second specified distance:

[0021] S10. Traverse the list of specified BIM model IDs. When the average component distance of the specified BIM model corresponding to the specified BIM model ID is greater than the second preset distance and not greater than the first preset distance, the specified BIM model is designated as the first BIM model. When the average component distance of the specified BIM model corresponding to the specified BIM model ID is not greater than the second preset distance, the specified BIM model is designated as the second BIM model. Here, the average component distance of the specified BIM model is the average of the specified distances of all specified components corresponding to the specified BIM model, the specified distance of the specified component is the distance between the specified component and the display view of its corresponding specified BIM model, the specified component is a component in the specified BIM model, the list of specified BIM model IDs includes several specified BIM model IDs, as those skilled in the art know, the list of specified BIM model IDs is a list set by those skilled in the art according to actual needs, and the first preset distance and the second preset distance are distances preset by those skilled in the art according to actual needs, which will not be elaborated here.

[0022] Specifically, the BIM model ID is designated as the unique identifier of the specified BIM model.

[0023] Specifically, before executing step S10, if the file storing the data of the target BIM model is in rvt format, the file is input into Revit modeling software, converted into an IFC format file, and then the IFC format file is output before executing step S10; if the file storing the data of the target BIM model is in IFC format, step S10 is executed directly.

[0024] Specifically, steps S100-S400 are used to obtain the distance between a specified component and its corresponding specified BIM model's display viewpoint:

[0025] S100. Obtain the position of the image acquisition device, the three-dimensional coordinates and the up vector corresponding to the viewpoint of the specified BIM model display perspective, wherein the viewpoint represents the target point that the image acquisition device is looking at, and the up vector represents the upward direction of the image acquisition device.

[0026] S200. Obtain the view matrix based on the position of the image acquisition device, the three-dimensional coordinates corresponding to the viewpoint, and the up vector.

[0027] S300. Obtain the projection matrix based on the view matrix and obtain the coordinates of the specified component corresponding to the specified BIM model in the key coordinate system based on the projection matrix. The key coordinate system is the camera coordinate system corresponding to the image acquisition device.

[0028] S400. The distance between the coordinates of the specified component in the key coordinate system obtained by the Euclidean distance formula and the coordinates of the position of the image acquisition device in the key coordinate system is taken as the distance between the display view of the specified component and its corresponding specified BIM model.

[0029] Through the above steps, the view matrix is ​​obtained based on the position of the image acquisition device corresponding to the display viewpoint of the specified BIM model, the three-dimensional coordinates of the viewpoint, and the up vector. Further, the projection matrix is ​​obtained, and based on the projection matrix, the coordinates of the specified component corresponding to the specified BIM model in the key coordinate system are obtained. The distance between the coordinates of the specified component in the key coordinate system obtained using the Euclidean distance formula and the coordinates of the position of the image acquisition device in the key coordinate system is used as the distance between the specified component and the display viewpoint of its corresponding specified BIM model. This helps improve the accuracy of obtaining the distance between the specified component and the display viewpoint of its corresponding specified BIM model.

[0030] Specifically, the method of obtaining the distance between the initial component and the current display view of the target BIM model is basically the same as the method of obtaining the distance between the specified component and the display view of its corresponding specified BIM model. Those skilled in the art can refer to steps S100-S400 to obtain the distance between the initial component and the current display view of the target BIM model, which will not be elaborated here.

[0031] S20. Obtain the first-level components, second-level components, and third-level components corresponding to the first BIM model and the second BIM model, respectively. When displaying the first BIM model or the second BIM model, the display order of the first-level components is earlier than that of the second-level components, and the display order of the second-level components is earlier than that of the third-level components.

[0032] Specifically, step S20 further includes the following sub-steps S201-S204:

[0033] S201. When the specified distance of the specified component corresponding to the first BIM model is greater than the second preset distance and not greater than the first preset distance, the specified component corresponding to the first BIM model is used as the intermediate component corresponding to the first BIM model.

[0034] S202. Process all intermediate components corresponding to the first BIM model according to the preset processing method of intermediate components to obtain the first-level components, second-level components and third-level components corresponding to the first BIM model.

[0035] Specifically, the intermediate component pre-processing method includes the following steps S1000-S5000:

[0036] S1000. Obtain a set of preset component attribute values ​​B corresponding to all intermediate components based on the preset component attribute name list A, where A = {A1, A2, ..., A...} i , ..., A m}, A i Let B be the name of the i-th preset component attribute, where i ranges from 1 to m, and m is the number of preset component attribute names. Let B = {B1, B2, ..., B} j , ..., B n}, B j ={B j1 B j2 , ..., B ji , ..., B jn}, B j This is a list of preset component attribute values ​​corresponding to the j-th intermediate component, where j ranges from 1 to n, and n is the number of intermediate components. ji For B j China A i The corresponding preset component attribute values.

[0037] Specifically, the preset component attribute name is the name of the preset component attribute. The preset component attribute is an attribute that is set in advance by those skilled in the art according to actual needs, such as: material, size, location, fire resistance rating, function, cost, maintenance difficulty, frequency of use, etc., which will not be elaborated here.

[0038] Specifically, the preset component attribute value is the attribute value corresponding to the preset component attribute name in the intermediate component.

[0039] S2000, Obtain B based on the preset attribute value base score list set C. ji The corresponding attribute score is D. ij Where C = {C1, C2, ..., C} e , ..., C f}, C e ={C e1 C e2 C e3}, C e Let C be the list of base scores for the e-th preset attribute value, where e ranges from 1 to f, f is the number of the base scores in the preset attribute value list, and C is the base score for the ith attribute. e1 C e The default attribute values ​​in C e2 C e1 The lower limit of the range of the corresponding preset attribute base score, C e3 C e1 The upper limit of the range of the corresponding preset attribute base score, when B ji =C e1 At that time, C e2As B ji The lower limit E of the corresponding attribute score range 1 ji , will C e3 As B ji The upper limit of the corresponding attribute score E 2 ji And obtain D ji D ji ∈[E 1 ji E 2 ji As those skilled in the art will know, the preset attribute value base score list is a set pre-set by those skilled in the art according to actual needs, and those skilled in the art can select from [E] according to actual needs. 1 ji E 2 ji Choose a value as D from the list. ji This will not be elaborated upon here.

[0040] S3000, Obtain B according to the preset component type score list set F. j The type score G corresponding to the intermediate component j Where F = {F1, F2, ..., F} k , ..., F t}, F k ={F k1 F k2 F k3}, F k For the list of scores for the k-th preset component type, F k1 For F k The preset component type, F k2 for Fk1 The lower limit of the range of values ​​for the corresponding preset component type score, F k3 For F k1 The upper limit of the range of values ​​for the corresponding preset component type score, when H j =F k1 Get G at time j G j ∈[F k2 F k3 ], H j For B j The component types of the corresponding intermediate components are known to those skilled in the art. The preset component type score list set is a set pre-set by those skilled in the art according to actual needs. When H j =F k1 At that time, those skilled in the art can, according to actual needs, select from [F] k2 F k3Choose a value as G from the list. j This will not be elaborated upon here.

[0041] Specifically, the component types include: safety-critical components, functional-critical components, energy management components, emergency evacuation routes and facilities components, fire-resistant components, and decorative components.

[0042] S4000, according to D ji and G j Get B j The corresponding display priority score R of the intermediate component j R j The following conditions must be met:

[0043] R j =(ZF j -Min j ) / (Max j -Min j )×100, where ZF j For B j The corresponding critical priority score for the intermediate component, Max j For B j The maximum priority score corresponding to the intermediate component, Min j For B j The minimum priority score corresponding to the intermediate component, ZF j Max j and Min j They each meet the following conditions:

[0044] ZF j =(G j +∑ m i=1 (W i ×D ji ))×(W 0 j +W 1 ), where W i A i The corresponding first preset weight, W 0 j For B j The second preset weight, W, corresponds to the position feature label of the intermediate component. 1 The third preset weight is for the target requirement. As those skilled in the art know, the initial value of the first preset weight is set by those skilled in the art according to the actual requirements, and will not be elaborated here.

[0045] Max j =(G j +∑ m i=1 (Wi ×E 2 ji ))×(W 0 j +W 1 );

[0046] Min j =(G j +∑ m i=1 (W i ×E 1 ji ))×(W 0 j +W 1 ).

[0047] Specifically, Σ m i=1 W i =1.

[0048] Specifically, location feature labels include external components and internal components.

[0049] Furthermore, when B j When the position feature label of the corresponding intermediate component is an external component, W 0 j The range of values ​​for B is [1, 2]; when B j When the position feature label of the corresponding intermediate component is an internal component, W 0 j The value range is [0.5, 1].

[0050] Specifically, the target requirements are the requirements selected by the target user, including NULL or displaying internal components.

[0051] Furthermore, when the target requirement is NULL, W 1 The value range of W is [0, 0.2]; when the target requirement is to display internal components, W 1 The value range is (0.2, 1).

[0052] S5000, according to R j Obtain primary, secondary, and tertiary components.

[0053] Through the above steps, the attribute score of the intermediate component is obtained according to the preset component attribute value list, the type score of the intermediate component is obtained according to the preset component type score list, and the display priority score of the intermediate component is obtained according to the attribute score, type score, second preset weight corresponding to the position feature label of the intermediate component, and third preset weight corresponding to the target requirement. Based on the display priority of the intermediate component, first-level components, second-level components, and third-level components are obtained. The display order of first-level components is earlier than that of second-level components, and the display order of second-level components is earlier than that of third-level components. This reduces the display pressure of BIM models in the Web environment, improves display efficiency, and is conducive to improving user experience.

[0054] Specifically, step S5000 further includes the following sub-steps S5001-S5005:

[0055] S5001, when R j When <L1, R j The corresponding intermediate component is a key component, and L1 is the first preset priority score. As those skilled in the art know, the first preset priority score is set by those skilled in the art according to actual needs, and will not be elaborated here.

[0056] S5002. Obtain the key weight list set P = {P1, P2, ..., P...} y ..., P q}, P y ={P y1 P y2 ..., P yi ..., P ym}, P y Let P be the list of key weights corresponding to the y-th key component. yi For P y China A i The corresponding key weight, P yi The following conditions must be met:

[0057] L1=(G j +W1×D j1 +W2×D j2 +……+W (i-1) ×D j(i-1) +P yi ×D ji +W (i+1) ×D j(i+1) +……+W m ×D jm )×(W 0 j +W 1 ), W (i-1) A (i-1)The corresponding first preset weight, A (i-1) D is the name of the (i-1)th preset component attribute. j(i-1) For B j(i-1) The corresponding attribute score, B j(i-1) For B j China A (i-1) The corresponding preset component attribute value, W (i+1) A (i+1) The corresponding first preset weight, A (i+1) D is the name of the (i+1)th preset component attribute. j(i+1) For B j(i+1) The corresponding attribute score, B j(i+1) For B j China A (i+1) The corresponding preset component attribute values.

[0058] S5003. Obtain the objective function Q(x1, x2, ..., x...). i , ..., x m The optimal solution (x) 01 x 0 2, ..., x 0 i , ..., x 0 m ), where x i Let Q(x1, x2, ..., x) i , ..., x m A in ) i The corresponding parameters, the optimal solution is to make Q(x1, x2, ..., x) work. i , ..., x m A set of solutions that takes the minimum value, Q(x1, x2, ..., x...). i , ..., x m )=∑ m i=1 (x i ×D ji ), x i ∈[min(P 1i P 2i ..., P yi ..., P qi ), max(P 1i P 2i ..., P yi ..., P qi [], min() is the minimum value acquisition function, and max() is the maximum value acquisition function. As those skilled in the art know, any method for obtaining the optimal solution in the prior art is within the protection scope of this invention, and will not be described in detail here.

[0059] Specifically, x i With x0 i Correspondingly.

[0060] S5004, Obtain R 0 j R 0 j To make W i =x 0 i And execute step S4000 to obtain the updated R j .

[0061] S5005, If L1≤R 0 j <L2, then R 0 j The corresponding intermediate component is considered as a third-level component, if L2≤R 0 j <L3, then R 0 j The corresponding intermediate component is treated as a secondary component, if L3≤R 0 j Then R 0 j The corresponding intermediate component is a first-level component. L2 is the second preset priority score and L3 is the third preset priority score. As those skilled in the art know, the second preset priority score and the third preset priority score are set by those skilled in the art according to actual needs, and will not be elaborated here.

[0062] Through the above steps, key components are obtained based on the display priority scores of intermediate components. Furthermore, a key weight list set is obtained, and the optimal solution of the objective function is obtained based on the key weight list set. The first preset weight corresponding to the preset component attribute name is updated based on the optimal solution to obtain the updated display priority scores of intermediate components. First-level components, second-level components, and third-level components are obtained based on the updated display priority scores of intermediate components. This reduces the display pressure on BIM models in the Web environment, improves display efficiency, and helps improve user experience.

[0063] S203. When the specified distance corresponding to the specified component of the second BIM model is not greater than the second preset distance, the specified component corresponding to the second BIM model is used as the intermediate component corresponding to the second BIM model.

[0064] S204. Process all intermediate components corresponding to the second BIM model according to the preset processing method of intermediate components to obtain the first-level components, second-level components and third-level components corresponding to the second BIM model.

[0065] Through the above steps, when the specified distance corresponding to a specified component of the first BIM model is greater than the second preset distance but not greater than the first preset distance, the specified component corresponding to the first BIM model is used as an intermediate component of the first BIM model. All intermediate components of the first BIM model are processed according to the preset processing method for intermediate components to obtain the first-level, second-level, and third-level components of the first BIM model. Similarly, when the specified distance corresponding to a specified component of the second BIM model is greater than the second preset distance but not greater than the first preset distance, the specified component corresponding to the second BIM model is used as an intermediate component of the second BIM model. All intermediate components of the second BIM model are processed according to the preset processing method for intermediate components to obtain the first-level, second-level, and third-level components of the second BIM model. This reduces the display pressure on BIM models in the Web environment, improves display efficiency, and obtains the display priority score of the intermediate component based on its attribute score, type score, second preset weight corresponding to the location feature label of the intermediate component, and third preset weight corresponding to the target requirement. Furthermore, by dynamically obtaining the first-level, second-level, and third-level components, users can quickly access the information they need without being affected by performance, thus improving user experience.

[0066] S30. Take the maximum value among the specified distances of all first-level components, second-level components and third-level components corresponding to the first BIM model as the maximum component distance corresponding to the first BIM model, and take the maximum value among the specified distances of all first-level components, second-level components and third-level components corresponding to the second BIM model as the maximum component distance corresponding to the second BIM model.

[0067] S40. Take the mode of the maximum component distances corresponding to all first BIM models as the first specified distance, and take the mode of the maximum component distances corresponding to all second BIM models as the second specified distance.

[0068] Through the above steps, a first BIM model and a second BIM model are obtained based on a specified BIM model. The maximum component distance corresponding to the first BIM model is obtained based on the specified distances corresponding to all first-level, second-level, and third-level components in the first BIM model. The maximum component distance corresponding to the second BIM model is obtained based on the specified distances corresponding to all first-level, second-level, and third-level components in the second BIM model. The first specified distance is determined based on the maximum component distances corresponding to all first-level components in the first BIM model. The second specified distance is determined based on the maximum component distances corresponding to all second-level components in the second BIM model. This process helps to improve the accuracy of obtaining the first and second specified distances.

[0069] S2. Process all intermediate components corresponding to the target BIM model according to the preset processing method of intermediate components to obtain the first-level components, second-level components and third-level components corresponding to the target BIM model.

[0070] S3. In the target model, the primary, secondary, and tertiary components are displayed in the order corresponding to the target BIM model. The primary components are displayed before the secondary components, and the secondary components are displayed before the tertiary components.

[0071] Specifically, when the average component distance corresponding to the target BIM model is greater than the first specified distance, the simplified model will be used as the target display model; when the average component distance corresponding to the target BIM model is greater than the second specified distance but not greater than the first specified distance, the medium complexity model will be used as the target display model; when the average component distance corresponding to the target BIM model is not greater than the second specified distance, the high resolution model will be used as the target display model.

[0072] Specifically, a simplified model is a 3D model with less geometric detail and lower texture resolution. It has a low polygon count and is typically used for distant viewing or to provide fast rendering in performance-constrained situations. A medium-complexity model is a 3D model with moderate geometric detail and texture resolution, with a polygon count and texture resolution between the simplified and high-resolution models. A high-resolution model is a 3D model with high geometric detail and high-resolution texture, with a very high polygon count and texture resolution, capable of displaying rich details. It can be understood that simplified, medium-complexity, and high-resolution models are models used for different levels of detail (LOD) in 3D graphics rendering. Alternatively, it can be understood that simplified, medium-complexity, and high-resolution models are all different representations of BIM models, representing different levels of complexity of BIM models in different application scenarios.

[0073] By following the steps above, a simplified model, a medium-complexity model, or a high-resolution model can be selected as the target display model for displaying the target BIM model. The target display model has a smaller data volume, lower requirements for computing resources, and less memory usage. Therefore, it can provide a smoother interactive experience and is conducive to improving the user experience.

[0074] Embodiments of the present invention also provide a non-transitory computer-readable storage medium that can be disposed in an electronic device to store a computer program related to implementing a method in the method embodiments, the computer program being loaded and executed by the processor to implement the method provided in the above embodiments.

[0075] Embodiments of the present invention also provide an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method provided in the above embodiments.

[0076] Embodiments of the present invention also provide a computer program product including program code, which, when the program product is run on an electronic device, causes the electronic device to perform the steps of the methods described above in various exemplary embodiments of the present invention.

[0077] This invention provides a lightweight display method, device, and medium for a target BIM model. The method obtains intermediate components corresponding to the target BIM model based on the average component distance, a first specified distance, and a second specified distance. It then processes all intermediate components according to a preset processing method to obtain primary, secondary, and tertiary components. Finally, it displays these components in the target model according to their corresponding display order, with primary components displayed before secondary components, and secondary components displayed before tertiary components. Level 1 components; it can be seen that the present invention can obtain the first, second, and third level components corresponding to the target BIM model. In the target model, the first, second, and third level components are displayed in the order they correspond to the target BIM model. The first level components are displayed before the second level components, and the second level components are displayed before the third level components. It can hide the initial components that do not need to be displayed, and prioritize the loading of the first, second, and third level components corresponding to the target BIM model. While keeping the target BIM model clear and concise, it reduces the display pressure of the BIM model in the Web environment, provides a smoother interactive experience, and is conducive to improving the user experience.

[0078] While specific embodiments of the invention have been described in detail by way of examples, those skilled in the art should understand that the examples are for illustrative purposes only and are not intended to limit the scope of the invention. Those skilled in the art should also understand that various modifications can be made to the embodiments without departing from the scope and spirit of the invention.

Claims

1. A lightweight display method for a target BIM model, characterized in that, The method includes the following steps: S1. When the average component distance corresponding to the target BIM model is greater than the first specified distance, the initial component whose initial distance is greater than the first specified distance is used as the intermediate component corresponding to the target BIM model. When the average component distance corresponding to the target BIM model is greater than the second specified distance but not greater than the first specified distance, the initial component whose initial distance is greater than the second specified distance but not greater than the first specified distance is used as the intermediate component corresponding to the target BIM model. When the average component distance corresponding to the target BIM model is not greater than the second specified distance, the initial component whose initial distance is not greater than the second specified distance is used as the intermediate component corresponding to the target BIM model. Here, the average component distance corresponding to the target BIM model is the average of the initial distances corresponding to all initial components, the initial distance corresponding to the initial component is the distance between the initial component and the current display view of the target BIM model, and the initial component is a component in the target BIM model. S2. Process all intermediate components corresponding to the target BIM model according to the preset processing method of intermediate components to obtain the first-level components, second-level components and third-level components corresponding to the target BIM model. S3. In the target model, the primary, secondary, and tertiary components are displayed in the order corresponding to the target BIM model. The primary components are displayed before the secondary components, and the secondary components are displayed before the tertiary components.

2. The lightweight display method for the target BIM model according to claim 1, characterized in that, Before step S1, steps S10-S40 are included to obtain the first specified distance and the second specified distance: S10. Traverse the list of specified BIM model IDs. When the average component distance of the specified BIM model corresponding to the specified BIM model ID is greater than the second preset distance and not greater than the first preset distance, the specified BIM model is used as the first BIM model. When the average component distance of the specified BIM model corresponding to the specified BIM model ID is not greater than the second preset distance, the specified BIM model is used as the second BIM model. The average component distance of the specified BIM model is the average of the specified distances of all specified components corresponding to the specified BIM model. The specified distance of the specified component is the distance between the specified component and the display view of its corresponding specified BIM model. The specified component is a component in the specified BIM model. S20. Obtain the first-level components, second-level components, and third-level components corresponding to the first BIM model and the second BIM model, respectively. When displaying the first BIM model or the second BIM model, the display order of the first-level components is earlier than that of the second-level components, and the display order of the second-level components is earlier than that of the third-level components. S30. Take the maximum value among the specified distances of all first-level components, second-level components and third-level components corresponding to the first BIM model as the maximum component distance corresponding to the first BIM model, and take the maximum value among the specified distances of all first-level components, second-level components and third-level components corresponding to the second BIM model as the maximum component distance corresponding to the second BIM model. S40. Take the mode of the maximum component distances corresponding to all first BIM models as the first specified distance, and take the mode of the maximum component distances corresponding to all second BIM models as the second specified distance.

3. The lightweight display method for the target BIM model according to claim 2, characterized in that, Step S20 also includes the following sub-steps S201-S204: S201. When the specified distance of the specified component corresponding to the first BIM model is greater than the second preset distance and not greater than the first preset distance, the specified component corresponding to the first BIM model is used as the intermediate component corresponding to the first BIM model. S202. Process all intermediate components corresponding to the first BIM model according to the preset processing method of intermediate components to obtain the first-level components, second-level components and third-level components corresponding to the first BIM model. S203. When the specified distance corresponding to the specified component of the second BIM model is not greater than the second preset distance, the specified component corresponding to the second BIM model is used as the intermediate component corresponding to the second BIM model. S204. Process all intermediate components corresponding to the second BIM model according to the preset processing method of intermediate components, and obtain the first-level components, second-level components and third-level components corresponding to the second BIM model.

4. The lightweight display method for the target BIM model according to claim 1, characterized in that, The intermediate component pre-processing method includes the following steps S1000-S5000: S1000. Obtain a set of preset component attribute values ​​B corresponding to all intermediate components based on the preset component attribute name list A, where A = {A1, A2, ..., A...} i , ..., A m }, A i Let B be the name of the i-th preset component attribute, where i ranges from 1 to m, and m is the number of preset component attribute names. Let B = {B1, B2, ..., B} j , ..., B n }, B j ={B j1 B j2 , ..., B ji , ..., B jn }, B j This is a list of preset component attribute values ​​corresponding to the j-th intermediate component, where j ranges from 1 to n, and n is the number of intermediate components. ji For B j China A i The corresponding preset component attribute values; S2000, Obtain B based on the preset attribute value base score list set C. ji The corresponding attribute score is D. ij Where C = {C1, C2, ..., C} e , ..., C f }, C e ={C e1 C e2 C e3 }, C e Let C be the list of base scores for the e-th preset attribute value, where e ranges from 1 to f, f is the number of the base scores in the preset attribute value list, and C is the base score for the ith attribute. e1 C e The default attribute values ​​in C e2 C e1 The lower limit of the range of the corresponding preset attribute base score, C e3 C e1 The upper limit of the range of the corresponding preset attribute base score, when B ji =C e1 At that time, C e2 As B ji The lower limit E of the corresponding attribute score range 1 ji , will C e3 As B ji The upper limit of the corresponding attribute score E 2 ji And obtain D ji D ji ∈[E 1 ji E 2 ji ]; S3000, Obtain B according to the preset component type score list set F. j The type score G corresponding to the intermediate component j Where F = {F1, F2, ..., F} k , ..., F t }, F k ={F k1 F k2 F k3 }, F k For the list of scores for the k-th preset component type, F k1 For F k The preset component type, F k2 for Fk1 The lower limit of the range of values ​​for the corresponding preset component type score, F k3 For F k1 The upper limit of the range of values ​​for the corresponding preset component type score, when H j =F k1 Get G at time j G j ∈[F k2 F k3 ], H j For B j The component type of the corresponding intermediate component; S4000, according to D ji and G j Get B j The corresponding display priority score R of the intermediate component j R j Meets the following conditions: R j =(ZF j -Min j ) / (Max j -Min j )×100, where ZF j For B j The corresponding critical priority score for the intermediate component, Max j For B j The maximum priority score corresponding to the intermediate component, Min j For B j The minimum priority score corresponding to the intermediate component, ZF j Max j and Min j Each of the following conditions must be met: ZF j =(G j +∑ m i=1 (W i ×D ji ))×(W 0 j +W 1 ), where W i For A i The corresponding first preset weight, W 0 j For B j The second preset weight, W, corresponds to the position feature label of the intermediate component. 1 The third preset weight corresponding to the target requirement; Max j =(G j +∑ m i=1 (W i ×E 2 ji ))×(W 0 j +W 1 ); Min j =(G j +∑ m i=1 (IN i ×E 1 ji ))×(W 0 j +W 1 ); S5000, according to R j Obtain primary, secondary, and tertiary components.

5. The lightweight display method for the target BIM model according to claim 4, characterized in that, Step S5000 also includes the following sub-steps S5001-S5005: S5001, when R j When <L1, R j The corresponding intermediate components are key components, and L1 is the first preset priority score; S5002. Obtain the key weight list set P = {P1, P2, ..., P...} y ..., P q }, P y ={P y1 P y2 ..., P yi ..., P ym }, P y Let P be the list of key weights corresponding to the y-th key component. yi For P y China A i The corresponding key weight, P yi Meets the following conditions: L1=(G j +W1×D j1 +W2×D j2 +……+W (i-1) ×D j(i-1) +P yi ×D ji +W (i+1) ×D j(i+1) +……+W m ×D jm )×(W 0 j +W 1 ), W (i-1) For A (i-1) The corresponding first preset weight, A (i-1) D is the name of the (i-1)th preset component attribute. j(i-1) For B j(i-1) The corresponding attribute score, B j(i-1) For B j China A (i-1) The corresponding preset component attribute value, W (i+1) For A (i+1) The corresponding first preset weight, A (i+1) D is the name of the (i+1)th preset component attribute. j(i+1) For B j(i+1) The corresponding attribute score, B j(i+1) For B j China A (i+1) The corresponding preset component attribute values; S5003. Obtain the objective function Q(x1, x2, ..., x...). i , ..., x m The optimal solution (x) 01 x 0 2, ..., x 0 i , ..., x 0 m ), where x i Let Q(x1, x2, ..., x) i , ..., x m A in ) i The corresponding parameters, the optimal solution is to make Q(x1, x2, ..., x) work. i , ..., x m A set of solutions that takes the minimum value, Q(x1, x2, ..., x...). i , ..., x m )=∑ m i=1 (x i ×D ji ), x i ∈[min(P 1i P 2i ..., P yi ..., P qi ), max(P 1i P 2i ..., P yi ..., P qi min() is the function to find the minimum value, and max() is the function to find the maximum value; S5004, Obtain R 0 j R 0 j To make W i =x 0 i And execute step S4000 to obtain the updated R j ; S5005, If L1≤R 0 j <L2, then R 0 j The corresponding intermediate component is considered as a third-level component, if L2≤R 0 j <L3, then R 0 j The corresponding intermediate component is treated as a secondary component, if L3≤R 0 j Then R 0 j The corresponding intermediate components are designated as first-level components, with L2 being the second preset priority score and L3 being the third preset priority score.

6. The lightweight display method for the target BIM model according to claim 1, characterized in that, When the average component distance corresponding to the target BIM model is greater than the first specified distance, the simplified model will be used as the target display model; when the average component distance corresponding to the target BIM model is greater than the second specified distance but not greater than the first specified distance, the medium complexity model will be used as the target display model; when the average component distance corresponding to the target BIM model is not greater than the second specified distance, the high resolution model will be used as the target display model.

7. The lightweight display method for the target BIM model according to claim 4, characterized in that, Location feature labels include external components and internal components.

8. The lightweight display method for the target BIM model according to claim 7, characterized in that, When B j When the position feature label of the corresponding intermediate component is an external component, W 0 j The range of values ​​for B is [1, 2]; when B j When the position feature label of the corresponding intermediate component is an internal component, W 0 j The value range is [0.5, 1].

9. A non-transitory computer-readable storage medium, characterized in that, The storage medium stores a computer program, which is loaded and executed by a processor to implement the lightweight display method of the target BIM model as described in any one of claims 1-8.

10. An electronic device, comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements a lightweight display method for a target BIM model as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Display method and device of three-dimensional geographic model, computer equipment and storage medium

    CN113763552A

  • BIM model lightweight method based on digital-analog separation and compression optimization

    CN116258804A