A method, device, equipment and medium for processing a three-dimensional building model
By verifying and using standard drawing scales in the 3D engine platform, the mechanical and electrical equipment in the 2D architectural drawing is mapped to the 3D scene diagram, solving the problem of low efficiency in 3D model construction and achieving automated equipment mapping and accurate spatial information construction.
Patent Information
- Application Number
- CN202510550307.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-04-29
AI Technical Summary
The efficiency of constructing three-dimensional building models in existing technologies is low, especially in the placement of equipment in the scene, the association between equipment and space, and the association between equipment information and equipment models, which require manual binding and is time-consuming and labor-intensive.
By obtaining a two-dimensional architectural drawing, importing it into a three-dimensional engine platform, and verifying the original drawing scale, if it is normal, the three-dimensional scene diagram is generated using this scale. Otherwise, a pre-specified standard drawing scale is used to add equipment models to the three-dimensional scene diagram based on the location information of the electromechanical equipment, and determine the equipment's attribute information.
It realizes the automatic mapping of mechanical and electrical equipment in two-dimensional building drawings to three-dimensional building models, significantly improving construction efficiency, reducing labor costs, ensuring the accuracy and reliability of the model, and providing intuitive spatial analysis and understanding.
Smart Images

Figure CN120070779B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer graphics processing, and in particular to a three-dimensional building model processing method, device, equipment and medium. BACKGROUND
[0002] For air conditioner, water pump, access control, camera, electric meter, water meter, gas meter and other model systems, the drawing of a three-dimensional model scene needs a model engineer to draw according to a two-dimensional building drawing. Although relevant tools can be used to generate a three-dimensional model, the positioning of a device in a scene, the association between a device and a space, and the association between device information and a device model still need to be manually bound, which is time-consuming and laborious. SUMMARY
[0003] The present application provides a three-dimensional building model processing method, device, equipment and medium to solve the problem of low efficiency in constructing a three-dimensional building model in the prior art.
[0004] According to an aspect of the present application, a three-dimensional building model processing method is provided, comprising:
[0005] obtaining a two-dimensional building drawing drawn in advance in a drawing tool, the two-dimensional building drawing comprising building elements and type and position information of mechanical and electrical equipment annotations;
[0006] importing the two-dimensional building drawing into a three-dimensional engine platform to generate a three-dimensional scene drawing;
[0007] adding the mechanical and electrical equipment to the three-dimensional scene drawing according to the position information of the mechanical and electrical equipment to obtain a three-dimensional position of the mechanical and electrical equipment, and checking the original drawing scale according to the three-dimensional position of the mechanical and electrical equipment and the three-dimensional scene drawing;
[0008] if the original drawing scale is normal, using the original drawing scale as a target drawing scale;
[0009] if the original drawing scale is abnormal, parsing a pre-specified standard drawing scale from the two-dimensional building drawing, using the standard drawing scale as the target drawing scale, and adding the mechanical and electrical equipment to the three-dimensional scene drawing according to the position information of the mechanical and electrical equipment to obtain a three-dimensional position of the mechanical and electrical equipment;
[0010] constructing a model of the mechanical and electrical equipment in the three-dimensional scene drawing according to the type of the mechanical and electrical equipment annotations and the three-dimensional position of the mechanical and electrical equipment to obtain a three-dimensional building model;
[0011] determining attribute information of the mechanical and electrical equipment based on the three-dimensional building model, the attribute information at least comprising a space attribute.
[0012] According to another aspect of the present invention, there is provided a device for processing a three-dimensional building model, comprising:
[0013] An architectural drawing module is used to obtain a two-dimensional architectural drawing pre-drawn in a drawing tool, wherein the two-dimensional architectural drawing includes type and location information of architectural elements and electromechanical equipment annotations;
[0014] A scene graph module, used for importing the two-dimensional building diagram into a three-dimensional engine platform to generate a three-dimensional scene graph;
[0015] a scale verification module, configured to use the original drawing scale of the two-dimensional architectural drawing, add the electromechanical device to a three-dimensional scene graph according to the position information of the electromechanical device, 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;
[0016] a target scale module configured to use the original drawing scale as a target drawing scale if the original drawing scale is normal; and to parse a pre-specified standard drawing scale from the two-dimensional architectural drawing and use the standard drawing scale as the target drawing scale if the original drawing scale is abnormal; and to use the target drawing scale to re-add the electromechanical device to the three-dimensional scene graph based on the position information of the electromechanical device to obtain the three-dimensional position of the electromechanical device;
[0017] an equipment model module, configured to construct a model of the electromechanical equipment in the three-dimensional scene graph according to the type of the electromechanical equipment label and the three-dimensional position of the electromechanical equipment to obtain a three-dimensional building model;
[0018] The attribute information module is used to determine the attribute information of the electromechanical 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, an electronic device is provided, comprising: 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 method for processing a three-dimensional building model described in any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for processing a three-dimensional building model according to any embodiment of the present invention when executed.
[0021] The embodiment of the present application generates a three-dimensional scene graph by importing a two-dimensional building graph into a three-dimensional engine platform, checks the original drawing scale of the two-dimensional building graph to obtain a target drawing scale, and then adds mechanical and electrical equipment to the three-dimensional scene graph based on the target drawing scale and the position information of the mechanical and electrical equipment in the two-dimensional building graph to obtain the three-dimensional position of the mechanical and electrical equipment. According to the type of the mechanical and electrical equipment marked and the three-dimensional position of the mechanical and electrical equipment, the model of the mechanical and electrical equipment is constructed in the three-dimensional scene graph 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 graph is automatically mapped to the three-dimensional building model based on the two-dimensional building graph, the three-dimensional building model is constructed, and the spatial information of the mechanical and electrical equipment is obtained. The efficiency of generating the three-dimensional building model based on the two-dimensional building graph can be significantly improved, the artificial cost is greatly reduced, the three-dimensional building model constructed accurately reflects the spatial structure of the equipment, and provides 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 application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent through the following description. BRIEF DESCRIPTION OF DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0024] Figure 1 is a first flowchart of a three-dimensional building model processing method provided by the embodiment of the present application;
[0025] Figure 2 is a second flowchart of a three-dimensional building model processing method provided by the embodiment of the present application;
[0026] Figure 3 is a third flowchart of a three-dimensional building model processing method provided by the embodiment of the present application;
[0027] Figure 4 is a structural schematic diagram of a three-dimensional building model processing device provided by the embodiment of the present application;
[0028] Figure 5 is a structural schematic diagram of an electronic device for implementing the embodiment of the present application. DETAILED DESCRIPTION
[0029] In the following, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application by persons skilled in the art. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by persons skilled in the art without creative work should belong to the protection scope of the present application.
[0030] It should be noted that the terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units need not be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0031] Figure 1 is a first flowchart of a processing method of a three-dimensional building model provided by an embodiment of the present application. The embodiment can be applicable to the case of mapping mechanical and electrical equipment in a two-dimensional building drawing to a three-dimensional building model. The method can be executed by a processing device of a three-dimensional building model. The device can be realized in the form of hardware and / or software. The device can be configured in an electronic device with corresponding data processing capability. As shown in Figure 1 the method comprises:
[0032] S101, acquiring a two-dimensional building drawing pre-drawn in a drawing tool. The two-dimensional building drawing includes building elements and type and position information of mechanical and electrical equipment annotations.
[0033] 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 a two-dimensional architectural drawing, and draw a three-dimensional model scene with reference to the two-dimensional architectural drawing. In the construction industry, a two-dimensional architectural drawing can be used to represent the external shape, internal layout, structural construction, interior and exterior decoration, material construction, and equipment, construction, etc. The two-dimensional architectural drawing is a planar graphic that represents the shape, size, position, and structural relationship of a building on a two-dimensional plane through lines, symbols, graphics, and text elements, and is mainly used to show the plan layout, elevation design, or section design of a building, and can be used to guide construction. The architectural elements on the two-dimensional architectural drawing are lines, symbols, and text elements that express the shape, size, position, and function of the building. If the architectural scene is the first floor of a building, the two-dimensional architectural drawing corresponding to the architectural 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 two-dimensional architectural drawing can have the type and position information of the organic and electrical equipment marked by text. The type can include at least one of an air conditioner, a water pump, an access control, a camera, a power meter, a water meter, and a gas meter. The graphics of the organic and electrical equipment such as the air conditioner, the water pump, the access control, the camera, the power meter, the water meter, and the gas meter are not directly drawn on the two-dimensional architectural drawing. The position information is the landing position of the organic and electrical equipment on the two-dimensional architectural drawing.
[0035] S102, importing the two-dimensional architectural drawing into a three-dimensional engine platform to generate a three-dimensional scene graph.
[0036] The three-dimensional engine platform is a software development framework based on three-dimensional graphics technology, which can import two-dimensional architectural drawings to construct complex three-dimensional architectural model scenes in the field of architecture, and can be used to realize the visualization of buildings.
[0037] Specifically, the two-dimensional architectural drawing of the architectural scene is imported into the three-dimensional engine platform to generate a three-dimensional scene graph, which can obtain an intuitive and vivid model scene to meet various needs such as design, display, and simulation. Still taking the two-dimensional architectural drawing for representing 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, adding the organic and electrical equipment to the three-dimensional scene graph according to the position information of the organic and electrical equipment to obtain the three-dimensional position of the organic and electrical equipment, and verifying the original drawing scale according to the three-dimensional position of the organic and electrical equipment and the three-dimensional scene graph. If the original drawing scale is normal, S104 is continued; otherwise, S105 is executed.
[0039] The original drawing scale is a scale of a drawing unit to an actual object size initially set by a user in a drawing software. The original drawing scale of an automatically recorded building element in a two-dimensional building drawing (for example, 1:100, which means that 1 unit of length on a drawing paper corresponds to 100 units of length of an actual object). The drawing scale refers to a scale of a figure in a drawing space, that is, a scale of a drawing unit to an actual object size. Usually, a staff member draws a figure using the original drawing scale, but due to the influence of a zooming habit, etc., the drawing scale actually used by different staff members can be different. For example, after a user locally enlarges and edits a two-dimensional building drawing, the size of a figure in a model space has changed, the drawing scale has changed, and if the setting of the drawing scale is not updated at this time, the actual drawing scale and the original drawing scale will be inconsistent, which makes the original drawing scale recorded in the two-dimensional building drawing inaccurate. Therefore, in the process of converting the two-dimensional building drawing into a three-dimensional building model, the drawing scale of the two-dimensional building drawing is checked, which can avoid the problem that the three-dimensional position of a mechanical and electrical equipment deviates due to a scale imbalance of the three-dimensional building model, and affects the visual effect of the three-dimensional building model.
[0040] For example, the origin coordinates of the two-dimensional building drawing are determined in the three-dimensional scene graph; whether the coordinate axes of the two-dimensional drawing paper are consistent with the coordinate system of the three-dimensional scene is determined, and if not, the coordinate axes need to be adjusted; the horizontal and vertical coordinates of the mechanical and electrical equipment in the three-dimensional scene graph are calculated in combination with the position information of the mechanical and electrical equipment in the two-dimensional building drawing and the original drawing scale of the two-dimensional building drawing, and if the coordinate axes need to be adjusted, the horizontal and vertical coordinates of the mechanical and electrical equipment in the three-dimensional scene graph are adjusted according to the adjustment angle of the coordinate axes; and the height of the mechanical and electrical equipment in the three-dimensional scene graph can be determined according to the equipment height of the mechanical and electrical equipment and the reference height of the space (for example, a room) where the mechanical and electrical equipment is located. Moreover, whether the position relationship of the mechanical and electrical equipment changes is determined according to the three-dimensional position of the mechanical and electrical equipment in the three-dimensional scene graph, for example, whether the three-dimensional position of the mechanical and electrical equipment exceeds the room to which it belongs, whether the position relationship between different mechanical and electrical equipments changes, etc., and if the three-dimensional position of the mechanical and electrical equipment changes, that is, the checking result of the original drawing scale is abnormal; otherwise, the checking result of the original drawing scale is normal.
[0041] S104, taking the original drawing scale as a target drawing scale.
[0042] The target drawing scale is a drawing scale that meets the expected effect. The target drawing scale is used to control the size and accuracy of the final figure to ensure that the final output result meets the expected visual effect and actual application requirements. If the checking result of the original drawing scale is normal, it means that the original drawing scale is accurate and can be taken as the target drawing scale, so that the mechanical and electrical equipment in the two-dimensional building drawing can be added to the three-dimensional scene graph in the subsequent process, and the accuracy of the three-dimensional position of the mechanical and electrical equipment in the three-dimensional scene graph is ensured.
[0043] S105, parse a pre-specified standard drawing scale from the two-dimensional building drawing, and take the standard drawing scale as the target drawing scale, and 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 by using the target drawing scale.
[0044] The two-dimensional building drawing also pre-stores a standard drawing scale. The standard drawing scale is a drawing scale entered by the user through a specified field. The standard drawing scale can be stored in an encrypted manner. For example, if the drawing scale changes after the user zooms and edits the two-dimensional building drawing, the user can input the standard drawing scale and store the standard drawing scale in the two-dimensional building drawing in an encrypted manner. The encryption manner is not limited here. The drawing scales of different building elements in the two-dimensional building drawing are the same.
[0045] Specifically, if the original drawing scale is abnormal, it indicates that the drawing scale setting is not updated in time, and the original drawing scale is inaccurate. Therefore, the original drawing scale is not taken as the target drawing scale, but a pre-specified standard drawing scale is parsed from the two-dimensional building drawing, and the standard drawing scale is taken as the target drawing scale. This can effectively ensure the accuracy and reliability of adding the electromechanical equipment to the three-dimensional scene graph to obtain the three-dimensional position of the electromechanical equipment, and the target drawing scale is used for subsequent processing. By checking the original drawing scale, the problem of large-scale modification after all electromechanical equipments are imported into the three-dimensional scene graph and it is found that the drawing scale is incorrect is avoided. If the drawing scale has a problem, the problem can be found in time, and the risk of deviation of the three-dimensional position of the electromechanical equipment when the electromechanical equipment is added to the three-dimensional scene graph due to inaccurate drawing scale is avoided in advance. Therefore, the working efficiency can be effectively improved, and the modification and rework time is saved.
[0046] S106, 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 and the three-dimensional position of the electromechanical equipment.
[0047] Specifically, the model of the electromechanical equipment is generated in the three-dimensional scene graph according to the type of the electromechanical equipment, and the model of the electromechanical equipment is placed in the three-dimensional scene graph according to the three-dimensional position of the electromechanical equipment. After the model of the electromechanical equipment is successfully constructed in the three-dimensional scene graph, the three-dimensional building model is obtained.
[0048] S107, determining attribute information of the electromechanical equipment based on the three-dimensional building model, wherein the attribute information at least includes a space attribute.
[0049] When the electromechanical equipment is successfully constructed in the three-dimensional building model, the three-dimensional building model stores attribute information of the electromechanical equipment, and the attribute information includes spatial attributes, functional attributes, technical specifications, and the like. The spatial attributes of the electromechanical equipment are information such as a position, a direction, and a size of the electromechanical equipment in the three-dimensional building model.
[0050] The embodiment of the present application constructs a model of the electromechanical equipment in a three-dimensional scene graph based on a two-dimensional building graph by using a three-dimensional engine platform to obtain a three-dimensional building model, and realizes automatic mapping of the electromechanical equipment in the two-dimensional building graph to the three-dimensional building model based on the two-dimensional building graph, construction of the three-dimensional building model, and obtaining of spatial information of the electromechanical equipment.
[0051] According to the type of the electromechanical equipment label and the three-dimensional position of the electromechanical equipment, the model of the electromechanical equipment is constructed in the three-dimensional scene graph to obtain the three-dimensional building model, which includes: obtaining model data of the electromechanical equipment from the three-dimensional engine platform by using the type of the electromechanical equipment label, the model data including style parameters and dynamic behavior parameters; obtaining control information, a parameter list, and associated equipment of the electromechanical equipment from a physical model by using the type of the electromechanical equipment label; and constructing the model of the electromechanical equipment in the three-dimensional scene graph to obtain the three-dimensional building model according to the model data, the control information, the parameter list, and the associated equipment.
[0052] The model data includes style parameters and dynamic behavior parameters, the style parameters including color (change of color), material, size, and the like, and the dynamic behavior parameters including whether a gear rotates or not; the control information includes a switch state, a running mode, and the like; the parameter list includes temperature, pressure, current, and the like; and the associated equipment includes device information called in different scenes (for example, a fire-fighting device linked to an alarm of a certain device). By combining the style parameters and the dynamic behavior parameters of the electromechanical equipment obtained from the three-dimensional engine platform and the control information, the parameter list, and the associated equipment of the electromechanical equipment obtained from the physical model (Internet of Things, IoT), the three-dimensional model of the electromechanical equipment is automatically generated, and the construction efficiency of the three-dimensional building model is improved.
[0053] The technical scheme of the embodiment of the application can generate a three-dimensional scene graph by importing a two-dimensional building graph into a three-dimensional engine platform, can obtain an intuitive and vivid model scene, can meet various requirements such as design, display and simulation, can verify the drawing scale of the two-dimensional building graph in the process of converting the two-dimensional building graph into a three-dimensional building model, can obtain a target drawing scale that passes the verification, can continue processing by using the target drawing scale, and can obtain the three-dimensional position of the mechanical and electrical equipment, so as to effectively guarantee the accuracy and reliability of adding the mechanical and electrical equipment into the three-dimensional scene graph to obtain the three-dimensional position of the mechanical and electrical equipment, avoid the problem that when the number of mechanical and electrical equipment is large, the drawing scale is found to be wrong after all the mechanical and electrical equipment is imported into the three-dimensional scene graph, and a large-scale modification is required, realize that if there is a problem in the drawing scale, the problem can be found in time, and the working efficiency can be effectively improved, and the time for modification and rework is saved. The model of the mechanical and electrical equipment is constructed in the three-dimensional scene graph to obtain a three-dimensional building model, the attribute information of the mechanical and electrical equipment is determined, the mechanical and electrical equipment in the two-dimensional building graph is automatically mapped into the three-dimensional building model, the three-dimensional building model is constructed, and the spatial information of the mechanical and electrical equipment is obtained, and the construction efficiency of the three-dimensional building model is improved.
[0054] Figure 2 is a second flowchart of a processing method of a three-dimensional building model provided by the embodiment of the application. The embodiment is optimized and improved on the basis of the above-mentioned embodiment. As shown in the figure, Figure 2 the method comprises the following steps.
[0055] S201, a two-dimensional building graph pre-drawn in a drawing tool is obtained, and the two-dimensional building graph comprises building elements and type and position information of mechanical and electrical equipment annotations.
[0056] S202, the two-dimensional building graph is imported into a three-dimensional engine platform to generate a three-dimensional scene graph.
[0057] S203, a first mechanical and electrical equipment is added into the three-dimensional scene graph according to the position information of the first mechanical and electrical equipment by using the original drawing scale of the two-dimensional building graph, and the three-dimensional position of the first mechanical and electrical equipment is obtained.
[0058] In the two-dimensional building graph, the number of mechanical and electrical equipment is at least two. One of the at least two mechanical and electrical equipment is selected as the first mechanical and electrical equipment, the drawing scale of the two-dimensional building graph and the three-dimensional scene graph is the same, the original drawing scale of the two-dimensional building graph is used, the first mechanical and electrical equipment is added into the three-dimensional scene graph according to the position information of the first mechanical and electrical equipment, and the three-dimensional position of the first mechanical and electrical equipment is obtained, so as to facilitate subsequent addition of a second mechanical and electrical equipment into the three-dimensional scene graph according to the relative position information between the first mechanical and electrical equipment and the second mechanical and electrical equipment, and obtain the three-dimensional position of the second mechanical and electrical equipment. The first mechanical and electrical equipment can be selected by a user.
[0059] S204, 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, to obtain the three-dimensional position of the second electromechanical device, according to the original drawing scale of the two-dimensional building graph.
[0060] In this step, the first electromechanical device and the second electromechanical device have relative position information in the two-dimensional building graph, and then the three-dimensional position of the first electromechanical device is taken as the reference position, and the original drawing scale of the two-dimensional building graph is taken as the drawing scale of the three-dimensional scene graph, so that the second electromechanical device can be added to the three-dimensional scene graph to obtain the three-dimensional position of the second electromechanical device. Thus, one device can obtain its three-dimensional position according to the three-dimensional position of the reference device, the relative position information of the device and the reference device in the two-dimensional building graph, and the original drawing scale of the two-dimensional building graph, without manually setting the positions of each device in the three-dimensional scene graph. Instead, the positions of each device in the three-dimensional scene graph are obtained using the association information between the devices, saving a lot of time for manual mechanical work and reducing labor costs.
[0061] S205, verifying the original drawing scale according to the three-dimensional position of the second electromechanical device and the three-dimensional scene graph.
[0062] In this step, the first electromechanical device and the second electromechanical device have relative position information in the two-dimensional building graph, and then the three-dimensional position of the first electromechanical device is taken as the reference position, and the original drawing scale of the two-dimensional building graph is taken as the drawing scale of the three-dimensional scene graph, so that the second electromechanical device can be added to the three-dimensional scene graph to obtain the three-dimensional position of the second electromechanical device. Thus, one device can obtain its three-dimensional position according to the three-dimensional position of the reference device, the relative position information of the device and the reference device in the two-dimensional building graph, and the original drawing scale of the two-dimensional building graph, without manually setting the positions of each device in the three-dimensional scene graph. Instead, the positions of each device in the three-dimensional scene graph are obtained using the association information between the devices, saving a lot of time for manual mechanical work and reducing labor costs.
[0063] In this step, the first electromechanical device and the second electromechanical device have relative position information in the two-dimensional building graph, and then the three-dimensional position of the first electromechanical device is taken as the reference position, and the original drawing scale of the two-dimensional building graph is taken as the drawing scale of the three-dimensional scene graph, so that the second electromechanical device can be added to the three-dimensional scene graph to obtain the three-dimensional position of the second electromechanical device. Thus, one device can obtain its three-dimensional position according to the three-dimensional position of the reference device, the relative position information of the device and the reference device in the two-dimensional building graph, and the original drawing scale of the two-dimensional building graph, without manually setting the positions of each device in the three-dimensional scene graph. Instead, the positions of each device in the three-dimensional scene graph are obtained using the association information between the devices, saving a lot of time for manual mechanical work and reducing labor costs.
[0064] The checking of the original drawing scale according to the three-dimensional position of the second electromechanical equipment and the three-dimensional scene graph comprises: determining first distances from the second electromechanical equipment to walls in a second room to which the second electromechanical equipment belongs in the three-dimensional scene graph according to the three-dimensional position of the second electromechanical equipment and the three-dimensional scene graph, and a first proportional relationship between the first distances; determining second distances from the second electromechanical equipment to walls in the second room to which the second electromechanical equipment belongs in the two-dimensional building graph according to the position information of the second electromechanical equipment and the two-dimensional building graph, and a second proportional relationship between 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 the embodiment, the checking of the original drawing scale is realized by determining and comparing the proportional relationships of the second electromechanical equipment in the two-dimensional building graph and the three-dimensional scene graph, thereby avoiding the problem of scale disorder in subsequent conversion of the two-dimensional building graph into the three-dimensional scene graph according to the original drawing scale, and ensuring the accuracy of the position information of the electromechanical equipment in the three-dimensional scene graph.
[0066] In a specific embodiment, the number of electromechanical equipment in a two-dimensional building graph is two, and the electromechanical equipment comprises a first electromechanical equipment and a second electromechanical equipment, wherein the first electromechanical equipment and the second electromechanical equipment belong to different rooms, the room to which the first electromechanical equipment belongs is a first room, and the room to which the second electromechanical equipment belongs is a second room; the rooms in the two-dimensional building graph correspond to the rooms in the three-dimensional scene graph. For the first electromechanical equipment, the original drawing scale of the two-dimensional building graph is used to add the first electromechanical equipment to the first room in the three-dimensional scene graph according to the position information of the first electromechanical equipment, so as to obtain a three-dimensional position of the first electromechanical equipment; and the original drawing scale of the two-dimensional building graph is used to add the second electromechanical equipment to the three-dimensional scene graph according to the relative position information between the first electromechanical equipment and the second electromechanical equipment, so as to obtain a three-dimensional position of the second electromechanical equipment, with the three-dimensional position of the first electromechanical equipment as a reference.
[0067] The three-dimensional position of the second electromechanical equipment has two cases: in a first case, the second electromechanical equipment exceeds the second room, and it is determined that the original drawing scale is abnormal; in a second case, first distances from the second electromechanical equipment to walls in the second room to which the second electromechanical equipment belongs in the three-dimensional scene graph are calculated, a proportional relationship of the first distances in the three-dimensional scene graph is obtained, second distances from the second electromechanical equipment to walls in the second room to which the second electromechanical equipment belongs in the two-dimensional building graph are calculated, a proportional relationship of the second distances in the two-dimensional building graph is obtained, and the two proportional relationships are compared. If the two proportional relationships are not identical, it is determined that the original drawing scale is abnormal.
[0068] S206, if the original drawing scale is normal, the original drawing scale is used as a target drawing scale.
[0069] The original drawing scale is normal, which indicates that the setting of the drawing scale in the two-dimensional building drawing is accurate. Taking the original drawing scale as the target drawing scale can ensure the accuracy of the mechanical and electrical equipment added to the three-dimensional scene graph.
[0070] S207, if the original drawing scale is abnormal, a pre-designated standard drawing scale is parsed from the two-dimensional building drawing, the standard drawing scale is taken as the target drawing scale, and the mechanical and electrical equipment is added to the three-dimensional scene graph according to the position information of the mechanical and electrical equipment to obtain the three-dimensional position of the mechanical and electrical equipment.
[0071] The original drawing scale is abnormal, which indicates that the three-dimensional position of the mechanical and electrical equipment obtained by adding the mechanical and electrical equipment to the three-dimensional scene graph with the original drawing scale as the target drawing scale is inaccurate. To solve the above problem, since the standard drawing scale is updated and stored by the staff after the change of the drawing scale, the standard drawing scale is reliable and accurate. The pre-designated standard drawing scale can be parsed from the two-dimensional building drawing, the standard drawing scale is taken as the target drawing scale, and the mechanical and electrical equipment is added to the three-dimensional scene graph according to the position information of the mechanical and electrical equipment to obtain the three-dimensional position of the mechanical and electrical equipment. The accuracy of the target drawing scale can be ensured, and thus the accuracy of the three-dimensional position of the mechanical and electrical equipment in the three-dimensional scene graph can be effectively ensured.
[0072] S208, according to the type of the mechanical and electrical equipment and the three-dimensional position of the mechanical and electrical equipment, a model of the mechanical and electrical equipment is constructed in the three-dimensional scene graph to obtain a three-dimensional building model.
[0073] S209, based on the three-dimensional building model, attribute information of the mechanical and electrical equipment is determined, and the attribute information at least includes spatial attribute.
[0074] The embodiment of the present application does not need manual work to add each electromechanical equipment into the three-dimensional scene graph based on the position information of the electromechanical equipment, but adds a reference equipment into the three-dimensional scene graph after determining the reference equipment, and adds other electromechanical equipment to be added into the three-dimensional scene graph according to the relative position information of the electromechanical equipment and the reference equipment in the two-dimensional building drawing, so as to obtain the three-dimensional position of the electromechanical equipment, thereby saving a lot of time of manual mechanical work, reducing the labor cost, and verifying the original drawing scale in the process of adding the second electromechanical equipment into the three-dimensional scene graph according to the relative position information between the first electromechanical equipment and the second electromechanical equipment and the three-dimensional position of the first electromechanical equipment by determining and comparing the scale relationship of the second electromechanical equipment in the two-dimensional building drawing and the three-dimensional scene graph, obtaining the target drawing scale according to the verification result of the original drawing scale, and effectively ensuring the accuracy of the position information of the electromechanical equipment in the three-dimensional scene graph obtained by subsequent processing based on the target drawing scale, thereby laying a good foundation for the construction of the three-dimensional building model.
[0075] Figure 3 is a third flow chart of a processing method of a three-dimensional building model provided by the embodiment of the present application, and the embodiment is optimized and improved on the basis of the above-mentioned embodiment. As shown in Figure 3 , the method comprises:
[0076] S301, a two-dimensional building drawing pre-drawn in a drawing tool is obtained, and the two-dimensional building drawing comprises building elements and type and position information of electromechanical equipment annotations.
[0077] S302, the two-dimensional building drawing is imported into a three-dimensional engine platform to generate a three-dimensional scene graph.
[0078] S303, an original drawing scale of the two-dimensional building drawing is adopted, the electromechanical equipment is added into the three-dimensional scene graph according to the position information of the electromechanical equipment to obtain a three-dimensional position of the electromechanical equipment, and the original drawing scale is verified according to the three-dimensional position of the electromechanical equipment and the three-dimensional scene graph.
[0079] S304, if the original drawing scale is normal, the original drawing scale is taken as a target drawing scale.
[0080] S305, if the original drawing scale is abnormal, a standard drawing scale pre-specified in the two-dimensional building drawing is parsed, the standard drawing scale is taken as the target drawing scale, and the electromechanical equipment is added into the three-dimensional scene graph according to the position information of the electromechanical equipment to obtain the three-dimensional position of the electromechanical equipment by using the target drawing scale.
[0081] S306, constructing a model of the electromechanical equipment in the three-dimensional scene graph according to the type marked by the electromechanical equipment and the three-dimensional position of the electromechanical equipment to obtain a three-dimensional building model.
[0082] S307, extracting a two-dimensional wall graph from the two-dimensional building graph and determining whether the two-dimensional wall graph is in a closed state or an unclosed state;
[0083] Specifically, each building element in the two-dimensional building graph can be identified, the walls and other building elements can be distinguished from the two-dimensional building graph, the wall information can be extracted, the wall information can include length, thickness, position, etc., the extracted wall information can be integrated to obtain a two-dimensional wall graph. The two-dimensional wall graph is a subset of the two-dimensional building graph, and the two-dimensional wall graph can provide a clear wall layout. The two-dimensional wall graph is used to display a plan drawing of the wall structure of the building, and the position, thickness, material, etc. of the wall are clearly presented through lines, symbols and texts, etc. The state of the two-dimensional wall graph is in a closed state or an unclosed state. The closed state of the two-dimensional wall graph means that after removing the doors and windows from the two-dimensional wall graph, the walls in the two-dimensional wall graph form a closed area in the two-dimensional wall graph, which means that the lines of the walls are connected at the beginning and end on the plan without gaps or openings. The unclosed state of the two-dimensional wall graph means that after removing the doors and windows from the two-dimensional wall graph, the walls in the two-dimensional wall graph do not form a closed area in the two-dimensional wall graph, which means that the lines of the walls are not connected at the beginning and end on the plan, and there are gaps or openings. Whether the two-dimensional wall graph is in a closed state or an unclosed state can be determined by using corresponding tools or specific checking tools in drawing software, etc. For example, the "pattern filling" tool can be used to check whether the graph is closed, and if it can be filled, the graph is closed, otherwise it is not closed.
[0084] S308, if the two-dimensional wall graph is in an unclosed state, a top view of the three-dimensional scene graph is used to construct a two-dimensional wall graph in a closed state;
[0085] Specifically, the top view of the three-dimensional scene graph can provide comprehensive information of the building structure, including the layout and connection mode of the walls. The three-dimensional scene graph contains all the necessary wall information. If the two-dimensional wall graph is in an unclosed state, the top view of the three-dimensional scene graph can be used to complete or correct the gaps or openings in the two-dimensional wall graph to obtain a two-dimensional wall graph in a closed state.
[0086] S309, importing the two-dimensional wall graph in a closed state into a three-dimensional engine platform and removing the floor to obtain a three-dimensional room layer;
[0087] The three-dimensional room layer is a tool in three-dimensional modeling software for placing geometry in space using different levels. The three-dimensional room layer can be used to manage electromechanical equipment in a three-dimensional space, and the display, hiding and classification, etc. of the electromechanical equipment can be controlled through the layer. The layer can be regarded as a transparent cover layer.
[0088] In the embodiment, the two-dimensional wall graph in the closed state is imported into the three-dimensional engine platform, and the floor is removed to obtain a three-dimensional room layer, which removes unnecessary floor elements, reduces the workload of subsequent processing, and improves processing efficiency.
[0089] S310, determining the spatial attribute of the electromechanical equipment according to the three-dimensional position of the electromechanical equipment and the three-dimensional room layer.
[0090] Specifically, the three-dimensional position of the electromechanical equipment is mapped in the three-dimensional room layer to establish the association relationship between the electromechanical equipment and the three-dimensional room layer, and the spatial attribute of the electromechanical equipment is determined based on the association relationship.
[0091] In an optional embodiment, the electromechanical equipment in the three-dimensional scene graph is mapped in the room domain in this step, and the electromechanical equipment information and the room information in the software system are automatically bound in the current room domain. This step is to associate the three-dimensional space information, room, equipment, database information, and object model attribute information, determine the association relationship between the equipment and the room according to the coordinates of the electromechanical equipment and the four point coordinates in the room domain, and determine the spatial attribute of the electromechanical equipment based on the association relationship; wherein the room domain has four point coordinates, the attribute of the electromechanical equipment is obtained from the object model IoT, and the attribute of the room can be obtained from the self-defined space service; the attribute of the room can be adjusted through the space service, for example, if the number of personnel editing the room is directly modified in the database.
[0092] In the embodiment, the object model information is introduced, the attribute of the equipment is bound in the three-dimensional scene generation process, and is automatically synchronized to the database. Thus, the device information linkage between the platform and the three-dimensional model is completed, and the difficulty in the prior art that the model point is often completed on site, then the point is configured in the platform according to the coding information, the two codes are consistent, and the twin scene equipment can move is solved.
[0093] In an optional embodiment, a top view of a three-dimensional scene graph is used to construct a two-dimensional wall graph in a closed state, including: generating a two-dimensional model graph with wall attributes using the top view of the three-dimensional scene graph; determining a set of gaps in the two-dimensional model graph using a minimum spanning tree algorithm; obtaining a door and window size interval by constructing a door and window in a three-dimensional engine platform using the target drawing scale; determining whether the gap is a door and window according to the size of the gap in the set of gaps and the door and window size interval; if the gap is a door and window, connecting the corresponding gap to fill the wall surface where the door and window is located to obtain a two-dimensional wall graph in a closed state.
[0094] The two-dimensional model diagram is a top view of the three-dimensional scene diagram, and the drawing scales of the two are the same. The gap set is a sequence of gap corresponding points. There can be multiple door and window size intervals. Whether the gap is a door or window is determined according to the size of the gap in the gap set and the door and window size interval. Whether the gap is a door or window can be determined by determining whether the size of the gap in the gap set is within the door and window size interval. For example, if the size of the gap is within the door size interval, the gap is a door. The corresponding gaps are connected to fill the wall surface where the door and window are located, to obtain a closed state two-dimensional wall diagram, that is, the gaps of the doors and windows in the two-dimensional wall diagram are repaired, to obtain a closed state two-dimensional wall diagram.
[0095] In the embodiment of the application, if the two-dimensional wall diagram is in a non-closed state, a top view of the three-dimensional scene diagram is used to construct a closed state two-dimensional wall diagram, the closed state two-dimensional wall diagram is imported into a 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 to establish an association relationship between the mechanical and electrical equipment and the three-dimensional room layer. The spatial properties of the mechanical and electrical equipment are determined based on the association relationship, so that the binding of the properties of the mechanical and electrical equipment in the three-dimensional scene generation process is realized, and the back-end database can be associated, and the configuration among the model, the platform and the database is automatically completed, greatly reducing the labor cost.
[0096] Figure 4 is a structural schematic diagram of a three-dimensional building model processing device provided by the embodiment of the application. As shown in Figure 4 , the device comprises:
[0097] The building diagram module 401 is configured to obtain a two-dimensional building diagram pre-drawn in a drawing tool, wherein the two-dimensional building diagram comprises building elements and type and position information of mechanical and electrical equipment annotations.
[0098] The scene diagram module 402 is configured to import the two-dimensional building diagram into a three-dimensional engine platform to generate a three-dimensional scene diagram.
[0099] The scale checking module 403 is configured to 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 by using the original drawing scale of the two-dimensional building diagram, and check the original drawing scale according to the three-dimensional positions of the mechanical and electrical equipment and the three-dimensional scene diagram.
[0100] The target scale module 404 is configured to, if the original drawing scale is normal, take the original drawing scale as a target drawing scale; if the original drawing scale is abnormal, parse a pre-specified standard drawing scale from the two-dimensional building diagram, take the standard drawing scale as the target drawing scale, and 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 by using the target drawing scale.
[0101] The device model module 405 is configured to construct a model of the electromechanical device in the three-dimensional scene graph according to the type of the electromechanical device label and the three-dimensional position of the electromechanical device to obtain a three-dimensional building model;
[0102] The attribute information module 406 is configured to determine attribute information of the electromechanical equipment based on the three-dimensional building model, where the attribute information at least includes spatial attributes.
[0103] The ratio verification module 403 includes:
[0104] a first three-dimensional position unit, configured 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;
[0105] a second three-dimensional position unit, configured to use the original drawing scale of the two-dimensional architectural drawing, and 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;
[0106] A scale verification unit is configured to verify the original drawing scale according to the three-dimensional position of the second electromechanical device and the three-dimensional scene graph.
[0107] The ratio checking unit is specifically used for:
[0108] Determining, based on the three-dimensional position of the second electromechanical device and the three-dimensional scene graph, first distances from the second electromechanical device to each wall in the second room to which it belongs in the three-dimensional scene graph, and first proportional relationships between the first distances;
[0109] Determining, based on the position information of the second electromechanical device and the two-dimensional architectural drawing, second distances from the second electromechanical device to each wall in the second room to which it belongs in the two-dimensional architectural drawing, and second proportional relationships between the second distances;
[0110] Whether the original drawing scale is normal is determined according to the first scale relationship and the second scale relationship.
[0111] The attribute information module 406 includes:
[0112] a wall state unit, configured to extract a two-dimensional wall diagram from the two-dimensional building diagram and determine whether the two-dimensional wall diagram is in a closed state or an open state;
[0113] A closed wall unit, configured to construct a closed two-dimensional wall image using a top view of the three-dimensional scene image if the two-dimensional wall image is in a non-closed state;
[0114] a room layer unit, configured to import the two-dimensional wall body graph in the closed state into a three-dimensional engine platform, and remove a floor to obtain a three-dimensional room layer;
[0115] an attribute information unit, configured to determine a spatial attribute of the electromechanical equipment according to a three-dimensional position of the electromechanical equipment and the three-dimensional room layer.
[0116] The closed wall body unit is specifically configured to:
[0117] generate a two-dimensional model graph with wall body attributes by using a top view of the three-dimensional scene graph;
[0118] determine a set of gaps in the two-dimensional model graph by using a minimum spanning tree algorithm;
[0119] obtain a door and window size interval by using the target drawing scale to obtain a door and window constructed in the three-dimensional engine platform;
[0120] determine whether the gap is a door or window according to a size of the gap in the set of gaps and the door and window size interval;
[0121] if the gap is a door or window, connect the corresponding gap to fill the wall surface where the door or window is located, to obtain the two-dimensional wall body graph in the closed state.
[0122] The device model module 405 is specifically configured to:
[0123] obtain model data of the electromechanical equipment from the three-dimensional engine platform by using a type of the electromechanical equipment label, the model data including a style parameter and a dynamic behavior parameter;
[0124] obtain control information, a parameter list and associated equipment of the electromechanical equipment from the object model by using the type of the electromechanical equipment label;
[0125] construct a model of the electromechanical equipment 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.
[0126] The processing device of the three-dimensional building model provided in the embodiments of the present application can execute the processing method of the three-dimensional building model provided in any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of the execution method.
[0127] Figure 5A schematic diagram of an electronic device 50 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as 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 personal digital assistants, cellular phones, smartphones, 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 examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0128] like Figure 5 As shown, electronic device 50 includes at least one processor 51 and memory, such as read-only memory (ROM) 52 and random access memory (RAM) 53, communicatively connected to the at least one processor 51. The memory stores computer programs executable by the at least one processor. Processor 51 can perform various appropriate actions and processes based on the computer programs stored in ROM 52 or loaded from storage unit 58 into RAM 53. RAM 53 can also store various programs and data required for the operation of electronic device 50. Processor 51, ROM 52, and RAM 53 are interconnected via bus 54. An input / output (I / O) interface 55 is also connected to bus 54.
[0129] Multiple 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] Processor 51 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any other suitable processor, controller, microcontroller, etc. Processor 51 executes the various methods and processes described above, such as the method for processing a 3D building model.
[0131] In some embodiments, the processing method of a three-dimensional building model can be implemented as a computer program tangibly embodied in a computer readable storage medium, e.g., storage unit 58. In some embodiments, part or all of the computer program can be loaded onto the electronic device 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded onto the RAM 53 and executed by the processor 51, one or more steps of the processing method of a three-dimensional building model described above can be performed. Alternatively, in other embodiments, the processor 51 can be configured to perform the processing method of a three-dimensional building model by any other suitable means, e.g., by means of firmware.
[0132] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, specially designed application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0133] Computer programs used to implement the processes of the present application 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, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed, can implement the functions / acts specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a 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 may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or apparatus. A computer-readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media may 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0135] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device that has: 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 pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the 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, voice input, or tactile input).
[0136] The systems and techniques described herein can be implemented in a computing system that includes back-end 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 front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end 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] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0138] It should be understood that the various forms of flow shown above can be reordered, added to, or have steps deleted. For example, the steps described in the present application can be performed in parallel, in series, or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, which are not limited herein.
[0139] The above detailed description does not constitute a limitation on the protection scope of the present application. 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 replacements and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for processing a three-dimensional building model, characterized in that: include: Obtaining a two-dimensional architectural drawing pre-drawn in a drawing tool, wherein the two-dimensional architectural drawing includes type and location information of architectural elements and mechanical and electrical equipment annotations; Importing the two-dimensional building diagram into a three-dimensional engine platform to generate a three-dimensional scene diagram; Using the original drawing scale of the two-dimensional architectural drawing, adding the electromechanical device to a three-dimensional scene graph according to the position information of the electromechanical device to obtain a three-dimensional position of the electromechanical device, and verifying the original drawing scale according to the three-dimensional position of the electromechanical device 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 used 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; Constructing a model of the electromechanical equipment in the three-dimensional scene graph according to the type of the electromechanical equipment label and the three-dimensional position of the electromechanical equipment to obtain a three-dimensional building model; Determining attribute information of the electromechanical equipment based on the three-dimensional building model, wherein the attribute information includes at least spatial attributes; Wherein, determining the attribute information of the electromechanical equipment based on the three-dimensional building model includes: extracting a two-dimensional wall diagram from the two-dimensional building diagram, and determining whether the two-dimensional wall diagram is in a closed state or an open state; If the two-dimensional wall image is in a non-closed state, a closed two-dimensional wall image 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 attributes of the electromechanical equipment are determined according to the three-dimensional position of the electromechanical equipment and the three-dimensional room layer; the spatial attributes of the electromechanical equipment are the position, direction and size information of the electromechanical equipment in the three-dimensional building model.
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 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 verifies the original drawing scale according to the three-dimensional position of the electromechanical equipment and the three-dimensional scene graph, including: Using the original drawing scale of the two-dimensional architectural drawing, and adding 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; Using the original drawing scale of the two-dimensional architectural drawing, adding the second electromechanical device to the three-dimensional scene graph 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, thereby 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: Determining, based on the three-dimensional position of the second electromechanical device and the three-dimensional scene graph, first distances from the second electromechanical device to each wall in the second room to which it belongs in the three-dimensional scene graph, and first proportional relationships between the first distances; Determining, based on the position information of the second electromechanical device and the two-dimensional architectural drawing, second distances from the second electromechanical device to each wall in the second room to which it belongs in the two-dimensional architectural drawing, and second proportional relationships 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, wherein A closed two-dimensional wall diagram is constructed using the top view of the 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; Determining whether the gap is a door or window based on the size of the gap in the gap set and the door and 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, and a two-dimensional wall image in a closed state is obtained.
5. The method according to any one of claims 1 to 4, characterized in that The step of constructing a model of the electromechanical equipment in the three-dimensional scene graph according to the type of the electromechanical equipment label and the three-dimensional position of the electromechanical equipment to obtain a three-dimensional building model includes: Using the type of electromechanical device annotation, model data of the electromechanical device is obtained from a 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.
6. A three-dimensional building model processing device, characterized in that: The device comprises: An architectural drawing module is used to obtain a two-dimensional architectural drawing pre-drawn in a drawing tool, wherein the two-dimensional architectural drawing includes type and location information of architectural elements and electromechanical equipment annotations; A scene graph module, used for importing the two-dimensional building diagram 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 device to a three-dimensional scene graph according to the position information of the electromechanical device, 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; a target scale module configured to use the original drawing scale as a target drawing scale if the original drawing scale is normal; and to parse a pre-specified standard drawing scale from the two-dimensional architectural drawing and use the standard drawing scale as the target drawing scale if the original drawing scale is abnormal; and to use the target drawing scale to re-add the electromechanical device to the three-dimensional scene graph based on the position information of the electromechanical device to obtain the three-dimensional position of the electromechanical device; an equipment model module, configured to construct a model of the electromechanical equipment in the three-dimensional scene graph according to the type of the electromechanical equipment label and the three-dimensional position of the electromechanical equipment to obtain a three-dimensional building model; An attribute information module, configured to determine attribute information of the electromechanical equipment based on the three-dimensional building model, wherein the attribute information includes at least spatial attributes; The attribute information module includes: a wall state unit, configured to extract a two-dimensional wall diagram from the two-dimensional building diagram and determine whether the two-dimensional wall diagram is in a closed state or an open state; A closed wall unit, configured to construct a closed two-dimensional wall image using a top view of the three-dimensional scene image if the two-dimensional wall image is in a non-closed state; The room layer unit is used to import the closed 2D wall image into the 3D engine platform and remove the floor to obtain the 3D room layer; The attribute information unit is used to determine the spatial attributes of the electromechanical equipment based on the three-dimensional position of the electromechanical equipment and the three-dimensional room layer; the spatial attributes of the electromechanical equipment are the position, direction and size information of the electromechanical equipment in the three-dimensional building model.
7. The device according to claim 6, characterized in that The ratio verification module includes: a first three-dimensional position unit, configured 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, configured to use the original drawing scale of the two-dimensional architectural drawing, and 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 configured to verify the original drawing scale according to the three-dimensional position of the second electromechanical device and the three-dimensional scene graph.
8. 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 5.
9. 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 method for processing a three-dimensional building model according to any one of claims 1 to 5 when executed.
Citation Information
Patent Citations
Substation site monitoring camera constructing, deploying and modeling method
CN105279331A
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