Processing method and device of three-dimensional building model, equipment and medium

By importing the two-dimensional architectural drawings to the three-dimensional engine platform and performing proportional checksum adjustments, the problem of low efficiency in construction of three-dimensional building models in the existing technology is solved, and efficient three-dimensional model generation and equipment information binding are achieved.

CN120070779AActive Publication Date: 2025-05-30TONGFANG SMART ENERGY CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510550307.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2025-05-30
Estimated Expiration
2045-04-29

AI Technical Summary

Technical Problem

In the prior art, the efficiency of building a three-dimensional building model is low, and human-powered information is required to bind the placement of equipment in the scene, the correlation between equipment and space, the correlation between equipment information and equipment model, etc.

Method used

By obtaining the pre-drawn two-dimensional architectural drawings, importing the three-dimensional engine platform to generate a three-dimensional scene drawing, using the original drawing scale of the two-dimensional architectural drawing to add electromechanical equipment to the three-dimensional scene drawing, and performing proportional verification. If abnormal, analyze the standard drawing scale as the target scale, and re-add the equipment to ensure the accuracy of the three-dimensional position.

Benefits of technology

It realizes the automatic mapping of electromechanical equipment in two-dimensional architectural drawings into three-dimensional architectural models, significantly improving the efficiency of three-dimensional architectural model generation, reducing labor costs, and ensuring the accuracy of the equipment's spatial information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120070779A_ABST
    Figure CN120070779A_ABST
Patent Text Reader

Abstract

The invention discloses a three-dimensional building model processing method and device, equipment and a medium. The method comprises the following steps: acquiring a two-dimensional architectural drawing, and importing the two-dimensional architectural drawing into a three-dimensional engine platform to generate a three-dimensional scene graph; adopting the original drawing proportion of the two-dimensional architectural drawing, adding the electromechanical equipment into a three-dimensional scene graph according to the position information of the electromechanical equipment to obtain the three-dimensional position of the electromechanical equipment, and verifying the original drawing proportion according to the three-dimensional position of the electromechanical equipment and the three-dimensional scene graph; constructing a model of electromechanical equipment in the three-dimensional scene graph to obtain a three-dimensional building model; based on the three-dimensional building model, attribute information of the electromechanical equipment is determined, and the attribute information at least comprises space attributes. According to the embodiment of the invention, the electromechanical equipment in the two-dimensional building drawing can be automatically mapped into the three-dimensional building model, the generation efficiency of the model is improved, and the labor cost is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer graphics processing, and particularly to a method, device, equipment and medium for processing a three-dimensional building model. Background Art

[0002] For model systems such as air conditioners, water pumps, access control, cameras, electricity meters, water meters, gas meters, etc., the drawing of a three-dimensional model scene requires model engineers to draw with reference to two-dimensional building drawings. Although there are related tools for generation, for information such as the placement of equipment in the scene, the association between equipment and space, and the association between equipment information and equipment models, all need to be bound manually, which is time-consuming and laborious. Summary of the Invention

[0003] The present invention provides a method, device, equipment and medium for processing a three-dimensional building model to solve the problem of low efficiency in constructing a three-dimensional building model in the prior art.

[0004] According to one aspect of the present invention, there is provided a method for processing a three-dimensional building model, including:

[0005] Obtain a pre-drawn two-dimensional building drawing in a drawing tool, where the two-dimensional building drawing includes building elements and type and position information of mechanical and electrical equipment markings;

[0006] Import the two-dimensional building drawing into a three-dimensional engine platform to generate a three-dimensional scene drawing;

[0007] Adopt the original drawing scale of the two-dimensional building drawing, add the mechanical and electrical equipment to the three-dimensional scene drawing according to the position information of the mechanical and electrical equipment to obtain the three-dimensional positions of the mechanical and electrical equipment, and verify the original drawing scale according to the three-dimensional positions of the mechanical and electrical equipment and the three-dimensional scene drawing;

[0008] If the original drawing scale is normal, use the original drawing scale as the target drawing scale;

[0009] If the verification of the original drawing scale is abnormal, parse a pre-specified standard drawing scale from the two-dimensional building drawing, use the standard drawing scale as the target drawing scale, and adopt the target drawing scale to re-add the mechanical and electrical equipment to the three-dimensional scene drawing according to the position information of the mechanical and electrical equipment to obtain the three-dimensional positions of the mechanical and electrical equipment;

[0010] Construct a model of the mechanical and electrical equipment in the three-dimensional scene drawing according to the type of the mechanical and electrical equipment markings and the three-dimensional positions of the mechanical and electrical equipment to obtain a three-dimensional building model;

[0011] Based on the three-dimensional building model, determine the attribute information of the mechanical and electrical equipment, where the attribute information includes at least spatial attributes.

[0012] According to another aspect of the present invention, there is provided a processing device for a three-dimensional building model, including:

[0013] An architectural drawing module, configured to obtain a two-dimensional architectural drawing pre-drawn in a drawing tool, where the two-dimensional architectural drawing includes architectural elements and type and position information of mechanical and electrical equipment markings;

[0014] A scene graph module, configured to import the two-dimensional architectural drawing into a three-dimensional engine platform to generate a three-dimensional scene graph;

[0015] A scale verification module, configured to adopt the original drawing scale of the two-dimensional architectural drawing, add the mechanical and electrical equipment to the three-dimensional scene graph according to the position information of the mechanical and electrical equipment to obtain the three-dimensional positions of the mechanical and electrical equipment, and verify the original drawing scale according to the three-dimensional positions of the mechanical and electrical equipment and the three-dimensional scene graph;

[0016] A target scale module, configured to, if the original drawing scale is normal, use the original drawing scale as the target drawing scale; if the verification of the original drawing scale is abnormal, parse a pre-specified standard drawing scale from the two-dimensional architectural drawing, use the standard drawing scale as the target drawing scale, and re-add the mechanical and electrical equipment to the three-dimensional scene graph according to the position information of the mechanical and electrical equipment using the target drawing scale to obtain the three-dimensional positions of the mechanical and electrical equipment;

[0017] An equipment model module, configured to construct a model of the mechanical and electrical equipment in the three-dimensional scene graph according to the type of the mechanical and electrical equipment markings and the three-dimensional positions of the mechanical and electrical equipment to obtain a three-dimensional building model;

[0018] An attribute information module, configured to determine attribute information of the mechanical and electrical equipment based on the three-dimensional building model, where the attribute information at least includes spatial attributes.

[0019] According to another aspect of the present invention, there is provided an electronic device, where the electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the processing method of the three-dimensional building model according to any embodiment of the present invention.

[0020] According to another aspect of the present invention, there is provided a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the processing method of the three-dimensional building model according to any embodiment of the present invention when executed by a processor.

[0021] In the embodiment of the present invention, a two-dimensional building drawing is imported into a three-dimensional engine platform to generate a three-dimensional scene drawing. The original drawing scale of the two-dimensional building drawing is verified to obtain a target drawing scale. Then, based on the target drawing scale and the position information of the mechanical and electrical equipment in the two-dimensional building drawing, the mechanical and electrical equipment is added to the three-dimensional scene drawing to obtain the three-dimensional positions of the mechanical and electrical equipment. According to the types marked on the mechanical and electrical equipment and the three-dimensional positions of the mechanical and electrical equipment, models of the mechanical and electrical equipment are constructed in the three-dimensional scene drawing to obtain a three-dimensional building model. Thus, based on the three-dimensional building model, the attribute information of the mechanical and electrical equipment is determined, and the attribute information at least includes spatial attributes. Through the above processing, the mechanical and electrical equipment in the two-dimensional building drawing is automatically mapped to the three-dimensional building model based on the two-dimensional building drawing, the three-dimensional building model is constructed, and the spatial information of the mechanical and electrical equipment is obtained, which can significantly improve the efficiency of generating the three-dimensional building model based on the two-dimensional building drawing, greatly reduce the labor cost, and the constructed three-dimensional building model accurately reflects the spatial structure of the equipment, providing an intuitive visual representation for spatial analysis and understanding.

[0022] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0024] Figure 1 is the first flowchart of a method for processing a three-dimensional building model provided by an embodiment of the present invention;

[0025] Figure 2 is the second flowchart of a method for processing a three-dimensional building model provided by an embodiment of the present invention;

[0026] Figure 3 is the third flowchart of a method for processing a three-dimensional building model provided by an embodiment of the present invention;

[0027] Figure 4 is the structural schematic diagram of a device for processing a three-dimensional building model provided by an embodiment of the present invention;

[0028] Figure 5 is the structural schematic diagram of an electronic device for implementing the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0029] To enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0030] 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 objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances 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 "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0031] Figure 1 is the first flowchart of a method for processing a three-dimensional building model provided by an embodiment of the present invention. This embodiment is applicable to the situation of mapping electromechanical devices in a two-dimensional building drawing to a three-dimensional building model. This method can be executed by a processing device for a three-dimensional building model. The device can be implemented in the form of hardware and / or software, and the device can be configured in an electronic device with corresponding data processing capabilities. As Figure 1 shown, the method includes:

[0032] S101. Obtain a two-dimensional building drawing pre-drawn in a drawing tool, where the two-dimensional building drawing includes building elements and the type and position information of electromechanical device markings.

[0033] Among them, the drawing tool is a tool for drawing graphics and patterns. The drawing tool includes computer software. Engineers can use the drawing tool to draw two-dimensional architectural drawings and draw three-dimensional model scenes with reference to the two-dimensional architectural drawings. In the construction industry, two-dimensional architectural drawings can be used to represent the external shape, internal layout, structural construction, internal and external decoration, material construction methods, and drawings for equipment, construction, etc. of a building. A two-dimensional architectural drawing is a planar graph that represents the shape, size, position, and structural relationship of a building on a two-dimensional plane through elements such as lines, symbols, graphics, and text. It is mainly used to display the floor plan, elevation design, or section design of a building and can be used to guide building construction. The architectural elements on a two-dimensional architectural drawing are elements such as lines, symbols, and text, and the shape, size, position, and function of the building are expressed through the architectural elements. If the building scene is the first floor of a certain building, the corresponding two-dimensional architectural drawing of the building scene is used to represent the architectural layout of the first floor of the building, including architectural elements such as rooms, walls, columns, and office workstations.

[0034] The type and location information of mechanical and electrical equipment can be marked on the two-dimensional architectural drawing through text. The type can include at least one of air conditioners, water pumps, access control systems, cameras, electricity meters, water meters, gas meters, etc. The graphics of mechanical and electrical equipment such as air conditioners, water pumps, access control systems, cameras, electricity meters, water meters, gas meters, etc. are not directly drawn on the two-dimensional architectural drawing. The location information is the landing position of the mechanical and electrical equipment on the two-dimensional architectural drawing.

[0035] S102. Import the two-dimensional architectural drawing into a three-dimensional engine platform to generate a three-dimensional scene graph.

[0036] Among them, the three-dimensional engine platform is a software development framework built based on three-dimensional graphics technology. In the construction field, a two-dimensional architectural drawing can be imported to construct a complex three-dimensional building model scene, which can be used to realize the visualization of the building.

[0037] Specifically, by importing the two-dimensional architectural drawing of the building scene into the three-dimensional engine platform to generate a three-dimensional scene graph, an intuitive and vivid model scene can be obtained, meeting various requirements such as design, display, and simulation. Still taking the two-dimensional architectural drawing used to represent the architectural layout of the first floor of a building as an example, a three-dimensional scene graph including architectural elements such as rooms, walls, columns, and office workstations can be obtained by importing the two-dimensional architectural drawing into the three-dimensional engine platform.

[0038] S103. Adopt the original drawing scale of the two-dimensional architectural drawing, add the mechanical and electrical equipment to the three-dimensional scene graph according to the location information of the mechanical and electrical equipment to obtain the three-dimensional positions of the mechanical and electrical equipment, and verify the original drawing scale according to the three-dimensional positions of the mechanical and electrical equipment and the three-dimensional scene graph. If the original drawing scale is normal, continue to execute S104; otherwise, jump to execute S105.

[0039] Among them, the original drawing scale is the ratio between the drawing unit initially set by the user in the drawing software and the actual object size. The two-dimensional architectural drawing contains the original drawing scale of the automatically recorded architectural elements (for example, 1:100, where 1:100 means that 1 unit length on the drawing corresponds to 100 unit lengths of the actual object). The drawing scale refers to the ratio of the graphics in the drawing space, that is, the ratio between the drawing unit and the actual object size. Usually, the staff will use the original drawing scale for drawing. However, affected by scaling habits, etc., the drawing scales used by different personnel may actually be different. For example, after the user magnifies and edits a part of the two-dimensional architectural drawing, the graphic size in the model space has changed, and the drawing scale has changed. If the drawing scale setting is not updated at this time, it will result in the inconsistency between the actual drawing scale and the original drawing scale, making the original drawing scale recorded in the two-dimensional architectural drawing inaccurate. Therefore, during the process of converting a two-dimensional architectural drawing into a three-dimensional architectural model, verifying the drawing scale of the two-dimensional architectural drawing can avoid the problem that the three-dimensional position of the mechanical and electrical equipment deviates due to scale imbalance, affecting the visual effect of the three-dimensional architectural model.

[0040] Exemplarily, determine the origin coordinates of the two-dimensional architectural drawing in the three-dimensional scene diagram; determine whether the coordinate axes of the two-dimensional drawing are consistent with the coordinate system of the three-dimensional scene. If they are inconsistent, the coordinate axes need to be adjusted; combine the position information of the mechanical and electrical equipment in the two-dimensional architectural drawing and the original drawing scale of the two-dimensional architectural drawing to calculate the horizontal and vertical coordinates of the mechanical and electrical equipment in the three-dimensional scene diagram. If the coordinate axes need to be adjusted, adjust the horizontal and vertical coordinates of the mechanical and electrical equipment in the three-dimensional scene diagram according to the adjusted angle of the coordinate axes; moreover, the height of the mechanical and electrical equipment in the three-dimensional scene diagram can be determined according to the equipment height of the mechanical and electrical equipment and the reference height of the space (such as a room) where the mechanical and electrical equipment is located. Also, determine whether the position relationship of the mechanical and electrical equipment has changed according to the three-dimensional position of the mechanical and electrical equipment in the three-dimensional scene diagram, such as determining whether the three-dimensional position of the mechanical and electrical equipment exceeds the room it belongs to, whether the position relationship between different mechanical and electrical equipment has changed, etc. If the three-dimensional position of the mechanical and electrical equipment has changed, that is, the verification result of the original drawing scale is abnormal; otherwise, the verification result of the original drawing scale is normal.

[0041] S104. Use the original drawing scale as the target drawing scale.

[0042] Among them, the target drawing scale is the drawing scale that meets the expected imagined effect. The target drawing scale is used to control the size and accuracy of the final graphics to ensure that the final output result meets the expected visual effect and actual application requirements. If the verification result of the original drawing scale is normal, it indicates that the original drawing scale is accurate and error-free, and this original drawing scale can be used as the target drawing scale, so as to subsequently add the mechanical and electrical equipment in the two-dimensional architectural drawing to the three-dimensional scene diagram correspondingly, ensuring the accuracy of the three-dimensional position of the mechanical and electrical equipment in the three-dimensional scene diagram.

[0043] S105. Parse a pre-specified standard drawing scale from the two-dimensional building drawing, use the standard drawing scale as the target drawing scale, and based on the target drawing scale, re-add the mechanical and electrical equipment to the three-dimensional scene drawing according to the position information of the mechanical and electrical equipment to obtain the three-dimensional position of the mechanical and electrical equipment.

[0044] Among them, the standard drawing scale is also pre-stored on the two-dimensional building drawing. The standard drawing scale is the drawing scale entered by the user through a specified field, and the standard drawing scale can be stored in an encrypted manner. Exemplarily, after the user zooms and edits the two-dimensional building drawing and the drawing scale changes, the user can input the standard drawing scale and store it encrypted on the two-dimensional building drawing. The encryption method is not limited here. The drawing scales of different building elements in the two-dimensional building drawing are the same.

[0045] Specifically, if the verification of the original drawing scale is abnormal, it indicates that the drawing scale setting has not been updated in time and the original drawing scale is inaccurate. Then, instead of using the original drawing scale as the target drawing scale, the pre-specified standard drawing scale is parsed from the two-dimensional building drawing and used as the target drawing scale. This can effectively ensure the accuracy and reliability of obtaining the three-dimensional position of the mechanical and electrical equipment by adding the mechanical and electrical equipment to the three-dimensional scene drawing, and then continue to process using the target drawing scale. By verifying the original drawing scale, it avoids the problem that when there are a large number of mechanical and electrical equipment, it is only found that the drawing scale is incorrect after all the mechanical and electrical equipment are imported into the three-dimensional scene drawing, and large-scale modifications are required. It realizes that if there is a problem with the drawing scale, the problem can be discovered in time, and the risk of deviation in the three-dimensional position of the mechanical and electrical equipment when added to the three-dimensional scene drawing due to inaccurate drawing scale can be avoided in advance, which can effectively improve work efficiency and save the time for modification and rework.

[0046] S106. Based on the type of the mechanical and electrical equipment annotation and the three-dimensional position of the mechanical and electrical equipment, construct a model of the mechanical and electrical equipment in the three-dimensional scene drawing to obtain a three-dimensional building model.

[0047] Specifically, according to the type of the mechanical and electrical equipment annotation, generate a model of the mechanical and electrical equipment in the three-dimensional scene drawing, and based on the three-dimensional position of the mechanical and electrical equipment, place the model of the mechanical and electrical equipment in the three-dimensional scene drawing. After the model of the mechanical and electrical equipment is successfully constructed in the three-dimensional scene drawing, a three-dimensional building model is obtained.

[0048] S107. Based on the three-dimensional building model, determine the attribute information of the mechanical and electrical equipment, and the attribute information at least includes spatial attributes.

[0049] Among them, after the electromechanical equipment is successfully built in the three-dimensional building model, the three-dimensional building model stores the attribute information of the electromechanical equipment, and the attribute information includes spatial attributes, functional attributes, technical specifications, etc. The spatial attributes of the electromechanical equipment are information such as the position, direction, and size of the electromechanical equipment in the three-dimensional building model.

[0050] In the embodiment of the present invention, based on the two-dimensional building drawing, the three-dimensional building model is built in the three-dimensional scene drawing by using the three-dimensional engine platform, realizing the automatic mapping of the electromechanical equipment in the two-dimensional building drawing to the three-dimensional building model based on the two-dimensional building drawing, building the three-dimensional building model and obtaining the spatial information of the electromechanical equipment.

[0051] Among them, building the model of the electromechanical equipment in the three-dimensional scene drawing to obtain the three-dimensional building model according to the type of the electromechanical equipment annotation and the three-dimensional position of the electromechanical equipment includes: adopting the type of the electromechanical equipment annotation to obtain the model data of the electromechanical equipment from the three-dimensional engine platform, and the model data includes style parameters and dynamic behavior parameters; adopting the type of the electromechanical equipment annotation to obtain the control information, parameter list, and associated equipment of the electromechanical equipment from the object model; building the model of the electromechanical equipment in the three-dimensional scene drawing to obtain the three-dimensional building model according to the model data, the control information, the parameter list, and the associated equipment.

[0052] Among them, the model data includes style parameters and dynamic behavior parameters. The style parameters include color (color change), material, size, etc., and the dynamic behavior parameters include whether the gear rotates, etc.; the control information includes switch state, operation mode, etc.; the parameter list includes parameter information such as temperature, pressure, current, etc.; the associated equipment includes equipment information called in different scenarios (for example, when a certain equipment alarms, the fire-fighting equipment is linked). By combining the style parameters and dynamic behavior parameters of the electromechanical equipment obtained from the three-dimensional engine platform, and the control information, parameter list, and associated equipment of the electromechanical equipment obtained from the object model (Internet of Things, IoT), the three-dimensional model of the electromechanical equipment is automatically generated, improving the construction efficiency of the three-dimensional building model.

[0053] The technical solution of the embodiment of the present application can generate a three-dimensional scene map by importing a two-dimensional building map into a three-dimensional engine platform, and an intuitive and vivid model scene can be obtained, meeting various requirements such as design, display, and simulation. During the process of converting a two-dimensional building map into a three-dimensional building model, the drawing scale of the two-dimensional building map is verified to obtain a target drawing scale that passes the verification, and subsequent processing is continued using the target drawing scale to obtain the three-dimensional positions of the mechanical and electrical equipment, which can effectively ensure the accuracy and reliability of adding the mechanical and electrical equipment to the three-dimensional scene map to obtain the three-dimensional positions of the mechanical and electrical equipment. It avoids the problem that when there are a large number of mechanical and electrical equipment, it is found that the drawing scale is incorrect only after all the mechanical and electrical equipment is imported into the three-dimensional scene map, and large-scale modification is required. It realizes that if there is a problem with the drawing scale, the problem can be discovered in time, which can effectively improve work efficiency and save the time for modification and rework. The model of the mechanical and electrical equipment is constructed in the three-dimensional scene map to obtain a three-dimensional building model, and the attribute information of the mechanical and electrical equipment is determined, realizing the automatic mapping of the mechanical and electrical equipment in the two-dimensional building map to the three-dimensional building model, constructing a three-dimensional building model and obtaining the spatial information of the mechanical and electrical equipment, and improving the construction efficiency of the three-dimensional building model.

[0054] Figure 2 It is the second flowchart of a method for processing a three-dimensional building model provided by an embodiment of the present invention. This embodiment is optimized and improved on the basis of the above embodiment. As Figure 2 shown, the method includes:

[0055] S201. Obtain a two-dimensional building map pre-drawn in a drawing tool, where the two-dimensional building map includes building elements and the type and position information of mechanical and electrical equipment markings.

[0056] S202. Import the two-dimensional building map into a three-dimensional engine platform to generate a three-dimensional scene map.

[0057] S203. Using the original drawing scale of the two-dimensional building map, add the first mechanical and electrical equipment to the three-dimensional scene map according to the position information of the first mechanical and electrical equipment to obtain the three-dimensional position of the first mechanical and electrical equipment.

[0058] Among them, in the two-dimensional building map, the number of mechanical and electrical equipment is at least two. Any one of the at least two mechanical and electrical equipment is selected as the first mechanical and electrical equipment. Taking the first mechanical and electrical equipment as the reference equipment, the drawing scales of the two-dimensional building map and the three-dimensional scene map are the same. Using the original drawing scale of the two-dimensional building map, add the first mechanical and electrical equipment to the three-dimensional scene map according to the position information of the first mechanical and electrical equipment to obtain the three-dimensional position of the first mechanical and electrical equipment, so as to facilitate subsequent taking the three-dimensional position of the first mechanical and electrical equipment as the reference position and adding the second mechanical and electrical equipment to the three-dimensional scene map according to the relative position information between the first mechanical and electrical equipment and the second mechanical and electrical equipment to obtain the three-dimensional position of the second mechanical and electrical equipment. Among them, the first mechanical and electrical equipment can be selected by the user himself.

[0059] S204. Using the original drawing scale of the two-dimensional building drawing, based on the relative position information between the first electromechanical device and the second electromechanical device, and the three-dimensional position of the first electromechanical device, add the second electromechanical device to the three-dimensional scene drawing to obtain the three-dimensional position of the second electromechanical device.

[0060] In this step, in the two-dimensional building drawing, if there is relative position information between the first electromechanical device and the second electromechanical device, taking the three-dimensional position of the first electromechanical device as the reference position and using the original drawing scale of the two-dimensional building drawing as the drawing scale of the three-dimensional scene drawing, the second electromechanical device can be added to the three-dimensional scene drawing to obtain the three-dimensional position of the second electromechanical device. Thus, it is realized that a device can obtain its three-dimensional position based on the three-dimensional position of the reference device, the relative position information between this device and the reference device in the two-dimensional building drawing, and the original drawing scale of the two-dimensional building drawing, without manually setting the positions of each device in the three-dimensional scene drawing respectively, but using the association information between the devices to obtain the positions of each device in the three-dimensional scene drawing, saving a large amount of time for manual and mechanical work and reducing the labor cost.

[0061] S205. Check the original drawing scale according to the three-dimensional position of the second electromechanical device and the three-dimensional scene drawing.

[0062] Among them, checking the original drawing scale according to the three-dimensional position of the second electromechanical device and the three-dimensional scene drawing includes: using the original drawing scale of the two-dimensional building drawing, adding the first electromechanical device to the three-dimensional scene drawing according to the position information of the first electromechanical device to obtain the three-dimensional position of the first electromechanical device; using the original drawing scale of the two-dimensional building drawing, based on the relative position information between the first electromechanical device and the second electromechanical device, and the three-dimensional position of the first electromechanical device, add the second electromechanical device to the three-dimensional scene drawing to obtain the three-dimensional position of the second electromechanical device; checking the original drawing scale according to the three-dimensional position of the second electromechanical device and the three-dimensional scene drawing.

[0063] Among them, checking the original drawing scale according to the three-dimensional position of the second electromechanical device and the three-dimensional scene drawing further includes: determining whether the second electromechanical device is in the second room of the three-dimensional scene drawing according to the three-dimensional position of the second electromechanical device and the three-dimensional scene drawing; if not, determining that the original drawing scale is abnormal.

[0064] Among them, verifying the original drawing scale according to the three-dimensional position of the second electromechanical device and the three-dimensional scene diagram includes: determining, according to the three-dimensional position of the second electromechanical device and the three-dimensional scene diagram, the first distances from the second electromechanical device to each wall surface in the second room in the three-dimensional scene diagram, and the first proportional relationship among the first distances; determining, according to the position information of the second electromechanical device and the two-dimensional building drawing, the second distances from the second electromechanical device to each wall surface in the second room in the two-dimensional building drawing, and the second proportional relationship among the second distances; and determining whether the original drawing scale is normal according to the first proportional relationship and the second proportional relationship.

[0065] In this embodiment, by determining and comparing the proportional relationships of the second electromechanical device in the two-dimensional building drawing and the three-dimensional scene diagram, the verification of the original drawing scale is realized, avoiding the problem of scale imbalance in the conversion from the two-dimensional building drawing to the three-dimensional scene diagram according to the original drawing scale, and ensuring the accuracy of the position information of the electromechanical device in the three-dimensional scene diagram.

[0066] In a specific embodiment, the number of electromechanical devices in a two-dimensional building drawing is two, and the electromechanical devices are the first electromechanical device and the second electromechanical device respectively. The first electromechanical device and the second electromechanical device belong to different rooms respectively. In this two-dimensional building drawing, the room to which the first electromechanical device belongs is the first room, and the room to which the second electromechanical device belongs is the second room; the rooms in the two-dimensional building drawing and the rooms in the three-dimensional scene diagram are corresponding. For the first electromechanical device, using the original drawing scale of the two-dimensional building drawing, the first electromechanical device is added to the first room in the three-dimensional scene diagram according to the position information of the first electromechanical device to obtain the three-dimensional position of the first electromechanical device; based on the three-dimensional position of the first electromechanical device, using the original drawing scale of the two-dimensional building drawing, the second electromechanical device is added to the three-dimensional scene diagram according to the relative position information between the first electromechanical device and the second electromechanical device to obtain the three-dimensional position of the second electromechanical device.

[0067] There are two situations for the three-dimensional position of the second electromechanical device: the first situation is that the second electromechanical device exceeds the second room, then it is determined that the original drawing scale is abnormal; the second situation is to calculate the first distances from the second electromechanical device to each wall surface in the second room in the three-dimensional scene diagram to obtain the proportional relationship of the first distances in the three-dimensional scene diagram, and calculate the second distances from the second electromechanical device to each wall surface in the second room in the two-dimensional building drawing to obtain the proportional relationship of the second distances in the two-dimensional building drawing, and compare the above two proportional relationships. If the above two proportional relationships are not the same, it is determined that the original drawing scale is abnormal.

[0068] S206. If the original drawing scale is normal, then use the original drawing scale as the target drawing scale.

[0069] The original drawing scale is normal, indicating that the drawing scale setting in the 2D building drawing is accurate. Using this original drawing scale as the target drawing scale can ensure the accuracy of adding mechanical and electrical equipment to the 3D scene drawing.

[0070] S207. If the verification of the original drawing scale is abnormal, parse the pre-specified standard drawing scale from the 2D building drawing, use the standard drawing scale as the target drawing scale, and use the target drawing scale to re-add the mechanical and electrical equipment to the 3D scene drawing according to the position information of the mechanical and electrical equipment to obtain the 3D position of the mechanical and electrical equipment.

[0071] The verification of the original drawing scale is abnormal, indicating that if the original drawing scale is used as the target drawing scale, the 3D position of the mechanical and electrical equipment obtained by adding the mechanical and electrical equipment to the 3D scene drawing is inaccurate. To solve the above abnormality, since the standard drawing scale is updated and encrypted and stored by the staff after the drawing scale changes, the standard drawing scale is reliable and accurate. The pre-specified standard drawing scale can be parsed from the 2D building drawing, use the standard drawing scale as the target drawing scale, and use the target drawing scale to re-add the mechanical and electrical equipment to the 3D scene drawing according to the position information of the mechanical and electrical equipment to obtain the 3D position of the mechanical and electrical equipment, which can ensure the accuracy of the target drawing scale, thereby effectively ensuring the accuracy of the 3D position of the mechanical and electrical equipment in the 3D scene drawing.

[0072] S208. According to the type of the mechanical and electrical equipment annotation and the 3D position of the mechanical and electrical equipment, construct a model of the mechanical and electrical equipment in the 3D scene drawing to obtain a 3D building model.

[0073] S209. Based on the 3D building model, determine the attribute information of the mechanical and electrical equipment, and the attribute information at least includes spatial attributes.

[0074] In the embodiment of the present invention, it is not necessary to manually add each electromechanical device to the three-dimensional scene graph based on the position information of the electromechanical device. Instead, after determining a certain electromechanical device as the reference device, the reference device is added to the three-dimensional scene graph. For other electromechanical devices to be added, according to the relative position information between the electromechanical device and the reference device in the two-dimensional building drawing, the electromechanical device is added to the three-dimensional scene graph to obtain the three-dimensional position of the electromechanical device, which can save a large amount of time for manual mechanical work and reduce the labor cost. In the process of adding the second electromechanical device to the three-dimensional scene graph according to the relative position information between the first electromechanical device and the second electromechanical device and the three-dimensional position of the first electromechanical device, by determining and comparing the proportional relationship of the second electromechanical device in the two-dimensional building drawing and the three-dimensional scene graph, the verification of the original drawing scale is realized, and the target drawing scale is obtained according to the verification result of the original drawing scale, effectively ensuring the accuracy of the position information of the electromechanical device obtained by subsequent processing based on the target drawing scale, and laying a good foundation for the construction of the three-dimensional building model.

[0075] Figure 3 It is the third flowchart of a method for processing a three-dimensional building model provided by an embodiment of the present invention. This embodiment is optimized and improved on the basis of the above embodiment. As Figure 3 shown, the method includes:

[0076] S301. Obtain a two-dimensional building drawing pre-drawn in a drawing tool, where the two-dimensional building drawing includes building elements and the type and position information of electromechanical device markings.

[0077] S302. Import the two-dimensional building drawing into a three-dimensional engine platform to generate a three-dimensional scene graph.

[0078] S303. Use the original drawing scale of the two-dimensional building drawing, add the electromechanical device to the three-dimensional scene graph according to the position information of the electromechanical device to obtain the three-dimensional position of the electromechanical device, and verify the original drawing scale according to the three-dimensional position of the electromechanical device and the three-dimensional scene graph.

[0079] S304. If the original drawing scale is normal, use the original drawing scale as the target drawing scale.

[0080] S305. If the verification of the original drawing scale is abnormal, parse a pre-specified standard drawing scale from the two-dimensional building drawing, use the standard drawing scale as the target drawing scale, and use the target drawing scale to re-add the electromechanical device to the three-dimensional scene graph according to the position information of the electromechanical device to obtain the three-dimensional position of the electromechanical device.

[0081] S306. Construct a model of the electromechanical equipment in the 3D scene diagram according to the type marked on the electromechanical equipment and the 3D position of the electromechanical equipment to obtain a 3D building model.

[0082] S307. Extract a 2D wall diagram from the 2D building drawing and determine whether the 2D wall diagram is in a closed state or a non-closed state;

[0083] Specifically, various building elements in the 2D building drawing can be identified, the walls and other building elements can be distinguished from the 2D building drawing, the wall information can be extracted, and the wall information can include length, thickness, position, etc. The extracted wall information is integrated to obtain a 2D wall diagram. The 2D wall diagram is a subset of the 2D building drawing, and this 2D wall diagram can provide a clear wall layout. The 2D wall diagram is a plane drawing used to display the wall structure of a building, and clearly presents information such as the position, thickness, and material of the wall through elements such as lines, symbols, and text. The state of the 2D wall diagram is a closed state or a non-closed state. The closed state of the 2D wall diagram means that after removing the doors and windows from the 2D wall diagram, the walls in the 2D wall diagram form a closed area in the 2D wall diagram, which means that the lines of the walls are connected end to end on the plan view without gaps or openings. The non-closed state of the 2D wall diagram means that after removing the doors and windows from the 2D wall diagram, the walls in the 2D wall diagram do not form a closed area in the 2D wall diagram, which means that the lines of the walls are not connected end to end on the plan view and there are gaps or openings. To determine whether the 2D wall diagram is in a closed state, it can be achieved by using corresponding tools in the drawing software or specific inspection tools, etc. For example, the "pattern fill" tool can be used to check whether the graphic is closed. If it can be filled, the graphic is closed; otherwise, it is not closed.

[0084] S308. If the 2D wall diagram is in a non-closed state, construct a 2D wall diagram in a closed state using the top view of the 3D scene diagram;

[0085] Specifically, the top view of the 3D scene diagram can provide comprehensive information about the building structure, including the layout and connection method of the walls. The 3D scene diagram contains all necessary wall information. If the 2D wall diagram is in a non-closed state, the top view of the 3D scene diagram can be used to complete or correct the gaps or openings in the 2D wall diagram to obtain a 2D wall diagram in a closed state.

[0086] S309. Import the 2D wall diagram in a closed state into the 3D engine platform and remove the floor to obtain a 3D room layer;

[0087] Among them, the 3D room layer is a tool in 3D modeling software for placing geometric bodies in space using different layers. The 3D room layer can be used to manage electromechanical equipment in 3D space, and the display, hiding, and classification of electromechanical equipment can be controlled through layers. The layer can be regarded as a transparent overlay.

[0088] In this embodiment, the two-dimensional wall diagram in the closed state is imported into the 3D engine platform, and the floor is removed to obtain the 3D room layer, realizing the removal of unnecessary floor elements, reducing the workload of subsequent processing, and improving the processing efficiency.

[0089] S310. Determine the spatial attributes of the electromechanical equipment according to the 3D position of the electromechanical equipment and the 3D room layer.

[0090] Specifically, map the 3D position of the electromechanical equipment in the 3D room layer to establish the association relationship between the electromechanical equipment and the 3D room layer, and determine the spatial attributes of the electromechanical equipment based on this association relationship.

[0091] In an alternative embodiment, in this step, the electromechanical equipment in the 3D scene diagram is mapped to the room domain and automatically bound to the electromechanical equipment information and room information in the software system in the current room domain. This step associates the 3D spatial information, room, equipment, database information, and physical model attribute information. According to the coordinates of the electromechanical equipment and the four point coordinates in the room domain, determine the association relationship between the equipment and the room, and determine the spatial attributes of the electromechanical equipment based on this association relationship; among them, the room domain has four point coordinates, the attributes of the electromechanical equipment are obtained from the physical model IoT, and the attributes of the room can be obtained from the custom spatial service; the attributes of the room can be adjusted through the spatial service. For example, if the number of people editing the room is directly modified in the database.

[0092] In this embodiment, by introducing the physical model information, the attributes of the equipment are bound during the generation process of the 3D scene and automatically synchronized to the database. Thus, the linkage of the equipment information between the platform and the 3D model is completed, solving the dilemma in the prior art that often the model points need to be set on site, and then according to the coding information, go to the platform to configure the points to make the two codings consistent to ensure that the equipment in the twin scene can move.

[0093] In an alternative embodiment, a two-dimensional wall diagram in the closed state is constructed using the top view of the 3D scene diagram, including: generating a two-dimensional model diagram with wall attributes using the top view of the 3D scene diagram; using the minimum spanning tree algorithm to determine the set of gaps in the two-dimensional model diagram; obtaining the doors and windows constructed in the 3D engine platform using the target drawing scale to obtain the door and window size range; determining whether the gap is a door or window according to the size of the gap in the set of gaps and the door and window size range; if the gap is a door or window, connect the corresponding gaps to complete the wall where the door and window are located to obtain a two-dimensional wall diagram in the closed state.

[0094] Among them, the two-dimensional model diagram is the top view of the three-dimensional scene diagram, and the drawing scales of the two are the same. The notch set is the sequence of corresponding notch points. There can be multiple ranges of door and window sizes. To determine whether a notch is a door or window based on the size of the notch in the notch set and the range of door and window sizes, it can be determined by checking whether the size of the notch in the notch set is within the range of door and window sizes. For example, if the size of the notch is within the range of the door size, then the notch is a door. Connect the corresponding notches to complete the wall where the door and window are located, and obtain a two-dimensional wall diagram in a closed state, that is, fill the notches of the doors and windows in the two-dimensional wall diagram to obtain a two-dimensional wall diagram in a closed state.

[0095] In the embodiment of the present invention, if the two-dimensional wall diagram is in a non-closed state, the top view of the three-dimensional scene diagram is used to construct a two-dimensional wall diagram in a closed state. The two-dimensional wall diagram in the closed state is imported into the three-dimensional engine platform, and the floor is removed to obtain a three-dimensional room layer. The three-dimensional positions of the mechanical and electrical equipment are mapped in the three-dimensional room layer, and the association relationship between the mechanical and electrical equipment and the three-dimensional room layer is established. Based on this association relationship, the spatial attributes of the mechanical and electrical equipment are determined, thereby realizing the binding of the attributes of the mechanical and electrical equipment during the generation process of the three-dimensional scene, and can be associated with the back-end database to automatically complete the configuration among the model, platform, and database, greatly reducing the labor cost.

[0096] Figure 4 It is a schematic structural diagram of a processing device for a three-dimensional building model provided by an embodiment of the present invention. As Figure 4 shown, the device includes:

[0097] An architectural drawing module 401, configured to obtain a pre-drawn two-dimensional architectural drawing in a drawing tool, where the two-dimensional architectural drawing includes architectural elements and type and position information of mechanical and electrical equipment markings;

[0098] A scene diagram module 402, configured to import the two-dimensional architectural drawing into a three-dimensional engine platform to generate a three-dimensional scene diagram;

[0099] A ratio verification module 403, configured to use the original drawing ratio of the two-dimensional architectural drawing, add the mechanical and electrical equipment to the three-dimensional scene diagram according to the position information of the mechanical and electrical equipment to obtain the three-dimensional positions of the mechanical and electrical equipment, and verify the original drawing ratio according to the three-dimensional positions of the mechanical and electrical equipment and the three-dimensional scene diagram;

[0100] A target ratio module 404, configured to use the original drawing ratio as the target drawing ratio if the original drawing ratio is normal; if the original drawing ratio verification is abnormal, parse a pre-specified standard drawing ratio from the two-dimensional architectural drawing, and use the standard drawing ratio as the target drawing ratio, and use the target drawing ratio to re-add the mechanical and electrical equipment to the three-dimensional scene diagram according to the position information of the mechanical and electrical equipment to obtain the three-dimensional positions of the mechanical and electrical equipment;

[0101] The device model module 405 is configured to construct a model of the mechanical and electrical equipment in the 3D scene diagram according to the marked type of the mechanical and electrical equipment and the 3D position of the mechanical and electrical equipment to obtain a 3D building model;

[0102] The attribute information module 406 is configured to determine the attribute information of the mechanical and electrical equipment based on the 3D building model, and the attribute information includes at least spatial attributes.

[0103] Among them, the scale verification module 403 includes:

[0104] The first 3D position unit is configured to add the first mechanical and electrical equipment to the 3D scene diagram according to the position information of the first mechanical and electrical equipment by using the original drawing scale of the 2D building drawing to obtain the 3D position of the first mechanical and electrical equipment;

[0105] The second 3D position unit is configured to add the second mechanical and electrical equipment to the 3D scene diagram according to the relative position information between the first mechanical and electrical equipment and the second mechanical and electrical equipment and the 3D position of the first mechanical and electrical equipment by using the original drawing scale of the 2D building drawing to obtain the 3D position of the second mechanical and electrical equipment;

[0106] The scale verification unit is configured to verify the original drawing scale according to the 3D position of the second mechanical and electrical equipment and the 3D scene diagram.

[0107] Among them, the scale verification unit is specifically configured to:

[0108] According to the 3D position of the second mechanical and electrical equipment and the 3D scene diagram, determine the first distances from the second mechanical and electrical equipment to each wall surface in the second room in the 3D scene diagram, and the first proportional relationship between the first distances;

[0109] According to the position information of the second mechanical and electrical equipment and the 2D building drawing, determine the second distances from the second mechanical and electrical equipment to each wall surface in the second room in the 2D building drawing, and the second proportional relationship between the second distances;

[0110] According to the first proportional relationship and the second proportional relationship, determine whether the original drawing scale is normal.

[0111] Among them, the attribute information module 406 includes:

[0112] The wall state unit is configured to extract a 2D wall diagram from the 2D building drawing and determine whether the 2D wall diagram is in a closed state or a non-closed state;

[0113] The closed wall unit is configured to, if the 2D wall diagram is in a non-closed state, construct a 2D wall diagram in a closed state by using the top view of the 3D scene diagram;

[0114] A room layer unit for importing a two-dimensional wall diagram in a closed state into a three-dimensional engine platform and removing the floor to obtain a three-dimensional room layer;

[0115] An attribute information unit for determining the spatial attributes of electromechanical equipment according to the three-dimensional position of the electromechanical equipment and the three-dimensional room layer.

[0116] Among them, the closed wall unit is specifically used for:

[0117] Generating a two-dimensional model diagram with wall attributes by using the top view of the three-dimensional scene diagram;

[0118] Using the minimum spanning tree algorithm to determine the set of gaps in the two-dimensional model diagram;

[0119] Using the target drawing scale to obtain the doors and windows constructed in the three-dimensional engine platform to obtain the door and window size range;

[0120] Determining whether the gap is a door or window according to the size of the gap in the set of gaps and the door and window size range;

[0121] If the gap is a door or window, connect the corresponding gaps to complete the wall where the door and window are located to obtain a two-dimensional wall diagram in a closed state.

[0122] Among them, the device model module 405 is specifically used for:

[0123] Using the type marked on the electromechanical equipment to obtain the model data of the electromechanical equipment from the three-dimensional engine platform, and the model data includes style parameters and dynamic behavior parameters;

[0124] Using the type marked on the electromechanical equipment to obtain the control information, parameter list and associated equipment of the electromechanical equipment from the physical model;

[0125] According to the model data, the control information, the parameter list and the associated equipment, constructing the model of the electromechanical equipment in the three-dimensional scene diagram to obtain a three-dimensional building model.

[0126] The processing device for the three-dimensional building model provided by the embodiments of the present invention can execute the processing method for the three-dimensional building model provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.

[0127] Figure 5FIG. 0 shows a schematic structural diagram of an electronic device 50 that can be used to implement embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as, for example, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, for example, personal digital processors, cellular telephones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0128] As Figure 5 shown, the electronic device 50 includes at least one processor 51, and a memory communicatively connected to the at least one processor 51, such as a read-only memory (ROM) 52, a random access memory (RAM) 53, etc., wherein the memory stores a computer program executable by the at least one processor. The processor 51 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 52 or the computer program loaded from the storage unit 58 into the random access memory (RAM) 53. In the RAM 53, various programs and data required for the operation of the electronic device 50 can also be stored. The processor 51, the ROM 52, and the RAM 53 are connected to each other via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.

[0129] A plurality of components in the electronic device 50 are connected to the I / O interface 55, including: an input unit 56, such as a keyboard, a mouse, etc.; an output unit 57, such as various types of displays, speakers, etc.; a storage unit 58, such as a magnetic disk, an optical disk, etc.; and a communication unit 59, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 59 allows the electronic device 50 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0130] The processor 51 can be various general-purpose and / or special-purpose processing components having processing and computing capabilities. Some examples of the processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 51 executes the various methods and processes described above, such as the processing method of a three-dimensional building model.

[0131] In some embodiments, the method for processing a three-dimensional building model can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 58. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded into the RAM 53 and executed by the processor 51, one or more steps of the method for processing a three-dimensional building model described above can be performed. Alternatively, in other embodiments, the processor 51 can be configured to execute the method for processing a three-dimensional building model by any other suitable means (e.g., by means of firmware).

[0132] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on a chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0133] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, such that when the computer programs are executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0134] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0135] To provide for interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).

[0136] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0137] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The relationship between the client and the server is created by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0138] It should be understood that various forms of processes shown above can be used, with steps reordered, added or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.

[0139] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for processing a three-dimensional building model, characterized in that: include: Obtaining a two-dimensional building drawing pre-drawn in a drawing tool, wherein the two-dimensional building drawing includes type and location information of building elements and electromechanical equipment annotations; Importing the two-dimensional building diagram into a three-dimensional engine platform to generate a three-dimensional scene diagram; Adopting the original drawing scale of the two-dimensional architectural drawing, adding the electromechanical equipment to the three-dimensional scene graph according to the position information of the electromechanical equipment to obtain the three-dimensional position of the electromechanical equipment, and verifying the original drawing scale according to the three-dimensional position of the electromechanical equipment and the three-dimensional scene graph; If the original drawing scale is normal, the original drawing scale is used as the target drawing scale; If the original drawing scale check is abnormal, a pre-specified standard drawing scale is parsed from the two-dimensional architectural drawing, and the standard drawing scale is used as the target drawing scale. The target drawing scale is adopted to re-add the electromechanical equipment to the three-dimensional scene graph according to the position information of the electromechanical equipment to obtain the three-dimensional position of the electromechanical equipment; According to the type of the electromechanical equipment annotation and the three-dimensional position of the electromechanical equipment, constructing a model of the electromechanical equipment in the three-dimensional scene graph to obtain a three-dimensional building model; Based on the three-dimensional building model, attribute information of the electromechanical equipment is determined, and the attribute information at least includes spatial attributes.

2. The method according to claim 1, characterized in that The method adopts the original drawing scale of the two-dimensional architectural drawing, adds the electromechanical equipment to the three-dimensional scene graph according to the position information of the electromechanical equipment to obtain the three-dimensional position of the electromechanical equipment, and verifies the original drawing scale according to the three-dimensional position of the electromechanical equipment and the three-dimensional scene graph, including: Adopting the original drawing scale of the two-dimensional architectural drawing, adding the first electromechanical device to the three-dimensional scene graph according to the position information of the first electromechanical device, and obtaining the three-dimensional position of the first electromechanical device; Adopting the original drawing scale of the two-dimensional architectural drawing, adding the second electromechanical device to the three-dimensional scene graph according to the relative position information between the first electromechanical device and the second electromechanical device and the three-dimensional position of the first electromechanical device, and obtaining the three-dimensional position of the second electromechanical device; The original drawing scale is verified according to the three-dimensional position of the second electromechanical device and the three-dimensional scene graph.

3. The method according to claim 2, characterized in that The verifying the original drawing scale according to the three-dimensional position of the second electromechanical device and the three-dimensional scene graph includes: Determine, according to the three-dimensional position of the second electromechanical device and the three-dimensional scene graph, a first distance from the second electromechanical device to each wall in the second room to which it belongs in the three-dimensional scene graph, and a first proportional relationship between each first distance; Determine, according to the position information of the second electromechanical device and the two-dimensional architectural drawing, a second distance from the second electromechanical device to each wall in the second room to which it belongs in the two-dimensional architectural drawing, and a second proportional relationship between the second distances; Whether the original drawing scale is normal is determined according to the first scale relationship and the second scale relationship.

4. The method according to claim 1, characterized in that The determining of the attribute information of the electromechanical equipment based on the three-dimensional building model includes: Extracting a two-dimensional wall image from the two-dimensional building image, and determining whether the two-dimensional wall image is in a closed state or an open state; If the two-dimensional wall image is in a non-closed state, a two-dimensional wall image in a closed state is constructed using a top view of the three-dimensional scene image; Import the closed 2D wall image into the 3D engine platform and remove the floor to obtain the 3D room layer; The spatial attribute of the electromechanical equipment is determined according to the three-dimensional position of the electromechanical equipment and the three-dimensional room layer.

5. The method according to claim 4, characterized in that A closed two-dimensional wall image is constructed using a top view of a three-dimensional scene graph, including: Generate a two-dimensional model diagram with wall attributes using the top view of the three-dimensional scene diagram; The minimum spanning tree algorithm is used to determine the gap set in the two-dimensional model graph; Using the target drawing scale, obtaining doors and windows constructed in a three-dimensional engine platform, and obtaining door and window size ranges; Determine whether the gap is a door or window according to the size of the gap in the gap set and the door or window size range; If the gaps are doors or windows, the corresponding gaps are connected to fill the wall where the doors and windows are located, so as to obtain a two-dimensional wall image in a closed state.

6. The method according to any one of claims 1 to 5, characterized in that The step of constructing a model of the electromechanical equipment in the three-dimensional scene graph to obtain a three-dimensional building model according to the type of the electromechanical equipment annotation and the three-dimensional position of the electromechanical equipment includes: Using the type of electromechanical equipment annotation, model data of the electromechanical equipment is obtained from the three-dimensional engine platform, wherein the model data includes style parameters and dynamic behavior parameters; Using the type of the electromechanical device annotation, obtain control information, parameter list and associated devices of the electromechanical device from the physical model; A model of electromechanical equipment is constructed in the three-dimensional scene graph according to the model data, the control information, the parameter list and the associated equipment to obtain a three-dimensional building model.

7. A processing device for a three-dimensional building model, characterized in that: The device comprises: A building drawing module, used to obtain a two-dimensional building drawing pre-drawn in a drawing tool, wherein the two-dimensional building drawing includes the type and location information of building elements and electromechanical equipment annotations; A scene graph module, used for importing the two-dimensional building graph into a three-dimensional engine platform to generate a three-dimensional scene graph; a scale verification module, configured to use the original drawing scale of the two-dimensional architectural drawing, add the electromechanical equipment to the three-dimensional scene graph according to the position information of the electromechanical equipment to obtain the three-dimensional position of the electromechanical equipment, and verify the original drawing scale according to the three-dimensional position of the electromechanical equipment and the three-dimensional scene graph; a target scale module, for taking the original drawing scale as the target drawing scale if the original drawing scale is normal; and for parsing a pre-specified standard drawing scale from the two-dimensional architectural drawing if the original drawing scale is abnormal, and taking the standard drawing scale as the target drawing scale, and using the target drawing scale to re-add the electromechanical equipment to the three-dimensional scene graph according to the position information of the electromechanical equipment to obtain the three-dimensional position of the electromechanical equipment; An equipment model module, used to construct a model of the electromechanical equipment in the three-dimensional scene graph to obtain a three-dimensional building model according to the type of the electromechanical equipment annotation and the three-dimensional position of the electromechanical equipment; The attribute information module is used to determine the attribute information of the electromechanical equipment based on the three-dimensional building model, and the attribute information at least includes space attributes.

8. The device according to claim 7, characterized in that The ratio verification module comprises: A first three-dimensional position unit is used to use the original drawing scale of the two-dimensional architectural drawing and add the first electromechanical device to the three-dimensional scene graph according to the position information of the first electromechanical device to obtain the three-dimensional position of the first electromechanical device; A second three-dimensional position unit is used to use the original drawing scale of the two-dimensional building drawing, add the second electromechanical device to the three-dimensional scene graph according to the relative position information between the first electromechanical device and the second electromechanical device, and the three-dimensional position of the first electromechanical device, to obtain the three-dimensional position of the second electromechanical device; A scale verification unit is used to verify the original drawing scale according to the three-dimensional position of the second electromechanical device and the three-dimensional scene graph.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for processing a three-dimensional building model according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the three-dimensional building model processing method according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • Substation site monitoring camera constructing, deploying and modeling method

    CN105279331A

  • Large-scale three-dimensional model rendering method, device, system and storage medium

    CN109377554A

  • Constructional engineering file processing method and device, computer equipment and storage medium

    CN112182692A

  • Station two-dimensional and three-dimensional scene switching method and device, equipment and storage medium

    CN112269618A

  • Building data processing method, device, equipment, storage medium and system

    CN115661365A