A display method, device, electronic device and storage medium for BIM model components

By obtaining the two-dimensional and three-dimensional expression data of the target components in the BIM model, and selecting the appropriate expression data for rendering and displaying according to the target display method, the problem of cumbersome conversion between different expression methods of the BIM model is solved, and efficient rendering and data processing is achieved.

CN114444172BActive Publication Date: 2025-06-10深圳市万翼数字技术有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111654689.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-06-10
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

The conversion process of existing BIM models between different expression modes is cumbersome, and there is a coupling relationship between 2D and 3D expressions, which makes it difficult to modify.

Method used

By obtaining the two-dimensional and three-dimensional expression data of the target component in the BIM model, selecting the appropriate expression data for rendering and displaying according to the target display method, realizing independent rendering and switching of two-dimensional and three-dimensional expressions.

Benefits of technology

It solves the problem of cumbersome conversion process between different expression methods, reduces the difficulty of rendering and display, improves data processing speed, and simplifies the switching process of expression methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114444172B_ABST
    Figure CN114444172B_ABST
Patent Text Reader

Abstract

The present application relates to a display method, device, electronic device and storage medium for BIM model components, belonging to the field of building information technology. Among them, a display method for BIM model components includes: obtaining expression data of a target component, where the expression data includes two-dimensional expression data and three-dimensional expression data; obtaining a target display method; and according to the target display method, determining to perform rendering display on the target component based on the two-dimensional expression data and / or the three-dimensional expression data. When switching between different expression methods, there is no need to perform conversion of expression data. Different expression data can be selected for rendering display according to the target display method, solving the problem of cumbersome conversion processes between different expression methods, reducing the difficulty of rendering display, and improving the data processing speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of building information technology, and in particular, to a method, device, electronic device, and storage medium for displaying BIM model components. Background Art

[0002] Building Information Modeling (BIM) is an overall process for creating and managing building asset information. BIM is based on an intelligent model supported by a cloud platform, integrating structured, multi-domain data to generate a digital representation of an asset throughout its entire life cycle (from planning and design to construction and operation).

[0003] Generally, the BIM model adopts a 2D expression form. When it is necessary to draw a 3D expression of the BIM model, it is converted from the 2D expression to the 3D expression. Or, the BIM model adopts a 3D expression form. When it is necessary to draw a 2D expression of the BIM model, it is converted from 3D to 2D. The switching between the two expression forms requires modifying the expression method of each vertex in the BIM model, and the conversion process is cumbersome. Moreover, there is a coupling relationship between the 2D and 3D expressions, resulting in difficult modification during the drawing process of the BIM model. Summary of the Invention

[0004] To solve the technical problem of the cumbersome conversion process between different expression methods, the present application provides a method, device, electronic device, and storage medium for displaying BIM model components.

[0005] In a first aspect, the present application provides a method for displaying BIM model components, the method comprising:

[0006] Obtaining expression data of a target component in a BIM model, the expression data including two-dimensional expression data and three-dimensional expression data;

[0007] Obtaining a target display method;

[0008] Determining to render and display the target component according to the two-dimensional expression data and / or the three-dimensional expression data according to the target display method;

[0009] Further, obtaining the expression data of the target component in the BIM model includes:

[0010] Obtaining identification information of the target component;

[0011] Obtaining the expression data corresponding to the identification information according to the identification information and a preset mapping relationship; the mapping relationship is a mapping relationship between the identification information and the expression data;

[0012] Further, the target display mode is the first display mode; rendering and displaying the target component according to the two-dimensional expression data and / or the three-dimensional expression data includes:

[0013] On the main thread, performing two-dimensional rendering and display of the target component according to the two-dimensional expression data;

[0014] On the background thread, performing three-dimensional rendering and display of the target component according to the three-dimensional expression data;

[0015] Further, the target display mode is the second display mode; rendering and displaying the target component according to the two-dimensional expression data and / or the three-dimensional expression data includes:

[0016] On the main thread, performing three-dimensional rendering and display of the target component according to the three-dimensional expression data;

[0017] On the background thread, performing two-dimensional rendering and display of the target component according to the two-dimensional expression data;

[0018] Further, the method includes:

[0019] Rendering and displaying the target component rendered on the main thread in a first area, and rendering and displaying the target component rendered on the background thread in a second area;

[0020] Further, the method further includes:

[0021] Obtaining modification parameters of the target component;

[0022] Simultaneously modifying the two-dimensional expression data and the three-dimensional expression data according to the modification parameters;

[0023] Further, the method further includes:

[0024] Obtaining the original data of the BIM model; the original data includes family data and nested family data within the family data;

[0025] Separating the family data and the nested family data, and respectively extracting the expression data of the target component included in the separated family data and the nested family data.

[0026] In a second aspect, the present application provides a display device for BIM model components, and the device includes:

[0027] A first acquisition module, configured to acquire expression data of a target component in a BIM model, where the expression data includes two-dimensional expression data and three-dimensional expression data;

[0028] A second acquisition module, configured to acquire a target display mode;

[0029] A rendering module, configured to determine, according to the target display mode, to perform rendering and display of the target component based on the two-dimensional expression data and / or the three-dimensional expression data.

[0030] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus;

[0031] The memory is used to store a computer program;

[0032] The processor, when executing the program stored on the memory, implements the steps of the method for displaying a BIM model component according to any one of the embodiments in the first aspect.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the method for displaying a BIM model component according to any one of the embodiments in the first aspect.

[0034] The above technical solutions provided by the embodiments of the present application have the following advantages compared with the prior art:

[0035] The method provided by the embodiments of the present application includes: obtaining expression data of a target component in a BIM model, where the expression data includes two-dimensional expression data and three-dimensional expression data; obtaining a target display mode; determining, according to the target display mode, to perform rendering and display of the target component based on the two-dimensional expression data and / or the three-dimensional expression data. When switching different expression modes, it is not necessary to perform conversion of expression data. Different expression data can be selected for rendering and display according to the target display mode, solving the problem of cumbersome conversion between different expression modes, reducing the difficulty of rendering and display, and improving the data processing speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present invention and used together with the description to explain the principles of the present invention.

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

[0038] Figure 1 It is a system architecture diagram of a method for displaying a BIM model component provided by an embodiment of the present application;

[0039] Figure 2 Flow schematic diagram of a display method for BIM model components provided by an embodiment of the present application;

[0040] Figure 3 Schematic diagram of different expression forms of a door in the prior art;

[0041] Figure 4 Flow schematic diagram of parameter modification in a display method for BIM model components provided by an embodiment of the present application;

[0042] Figure 5 Structural schematic diagram of a display device for BIM model components provided by an embodiment of the present application;

[0043] Figure 6 Structural schematic diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0044] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0045] The first embodiment of the present application provides a display method for BIM model components, and this method can be applied to a system architecture as shown in Figure 1 . In this system architecture, at least a terminal 100 and a server 101 are included. A communication connection is established between the terminal 100 and the server 101. The display method for BIM model components can be applied to the terminal 100 side or the server 101 side.

[0046] Based on this system architecture, an embodiment of the display method for BIM model components will be described.

[0047] A display method for BIM model components, as shown in Figure 2 , the method includes:

[0048] Step 201, obtain the expression data of the target component in the BIM model, where the expression data includes two-dimensional expression data and three-dimensional expression data.

[0049] Step 202, obtain the target display mode.

[0050] Step 203, according to the target display mode, determine to render and display the target component according to the two-dimensional expression data and / or three-dimensional expression data.

[0051] In this embodiment, the expression data of the target component in the BIM model is obtained. The expression data includes two-dimensional expression data and three-dimensional expression data. The expression data of the target component is separated. According to the expression methods included in the target display method, the two-dimensional expression data and / or the three-dimensional expression data are rendered and displayed. When switching different expression methods, there is no need to convert between the two-dimensional expression data and the three-dimensional expression data. Different expression data can be selected for rendering according to the target display method, which solves the problem of the cumbersome conversion process between different expression methods of the target component, reduces the rendering difficulty, and improves the data processing speed.

[0052] In one embodiment, obtaining the expression data of the target component in the BIM model includes: obtaining the identification information of the target component; according to the identification information and the preset mapping relationship, obtaining the expression data corresponding to the identification information; the mapping relationship is the mapping relationship between the identification information and the expression data.

[0053] The expression data includes two-dimensional expression data and three-dimensional expression data; the mapping relationship includes the mapping relationship between the identification information and the two-dimensional expression data in the two-dimensional expression method, and the mapping relationship between the identification information and the three-dimensional expression data in the three-dimensional expression method; the two-dimensional expression data includes the description data of the two-dimensional abstract graph of the target component; the three-dimensional expression data includes the description data of the three-dimensional graph of the target component. By obtaining the identification information of the target component, the description data of the two-dimensional abstract graph and the description data of the three-dimensional graph of the target component corresponding to the identification information can be obtained, and according to the target display method, it is determined to perform rendering and display according to the description data of the two-dimensional abstract graph and / or the description data of the three-dimensional graph.

[0054] Among them, the target component can be a family component, or a nested family component in the family component, or any component part in the family component or the nested family component. The two-dimensional expression method is the 2D expression, and the three-dimensional expression form is the 3D expression. The two-dimensional data is represented by symbolic lines, and the symbolic lines are only displayed in the two-dimensional view. The three-dimensional data is a solid geometric graph, which is default displayed in the three-dimensional view. It can also be set whether the graph is displayed in the two-dimensional view. The two-dimensional view includes a two-dimensional plan view and a two-dimensional elevation view.

[0055] As an abstract symbol of the component, the two-dimensional expression can accurately represent the component and conform to the drawing habits of designers. The two-dimensional expression can be displayed on both the plane and the elevation.

[0056] The BIM model is a three-dimensional information model, and all components in the model are true mappings of real objects. When the design result requires presenting a three-dimensional model, the BIM model can be presented. When the design result requires issuing two-dimensional drawings, then the three-dimensional components need to be abstracted into specific symbols in two dimensions for expression, so as to conform to the drawing specifications and habits in traditional design.

[0057] Taking the target component as a door in a building as an example, such as Figure 3 , which are the three-dimensional expression, two-dimensional planar expression, and two-dimensional elevation expression of the door respectively. It can be seen that the expressions of the door in two dimensions, whether it is the two-dimensional planar expression or the two-dimensional elevation expression, are not the true mappings of the door. However, these two-dimensional abstract symbols are commonly used in the industry and do not affect others' reading of the drawings. There are many such abstract expressions in the fields of architecture, structure, plumbing, and electrical engineering. In the mapping relationship, the two-dimensional expression data and the three-dimensional expression data are stored separately. According to the identification information of the target component, the corresponding two-dimensional expression data and three-dimensional expression data are retrieved. According to the target display mode, when it is necessary to display the two-dimensional expression data, the two-dimensional expression data is rendered and displayed, and when it is necessary to display the three-dimensional expression data, the three-dimensional expression data is rendered and displayed, realizing the decoupling of the two-dimensional expression data and the three-dimensional expression data, solving the problem that when converting between the two-dimensional expression and the three-dimensional expression, it is necessary to modify the expression mode of each vertex, greatly simplifying the difficulty of conversion and improving the efficiency when switching the expression mode.

[0058] To improve the efficiency when converting between the two-dimensional expression and the three-dimensional expression, the two-dimensional expression data and the three-dimensional expression data can be rendered simultaneously, and the expression data to be displayed is rendered and displayed, while the expression data that is not temporarily required to be displayed can be rendered and reserved in the background.

[0059] In one embodiment, the target display mode is the first display mode; rendering and displaying the target component according to the two-dimensional expression data and / or the three-dimensional expression data includes: in the main thread, performing two-dimensional rendering and display of the target component according to the two-dimensional expression data; in the background thread, performing three-dimensional rendering and display of the target component according to the three-dimensional expression data. Among them, the first display mode may include displaying the two-dimensional expression data.

[0060] When it is necessary to display the two-dimensional expression data, the main thread performs the rendering and display of the two-dimensional expression data, and at the same time, the three-dimensional expression data is synchronously rendered in the background thread. It can be that the main interface performs real-time 2D plane drawing through the main thread, and the 3D model is rendered in the background through an off-screen rendering method by a background process, avoiding causing jams to the main thread and improving the operation fluency. Moreover, in the mapping relationship, the two-dimensional data and the three-dimensional data are stored separately and there is no coupling relationship, and they can be independently rendered during rendering. For example, when performing a two-dimensional expression, there is no need to consider the data of the three-dimensional expression, reducing the number of patches and vertices, and the rendering efficiency is higher. Rendering the required expression mode in the main thread can fully balance the rendering efficiency of the computer. When it is necessary to switch to displaying the three-dimensional expression data, the rendered three-dimensional expression data can be directly displayed, improving the processing speed when switching the expression mode and enhancing the user experience.

[0061] In one embodiment, the target display mode is the second display mode; rendering and displaying the target component according to the two-dimensional expression data and / or three-dimensional expression data includes: in the main thread, performing three-dimensional rendering and display of the target component according to the three-dimensional expression data; in the background thread, performing two-dimensional rendering and display of the target component according to the two-dimensional expression data. Among them, the second display mode may include displaying the three-dimensional expression data.

[0062] When it is necessary to display the three-dimensional expression data, the main thread performs the rendering and display of the three-dimensional expression data, and at the same time, the two-dimensional expression data is synchronously rendered in the background thread. It can be that the main interface performs 3D real-time drawing through the main thread, and the 2D model is rendered in the background through the background process by means of off-screen rendering, avoiding jamming the main thread and improving the operation fluency. In the mapping relationship, the two-dimensional data and the three-dimensional data are stored separately, and the two-dimensional and three-dimensional are expressed separately, without a coupling relationship. During rendering, they can be rendered independently, and the required expression mode is rendered in the main thread, which can fully balance the rendering efficiency of the computer. When it is necessary to switch to displaying the two-dimensional expression data, the rendered two-dimensional expression data can be directly displayed, improving the processing speed when switching the expression mode and enhancing the user experience.

[0063] In one embodiment, the method includes: rendering and displaying the target component rendered by the main thread in the first area, and rendering and displaying the target component rendered by the background thread in the second area. Since the component includes two-dimensional expression data and three-dimensional expression data, developers can edit the component in the two-dimensional state or in the three-dimensional state. When the developer edits the component in the two-dimensional editing mode, the two-dimensional model of the component is displayed in the editing area, and the corresponding three-dimensional model is displayed in the preview area; when the developer switches to the three-dimensional editing mode, the three-dimensional model of the component is displayed in the editing area, and the corresponding two-dimensional model is displayed in the preview area.

[0064] In this embodiment, the two-dimensional expression data and the three-dimensional expression data can be displayed simultaneously on the rendering and display interface. The first area and the second area are different areas on the rendering and display interface. The first area can be the editing area, and the second area can be the preview area. The two-dimensional expression data and the three-dimensional expression data can be rendered and displayed in the editing area and the preview area respectively at the same time. During the switch, the rendering and display contents of the editing area and the preview area are switched. In one embodiment, the method further includes: obtaining the modification parameters of the target component; modifying the two-dimensional expression data and the three-dimensional expression data according to the modification parameters.

[0065] In this embodiment, if it is necessary to modify the two-dimensional expression data and the three-dimensional expression data, the parameters can be edited at the front end to obtain modified parameters, and the two-dimensional expression data and the three-dimensional expression data at the back end are modified according to the modified parameters. This method can be applied not only before determining the rendering and display of the target component based on the two-dimensional expression data and / or the three-dimensional expression data, but also after determining the rendering and display of the target component based on the two-dimensional expression data and / or the three-dimensional expression data. Specifically, as Figure 4 , it includes: step 401, front-end editing; step 402, parameter change; step 403, data modification; step 404, data modeling; step 405, re-rendering. For example, when two-dimensional expression is being performed at the front end, after the parameters at the front end change, the two-dimensional expression data at the back end and the three-dimensional expression data corresponding to the parameters are modified according to the modified parameters, and data modeling is driven by the expression data, and two-dimensional re-rendering is performed at the front end, where the expression data includes two-dimensional expression data and three-dimensional expression data.

[0066] In one embodiment, the method further includes: obtaining the original data of the BIM model, where the original data includes family data and nested family data within the family data; separating the family data and the nested family data, and respectively extracting the expression data of the target components included in the separated family data and nested family data.

[0067] When this method is used on the terminal side, such as for online rendering on the browser side, if the original data of the BIM model is directly rendered, there are multiple references between the components in the original data and there is a lot of redundant information. For example, there is a door on a wall. In the original data of the BIM model, the information of the wall will be stored in the data of the door, and the information of the door will also be stored in the data of the wall. Therefore, the original data generally has a large data volume, the time cost of data transmission will increase, and at the same time, there are also high requirements for the transmission speed. In this embodiment, by pre-processing the original data, the target components to be rendered and the information required for rendering included in the target components in the original data are extracted and separately formed into a component. After adding the component, the data user only focuses on the data they want to focus on, and moreover, the redundant information of multiple references is removed from the data in the component, and the data is relatively concise. The component has strong scalability and can include all the components that need to be added later.

[0068] The original data has no component part. Data users need to search for the required data in all the data, which makes data usage relatively complex. In the data format of this embodiment, there is a component part. Data users only need to search for data in the component for rendering, which is more straightforward. Through this method, the data required for front-end rendering is organized in advance. Compared with the original data of the BIM model, the data volume is greatly reduced. Due to the streamlined data, the data transmission time is shortened, the efficiency of front-end data interaction can be improved, and thus the rendering efficiency can be increased.

[0069] Nested family data refers to the family data nested in the family data. For example, taking a parking space as an example, a parking space includes a stretched body, text, a pier, etc. The parking space is family data, and the pier among them is nested family data. In this embodiment, the family data and the nested family data in the original data are separated, and the expression data of the target components included in the separated family data and nested family data are extracted respectively. Still taking the parking space as an example, the stretched body, text, pier, etc. in the original data of the parking space are separated from the parking space and stored in the component. When it is necessary to render the parking space, according to the identification information corresponding to the component to be rendered, the corresponding data is searched in the component. If it is two-dimensional rendering, the corresponding two-dimensional expression data is obtained in the component. If it is three-dimensional rendering, the corresponding three-dimensional expression data is obtained in the component.

[0070] Family data can also be classified according to family type data. The family data with the same family type are stored together. The family data with the same family type share a set of templates, and the family data are distinguished by ID, further streamlining the data, reducing the data size, and facilitating front-end use.

[0071] It can be understood that since the BIM model is composed of several components, those skilled in the art can obtain the corresponding display method of the BIM model through the display method of the BIM model components provided by the present invention. In this way, when developers view or edit the BIM model, they can switch between two-dimensional or three-dimensional modes at will.

[0072] Based on the same technical concept, the second embodiment of the present application provides a display device for BIM model components, as Figure 5 , the device includes:

[0073] The first acquisition module 501 is used to acquire the expression data of the target component in the BIM model, and the expression data includes two-dimensional expression data and three-dimensional expression data;

[0074] The second acquisition module 502 is used to acquire the target display mode;

[0075] A rendering module 503, configured to determine, according to the target display mode, to perform rendering and display of the target component based on the two-dimensional expression data and / or the three-dimensional expression data.

[0076] In this embodiment, the expression data of the target component in the BIM model is obtained. The expression data includes two-dimensional expression data and three-dimensional expression data. The expression data of the target component is separated. According to the expression modes included in the target display mode, rendering and display of the two-dimensional expression data and / or the three-dimensional expression data are performed. When switching different expression modes, there is no need to perform conversion between the two-dimensional expression data and the three-dimensional expression data. Different expression data can be selected for rendering according to the target display mode, which solves the problem of cumbersome conversion process between different expression modes, reduces the rendering difficulty, and improves the data processing speed.

[0077] As Figure 6 shown, the third embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114. Among them, the processor 111, the communication interface 112, and the memory 113 complete communication with each other through the communication bus 114.

[0078] The memory 113 is used to store a computer program.

[0079] In one embodiment, when the processor 111 is used to execute the program stored on the memory 113, it implements the method for displaying BIM model components provided in any one of the foregoing method embodiments, including:

[0080] Obtain the expression data of the target component in the BIM model, where the expression data includes two-dimensional expression data and three-dimensional expression data;

[0081] Obtain the target display mode;

[0082] According to the target display mode, determine to perform rendering and display of the target component based on the two-dimensional expression data and / or the three-dimensional expression data.

[0083] The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0084] The communication interface is used for communication between the above terminal and other devices.

[0085] The memory may include a Random Access Memory (RAM), or may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0086] The aforementioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processing (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0087] The fourth embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the BIM model component display method provided in any one of the foregoing method embodiments are implemented, including:

[0088] Obtain the expression data of the target component in the BIM model, where the expression data includes two-dimensional expression data and three-dimensional expression data;

[0089] Obtain the target display mode;

[0090] According to the target display mode, determine to render and display the target component according to the two-dimensional expression data and / or the three-dimensional expression data.

[0091] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

[0092] It should be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.

[0093] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. In the description, suffixes such as "module", "component" or "unit" used to represent elements are only for the convenience of explaining the present invention and have no specific meaning in themselves. Therefore, "module", "component" or "unit" can be used interchangeably.

[0094] The above are only specific embodiments of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but rather will be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for displaying BIM model components, characterized in that, the method includes: Obtain the expression data of the target component in the BIM model, where the expression data includes separated two-dimensional expression data and three-dimensional expression data; Obtain the target display mode; According to the target display mode, determine to render and display the target component according to the two-dimensional expression data and / or the three-dimensional expression data; wherein, when switching different expression modes, there is no need to convert between the two-dimensional expression data and the three-dimensional expression data; if it is necessary to modify the two-dimensional expression data and the three-dimensional expression data of the target component, edit the parameters at the front end to obtain modified parameters, and simultaneously modify the two-dimensional expression data and the three-dimensional expression data at the back end according to the modified parameters; wherein, obtaining the expression data of the target component in the BIM model includes: Obtain the identification information of the target component; According to the identification information and the preset mapping relationship, obtain the expression data corresponding to the identification information; the mapping relationship is the mapping relationship between the identification information and the expression data; wherein, in the mapping relationship, the two-dimensional expression data and the three-dimensional expression data are respectively stored, and the corresponding two-dimensional expression data and three-dimensional expression data are retrieved according to the identification information of the target component. According to the target display mode, when it is necessary to display the two-dimensional expression data, the two-dimensional expression data is rendered and displayed, and when it is necessary to display the three-dimensional expression data, the three-dimensional expression data is rendered and displayed, realizing the decoupling of the two-dimensional expression data and the three-dimensional expression data; When it is necessary to display the two-dimensional expression data, the main thread performs the rendering and display of the two-dimensional expression data, and at the same time, the background thread performs the synchronous rendering of the three-dimensional expression data to avoid causing jams to the main thread.

2. The method according to claim 1, characterized in that, the target display mode is the first display mode, and rendering and displaying the target component according to the two-dimensional expression data and / or the three-dimensional expression data includes: On the main thread, perform two-dimensional rendering and display of the target component according to the two-dimensional expression data; On the background thread, perform three-dimensional rendering and display of the target component according to the three-dimensional expression data.

3. The method according to claim 1, characterized in that, the target display mode is the second display mode; rendering and displaying the target component according to the two-dimensional expression data and / or the three-dimensional expression data includes: On the main thread, perform three-dimensional rendering and display of the target component according to the three-dimensional expression data; On the background thread, perform two-dimensional rendering and display of the target component according to the two-dimensional expression data.

4. The method according to claim 2 or 3, characterized in that, the method includes: Render and display the target component rendered by the main thread in the first area, and render and display the target component rendered by the background thread in the second area.

5. The method according to claim 1, characterized in that, the method further includes: Obtain the modified parameters of the target component; Simultaneously modify the two-dimensional expression data and the three-dimensional expression data according to the modified parameters.

6. The method according to claim 1, characterized in that, The method further includes: Obtaining the original data of the BIM model, where the original data includes family data and nested family data within the family data; Separating the family data and the nested family data, and respectively extracting the expression data of the target component included in the separated family data and the nested family data.

7. A display device for BIM model components, characterized in that the device includes: A first acquisition module for acquiring the expression data of the target component in the BIM model, where the expression data includes two-dimensional expression data and three-dimensional expression data; A second acquisition module for acquiring the target display mode; A rendering module for determining, according to the target display mode, to render and display the target component according to the two-dimensional expression data and / or the three-dimensional expression data; wherein, when switching different expression modes, there is no need to convert between the two-dimensional expression data and the three-dimensional expression data; if it is necessary to modify the two-dimensional expression data and the three-dimensional expression data of the target component, edit the parameters at the front end to obtain modified parameters, and simultaneously modify the two-dimensional expression data and the three-dimensional expression data at the backend according to the modified parameters; wherein, the obtaining of the expression data of the target component in the BIM model includes: Obtaining the identification information of the target component; According to the identification information and the preset mapping relationship, obtaining the expression data corresponding to the identification information; the mapping relationship is the mapping relationship between the identification information and the expression data; Wherein, in the mapping relationship, the two-dimensional expression data and the three-dimensional expression data are respectively stored, and the corresponding two-dimensional expression data and three-dimensional expression data are retrieved according to the identification information of the target component. According to the target display mode, it is determined that when the two-dimensional expression data needs to be displayed, the two-dimensional expression data is rendered and displayed, and when the three-dimensional expression data needs to be displayed, the three-dimensional expression data is rendered and displayed, realizing the decoupling of the two-dimensional expression data and the three-dimensional expression data; When the two-dimensional expression data needs to be displayed, the main thread performs the rendering and display of the two-dimensional expression data, and at the same time, the three-dimensional expression data is synchronously rendered in the background thread to avoid causing jams to the main thread.

8. An electronic device, characterized in that it includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus; The memory is used for storing computer programs; The processor is used for implementing the steps of the display method of the BIM model component according to any one of claims 1-6 when executing the program stored on the memory.

9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program realizes the steps of the display method of the BIM model component according to any one of claims 1-6 when being executed by a processor.

Citation Information

Patent Citations

  • Two-dimensional and three-dimensional real-time linkage online drawing annotation checking system and method

    CN112560275A

  • Method of providing properties-based BIM information, and system therefor

    WO2011065623A1