A method, device, equipment and medium for obtaining a target display model

By traversing the BIM model ID list, obtaining BIM models of different complexities, and selecting appropriate display models based on component distance, the performance problems of loading and rendering of complex BIM models in the web environment are solved, achieving smoother interactive experience and high-quality visualization.

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

Patent Information

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

AI Technical Summary

Technical Problem

When displaying complex BIM models in a web environment, the model file is large, has a long loading time, takes up a lot of memory, and rendering and processing require strong computing power, resulting in slow rendering speed and slow interaction when user equipment performance is insufficient, errors or details may occur, affecting the visual quality and user experience.

Method used

By traversing the specified BIM model ID list, the first BIM model and the second BIM model are obtained, and the maximum component distance is determined based on their component distances, thereby determining the specified distance. Based on the average component distance of the target BIM model, a simplified model, a medium complexity model or a high resolution model are selected as the target display model to reduce the amount of data and computing resource requirements.

Benefits of technology

By selecting the appropriate display model, the demand for data volume and computing resources is reduced, the loading speed and rendering efficiency is improved, the smoother interactive experience is provided, and the user experience and visual quality is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119026228B_ABST
    Figure CN119026228B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and medium for obtaining a target display model, and relates to the field of data processing technology. The method can obtain a first BIM model and a second BIM model according to a specified BIM model, obtain a first specified distance based on the specified distances corresponding to all first-level components, second-level components and third-level components corresponding to the first BIM model, obtain a second specified distance based on the specified distances corresponding to all first-level components, second-level components and third-level components corresponding to the second BIM model, obtain a target display model according to the average component distance, the first specified distance and the second specified distance corresponding to the target BIM model, the target display model is used to display the target BIM model, the target display model has a small amount of data, a low requirement for computing resources and occupies less memory, can provide a smoother interactive experience, and is conducive to improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and medium for acquiring a target display model. Background Art

[0002] In recent years, Building Information Modeling (BIM) has become a widely used digital tool in the construction industry. BIM models contain rich data and geometric information and can be used to design, construct and operate 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 prior art, the method for displaying BIM models in a Web environment is to download the complete model data to the client at one time, and parse and render it locally so that the BIM model can be displayed in a Web environment.

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

[0004] As the project expands, the complexity of the BIM model will continue to increase. When the complexity of the BIM model is high, the model file corresponding to the BIM model is large and contains a large amount of model data. Therefore, it takes a long time to load the BIM model and it will occupy more memory resources. In addition, rendering and processing large and highly complex BIM models require strong computing power. If the user's device performance is insufficient, the rendering speed of the BIM model will slow down and the interaction will become sluggish. As a result, the BIM model may have errors or lose details, affecting the visualization quality and reducing the user experience. Summary of the invention

[0005] In view of the above technical problems, the technical solution adopted by the present invention is:

[0006] According to a first aspect of the present invention, a method for obtaining a target display model is provided, where the target display model is used to display a target BIM model, and the method comprises the following steps:

[0007] The specified BIM model ID list is traversed. When the average component distance corresponding to 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 specified average component distance corresponding to 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, wherein the average component distance corresponding to the specified BIM model is the average value of the specified distances corresponding to all specified components corresponding to the specified BIM model, the specified distance corresponding to the specified component is the distance between the display perspective of the specified component and its corresponding specified BIM model, and the specified component is the component in the specified BIM model.

[0008] The first-level components, second-level components, and third-level components corresponding to the first BIM model and the second BIM model are obtained, respectively, wherein when displaying the first BIM model or the second BIM model, the first-level components are displayed earlier than the second-level components, and the second-level components are displayed earlier than the third-level components.

[0009] The maximum value of the specified distances corresponding to all the first-level components, second-level components and third-level components corresponding to the first BIM model is used as the maximum component distance corresponding to the first BIM model, and the maximum value of the specified distances corresponding to all the first-level components, second-level components and third-level components corresponding to the second BIM model is used as the maximum component distance corresponding to the second BIM model.

[0010] The mode of the maximum component distances corresponding to all the first BIM models is used as the first designated distance, and the mode of the maximum component distances corresponding to all the second BIM models is used as the second designated distance.

[0011] When the average component distance corresponding to the target BIM model is greater than the first specified distance, the simplified model is used as the target display model; when the average component distance corresponding to the target BIM model is greater than the second specified distance and not greater than the first specified distance, the medium complexity model is 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 is used as the target display model, wherein the average component distance corresponding to the target BIM model is the average value 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 perspective of the target BIM model, and the initial component is the component in the target BIM model.

[0012] According to a second aspect of the present invention, there is provided a device for acquiring a target display model, the target display model being used to display a target BIM model, the device comprising:

[0013] The first BIM model and the second BIM model acquisition module are used to traverse the specified BIM model ID list, and when the average component distance corresponding to 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 specified average component distance corresponding to 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, wherein the average component distance corresponding to the specified BIM model is the average value of the specified distances corresponding to all the specified components corresponding to the specified BIM model, the specified distance corresponding to the specified component is the distance between the display perspective of the specified component and its corresponding specified BIM model, and the specified component is the component in the specified BIM model.

[0014] The component acquisition module is used to obtain the first-level components, second-level components and third-level components corresponding to the first BIM model and the second BIM model respectively, wherein when displaying the first BIM model or the second BIM model, the display order of the first-level components is earlier than the second-level components, and the display order of the second-level components is earlier than the third-level components.

[0015] The maximum component distance acquisition module is used to take the maximum value of the specified distances corresponding to all the 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 of the specified distances corresponding to all the 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.

[0016] The designated distance acquisition module is used to take the mode of the maximum component distances corresponding to all first BIM models as the first designated distance, and take the mode of the maximum component distances corresponding to all second BIM models as the second designated distance.

[0017] The target display model acquisition module is used to use the simplified model as the target display model when the average component distance corresponding to the target BIM model is greater than the first specified distance; use the medium complexity model as the target display model when the average component distance corresponding to the target BIM model is greater than the second specified distance and not greater than the first specified distance; use the high-resolution model as the target display model when the average component distance corresponding to the target BIM model is not greater than the second specified distance, wherein the average component distance corresponding to the target BIM model is the average value 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 viewing angle of the target BIM model, and the initial component is the component in the target BIM model.

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

[0019] According to a fourth aspect of the present invention, there is provided an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned method when executing the computer program.

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

[0021] The present invention provides a method, device, equipment and medium for obtaining a target display model. The method can obtain a first BIM model and a second BIM model according to a specified BIM model, obtain a maximum component distance corresponding to the first BIM model according to the specified distances corresponding to all first-level components, second-level components and third-level components corresponding to the first BIM model, obtain a maximum component distance corresponding to the second BIM model according to the specified distances corresponding to all first-level components, second-level components and third-level components corresponding to the second BIM model, determine a first specified distance according to the maximum component distances corresponding to all first BIM models, determine a second specified distance according to the maximum component distances corresponding to all second BIM models, and when the average component distance corresponding to the target BIM model is When the distance is greater than the first specified distance, the simplified model is used as the target display model; when the average component distance corresponding to the target BIM model is greater than the second specified distance and not greater than the first specified distance, the medium complexity model is 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 is used as the target display model, and the target display model is used to display the target BIM model. It can be seen that the present invention selects a simplified model, a medium-complexity model or a high-resolution model as the target display model for displaying the target BIM model. The target display model has a smaller amount of data, lower requirements on computing resources and occupies less memory. Therefore, it can provide a smoother interactive experience, which is conducive to improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 A flowchart of a method for obtaining a target display model provided in Embodiment 1 of the present invention;

[0024] Figure 2A flowchart of step S2 provided in Embodiment 1 of the present invention;

[0025] Figure 3 A schematic diagram of the structure of a device for obtaining a target display model provided in Embodiment 2 of the present invention;

[0026] Figure 4 This is a schematic diagram of the structure of the component acquisition module 2 provided in the second embodiment of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar tasks, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0029] Embodiment 1,

[0030] Embodiment 1 of the present invention provides a method for obtaining a target display model, wherein the target display model is used to display a target BIM model. The method comprises the following steps: Figure 1 As shown:

[0031] S1. Traverse the specified BIM model ID list. When the average component distance corresponding to 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, use the specified BIM model as the first BIM model; when the specified average component distance corresponding to the specified BIM model corresponding to the specified BIM model ID is not greater than the second preset distance, use the specified BIM model as the second BIM model, wherein the average component distance corresponding to the specified BIM model is the average value of the specified distances corresponding to all specified components corresponding to the specified BIM model, the specified distance corresponding to the specified component is the distance between the display perspective of the specified component and its corresponding specified BIM model, the specified component is a component in the specified BIM model, and the specified BIM model ID list includes several specified BIM model IDs. Those skilled in the art know that the specified BIM model ID list 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 repeated here.

[0032] Specifically, the designated BIM model ID is a unique identifier of the designated BIM model.

[0033] Specifically, before executing step S1, if the format of the file storing the data of the target BIM model is rvt format, the file is input into the Revit modeling software, converted into an ifc format file and output the ifc format file and then execute step S1; if the format of the file storing the data of the target BIM model is ifc format, directly execute step S1.

[0034] Specifically, the distance between the display perspective of the specified component and its corresponding specified BIM model is obtained through the following steps S100-S400:

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

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

[0037] S300, obtaining a projection matrix based on a view matrix and obtaining coordinates of a specified component corresponding to the specified BIM model in a key coordinate system based on the projection matrix, wherein the key coordinate system is a camera coordinate system corresponding to the image acquisition device.

[0038] S400. The distance between the coordinates corresponding to the designated component in the key coordinate system obtained by the Euclidean distance formula and the coordinates corresponding to the position of the image acquisition device in the key coordinate system is used as the distance between the display perspective of the designated component and its corresponding designated BIM model.

[0039] Through the above steps, the view matrix is ​​obtained based on the position of the image acquisition device corresponding to the display perspective of the specified BIM model, the three-dimensional coordinates corresponding to the viewpoint and the up vector, and the projection matrix is ​​further obtained. The coordinates of the specified component corresponding to the specified BIM model in the key coordinate system are obtained based on the projection matrix. The distance between the coordinates corresponding to the specified component in the key coordinate system obtained by the Euclidean distance formula and the coordinates corresponding to the position of the image acquisition device in the key coordinate system is used as the distance between the specified component and the display perspective of the corresponding specified BIM model, which is conducive to improving the accuracy of obtaining the distance between the specified component and the display perspective of the corresponding specified BIM model.

[0040] S2. Obtaining the first-level components, the second-level components, and the third-level components corresponding to the first BIM model and the second BIM model, respectively, wherein when displaying the first BIM model or the second BIM model, the first-level components are displayed earlier than the second-level components, and the second-level components are displayed earlier than the third-level components.

[0041] Specifically, step S2 also includes the following sub-steps S21-S24: Figure 2 As shown:

[0042] S21. When the designated distance corresponding to the designated component corresponding to the first BIM model is greater than the second preset distance and not greater than the first preset distance, use the designated component corresponding to the first BIM model as the intermediate component corresponding to the first BIM model.

[0043] S22: Process all intermediate components corresponding to the first BIM model according to a preset processing method for intermediate components, and obtain primary components, secondary components, and tertiary components corresponding to the first BIM model.

[0044] Specifically, the preset processing method of the intermediate component includes the following steps S10-S50:

[0045] S10, according to the preset component attribute name list A, obtain the preset component attribute value list set B corresponding to all intermediate components, where A={A1, A2, ..., A i , ..., A m}, A i is the name of the i-th preset component attribute, the value range of i is 1 to m, m is the number of preset component attribute names, B={B1, B2, ..., B j , ..., Bn}, B j ={B j1 , B j2 , ..., B ji , ..., B jn}, B j is the list of preset component attribute values ​​corresponding to the jth intermediate component, where j ranges from 1 to n, and n is the number of intermediate components. ji For B j Middle A i The corresponding preset component property value.

[0046] Specifically, the preset component attribute name is the name of the preset component attribute, and the preset component attribute is the attribute pre-set by technical personnel in this field according to actual needs, such as: material, size, location, fire resistance level, function, cost, maintenance difficulty, frequency of use, etc., which will not be repeated here.

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

[0048] S20, obtain B according to the preset attribute value basic score list set C ji The corresponding attribute score D ij , where C={C1, C2, ..., C e , ..., C f}, C e ={C e1 , C e2 , C e3}, C e is the e-th preset attribute value basic score list, the value of e ranges from 1 to f, f is the number of preset attribute value basic score lists, C e1 C e The default attribute value in C e2 C e1 The lower limit of the value range of the corresponding preset attribute value basic score, C e3 C e1 The upper limit of the range of the corresponding preset attribute value basic score, when B ji =C e1 When C e2 As B ji The lower limit of the value range of the corresponding attribute score E 1 ji , C e3 As B ji The upper limit value E of the corresponding attribute score 2 ji And get D ji , D ji ∈[E 1ji , E 2 ji ], those skilled in the art know that the preset attribute value basic score list set is a set pre-set by those skilled in the art according to actual needs, and those skilled in the art can select [E 1 ji , E 2 ji ] and select a value as D ji , I will not go into details here.

[0049] S30, obtain B according to the preset component type score list set F j The corresponding intermediate component type score G j , where F={F1, F2, ..., F k , ..., F t}, F k ={F k1 , F k2 , F k3}, F k is the score list of the kth preset component type, F k1 F k Preset component type in F k2 F k1 The lower limit of the value range of the corresponding preset component type score, F k3 F k1 The upper limit of the range of the corresponding preset component type score, when H j =F k1 Get G j , G j ∈[F k2 , F k3 ], H j For B j The component type of the corresponding intermediate component is known to those skilled in the art. The preset component type score list set is a set preset by those skilled in the art according to actual needs. j =F k1 When the technical personnel in this field can select [F k2 , F k3 ] and select a value as G j , I will not go into details here.

[0050] Specifically, the component types include: safety-critical components, function-critical components, energy management components, emergency evacuation passages and facility components, fire-resistant components, and decorative components.

[0051] S40, according to D ji and G j Get Bj The display priority score R of the corresponding intermediate component j , R j Meet the following conditions:

[0052] R j =(ZF j -Min j ) / (Max j -Min j )×100, where ZF j For B j The key priority score of the corresponding 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 of the corresponding intermediate component, ZF j , Max j and Min j Meet the following conditions respectively:

[0053] 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 corresponding to the position feature label of the corresponding intermediate component, W 1 is a third preset weight corresponding to the target demand. Those skilled in the art know that the initial value of the first preset weight is set by those skilled in the art according to actual needs and will not be described in detail here;

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

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

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

[0057] Specifically, the location feature tag includes an external component and an internal component.

[0058] Furthermore, when B j When the position feature label of the corresponding intermediate component is an external component, W 0 j The value range 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].

[0059] Specifically, the target requirement is the requirement selected by the target user, including NULL or displaying internal components.

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

[0061] S50, according to R j Get the first-level, second-level, and third-level components.

[0062] Through the above steps, the attribute score corresponding to the intermediate component is obtained according to the preset component attribute value list corresponding to the intermediate component, the type score corresponding to the intermediate component is obtained according to the preset component type score list set, the display priority score of the intermediate component is obtained according to the attribute score corresponding to the intermediate component, the type score, the second preset weight corresponding to the position feature label of the intermediate component and the third preset weight corresponding to the target demand, and the first-level component, the second-level component and the third-level component are obtained based on the display priority of the intermediate component, wherein the display order of the first-level component is earlier than that of the second-level component, and the display order of the second-level component is earlier than that of the third-level component, which reduces the display pressure of the BIM model in the Web environment, improves the display efficiency, and is conducive to improving the user experience.

[0063] Specifically, step S50 also includes the following sub-steps S51-S55:

[0064] S51, when R j <L1, Rj The corresponding intermediate component is used as a key component, and L1 is a first preset priority score. Those skilled in the art know that the first preset priority score is set by those skilled in the art according to actual needs and will not be described in detail here.

[0065] S52, 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 is the key weight list corresponding to the yth key component, P yi P y Middle A i The corresponding key weight, P yi Meet the following conditions:

[0066] 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) is the name of the i-1th preset component attribute, D j(i-1) For B j(i-1) The corresponding attribute score, B j(i-1) For B j Middle A (i-1) The corresponding preset component attribute value, W (i+1) A (i+1) The corresponding first preset weight, A (i+1) is the name of the i+1th preset component attribute, D j(i+1) For B j(i+1) The corresponding attribute score, B j(i+1) For B j Middle A (i+1) The corresponding preset component property value.

[0067] S53, obtain the objective function Q(x1, x2, ..., x i , ..., xm ) is the optimal solution (x 0 1,x 0 2, ..., x 0 i , ..., x 0 m ), where x i Q(x1, x2, ..., x i , ..., x m ) i The corresponding parameters, the optimal solution is to make Q(x1, x2, ..., x i , ..., x m ) takes the minimum value of a set of solutions, 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 a minimum value acquisition function, max() is a maximum value acquisition function. Those skilled in the art know that any method for obtaining the optimal solution in the prior art belongs to the protection scope of the present invention and will not be described in detail here.

[0068] Specifically, x i With x 0 i Corresponding.

[0069] S54. Get R 0 j , R 0 j To make W i =x 0 i And execute the updated R obtained in step S40 j .

[0070] S55, if L1≤R 0 j <L2, then R 0 j The corresponding intermediate component is used as a third-level component. If L2≤R 0 j <L3, then R 0 jThe corresponding intermediate component is used as the 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. Technical personnel in this field know that the second preset priority score and the third preset priority score are set by technical personnel in this field according to actual needs and will not be repeated here.

[0071] Through the above steps, the key components are obtained according to the display priority scores of the 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. Based on the optimal solution, the first preset weight corresponding to the preset component attribute name is updated to obtain the updated display priority score of the intermediate component. According to the updated display priority score of the intermediate component, the first-level components, the second-level components and the third-level components are obtained, which reduces the display pressure of the BIM model in the Web environment, improves the display efficiency, and is conducive to improving the user experience.

[0072] S23: When the designated distance corresponding to the designated component corresponding to the second BIM model is not greater than the second preset distance, the designated component corresponding to the second BIM model is used as the intermediate component corresponding to the second BIM model.

[0073] S24. Process all intermediate components corresponding to the second BIM model according to a preset processing method for the intermediate components, and obtain the primary components, secondary components, and tertiary components corresponding to the second BIM model.

[0074] Through the above steps, when the designated distance corresponding to the designated component corresponding to the first BIM model is greater than the second preset distance and not greater than the first preset distance, the designated component corresponding to the first BIM model is used as the intermediate component corresponding to the first BIM model, and all the intermediate components corresponding to the first BIM model are processed according to the preset processing method of the intermediate component, and the first-level component, the second-level component and the third-level component corresponding to the first BIM model are obtained; when the designated distance corresponding to the designated component corresponding to the second BIM model is greater than the second preset distance and not greater than the first preset distance, the designated component corresponding to the second BIM model is used as the intermediate component corresponding to the second BIM model, and all the intermediate components corresponding to the second BIM model are processed according to the preset processing method of the intermediate component, and the first-level component, the second-level component and the third-level component corresponding to the second BIM model are obtained, thereby reducing the display pressure of the BIM model in the Web environment and improving the display efficiency, and according to the attribute score corresponding to the intermediate component, the type score, the second preset weight corresponding to the position feature label of the intermediate component and the third preset weight corresponding to the target demand, the display priority score of the intermediate component is obtained, and further, the first-level component, the second-level component and the third-level component are dynamically obtained, so as to ensure that the user can quickly access the required information without being affected by the performance, which is conducive to improving the user experience.

[0075] S3. The maximum value of the specified distances corresponding to all the first-level components, second-level components and third-level components corresponding to the first BIM model is used as the maximum component distance corresponding to the first BIM model, and the maximum value of the specified distances corresponding to all the first-level components, second-level components and third-level components corresponding to the second BIM model is used as the maximum component distance corresponding to the second BIM model.

[0076] S4. The mode of the maximum component distances corresponding to all first BIM models is used as the first designated distance, and the mode of the maximum component distances corresponding to all second BIM models is used as the second designated distance.

[0077] S5. When the average component distance corresponding to the target BIM model is greater than the first specified distance, the simplified model is used as the target display model; when the average component distance corresponding to the target BIM model is greater than the second specified distance and not greater than the first specified distance, the medium complexity model is 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 is used as the target display model, wherein the average component distance corresponding to the target BIM model is the average value 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 perspective of the target BIM model, and the initial component is a component in the target BIM model, wherein the method of obtaining the distance between the initial component and the current display perspective of the target BIM model is basically the same as the method of obtaining the distance between the specified component and the display perspective of the corresponding specified BIM model. Those skilled in the art may refer to steps S100-S400 to obtain the distance between the initial component and the current display perspective of the target BIM model, which will not be repeated here.

[0078] Specifically, a simplified model is a three-dimensional model with fewer geometric details and lower texture resolution. It has a low number of polygons and is usually used for long-distance observation or to provide fast rendering under performance constraints. A medium-complexity model is a three-dimensional model with moderate geometric details and texture resolution. Its number of polygons and texture resolution are between those of the simplified model and the high-resolution model. A high-resolution model is a three-dimensional model with high geometric details and high-resolution textures. Both its number of polygons and texture resolution are very high and can display rich details. It can be understood that simplified models, medium-complexity models and high-resolution models are models of different levels of detail (LOD) in three-dimensional graphics rendering. It can also be understood that simplified models, medium-complexity models and high-resolution models are different forms of BIM models, representing different levels of complexity of BIM models in different application scenarios.

[0079] Through the above steps, a simplified model, a medium complexity model or a high-resolution model is selected as the target display model for displaying the target BIM model. The target display model has a smaller amount of data, lower requirements for computing resources and occupies less memory. Therefore, it can provide a smoother interactive experience and help improve the user experience.

[0080] Specifically, the present invention further provides a lightweight display method for a target BIM model. The method is different from the method for obtaining a target display model provided in the first embodiment in that, after step S5, the method further includes steps S6-S8:

[0081] S6. When the average component distance corresponding to the target BIM model is greater than the first specified distance, the initial component whose corresponding 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 and not greater than the first specified distance, the initial component whose corresponding initial distance is greater than the second specified distance and 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 corresponding initial distance is not greater than the second specified distance is used as the intermediate component corresponding to the target BIM model.

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

[0083] S8. In the target model, the first-level components, second-level components and third-level components corresponding to the target BIM model are displayed in the order of display, wherein 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.

[0084] Through the above steps, the intermediate components corresponding to the target BIM model are obtained according to the average distance, the first specified distance and the second specified distance corresponding to the target BIM model, all the intermediate components corresponding to the target BIM model are processed according to the preset processing method of the intermediate components, and the first-level components, second-level components and third-level components corresponding to the target BIM model are obtained. In the target model, the first-level components, second-level components and third-level components corresponding to the target BIM model are displayed in the display order corresponding to the target BIM model, wherein 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. The first-level components, second-level components and third-level components corresponding to the target BIM model are loaded first, second and third components corresponding to the target BIM model are loaded first, and the display pressure of the BIM model in the Web environment is reduced while keeping the target BIM model clear and concise, so as to provide a smoother interactive experience and improve the user experience.

[0085] Embodiment 2:

[0086] Embodiment 2 of the present invention provides a device for obtaining a target display model, wherein the target display model is used to display a target BIM model, such as Figure 3 As shown, the device comprises:

[0087] The first BIM model and the second BIM model acquisition module 1 is used to traverse the specified BIM model ID list, and when the average component distance corresponding to 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 specified average component distance corresponding to 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, wherein the average component distance corresponding to the specified BIM model is the average value of the specified distances corresponding to all specified components corresponding to the specified BIM model, the specified distance corresponding to the specified component is the distance between the display perspective of the specified component and its corresponding specified BIM model, the specified component is a component in the specified BIM model, and the specified BIM model ID list includes several specified BIM model IDs. Those skilled in the art know that the specified BIM model ID list 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 repeated here.

[0088] Specifically, the designated BIM model ID is a unique identifier of the designated BIM model.

[0089] Specifically, before executing the first BIM model and the second BIM model acquisition module 1, if the format of the file storing the data of the target BIM model is in rvt format, the file is input into the Revit modeling software, converted into an ifc format file and output the ifc format file, and then the first BIM model and the second BIM model acquisition module 1 are executed; if the format of the file storing the data of the target BIM model is in ifc format, the first BIM model and the second BIM model acquisition module 1 are directly executed.

[0090] Specifically, the device further includes a distance acquisition module, which is used to acquire the distance between the display perspective of the specified component and its corresponding specified BIM model, and the distance acquisition module includes:

[0091] The image acquisition device information acquisition unit is used to obtain the position of the image acquisition device corresponding to the display perspective of the specified BIM model, the three-dimensional coordinates corresponding to the viewpoint, and the upper vector, wherein the viewpoint represents the target point that the image acquisition device is looking at, and the upper vector represents the upper direction of the image acquisition device.

[0092] The view matrix acquisition unit is used to acquire the view matrix based on the position of the image acquisition device, the three-dimensional coordinates corresponding to the viewpoint and the up vector.

[0093] A coordinate acquisition unit is used to acquire a projection matrix based on a view matrix and to acquire the coordinates of a specified component corresponding to the specified BIM model in a key coordinate system based on the projection matrix, wherein the key coordinate system is a camera coordinate system corresponding to the image acquisition device.

[0094] A distance acquisition unit is used to use the distance between the coordinates corresponding to the designated component in the key coordinate system obtained by the Euclidean distance formula and the coordinates corresponding to the position of the image acquisition device in the key coordinate system as the distance between the display perspective of the designated component and its corresponding designated BIM model.

[0095] The component acquisition module 2 is used to obtain the first-level components, second-level components and third-level components corresponding to the first BIM model and the second BIM model respectively, wherein when displaying the first BIM model or the second BIM model, the display order of the first-level components is earlier than the second-level components, and the display order of the second-level components is earlier than the third-level components.

[0096] The maximum component distance acquisition module 3 is used to take the maximum value of the specified distances corresponding to all the 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 of the specified distances corresponding to all the 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.

[0097] The designated distance acquisition module 4 is used to take the mode of the maximum component distances corresponding to all first BIM models as the first designated distance, and take the mode of the maximum component distances corresponding to all second BIM models as the second designated distance.

[0098] The target display model acquisition module 5 is used to use the simplified model as the target display model when the average component distance corresponding to the target BIM model is greater than the first specified distance; use the medium complexity model as the target display model when the average component distance corresponding to the target BIM model is greater than the second specified distance and not greater than the first specified distance; use the high-resolution model as the target display model when the average component distance corresponding to the target BIM model is not greater than the second specified distance, wherein the average component distance corresponding to the target BIM model is the average value of the initial distances corresponding to all initial components, and the initial distance corresponding to the initial component is the distance between the initial component and the current display perspective of the target BIM model, and the initial component is a component in the target BIM model, wherein the method of obtaining the distance between the initial component and the current display perspective of the target BIM model is basically the same as the method of obtaining the distance between the specified component and the display perspective of the corresponding specified BIM model. Those skilled in the art can refer to the step of obtaining the distance between the specified component and the display perspective of the corresponding specified BIM model to obtain the distance between the initial component and the current display perspective of the target BIM model, which will not be repeated here.

[0099] Specifically, a simplified model is a three-dimensional model with fewer geometric details and lower texture resolution. It has a low number of polygons and is usually used for long-distance observation or to provide fast rendering under performance constraints. A medium-complexity model is a three-dimensional model with moderate geometric details and texture resolution. Its number of polygons and texture resolution are between those of the simplified model and the high-resolution model. A high-resolution model is a three-dimensional model with high geometric details and high-resolution textures. Both its number of polygons and texture resolution are very high and can display rich details. It can be understood that simplified models, medium-complexity models and high-resolution models are models of different levels of detail (LOD) in three-dimensional graphics rendering. It can also be understood that simplified models, medium-complexity models and high-resolution models are different forms of BIM models, representing different levels of complexity of BIM models in different application scenarios.

[0100] Specifically, Figure 4 As shown, the component acquisition module 2 includes:

[0101] The first intermediate component acquisition unit 21 is used to use the designated component corresponding to the first BIM model as the intermediate component corresponding to the first BIM model when the designated distance corresponding to the designated component corresponding to the first BIM model is greater than the second preset distance and not greater than the first preset distance.

[0102] The first BIM model component acquisition unit 22 is used to process all intermediate components corresponding to the first BIM model according to a preset processing method for intermediate components, and acquire primary components, secondary components and tertiary components corresponding to the first BIM model.

[0103] The second intermediate component acquisition unit 23 is used to use the designated component corresponding to the second BIM model as the intermediate component corresponding to the second BIM model when the designated distance corresponding to the designated component corresponding to the second BIM model is not greater than the second preset distance.

[0104] The second BIM model component acquisition unit 24 is used to process all intermediate components corresponding to the second BIM model according to a preset processing method for intermediate components, and acquire primary components, secondary components and tertiary components corresponding to the second BIM model.

[0105] Specifically, the device further includes an intermediate component preset processing module, which is used to execute the intermediate component preset processing method, and the intermediate component preset processing module includes:

[0106] The preset component attribute value list set acquisition unit is used to acquire the preset component attribute value list set B corresponding to all intermediate components according to the preset component attribute name list A, wherein A={A1, A2, ..., A i , ..., A m}, A i is the name of the i-th preset component attribute, the value range of i is 1 to m, m is the number of preset component attribute names, B={B1, B2, ..., B j , ..., B n}, B j ={B j1 , B j2 , ..., B ji , ..., B jn}, B j is the list of preset component attribute values ​​corresponding to the jth intermediate component, where j ranges from 1 to n, and n is the number of intermediate components. ji For B j Middle A i The corresponding preset component property value.

[0107] Specifically, the preset component attribute name is the name of the preset component attribute, and the preset component attribute is the attribute pre-set by technical personnel in this field according to actual needs, such as: material, size, location, fire resistance level, function, cost, maintenance difficulty, frequency of use, etc., which will not be repeated here.

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

[0109] The attribute score acquisition unit is used to obtain B according to the preset attribute value basic score list set C. ji The corresponding attribute score D ij , where C={C1, C2, ..., C e , ..., C f}, C e ={C e1 , C e2 , C e3}, C e is the e-th preset attribute value basic score list, the value of e ranges from 1 to f, f is the number of preset attribute value basic score lists, C e1 C e The default attribute value in C e2 C e1 The lower limit of the value range of the corresponding preset attribute value basic score, C e3 C e1 The upper limit of the range of the corresponding preset attribute value basic score, when B ji =C e1 When C e2 As B ji The lower limit of the value range of the corresponding attribute score E 1 ji , C e3 As B ji The upper limit value E of the corresponding attribute score 2 ji And get D ji , D ji ∈[E 1 ji , E 2 ji ], those skilled in the art know that the preset attribute value basic score list set is a set pre-set by those skilled in the art according to actual needs, and those skilled in the art can select [E 1 ji , E 2 ji ] and select a value as D ji , I will not go into details here.

[0110] A type score acquisition unit is used to acquire B according to a preset component type score list set F. j The corresponding intermediate component type score G j , where F={F1, F2, ..., F k , ..., F t}, F k ={F k1 , F k2 , F k3}, Fk is the score list of the kth preset component type, F k1 F k Preset component type in F k2 F k1 The lower limit of the value range of the corresponding preset component type score, F k3 F k1 The upper limit of the range of the corresponding preset component type score, when H j =F k1 Get G j , G j ∈[F k2 , F k3 ], H j For B j The component type of the corresponding intermediate component is known to those skilled in the art. The preset component type score list set is a set preset by those skilled in the art according to actual needs. j =F k1 When the technical personnel in this field can select [F k2 , F k3 ] and select a value as G j , I will not go into details here.

[0111] Specifically, the component types include: safety-critical components, function-critical components, energy management components, emergency evacuation passages and facility components, fire-resistant components, and decorative components.

[0112] Display priority acquisition unit, used to obtain the priority of the D ji and G j Get B j The display priority score R of the corresponding intermediate component j , R j Meet the following conditions:

[0113] R j =(ZF j -Min j ) / (Max j -Min j )×100, where ZF j For B j The key priority score of the corresponding 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 of the corresponding intermediate component, ZF j , Max j and Min j Meet the following conditions respectively:

[0114] 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 corresponding to the position feature label of the corresponding intermediate component, W 1 is a third preset weight corresponding to the target demand. Those skilled in the art know that the initial value of the first preset weight is set by those skilled in the art according to actual needs and will not be described in detail here;

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

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

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

[0118] Specifically, the location feature tag includes an external component and an internal component.

[0119] Furthermore, when B j When the position feature label of the corresponding intermediate component is an external component, W 0 j The value range 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].

[0120] Specifically, the target requirement is the requirement selected by the target user, including NULL or displaying internal components.

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

[0122] Component acquisition unit, used to obtain j Get the first-level, second-level, and third-level components.

[0123] Specifically, the component acquisition unit also includes:

[0124] Key component acquisition subunit, used when R j <L1, R j The corresponding intermediate component is used as a key component, and L1 is a first preset priority score. Those skilled in the art know that the first preset priority score is set by those skilled in the art according to actual needs and will not be described in detail here.

[0125] The key weight list set acquisition subunit is used to 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 is the key weight list corresponding to the yth key component, P yi P y Middle A i The corresponding key weight, P yi Meet the following conditions:

[0126] 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) is the name of the i-1th preset component attribute, D j(i-1) For B j(i-1) The corresponding attribute score, B j(i-1) For B j Middle A (i-1) The corresponding preset component attribute value, W (i+1) A (i+1) The corresponding first preset weight, A (i+1) is the name of the i+1th preset component attribute, D j(i+1) For B j(i+1) The corresponding attribute score, B j(i+1) For B j Middle A (i+1) The corresponding preset component property value.

[0127] The optimal solution acquisition subunit is used to obtain the objective function Q(x1, x2, ..., x i , ..., x m ) is the optimal solution (x 0 1,x 0 2, ..., x 0 i , ..., x 0 m ), where x i Q(x1, x2, ..., x i , ..., x m ) i The corresponding parameters, the optimal solution is to make Q(x1, x2, ..., x i , ..., x m ) takes the minimum value of a set of solutions, 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 a minimum value acquisition function, max() is a maximum value acquisition function. Those skilled in the art know that any method for obtaining the optimal solution in the prior art belongs to the protection scope of the present invention and will not be described in detail here.

[0128] Specifically, x i With x 0i Corresponding.

[0129] Data update unit, used to obtain R 0 j , R 0 j To make W i =x 0 i And execute the updated R obtained in step S40 j .

[0130] Component acquisition subunit, used if L1≤R 0 j <L2, then R 0 j The corresponding intermediate component is used as a third-level component. If L2≤R 0 j <L3, then R 0 j The corresponding intermediate component is used as the 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. Technical personnel in this field know that the second preset priority score and the third preset priority score are set by technical personnel in this field according to actual needs and will not be repeated here.

[0131] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, which can be set in an electronic device to store a computer program related to a method in a method embodiment, and the computer program is loaded and executed by the processor to implement the method provided in the above embodiment.

[0132] An embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method provided in the above embodiment when executing the computer program.

[0133] An embodiment of the present invention further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present invention described above in this specification.

[0134] The present invention provides a method, device, equipment and medium for obtaining a target display model. The method can obtain a first BIM model and a second BIM model according to a specified BIM model, obtain a maximum component distance corresponding to the first BIM model according to the specified distances corresponding to all first-level components, second-level components and third-level components corresponding to the first BIM model, obtain a maximum component distance corresponding to the second BIM model according to the specified distances corresponding to all first-level components, second-level components and third-level components corresponding to the second BIM model, determine a first specified distance according to the maximum component distances corresponding to all first BIM models, determine a second specified distance according to the maximum component distances corresponding to all second BIM models, and when the average component distance corresponding to the target BIM model is When the distance is greater than the first specified distance, the simplified model is used as the target display model; when the average component distance corresponding to the target BIM model is greater than the second specified distance and not greater than the first specified distance, the medium complexity model is 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 is used as the target display model, and the target display model is used to display the target BIM model. It can be seen that the present invention selects a simplified model, a medium-complexity model or a high-resolution model as the target display model for displaying the target BIM model. The target display model has a smaller amount of data, lower requirements on computing resources and occupies less memory. Therefore, it can provide a smoother interactive experience, which is conducive to improving user experience.

[0135] Although some specific embodiments of the present invention have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are only for illustration, not for limiting the scope of the present invention. It should also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention.

Claims

1. A method for obtaining a target display model, wherein the target display model is used to display a target BIM model, characterized in that: The method comprises the following steps: Traverse the specified BIM model ID list, and when the average component distance corresponding to 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, use the specified BIM model as the first BIM model; when the specified average component distance corresponding to the specified BIM model corresponding to the specified BIM model ID is not greater than the second preset distance, use the specified BIM model as the second BIM model, wherein the average component distance corresponding to the specified BIM model is the average value of the specified distances corresponding to all specified components corresponding to the specified BIM model, the specified distance corresponding to the specified component is the distance between the display perspective of the specified component and the specified BIM model corresponding to it, and the specified component is a component in the specified BIM model; Obtaining the first-level components, the second-level components, and the third-level components corresponding to the first BIM model and the second BIM model, respectively, wherein when displaying the first BIM model or the second BIM model, the first-level components are displayed earlier than the second-level components, and the second-level components are displayed earlier than the third-level components; The maximum value among the specified distances corresponding to all the first-level components, second-level components and third-level components corresponding to the first BIM model is used as the maximum component distance corresponding to the first BIM model, and the maximum value among the specified distances corresponding to all the first-level components, second-level components and third-level components corresponding to the second BIM model is used as the maximum component distance corresponding to the second BIM model; The mode of the maximum component distances corresponding to all first BIM models is used as the first designated distance, and the mode of the maximum component distances corresponding to all second BIM models is used as the second designated distance; When the average component distance corresponding to the target BIM model is greater than the first specified distance, the simplified model is used as the target display model; when the average component distance corresponding to the target BIM model is greater than the second specified distance and not greater than the first specified distance, the medium complexity model is 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 is used as the target display model, wherein the average component distance corresponding to the target BIM model is the average value 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 viewing angle of the target BIM model, and the initial component is the component in the target BIM model; The step of obtaining the first-level components, the second-level components and the third-level components corresponding to the first BIM model and the second BIM model respectively further includes the following steps: When the designated distance corresponding to the designated component corresponding to the first BIM model is greater than the second preset distance and not greater than the first preset distance, taking the designated component corresponding to the first BIM model as the intermediate component corresponding to the first BIM model; Process all intermediate components corresponding to the first BIM model according to a preset processing method for the intermediate components, and obtain the first-level components, second-level components, and third-level components corresponding to the first BIM model; When the designated distance corresponding to the designated component corresponding to the second BIM model is not greater than the second preset distance, using the designated component corresponding to the second BIM model as the intermediate component corresponding to the second BIM model; Process all intermediate components corresponding to the second BIM model according to a preset processing method for the intermediate components, and obtain the first-level components, second-level components, and third-level components corresponding to the second BIM model; The preset processing method for intermediate components includes: obtaining the attribute score corresponding to the intermediate component according to the preset component attribute value list corresponding to the intermediate component, obtaining the type score corresponding to the intermediate component according to the preset component type score list set, obtaining the display priority score of the intermediate component according to the attribute score corresponding to the intermediate component, the type score, the second preset weight corresponding to the location feature label of the intermediate component and the third preset weight corresponding to the target requirement, and obtaining the first-level component, the second-level component and the third-level component based on the display priority of the intermediate component.

2. The method for obtaining a target display model according to claim 1, characterized in that: The specified BIM model ID list includes a plurality of specified BIM model IDs.

3. The method for obtaining a target display model according to claim 1, characterized in that: Use the following steps to obtain the distance between a specified component and its corresponding specified BIM model display perspective: Obtain the position of the image acquisition device corresponding to the display perspective of the specified BIM model, the three-dimensional coordinates corresponding to the viewpoint, and the upper vector, wherein the viewpoint represents the target point that the image acquisition device is looking at, and the upper vector represents the upper direction of the image acquisition device; Acquire a view matrix based on the position of the image acquisition device, the three-dimensional coordinates corresponding to the viewpoint, and the up vector; Acquire a projection matrix based on a view matrix and acquire coordinates of a specified component corresponding to the specified BIM model in a key coordinate system based on the projection matrix, wherein the key coordinate system is a camera coordinate system corresponding to the image acquisition device; The distance between the coordinates corresponding to the designated component in the key coordinate system obtained by the Euclidean distance formula and the coordinates corresponding to the position of the image acquisition device in the key coordinate system is used as the distance between the display viewing angle of the designated component and its corresponding designated BIM model.

4. A device for obtaining a target display model, wherein the target display model is used to display a target BIM model, characterized in that: The device comprises: A first BIM model and a second BIM model acquisition module, configured to traverse a specified BIM model ID list, and when an average component distance corresponding to a specified BIM model corresponding to a specified BIM model ID is greater than a second preset distance and not greater than the first preset distance, use the specified BIM model as the first BIM model; when a specified average component distance corresponding to a specified BIM model corresponding to a specified BIM model ID is not greater than the second preset distance, use the specified BIM model as the second BIM model, wherein the average component distance corresponding to the specified BIM model is an average value of specified distances corresponding to all specified components corresponding to the specified BIM model, the specified distance corresponding to a specified component is a distance between a display perspective of a specified component and its corresponding specified BIM model, and the specified component is a component in the specified BIM model; A component acquisition module, used to acquire the first-level components, second-level components and third-level components corresponding to the first BIM model and the second BIM model respectively, wherein 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; A maximum component distance acquisition module is used to use the maximum value of the specified distances corresponding to all the 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 use the maximum value of the specified distances corresponding to all the 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; A designated distance acquisition module, used for taking the mode of the maximum component distances corresponding to all first BIM models as the first designated distance, and taking the mode of the maximum component distances corresponding to all second BIM models as the second designated distance; A target display model acquisition module is used to use the simplified model as the target display model when the average component distance corresponding to the target BIM model is greater than the first specified distance; use the medium complexity model as the target display model when the average component distance corresponding to the target BIM model is greater than the second specified distance and not greater than the first specified distance; use the high-resolution model as the target display model when the average component distance corresponding to the target BIM model is not greater than the second specified distance, wherein the average component distance corresponding to the target BIM model is the average value 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 viewing angle of the target BIM model, and the initial component is a component in the target BIM model; The component acquisition module includes: a first intermediate component acquisition unit, configured to use the designated component corresponding to the first BIM model as the intermediate component corresponding to the first BIM model when the designated distance corresponding to the designated component corresponding to the first BIM model is greater than the second preset distance and not greater than the first preset distance; A first BIM model component acquisition unit is used to process all intermediate components corresponding to the first BIM model according to a preset processing method for intermediate components, and acquire primary components, secondary components, and tertiary components corresponding to the first BIM model; a second intermediate component acquisition unit, configured to use the designated component corresponding to the second BIM model as the intermediate component corresponding to the second BIM model when the designated distance corresponding to the designated component corresponding to the second BIM model is not greater than the second preset distance; The second BIM model component acquisition unit is used to process all intermediate components corresponding to the second BIM model according to a preset processing method for the intermediate components, and acquire the first-level components, second-level components and third-level components corresponding to the second BIM model; The preset processing method for intermediate components includes: obtaining the attribute score corresponding to the intermediate component according to the preset component attribute value list corresponding to the intermediate component, obtaining the type score corresponding to the intermediate component according to the preset component type score list set, obtaining the display priority score of the intermediate component according to the attribute score corresponding to the intermediate component, the type score, the second preset weight corresponding to the location feature label of the intermediate component and the third preset weight corresponding to the target requirement, and obtaining the first-level component, the second-level component and the third-level component based on the display priority of the intermediate component.

5. The device for acquiring a target display model according to claim 4, characterized in that: The specified BIM model ID list includes a plurality of specified BIM model IDs.

6. The device for acquiring a target display model according to claim 4, characterized in that: The device further includes a distance acquisition module, which is used to acquire the distance between the display perspective of the designated component and its corresponding designated BIM model, and the distance acquisition module includes: An image acquisition device information acquisition unit, used to acquire the position of the image acquisition device corresponding to the display viewing angle of the specified BIM model, the three-dimensional coordinates corresponding to the viewpoint, and an upper vector, wherein the viewpoint represents the target point that the image acquisition device is looking at, and the upper vector represents the upper direction of the image acquisition device; A view matrix acquisition unit, used to acquire a view matrix based on the position of the image acquisition device, the three-dimensional coordinates corresponding to the viewpoint, and the up vector; A coordinate acquisition unit, used to acquire a projection matrix based on a view matrix and acquire the coordinates of a specified component corresponding to the specified BIM model in a key coordinate system based on the projection matrix, wherein the key coordinate system is a camera coordinate system corresponding to the image acquisition device; A distance acquisition unit is used to use the distance between the coordinates corresponding to the designated component in the key coordinate system obtained by the Euclidean distance formula and the coordinates corresponding to the position of the image acquisition device in the key coordinate system as the distance between the display perspective of the designated component and its corresponding designated BIM model.

7. 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 method for acquiring a target display model as described in any one of claims 1 to 3.

8. An electronic device comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for acquiring a target display model as described in any one of claims 1 to 3 when executing the computer program.

Citation Information

Patent Citations

  • Method of producing image data, image data processing apparatus, and recording medium

    US5793376A

  • Model data processing method, apparatus and device, and computer-readable storage medium

    WO2021184689A1