A method, device, storage medium and electronic device for generating association relationship

The associated area of ​​the room outline and the wall in the Revit model is determined through the quadtree data structure, and the associated relationship is generated, which solves the problem of being unable to determine the relationship between the room outline and the wall in the existing technology, and realizes the attributes in the three-dimensional engine. Initialization and dynamic updates.

CN113971307BActive Publication Date: 2024-10-01SHENZHEN XUMI YUNTU SPACE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111257794.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-27
Publication Date
2024-10-01
Estimated Expiration
2041-10-27

AI Technical Summary

Technical Problem

The existing Revit model extraction technology cannot determine the relationship between the room outline and the wall, cannot determine which walls each outline corresponds to, and cannot determine whether each section of the room outline corresponds to the center line or edge of the wall.

Method used

The data structure of the quadtree is used to divide the space into multiple areas, and the associated areas are determined based on the coordinates of the room outline and the wall, and then the association between the room outline and the wall is generated, and the associated area is determined by traversing the associated wall. Alignment to room contours.

Benefits of technology

The attributes of the room outline are initialized in the 3D engine, and when its position and attributes change, the associated wall also changes, solving the problem of determining the relationship.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113971307B_ABST
    Figure CN113971307B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, storage medium and electronic device for generating an association relationship, and relates to the field of computer technology. The method comprises: extracting multiple room outlines and multiple walls in the building information model according to the building information model of the target building; determining the association areas of the multiple room outlines and the association areas of the multiple walls based on the data structure of the quadtree; generating the association relationship between the multiple room outlines and the multiple walls according to the association areas of the multiple room outlines and the association areas of the multiple walls. The method can solve the problem that the relationship between the room outline and the wall cannot be determined in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, storage medium and electronic device for generating an association relationship. Background Art

[0002] The Revit series of software is built specifically for building information models, helping architects design, build and maintain better quality and more energy-efficient buildings. When extracting Revit models, related technologies can extract information about the model itself, such as extracting the outline model of each room and the model of the wall, but the relationship between the outline and the wall cannot be obtained, that is, it is impossible to determine which walls each outline corresponds to, nor is it possible to determine whether each section of the room outline corresponds to the center line or side line of the wall.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The purpose of the present disclosure is to provide a method, device, storage medium and electronic device for generating an association relationship, so as to solve the problem in the related art that the relationship between the room outline and the wall cannot be determined.

[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0006] According to one aspect of the present disclosure, a method for generating an association relationship is provided, comprising: extracting a plurality of room outlines and a plurality of walls in a building information model of a target building according to the building information model; determining associated areas of the plurality of room outlines and associated areas of the plurality of walls based on a quadtree data structure; and generating an association relationship between the plurality of room outlines and the plurality of walls according to the associated areas of the plurality of room outlines and the associated areas of the plurality of walls.

[0007] In one embodiment of the present disclosure, the method of determining the associated areas of the multiple room outlines and the associated areas of the multiple walls based on the quadtree data structure includes: dividing the space into multiple areas based on the quadtree data structure; selecting the area to which the room outline belongs from the multiple areas according to the coordinates of the room outline, and determining the area to which the room outline belongs as the associated area of ​​the room outline, so as to determine the associated areas of the multiple room outlines; selecting the area to which the wall belongs from the multiple areas according to the coordinates of the wall, and determining the area to which the wall belongs as the associated area of ​​the wall, so as to determine the associated areas of the multiple walls.

[0008] In one embodiment of the present disclosure, generating the association relationship between the plurality of room outlines and the plurality of walls according to the association areas of the plurality of room outlines and the association areas of the plurality of walls comprises: generating the association relationship between the plurality of room outlines and the plurality of walls according to the following method to generate the association relationship between the plurality of room outlines and the plurality of walls: acquiring the association area of ​​the room outline; acquiring one or more associated walls within the association area of ​​the room outline according to the association areas of the plurality of walls; and generating the association relationship between the room outline and the one or more associated walls.

[0009] In one embodiment of the present disclosure, generating an association relationship between the room outline and the one or more associated walls includes: traversing the one or more associated walls; if the coordinates of the associated wall coincide with the coordinates of the room outline, determining that the outer edges of the room outline and the associated wall are aligned; if the coordinates of the room outline are between the coordinates of the associated walls, determining that the center lines of the room outline and the associated walls are aligned; if the coordinates of the associated wall are independent of the coordinates of the room outline, determining that the room outline and the associated wall are unassociated.

[0010] In one embodiment of the present disclosure, the method further includes: if the one or more associated walls are not associated with the room outline, initializing the room outline to a type not associated with a wall.

[0011] In one embodiment of the present disclosure, the method further includes: in the process of determining whether the coordinates of the associated wall overlap with the coordinates of the room outline, if the difference between the coordinates of the associated wall and the coordinates of a contour line of the room contour is less than 0.000001, then it is confirmed that there is overlap.

[0012] In one embodiment of the present disclosure, the method further includes: determining that a wall outside an associated area of ​​the room outline is not associated with the room outline.

[0013] In one embodiment of the present disclosure, the coordinates are determined based on the IEEE encoding standard for the Double type.

[0014] According to another aspect of the present disclosure, there is provided an association relationship generating device, comprising: an extraction module, for extracting a plurality of room outlines and a plurality of walls in a building information model according to a building information model of a target building; a determination module, for determining, based on a quadtree data structure, associated areas of the plurality of room outlines and associated areas of the plurality of walls; and a generation module, for generating an association relationship between the plurality of room outlines and the plurality of walls according to the associated areas of the plurality of room outlines and the associated areas of the plurality of walls.

[0015] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned association relationship generating method is implemented.

[0016] According to another aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above-mentioned association relationship generation method by executing the executable instructions.

[0017] The association relationship generation method provided by the embodiment of the present disclosure first extracts multiple room outlines and multiple walls in the building information model, and then uses a quadtree data structure to obtain the area associated with each room outline and the area associated with each wall. In this way, the association relationship between the multiple room outlines and the multiple walls can be generated based on the associated areas, which solves the problem in the related art that the relationship between the room outline and the wall cannot be determined. The attributes of the room outline can be initialized in the three-dimensional engine, and when the position and attributes of the room outline change, the associated wall can also change.

[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0020] Figure 1 A schematic diagram showing an exemplary system architecture to which the association relationship generating method according to the exemplary embodiments of the present disclosure can be applied;

[0021] Figure 2A flowchart of a method for generating an association relationship according to an embodiment of the present disclosure is shown;

[0022] Figure 3 shows a spatial structure diagram of a quadtree;

[0023] Figure 4 A schematic diagram showing the relationship between the room outline and the wall;

[0024] Figure 5 A schematic diagram showing the coordinates of the room outline is shown;

[0025] Figure 6 and Figure 7 A schematic diagram of the coordinates of the wall is shown;

[0026] Figure 8 A schematic diagram of a process for generating an association relationship between a room outline and a plurality of walls according to an embodiment of the present disclosure is shown;

[0027] Fig. 9 A block diagram showing an association relationship generating device according to an embodiment of the present disclosure; and

[0028] Fig.10 A structural block diagram of an association relationship generating device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0029] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0030] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0031] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0032] In view of the technical problems existing in the above-mentioned related technologies, the embodiments of the present disclosure provide a method for generating an association relationship, so as to solve at least one or all of the above-mentioned technical problems.

[0033] Figure 1 The diagram shows an exemplary system architecture to which the association relationship generating method according to the exemplary embodiments of the present disclosure can be applied.

[0034] like Figure 1 As shown, the system architecture may include a server 101, a network 102, and a client 103. The network 102 may provide a medium for a communication link between the client 103 and the server 101. The network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables.

[0035] The server 101 may be a server that provides various services, such as a background management server that provides support for devices operated by users using the client. The background management server may analyze and process the received request data, and feed back the processing results to the client.

[0036] The client 103 may be a mobile terminal such as a mobile phone, a game console, a tablet computer, an e-book reader, smart glasses, smart home devices, AR (Augmented Reality) devices, VR (Virtual Reality) devices, etc., or the client 103 may also be a personal computer, such as a laptop computer and a desktop computer.

[0037] In an exemplary embodiment of the present disclosure, the server may, for example, extract multiple room outlines and multiple walls in a building information model based on a building information model of a target building; the server may, for example, determine associated areas of the multiple room outlines and associated areas of the multiple walls based on a quadtree data structure; the server may, for example, generate an associated relationship between the multiple room outlines and the multiple walls based on the associated areas of the multiple room outlines and the associated areas of the multiple walls.

[0038] It should be understood that Figure 1The number of clients, networks and servers is merely illustrative. The server 101 may be a physical server, a server cluster consisting of multiple servers, or a cloud server. Depending on actual needs, it may have any number of terminal devices, networks and servers.

[0039] Below, each step of the method for generating an association relationship in the exemplary embodiment of the present disclosure will be described in more detail with reference to the accompanying drawings and embodiments.

[0040] Figure 2 A flowchart of a method for generating an association relationship according to an embodiment of the present disclosure is shown. The method provided by the embodiment of the present disclosure can be performed as follows: Figure 1 The process is executed in the server or client shown in the figure, but the present disclosure is not limited to this.

[0041] In the following examples, the server cluster 101 is used as the execution subject for example description.

[0042] like Figure 2 As shown, the association relationship generation method provided by the embodiment of the present disclosure may include the following steps.

[0043] In step S210, based on the building information model of the target building, multiple room outlines and multiple walls in the building information model are extracted;

[0044] In step S220, based on the quadtree data structure, the associated areas of the plurality of room outlines and the associated areas of the plurality of walls are determined;

[0045] In step S230, association relationships between the plurality of room outlines and the plurality of walls are generated according to the association areas of the plurality of room outlines and the association areas of the plurality of walls.

[0046] The building information model of the target building can be a Revit model, which can be divided into various floors according to the elevation. For each floor, the outline information of the room and the outline information of the wall can be derived according to the coordinate system in Revit. Therefore, the Revit model of the target building can be used to extract multiple room outlines and multiple walls in the Revit model. Specifically, the Revit model can be extracted as data in GeoJSON format for display in a three-dimensional engine, and the extracted data includes room outline information and wall information. GeoJSON is a format for encoding various geographic data structures, and a geographic spatial information data exchange format based on Javascript object notation. GeoJSON objects can represent geometry, features, or feature collections. Features in GeoJSON contain a geometric object and other attributes, and feature collections represent a series of features. For a geometric object in GeoJSON format, the geometric object may contain a member named "coordinates", which represents the coordinates of the object. For this solution, each geometric object must contain a "coordinates" member, that is, the room outline coordinates and wall coordinates can be obtained from the extracted data, so the relationship between the room outline and the wall can be calculated through the coordinates.

[0047] Through step S210, multiple room outlines and multiple walls in the building information model can be extracted. Then, in step S220, the data structure of the quadtree can be used to obtain the associated area of ​​each room outline and the associated area of ​​each wall, that is, the area related to each room outline and the area related to each wall can be obtained. Finally, in step S230, the association relationship between multiple room outlines and multiple walls can be generated based on the associated areas of multiple room outlines and the associated areas of multiple walls. For example, for a certain room outline, one or more areas related to the room outline are obtained, and then all walls in one or more areas are traversed to find the wall associated with the room outline and generate the corresponding association relationship. By analyzing each room outline, the association relationship between each room outline and the wall can be obtained, so the association relationship between multiple room outlines and multiple walls can be obtained.

[0048] In the related art, it is impossible to determine the relationship between the room outline and the wall, such as it is impossible to determine which walls each outline corresponds to, and it is also impossible to determine whether each section of the room outline corresponds to the center line or the side line of the wall. In the association relationship generation method based on the building information model provided by the embodiment of the present disclosure, multiple room outlines and multiple walls in the building information model are first extracted, and then the quadtree data structure is used to obtain the area associated with each room outline and the area associated with each wall. In this way, the association relationship between multiple room outlines and multiple walls can be generated based on the associated area, which solves the problem that the relationship between the room outline and the wall cannot be determined in the related art. The attributes of the room outline can be initialized in the three-dimensional engine, and when the position and attributes of the room outline are changed, the associated wall can also be changed.

[0049] In an exemplary embodiment, determining associated areas of multiple room outlines and associated areas of multiple walls based on a quadtree data structure may include: dividing a space into multiple areas based on the quadtree data structure; selecting an area to which the room outline belongs from multiple areas according to the coordinates of the room outline, and determining the area to which the room outline belongs as the associated area of ​​the room outline, so as to determine the associated areas of the multiple room outlines; selecting an area to which a wall belongs from multiple areas according to the coordinates of the wall, and determining the area to which the wall belongs as the associated area of ​​the wall, so as to determine the associated areas of the multiple walls.

[0050] A quadtree is a data structure in which each node has at most four subtrees. Using the quadtree data structure, the space can be divided into multiple areas. Figure 3 The spatial structure diagram of the quadtree is shown in FIG. Figure 3 As shown, the two-dimensional space is first divided into four equal spaces, a, b, c and d, and then space b is divided into four subspaces, x, y, z and t.

[0051] For each room outline, the AABB bounding box of the room outline can be obtained according to the coordinates of the room outline. The AABB bounding box may be in one area or across several areas in the two-dimensional spatial structure of the quadtree. That is, the area to which the room outline belongs is selected from multiple areas of the quadtree, and the area to which the room outline belongs is determined as the associated area of ​​the room outline. The AABB bounding box can be obtained by traversing all the coordinates of the room outline, taking the maximum and minimum values ​​of all x-coordinates and y-coordinates respectively, and the rectangle formed is the AABB bounding box. Figure 3As shown, there are room outlines M1 to M4, M1 spans areas a and c, M2 is in area c, M3 spans areas c and d, and M4 spans areas x and z. Therefore, areas a and c are associated areas of M1, area c is an associated area of ​​M2, areas c and d are an associated area of ​​M3, and areas x and z are an associated area of ​​M,4.

[0052] Accordingly, for each wall, the AABB bounding box of the wall can be obtained according to the coordinates of the wall, and then the area where the AABB bounding box is located can be determined, that is, the area to which the wall belongs can be determined, that is, the associated area of ​​the wall can be determined. Figure 3 , there are walls N1 to N7, N1 is in area a, N2 spans areas a and c, N3 and N7 are in area c, N4 is in area d, N5 is in area z, and N6 is in area x, so the associated area of ​​N1 is a, the associated area of ​​N2 is a and c, the associated areas of N3 and N7 are both c, the associated area of ​​N4 is d, the associated area of ​​N5 is z, and the associated area of ​​N6 is x. In the disclosed embodiment, based on the data structure of the quadtree, combined with the coordinates of the room outline and the coordinates of the wall, the associated area of ​​the room outline and the associated area of ​​the wall can be determined, and then the association relationship between the room outline and the wall can be generated according to the determined association area. The use of the quadtree can speed up the query efficiency of the data and quickly generate the association relationship between the room outline and the wall.

[0053] The association relationship between the room outline and the wall may include: the room outline is the center line of the wall, and the room outline is the outer edge line of the wall. Figure 4 A schematic diagram showing the relationship between the room outline and the wall. Figure 4 As shown, the left wall of room 1F-01 is exclusive to room 1F-01, so the left contour of the room will include the left wall and be calculated according to the outer edge of the wall; the right wall of room 1F-01 is shared by room 1F-01 and room 1F-02, so the right contour of the room will include half of the right wall and be calculated according to the center line of the wall. The related art cannot determine the association relationship between the room contour and the wall, but the embodiment of the present disclosure can generate the association relationship between the room contour and the wall.

[0054] In an exemplary embodiment, generating association relationships between multiple room outlines and multiple walls based on association areas of multiple room outlines and association areas of multiple walls may include: generating association relationships between multiple room outlines and multiple walls according to the following method to generate association relationships between multiple room outlines and multiple walls: (1) obtaining an association area of ​​the room outline; (2) obtaining one or more associated walls within the association area of ​​the room outline based on the association areas of the multiple walls; and (3) generating an association relationship between the room outline and the one or more associated walls.

[0055] After extracting multiple room outlines and multiple walls in the building information model, each room outline can be analyzed to obtain the association relationship between each room outline and multiple walls, so that the association relationship between multiple room outlines and multiple walls can be obtained. The association relationship between each room outline and multiple walls can be achieved in the following way: first, the association area of ​​the room outline is obtained; then, according to the association areas of multiple walls, one or more associated walls in the association area of ​​the room outline are obtained; since the walls associated with the room outline are among the obtained walls, the association relationship between the room outline and the obtained walls is generated. Figure 3 As illustrated by the room outline M1, firstly, the associated areas a and c of M1 are obtained, then the walls N1, N2, N3 and N7 associated with the areas a and c are queried, and finally, the association relationship between M1 and the walls N1, N2, N3 and N7 is calculated.

[0056] For each room outline, we can first find the associated area of ​​the room outline, and then find the walls in the associated area. The walls associated with the room outline are among the queried walls, which can reduce the amount of calculation, quickly query the walls associated with the room outline, and speed up the generation of the association relationship.

[0057] In an exemplary embodiment, generating an association relationship between a room outline and one or more associated walls may include: traversing one or more associated walls; if the coordinates of the associated wall coincide with the coordinates of the room outline, determining that the outer edges of the room outline and the associated wall are aligned; if the coordinates of the room outline are between the coordinates of the associated walls, determining that the center lines of the room outline and the associated walls are aligned; if the coordinates of the associated wall are independent of the coordinates of the room outline, determining that the room outline and the associated wall are unassociated.

[0058] For a room outline, after obtaining one or more associated walls of the room outline, each associated wall can be traversed to obtain the association relationship between each associated wall and the room outline. Figure 5 The coordinate diagram of the room outline shown in the figure, Figure 6 and Figure 7 The coordinate diagram of the wall is shown in FIG. Figure 4 The coordinates of the room outline shown are (0,0), (0,3000), (4000,3000), (4000,0); Figure 5 The wall coordinates shown are (3800,0), (3800,3000), (4000,0), (4000,3000); Figure 6 The wall coordinates shown are (3900,0), (3900,3000), (4100,0), (4100,3000). It can be seen that the right contour line coordinates of the room (4000,3000), (4000,0) are consistent with Figure 5 The wall coordinates (4000,0) and (4000,3000) are consistent, indicating that the right contour of the room is consistent with Figure 5 Also, the right side of the room has a horizontal coordinate of 4000, located at Figure 6 The wall is shown between 3900 and 4100 horizontal coordinates, and the right contour of the room is between 0 and 3000 vertical coordinates. Figure 6 The vertical coordinates 0 and 3000 of the wall are consistent, indicating that the right contour of the room is consistent with Figure 5 In addition, if the coordinates of an associated wall are independent of the coordinates of the room outline, then the associated wall is not associated with the room outline.

[0059] In addition, the room outline coordinates and wall coordinates are determined based on the IEEE encoding standard for the Double type, and there may be a slight error when expressing decimals. Therefore, in the process of determining whether the coordinates of the associated wall overlap with the coordinates of the room outline, if the difference between the coordinates of the associated wall and the coordinates of one of the room outlines is less than 0.000001, then it is confirmed that there is an overlap. In other words, to determine whether there is an overlap, the method used is that the difference between the horizontal and vertical coordinates is less than 0.000001.

[0060] In an exemplary embodiment, the method for generating an association relationship may further include: if one or more associated walls are not associated with the room outline, initializing the room outline to a type not associated with a wall. For the room outline, there is no corresponding wall, which means that the room outline is not formed by a wall, and the room outline is initialized to a type not associated with a wall.

[0061] In addition to generating an association relationship between the room outline and one or more associated walls of the room outline, it can also be determined that walls outside the associated area of ​​the room outline are not associated with the room outline. Figure 2Take the room outline M1 as an example, first get the associated areas a and c of M1, then query the walls N1, N2, N3 and N7 associated with areas a and c, then determine the walls N4, N5 and N6 outside areas a and c as walls not associated with M1.

[0062] The following is a detailed description of the process of generating the association relationship between room outlines and walls based on the building information model. A flowchart of generating the association relationship between room outlines and multiple walls in one embodiment of the present disclosure is shown. First, a building information model of the target building is generated, and multiple room outlines and multiple walls in the building information model are extracted. Then, based on the quadtree data structure, the space is divided into multiple areas, and then the area to which each room outline belongs and the area to which each wall belongs can be determined, that is, the associated area of ​​each room outline and the associated area of ​​each wall are determined. Then, according to Figure 8 The process steps shown are used to obtain the association relationship between each room outline and multiple walls. After analyzing each room outline, the association relationship between multiple room outlines and multiple walls can be obtained.

[0063] Figure 8 A schematic diagram of a process for generating an association relationship between a room outline and multiple walls according to an embodiment of the present disclosure is shown. Figure 8 In the example of a room outline, the relationship between the room outline and multiple walls is explained. The specific process may include:

[0064] Step S801, obtaining the associated area of ​​the room outline;

[0065] Step S802, obtaining one or more associated walls within the associated area of ​​the room outline, and determining that walls outside the associated area of ​​the room outline are not associated with the room outline;

[0066] Step S803, traversing the one or more associated walls;

[0067] Step S804: if the coordinates of the associated wall coincide with the coordinates of the room outline, then determining that the room outline is aligned with the outer edge of the associated wall;

[0068] Step S805, if the coordinates of the room outline are between the coordinates of the associated wall, then determine that the room outline is aligned with the center line of the associated wall;

[0069] Step S806, if the coordinates of the associated wall are independent of the coordinates of the room outline, it is determined that the room outline is not associated with the associated wall;

[0070] Step S807, determine whether to traverse each associated wall, if so, execute step S808;

[0071] Step S808: Generate an association relationship between the room outline and each wall.

[0072] It should be noted that if the room outline is not associated with each wall, the room outline can be initialized as a type that is not associated with the wall. In addition, the room outline coordinates and wall coordinates are determined based on the IEEE encoding standard for the Double type. Also, in the process of determining whether the coordinates of the associated wall overlap with the coordinates of the room outline, if the difference between the coordinates of the associated wall and the coordinates of a contour of the room outline is less than 0.000001, it is confirmed that there is an overlap. Use Figure 8 The method shown can generate an association relationship between each room outline and multiple walls, that is, can generate an association relationship between multiple room outlines and multiple walls.

[0073] In the association relationship generation method based on the building information model provided by the embodiment of the present disclosure, multiple room outlines and multiple walls in the building information model are first extracted, and then the area associated with each room outline and the area associated with each wall are obtained using a quadtree data structure. In this way, the association relationship between the multiple room outlines and the multiple walls can be generated based on the associated areas, which solves the problem in the related art that the relationship between the room outline and the wall cannot be determined. The attributes of the room outline can be initialized in the three-dimensional engine, and when the position and attributes of the room outline are changed, the associated wall can also be changed.

[0074] It should be noted that the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0075] Fig. 9 FIG. 1 is a block diagram of an apparatus for generating an association relationship according to an embodiment of the present disclosure. Fig. 9 As shown, the association relationship generating device 900 may include: an extraction module 901 , a determination module 902 and a generation module 903 .

[0076] The extraction module 901 may be used to extract multiple room outlines and multiple walls in the building information model according to the building information model of the target building. The determination module 902 may be used to determine the associated areas of the multiple room outlines and the associated areas of the multiple walls based on the quadtree data structure. The generation module 903 may be used to generate the association relationship between the multiple room outlines and the multiple walls according to the associated areas of the multiple room outlines and the associated areas of the multiple walls.

[0077] In an exemplary embodiment, the determination module 902 can also be used to: divide the space into multiple areas based on a quadtree data structure; select the area to which the room outline belongs from the multiple areas according to the coordinates of the room outline, and determine the area to which the room outline belongs as the associated area of ​​the room outline, so as to determine the associated areas of multiple room outlines; select the area to which the wall belongs from the multiple areas according to the coordinates of the wall, and determine the area to which the wall belongs as the associated area of ​​the wall, so as to determine the associated areas of multiple walls.

[0078] In an exemplary embodiment, the generation module 903 can also be used to: generate an association relationship between the room outline and multiple walls in order to generate an association relationship between multiple room outlines and multiple walls according to the following method: obtain an association area of ​​the room outline; obtain one or more associated walls within the association area of ​​the room outline based on the association areas of multiple walls; and generate an association relationship between the room outline and the one or more associated walls.

[0079] In an exemplary embodiment, the generation module 903 can also be used to: traverse the one or more associated walls; if the coordinates of the associated wall coincide with the coordinates of the room outline, determine that the outer edge lines of the room outline and the associated wall are aligned; if the coordinates of the room outline are between the coordinates of the associated walls, determine that the center lines of the room outline and the associated walls are aligned; if the coordinates of the associated wall are independent of the coordinates of the room outline, determine that the room outline and the associated wall are unassociated.

[0080] In an exemplary embodiment, the generating module 903 may be further configured to: if the one or more associated walls are not associated with the room outline, initialize the room outline to a type not associated with a wall.

[0081] In an exemplary embodiment, the generation module 903 can also be used for: in the process of determining whether the coordinates of the associated wall overlap with the coordinates of the room outline, if the difference between the coordinates of the associated wall and the coordinates of a contour line of the room contour is less than 0.000001, then it is confirmed that there is an overlap.

[0082] In an exemplary embodiment, the generating module 903 may also be used to: determine that a wall outside the associated area of ​​the room outline is not associated with the room outline.

[0083] It should be noted that the block diagrams shown in the above figures are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0084] Fig.10 The structural block diagram of a device for generating association relationships in the embodiment of the present disclosure is shown. It should be noted that the electronic device shown in the figure is only an example and should not bring any limitation to the functions and application scope of the embodiment of the present invention.

[0085] Refer to the following Fig.10 The electronic device 1000 according to this embodiment of the present invention will be described. Fig.10 The electronic device 1000 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0086] like Fig.10 As shown, the electronic device 1000 is in the form of a general computing device. The components of the electronic device 1000 may include but are not limited to: the at least one processing unit 1010, the at least one storage unit 1020, and a bus 1030 connecting different system components (including the storage unit 1020 and the processing unit 1010).

[0087] The storage unit stores program codes, which can be executed by the processing unit 1010, so that the processing unit 1010 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 1010 can perform the following steps: Figure 2 In step S210 shown in the figure, multiple room outlines and multiple walls in the building information model are extracted according to the building information model of the target building; in step S220, the associated areas of the multiple room outlines and the associated areas of the multiple walls are determined based on the quadtree data structure; in step S230, the associated relationship between the multiple room outlines and the multiple walls is generated according to the associated areas of the multiple room outlines and the associated areas of the multiple walls.

[0088] The storage unit 1020 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 10201 and / or a cache storage unit 10202 , and may further include a read-only storage unit (ROM) 10203 .

[0089] The storage unit 1020 may also include a program / utility 10204 having a set (at least one) of program modules 10205, such program modules 10205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0090] Bus 1030 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0091] The electronic device 1000 may also communicate with one or more external devices 1100 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1000, and / or may communicate with any device that enables the electronic device 1000 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1050. Furthermore, the electronic device 1000 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1060. As shown, the network adapter 1060 communicates with other modules of the electronic device 1000 via a bus 1030. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0092] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0093] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0094] The program product for implementing the above method according to the embodiment of the present invention may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0095] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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 above.

[0096] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0097] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0098] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0099] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0100] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0101] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0102] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

Claims

1. A method for generating an association relationship, characterized in that: include: Extracting multiple room outlines and multiple walls in the building information model according to the building information model of the target building; Based on the quadtree data structure, determining the associated areas of the plurality of room outlines and the associated areas of the plurality of walls; According to the associated areas of the multiple room outlines and the associated areas of the multiple walls, an associated relationship between the multiple room outlines and the multiple walls is generated; wherein, The method of determining the associated areas of the plurality of room outlines and the associated areas of the plurality of walls based on the quadtree data structure includes: dividing the space into a plurality of areas based on the quadtree data structure; selecting the area to which the room outline belongs from the plurality of areas according to the coordinates of the room outline, determining the area to which the room outline belongs as the associated area of ​​the room outline, so as to determine the associated areas of the plurality of room outlines; selecting the area to which the wall belongs from the plurality of areas according to the coordinates of the wall, determining the area to which the wall belongs as the associated area of ​​the wall, so as to determine the associated areas of the plurality of walls; The generating of the association relationship between the plurality of room outlines and the plurality of walls according to the association areas of the plurality of room outlines and the association areas of the plurality of walls comprises: generating the association relationship between the plurality of room outlines and the plurality of walls according to the following method, so as to generate the association relationship between the plurality of room outlines and the plurality of walls: Acquire the associated area of ​​the room outline; acquire one or more associated walls within the associated area of ​​the room outline according to the associated areas of the multiple walls; traverse the one or more associated walls; if the coordinates of the associated wall coincide with the coordinates of the room outline, determine that the outer edges of the room outline and the associated wall are aligned; if the coordinates of the room outline are between the coordinates of the associated wall, determine that the center lines of the room outline and the associated wall are aligned; if the coordinates of the associated wall are independent of the coordinates of the room outline, determine that the room outline and the associated wall are unassociated.

2. The method according to claim 1, characterized in that The method further comprises: If the one or more associated walls are not associated with the room outline, the room outline is initialized to a type not associated with a wall.

3. The method according to claim 1, characterized in that The method further comprises: In the process of determining whether the coordinates of the associated wall overlap with the coordinates of the room outline, if the difference between the coordinates of the associated wall and the coordinates of one of the room outlines is less than 0.000001, it is confirmed that there is overlap.

4. The method according to claim 1, characterized in that: The method further comprises: It is determined that the walls outside the associated area of ​​the room outline are not associated with the room outline.

5. The method according to any one of claims 1 to 4, characterized in that: The coordinates are based on the IEEE encoding standard for the Double type.

6. A device for generating an association relationship, characterized in that: include: An extraction module, for extracting a plurality of room outlines and a plurality of walls in the building information model according to the building information model of the target building; A determination module, configured to determine, based on a quadtree data structure, associated areas of a plurality of the room outlines and associated areas of a plurality of the walls; A generating module, configured to generate an association relationship between a plurality of the room outlines and a plurality of the walls according to the association areas of the plurality of the room outlines and the association areas of the plurality of the walls; The determination module is further used to: divide the space into multiple areas based on a quadtree data structure; select the area to which the room outline belongs from the multiple areas according to the coordinates of the room outline, determine the area to which the room outline belongs as the associated area of ​​the room outline, so as to determine the associated areas of the multiple room outlines; select the area to which the wall belongs from the multiple areas according to the coordinates of the wall, determine the area to which the wall belongs as the associated area of ​​the wall, so as to determine the associated areas of the multiple walls; The generating module is further used to generate an association relationship between the room outline and the plurality of walls according to the following method, so as to generate an association relationship between the plurality of room outlines and the plurality of walls: Acquire the associated area of ​​the room outline; acquire one or more associated walls within the associated area of ​​the room outline according to the associated areas of the multiple walls; traverse the one or more associated walls; if the coordinates of the associated wall coincide with the coordinates of the room outline, determine that the outer edges of the room outline and the associated wall are aligned; if the coordinates of the room outline are between the coordinates of the associated wall, determine that the center lines of the room outline and the associated wall are aligned; if the coordinates of the associated wall are independent of the coordinates of the room outline, determine that the room outline and the associated wall are unassociated.

7. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for generating an association relationship as claimed in any one of claims 1 to 5 is implemented.

8. An electronic device, characterized in that: include: one or more processors; A storage device, used to store one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the association relationship generation method as described in any one of claims 1 to 5.