Wall marking method, device, electronic device and readable medium for building model

By determining the target wall objects and points in the building model and performing translation operations, the marking results of the wall objects are automatically determined, and the problem of time-consuming and labor-consuming manual marking in the existing technology is solved, and efficient and accurate walls are achieved Object label.

CN113946895BActive Publication Date: 2025-02-11SHENZHEN XUMI YUNTU SPACE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111230801.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2025-02-11
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

In the prior art, wall object annotation in building models is usually done manually, which makes it time-consuming and labor-intensive and cannot be processed in batches.

Method used

By determining the target wall object in the architectural model, determining the target wall point, and translating the point to the second and third vertical directions, the first and second translation points are obtained, and then according to the positions of these translation points The relationship automatically determines the labeling result of the wall object.

Benefits of technology

It realizes automatic labeling of wall objects in building models, improves the accuracy and efficiency of labeling, and can batch process the labeling of wall objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113946895B_ABST
    Figure CN113946895B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure provide a method, device, electronic device and readable medium for labeling walls of a building model, the method comprising: determining a target wall object in the building model, the target wall object having a first direction, the building model having a target space range, the target space range including at least one room space; determining a target wall point in the target wall object; translating the target wall point in a second direction by a target translation amount to obtain a first translation point; translating the target wall point in a third direction by a target translation amount to obtain a second translation point, the second direction and the third direction being opposite; determining the labeling result of the target wall object according to the positional relationship between the first translation point and the second translation point in at least one room space within the target space range. The method, device, electronic device and readable medium for labeling walls of a building model provided by the embodiments of the present disclosure can automatically label wall objects with high labeling accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of computer image processing, and in particular to a wall marking method, device, electronic device and computer-readable medium for a building model. Background Art

[0002] For building models, such as wall objects in Revit models, their parameter values ​​(interior wall or exterior wall) need to be annotated so that the program can perform subsequent processing on the wall objects based on the parameter values, such as offset. The current method of annotating wall objects is usually done manually. This method is time-consuming and labor-intensive and cannot be performed in batches.

[0003] Therefore, a new method, device, electronic device and computer-readable medium for marking walls of a building model are needed.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure. Summary of the invention

[0005] In view of this, the embodiments of the present disclosure provide a method, device, electronic device and computer-readable medium for labeling walls of a building model, which can automatically label wall objects with high labeling accuracy.

[0006] 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.

[0007] According to a first aspect of an embodiment of the present disclosure, a wall labeling method for a building model is proposed, the method comprising: determining a target wall object in the building model, the target wall object having a first direction, the building model having a target space range, the target space range including at least one room space; determining a target wall point in the target wall object; translating the target wall point in a second direction by a target translation amount to obtain a first translation point, the target translation amount being the thickness of the target wall object, the second direction being perpendicular to the first direction; translating the target wall point in a third direction by the target translation amount to obtain a second translation point, the third direction being perpendicular to the first direction, and the second direction and the third direction being opposite; and determining a labeling result of the target wall object according to a positional relationship between the first translation point and the second translation point in at least one room space within the target space range.

[0008] In an exemplary embodiment of the present disclosure, determining the labeling result of the target wall object according to the positional relationship between the first translation point and the second translation point in at least one room space within the target space range includes: determining the first room space where the first translation point is located within the target space range; determining the second room space where the second translation point is located within the target space range; and determining the labeling result of the target wall object according to the room type of the first room space and the room type of the second room space.

[0009] In an exemplary embodiment of the present disclosure, determining the labeling result of the target wall object according to the room type of the first room space and the room type of the second room space includes: integrating the number of spaces of the first room space and the second room space to obtain the target number of rooms; integrating the room types of the first room space and the second room space to obtain the number of room types; if the target number of rooms is 1, determining that the target wall object is an exterior wall; if the target number of rooms is 2 and the number of room types is 2, determining that the target wall object is an exterior wall; if the target number of rooms is 2 and the number of room types is 2, determining that the target wall object is an exterior wall; if the target number of rooms is 2 and the number of room types is 1, determining that the target wall object is an interior wall.

[0010] In an exemplary embodiment of the present disclosure, determining a target wall point in the target wall object includes: determining a center point of a wall positioning line of the target wall object as the target wall point.

[0011] In an exemplary embodiment of the present disclosure, determining a target wall point in the target wall object includes: determining K target wall points on a wall positioning line in the target wall object, where K is an integer greater than 0.

[0012] In an exemplary embodiment of the present disclosure, translating the target wall point in a second direction by a target translation amount to obtain a first translation point includes: if the 1st to k-1th first translation points are all located outside at least one room space within the target space range, then translating the kth target wall point in the second direction by the target translation amount to obtain the kth first translation point, where k is an integer greater than 1 and less than or equal to K; translating the target wall point in a third direction by the target translation amount to obtain a second translation point includes: if the 1st to k-1th second translation points are all located outside at least one room space within the target space range, then translating the kth target wall point in the third direction by the target translation amount to obtain the kth second translation point.

[0013] In an exemplary embodiment of the present disclosure, the target wall point is translated in the second direction by a target translation amount to obtain a first translation point, including: if the first translation point is not in at least one room space within the target space range, and the first translation point is within the range of a first wall object, determining the thickness of the first wall object; translating the first translation point in the second direction by a first translation amount, and using the translated point as an updated first translation point, and the first translation amount is the thickness of the first wall object.

[0014] In an exemplary embodiment of the present disclosure, translating the target wall point in the second direction by a target translation amount to obtain a first translation point further includes: if a fourth direction of the first wall object is perpendicular to the first direction, determining that the first translation point is not in at least one room space within the target space range.

[0015] According to a second aspect of an embodiment of the present disclosure, a wall annotation device for a building model is provided, the device comprising: a wall object determination module, used to determine a target wall object in a building model, the target wall object having a first direction, the building model having a target space range, the target space range including at least one room space; a wall point determination module, used to determine a target wall point in the target wall object; a first translation module, used to translate the target wall point in a second direction by a target translation amount to obtain a first translation point, the target translation amount being a thickness of the target wall object, the second direction being perpendicular to the first direction; a second translation module, used to translate the target wall point in a third direction by the target translation amount to obtain a second translation point, the third direction being perpendicular to the first direction, and the second direction and the third direction being opposite; a wall annotation module, used to determine an annotation result of the target wall object according to a positional relationship between the first translation point and the second translation point in at least one room space within the target space range.

[0016] According to a third aspect of an embodiment of the present disclosure, an electronic device is proposed, comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement any of the above-mentioned methods for marking walls of a building model.

[0017] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the wall marking method of a building model as described in any one of the above items is implemented.

[0018] According to the wall labeling method, device, electronic device and computer-readable medium of the building model provided by certain embodiments of the present disclosure, a target wall point is determined in the target wall object in the building model; the target wall point is translated in a second direction and a third direction respectively perpendicular to the first direction of the target wall object to obtain a first translation point and a second translation point, and then the labeling result of the target wall object can be determined according to the positional relationship between the first translation point and the second translation point in at least one room space within the target space range, thereby realizing automatic labeling of the wall objects in the building model with high labeling accuracy.

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

[0020] The 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. The drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can also be obtained based on these drawings without creative work.

[0021] Figure 1 The present invention is a system block diagram of a method and device for marking walls of a building model according to an exemplary embodiment.

[0022] Figure 2 The present invention is a flowchart of a method for marking walls of a building model according to an exemplary embodiment.

[0023] Figure 3 The present invention is a flowchart of a method for marking walls of a building model according to another exemplary embodiment.

[0024] Figure 4 The present invention is a flowchart of a method for marking walls of a building model according to another exemplary embodiment.

[0025] Figure 5 The present invention is a flowchart of a method for marking walls of a building model according to yet another exemplary embodiment.

[0026] Figure 6 The present invention is a flowchart of a method for marking walls of a building model according to yet another exemplary embodiment.

[0027] Figure 7 The present invention is a flowchart of a method for marking walls of a building model according to yet another exemplary embodiment.

[0028] Figure 8 The present invention is a block diagram of a wall marking device for a building model according to an exemplary embodiment.

[0029] Fig. 9 A block diagram schematically shows an electronic device in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that the present invention will be comprehensive and complete and fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0031] The described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present invention. However, those skilled in the art will appreciate that the technical solution of the present invention may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring various aspects of the present invention.

[0032] The accompanying drawings are only schematic illustrations of the present invention, and the same reference numerals in the drawings represent the same or similar parts, so their repeated description will be omitted. Some block diagrams shown in the accompanying drawings 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.

[0033] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and steps, nor must they be executed in the order described. For example, some steps can be decomposed, and some steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0034] Currently, the properties of wall objects include inner walls and outer walls. An inner wall refers to a wall that spans two rooms at the same time (both rooms are special rooms or both are general rooms). An outer wall refers to a wall that spans only one room or spans two rooms at the same time (one of the two rooms is a special room and the other is a general room). When a wall spans two rooms, it means that the number of room spaces adjacent to the outer surface of the wall is 2. A wall spanning one room means that the number of room spaces adjacent to the outer surface of the wall is 1.

[0035] Room types include special rooms and general rooms. Special rooms refer to specific rooms, such as room names: "Exhaust shaft", "Non-walkable roof", "Walkable roof", "Roof", "Message room", "Supply air shaft", "Fresh air shaft", "Air intake shaft", "Supply air shaft", "Bay window", "Corridor", "Terrace", "Enclosed balcony", "Open balcony", "Equipment platform", "Air conditioning position", "Outdoor platform", "Awning", "Flower bed", "Light well", "Fire corridor", "External corridor", "Eaves corridor", "Porch", "Passageway", "Outdoor bridge", "Outdoor stairs", "Outdoor fire-fighting special steel stairs", "Courtyard", and "Mezzanine".

[0036] General rooms are rooms other than special rooms.

[0037] Exemplary embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0038] Figure 1 The present invention is a system block diagram of a method and device for marking walls of a building model according to an exemplary embodiment.

[0039] In the system 100 of the method and device for marking the wall of a building model, the server 105 may be a server that provides various services, such as a background management server (only for example) that provides support for the wall marking system of the building model operated by the user using the terminal devices 101, 102, and 103 through the network 104. The background management server may analyze and process the received data such as the wall marking request of the building model, and feed back the processing result (such as the wall marking result - only for example) to the terminal device.

[0040] The server 105 may be a physical server, or may be composed of a plurality of servers, a part of the server 105 may be used as a wall annotation task submission system of the building model in the present disclosure, for obtaining a task to execute a wall annotation command of the building model; and a part of the server 105 may also be used as a wall annotation system of the building model in the present disclosure, for determining a target wall object in the building model, wherein the target wall object has a first direction, and the building model has a target space range, and the target space range includes at least one room space; determining a target wall point in the target wall object; translating the target wall point in a second direction by a target translation amount to obtain a first translation point, wherein the target translation amount is the thickness of the target wall object, and the second direction is perpendicular to the first direction; translating the target wall point in a third direction by the target translation amount to obtain a second translation point, wherein the third direction is perpendicular to the first direction, and the second direction is opposite to the third direction; determining the annotation result of the target wall object according to the positional relationship between the first translation point and the second translation point in at least one room space within the target space range.

[0041] Figure 2 1 is a flowchart of a method for labeling a wall of a building model according to an exemplary embodiment. The method for labeling a wall of a building model provided in the embodiment of the present disclosure can be executed by any electronic device with computing and processing capabilities, such as terminal devices 101, 102, 103 and / or server 105. In the following embodiments, the method is illustrated by taking the server executing the method as an example, but the present disclosure is not limited thereto. The method for labeling a wall of a building model provided in the embodiment of the present disclosure can include steps S202 to S210.

[0042] like Figure 2 As shown, in step S202, a target wall object in the building model is determined, the target wall object has a first direction, the building model has a target space range, and the target space range includes at least one room space.

[0043] In the disclosed embodiment, the building model is generated by Revit software, for example. The first direction of the target wall object is the direction of the straight line where the target wall object is located. The target space range of the building model refers to the space area surrounded by the outer contour of the building model. The room space refers to the space area occupied by each room object in the building model.

[0044] In step S204, a target wall point is determined in the target wall object.

[0045] In the embodiment of the present disclosure, for example, a target wall point is determined on the wall positioning line where the target wall object is located. The target wall point may be one or more. When the target wall point is one, the center point of the wall positioning line of the target wall object may be determined as the target wall point.

[0046] In step S206, the target wall point is translated in the second direction by a target translation amount to obtain a first translation point, the target translation amount is the thickness of the target wall object, and the second direction is perpendicular to the first direction.

[0047] In the disclosed embodiment, if there is one target wall point, one first translation point can be obtained. If there are multiple target wall points, at least one first translation point corresponding to the target wall point one by one or less than the number of target wall points can be obtained.

[0048] In step S208, the target wall point is translated in a third direction by a target translation amount to obtain a second translation point, wherein the third direction is perpendicular to the first direction, and the second direction and the third direction are opposite.

[0049] In the disclosed embodiment, if there is one target wall point, one second translation point can be obtained. If there are multiple target wall points, at least one second translation point corresponding to the target wall point one by one or less than the number of target wall points can be obtained.

[0050] In step S210, a labeling result of a target wall object is determined according to a positional relationship between a first translation point and a second translation point in at least one room space within a target space range.

[0051] In the embodiment of the present disclosure, the labeling result of the target wall object can be determined according to the number and type of rooms in the room space where all the first translation points and the second translation points are located. The labeling result is that the target wall object is an interior wall or the target wall object is an exterior wall.

[0052] According to the wall labeling method of the building model provided by the embodiment of the present disclosure, a target wall point is determined in the target wall object in the building model; the target wall point is translated in a second direction and a third direction respectively perpendicular to the first direction of the target wall object to obtain a first translation point and a second translation point, and then the labeling result of the target wall object can be determined according to the positional relationship between the first translation point and the second translation point in at least one room space within the target space range, thereby realizing automatic labeling of the wall objects in the building model with high labeling accuracy.

[0053] Figure 3 The flowchart of a method for labeling a wall of a building model according to another exemplary embodiment is shown. The method for labeling a wall of a building model provided by the embodiment of the present disclosure may include steps S302 to S306.

[0054] like Figure 3 As shown, in step S302, the first room space where the first translation point is located within the target space range is determined.

[0055] In the disclosed embodiment, the first room space where the first translation point is located within the target space range refers to the room space to which the position of the first translation point within the target space range belongs. If there are multiple first translation points, the room spaces where the multiple first translation points are located within the target space range are counted to obtain at least one first room space.

[0056] In step S304, a second room space where the second translation point is located within the target space range is determined.

[0057] In the disclosed embodiment, the second room space where the second translation point is located within the target space range refers to the room space to which the position of the second translation point within the target space range belongs. If there are multiple second translation points, the room spaces where the multiple second translation points are located within the target space range are counted to obtain at least one second room space.

[0058] In step S306, the labeling result of the target wall object is determined according to the room type of the first room space and the room type of the second room space.

[0059] Figure 4 FIG. 1 is a flow chart of a method for marking walls of a building model according to another exemplary embodiment. Figure 3 Step S306 of the embodiment may further include steps S402 to S410.

[0060] like Figure 4 As shown, in step S402, the number of spaces of the first room space and the second room space is integrated to obtain the target number of rooms.

[0061] In the disclosed embodiment, the first room space and the second room space may be integrated into a set, and the number of elements in the set may be counted to obtain the target number of rooms.

[0062] In step S404, the room types of the first room space and the second room space are integrated to obtain the number of room types.

[0063] In the disclosed embodiment, the first room space and the second room space may be integrated into a set, and the number of room types of each element (ie, room space) in the set may be counted to obtain the number of room types.

[0064] In step S406, if the target room number is 1, it is determined that the target wall object is an exterior wall.

[0065] In the disclosed embodiment, if the number of target rooms is 1, it can be determined that the target wall object only spans one room, and it can be determined that the target wall object is an exterior wall.

[0066] In step S408, if the number of target rooms is 2 and the number of room types is 2, it is determined that the target wall object is an exterior wall.

[0067] In the disclosed embodiment, if the number of target rooms is 2, it can be determined that the target wall object spans 2 rooms at the same time, and if the number of room types is 2, it can be determined that of the 2 rooms spanned by the target wall object, one is a special room and the other is a general room, and it can be determined that the target wall object is an exterior wall.

[0068] In step S410, if the number of target rooms is 2 and the number of room types is 1, it is determined that the target wall object is an interior wall.

[0069] In the disclosed embodiment, if the number of target rooms is 2, it can be determined that the target wall object spans 2 rooms at the same time, and if the number of room types is 1, it can be determined that the 2 rooms spanned by the target wall object are both special rooms or both general rooms, and therefore it can be determined that the target wall object is an inner wall.

[0070] According to the wall labeling method of the building model provided by the embodiment of the present disclosure, the first room space and the second room space are integrated to obtain the target number of rooms and the number of room types, and the number of rooms and room types spanned by the target wall object can be determined based on the target number of rooms and the number of room types, and then the target wall object can be determined as an inner wall or an outer wall based on the definition of the wall object attributes, thereby realizing automatic and accurate labeling of the target wall object.

[0071] Figure 5 The flowchart of a method for labeling a wall of a building model according to another exemplary embodiment is shown. The method for labeling a wall of a building model provided by the embodiment of the present disclosure may include steps S502 to S510.

[0072] like Figure 5 As shown, in step S502, a target wall object in the building model is determined, the target wall object has a first direction, the building model has a target space range, and the target space range includes at least one room space.

[0073] In step S504, K target wall points are determined on the wall positioning line in the target wall object, where K is an integer greater than 0.

[0074] In the embodiment of the present disclosure, K target wall points can be obtained by sampling according to a preset step value on the wall positioning line of the target wall object, starting from the starting point of the wall positioning line. For another example, K points can be randomly selected on the wall positioning line as the K target wall points.

[0075] In step S506, if the 1st to k-1th first translation points are all located outside at least one room space within the target space range, the kth target wall point is translated in the second direction by the target translation amount to obtain the kth first translation point, where k is an integer greater than 1 and less than or equal to K.

[0076] In the disclosed embodiment, the first target wall point may be first translated in the second direction by the target translation amount to obtain the first first translation point. If the judgment result of "Is the first first translation point outside at least one room space within the target space range?" is yes, the second target wall point is translated in the second direction by the target translation amount to obtain the second first translation point.

[0077] For another example, when at least one of the first translation points from the first to the second (i.e., k-1, k=3) first translation points is located in at least one room space within the target space range, the translation operation of the third, fourth, ..., Kth target wall point to the second direction by the target translation amount is canceled. This method can avoid unnecessary translation operations and reduce the amount of translation calculation.

[0078] In step S508, if the 1st to k-1th second translation points are all located outside at least one room space within the target space range, the kth target wall point is translated in the third direction by the target translation amount to obtain the kth second translation point.

[0079] In the disclosed embodiment, the first target wall point may be first translated in the third direction by the target translation amount to obtain the first second translation point. If the judgment result of "Is the first second translation point located outside at least one room space within the target space range?" is yes, the second target wall point may be translated in the third direction by the target translation amount to obtain the second second translation point.

[0080] For another example, when at least one of the first to second (i.e., k-1, k=3) second translation points is located in at least one room space within the target space range, the translation operation of the third, fourth, ..., Kth target wall point to the third direction by the target translation amount is canceled. This method can avoid unnecessary translation operations and reduce the amount of translation calculation.

[0081] In step S510, a labeling result of a target wall object is determined according to a positional relationship between a first translation point and a second translation point in at least one room space within a target space range.

[0082] In this embodiment, since the specific first room space adjacent to the target wall point in the second direction can be determined based on the 1st to kth first translation points, there is no need to perform redundant judgment on the adjacent room space of the target wall point in the second direction, which can avoid unnecessary translation operations, reduce the amount of translation calculation while ensuring the accuracy of wall marking. Step S508 when performing a translation operation in the third direction to obtain the second translation point can also achieve the above technical effect.

[0083] Figure 6 The present invention is a flowchart of a method for marking walls of a building model according to yet another exemplary embodiment. Figure 2 Step S206 of the embodiment may further include steps S602 to S604.

[0084] like Figure 6 As shown, in step S602, if the first translation point is not within at least one room space within the target space range, and the first translation point is within the range of a first wall object, the thickness of the first wall object is determined.

[0085] In the disclosed embodiment, if the first translation point is not within at least one room space within the target space range, and the first translation point is within the range of a first wall object, it can be determined that the first translation point obtained after the translation of the target wall point is still located inside the wall, that is, the area outside the wall is still a wall.

[0086] In step S604, the first translation point is translated in the second direction by a first translation amount, and the translated point is used as the updated first translation point. The first translation amount is the thickness of the first wall object.

[0087] In the case where the wall outside is still a wall, it is impossible to accurately determine whether the first wall is adjacent to a room space in the second direction. In this step, the first translation point can be translated again by the first translation amount to serve as the updated first translation point. Furthermore, if the updated first translation point is within the range of the second wall object, the updated first translation point can be translated again by the second translation amount to serve as the updated first translation point, and the second translation amount is the thickness of the second wall object. The above translation operation is stopped until it is determined that the first translation point is located in at least one room space within the target space range, or the first translation point is located outside the target space range.

[0088] In an exemplary embodiment, if the fourth direction of the first wall object is perpendicular to the first direction, it is determined that the first translation point is not in at least one room space within the target space. In this embodiment, when the first direction is perpendicular to the fourth direction, it can be confirmed that the first wall object and the target wall object are in a vertical position relationship. In this case, it can be confirmed that there is no need to translate the first translation point again in the second direction, even if the room space where the updated first translation point is located after multiple translations may not be adjacent to the target wall object. Therefore, it can be directly considered that the first translation point is not in at least one room space within the target space, avoiding subsequent statistics of the room space where the first translation point is located.

[0089] Exemplarily, when translating the target wall point in a third direction by a target translation amount to obtain a second translation point, it may include: if the second translation point is not in at least one room space within the target space range, and the second translation point is within the range of a first wall object, determining the thickness of the first wall object; translating the second translation point in the third direction by a first translation amount, and using the translated point as an updated second translation point, and the first translation amount is the thickness of the first wall object.

[0090] When translating the target wall point in a third direction by a target translation amount to obtain a second translation point, the method may further include: if a fourth direction of the first wall object is perpendicular to the first direction, determining that the second translation point is not in at least one room space within the target space range.

[0091] Figure 7 FIG. 1 is a flow chart of a method for marking walls of a building model according to another exemplary embodiment. Figure 7 As shown, the wall marking method of the building model provided by the embodiment of the present disclosure may include steps S702 to S732.

[0092] In step S702, K target wall points are determined according to the direction of the wall positioning line or the room dividing line of the current wall object.

[0093] In step S704, a loop operation is performed on the kth target wall point, which loop operation includes a first loop operation of steps S706 to S716 and a second loop operation of steps S718 to S719.

[0094] The first cycle operates as follows:

[0095] In step S706, if k>1, it is determined whether to translate the kth target wall point in the second direction to obtain the kth first translation point. The determination condition can be expressed as a first determination condition: the first to k-1th first translation points are all located outside at least one room space within the target space range.

[0096] In step S708, it is determined whether the kth first translation point is in at least one room space within the target space range. If yes, step S710 is executed, otherwise, step S712 is executed.

[0097] In step S710, it is determined that the first judgment condition is not satisfied, that is, in the subsequent first loop operation, the k+1th to Kth target wall points are no longer translated in the second direction.

[0098] In step S712, it is determined whether the kth first translation point is within the range of a first wall object. If yes, step S714 is executed, otherwise, step S716 is executed.

[0099] In step S714, the first translation point is translated in a second direction by a first translation amount, and the translated point is used as an updated first translation point, and then the process returns to step S708.

[0100] In step S716, the operation of translating the kth first translation point in the second direction is ended, k is incremented by 1, and then the process returns to step S706, and step S718 is executed when k>K.

[0101] The second loop operates as follows:

[0102] In step S718, if k>1, it is determined whether to translate the kth target wall point in the third direction to obtain the kth second translation point. The determination condition can be expressed as a second determination condition: the first to k-1th second translation points are all located outside at least one room space within the target space range.

[0103] In step S720, it is determined whether the kth second translation point is in at least one room space within the target space range. If yes, step S722 is executed, otherwise, step S724 is executed.

[0104] In step S722, it is determined that the second judgment condition is not satisfied, that is, in the subsequent second loop operation, the k+1th to Kth target wall points are no longer translated in the third direction.

[0105] In step S724, it is determined whether the kth second translation point is within the range of a first wall object. If yes, step S726 is executed, otherwise, step S728 is executed.

[0106] In step S726, the second translation point is translated in the third direction by the first translation amount, and the translated point is used as the updated second translation point, and then the process returns to step S720.

[0107] In step S728, the operation of translating the kth second translation point to the third direction is ended, k is incremented by 1, and then the process returns to step S718, and the process ends when k>K.

[0108] After the first cycle operation and the second cycle operation are completed, steps S730 to S732 are performed.

[0109] In step S730, the room space where the first translation point and the second translation point are located is integrated.

[0110] In step S732, it is determined whether the target wall object is an inner wall or an outer wall according to the room space where the first translation point and the second translation point are located.

[0111] The wall marking method of the building model of the embodiment of the present disclosure uses one or more suitable points on a carrier (such as a wall) to perform displacement in multiple geometric spaces (such as the boundary outline of a room) to determine the characteristics of the carrier. Specifically, the target wall point (located on the carrier wall positioning line or the room dividing line) and the geometric space (i.e., the target space range) are first placed in the same plane coordinate system, and then the point displacement is used to determine whether it is inside the room space. The final displacement results are as follows:

[0112] 1. The point inside a room after being displaced once to the left and right is the exterior wall.

[0113] 2. The point after displacement to the left and right is inside the space of two rooms, and one of the two rooms is a special room and the other is a general room, which is the exterior wall.

[0114] 3. A point that is inside two room spaces after being displaced once to the left and right is an inner wall, and both room spaces are special rooms or ordinary rooms.

[0115] Based on the concepts of interior and exterior walls, the above three results are used to judge the interior and exterior walls and obtain the offset rules, so as to realize accurate automatic marking of the walls of the building model.

[0116] It should be clearly understood that the present disclosure describes how to form and use specific examples, but the principles of the present disclosure are not limited to any details of these examples. On the contrary, based on the teachings of the contents disclosed in the present disclosure, these principles can be applied to many other embodiments.

[0117] Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments are implemented as a computer program executed by a central processing unit (CPU). When the computer program is executed by the central processing unit (CPU), the above functions defined by the above method provided by the present disclosure are executed. The program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.

[0118] In addition, it should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above 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.

[0119] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.

[0120] Figure 8 FIG. 1 is a block diagram of a wall marking device for a building model according to an exemplary embodiment. Figure 8 The wall annotation device 800 of the building model provided by the embodiment of the present disclosure may include: a wall object determination module 802 , a wall point determination module 804 , a first translation module 806 , a second translation module 808 and a wall annotation module 810 .

[0121] In the wall annotation device 800 for a building model, the wall object determination module 802 may be used to determine a target wall object in the building model, the target wall object having a first direction, the building model having a target space range, and the target space range including at least one room space.

[0122] The wall point determination module 804 may be used to determine a target wall point in the target wall object.

[0123] The first translation module 806 may be used to translate the target wall point in a second direction by a target translation amount to obtain a first translation point, where the target translation amount is the thickness of the target wall object, and the second direction is perpendicular to the first direction.

[0124] The second translation module 808 may be used to translate the target wall point in a third direction by the target translation amount to obtain a second translation point, wherein the third direction is perpendicular to the first direction, and the second direction is opposite to the third direction.

[0125] The wall labeling module 810 may be used to determine a labeling result of the target wall object according to a positional relationship between the first translation point and the second translation point in at least one room space within the target space range.

[0126] According to the wall labeling device of the building model provided by the embodiment of the present disclosure, a target wall point is determined in the target wall object in the building model; the target wall point is translated in the second direction and the third direction respectively perpendicular to the first direction of the target wall object to obtain a first translation point and a second translation point, and then the labeling result of the target wall object can be determined according to the positional relationship between the first translation point and the second translation point in at least one room space within the target space range, thereby realizing automatic labeling of the wall objects in the building model with high labeling accuracy.

[0127] In an exemplary embodiment, the wall labeling module 810 may include: a first room space determination unit, which can be used to determine the first room space where the first translation point is located within the target space range; a second room space determination unit, which can be used to determine the second room space where the second translation point is located within the target space range; and a wall labeling unit, which can be used to determine the labeling result of the target wall object according to the room type of the first room space and the room type of the second room space.

[0128] In an exemplary embodiment, the wall labeling unit may include: a room number determination subunit, which can be used to integrate the number of spaces of the first room space and the second room space to obtain a target number of rooms; a room type determination subunit, which can be used to integrate the room types of the first room space and the second room space to obtain the number of room types; a first labeling subunit, which can be used to determine that the target wall object is an exterior wall if the target number of rooms is 1; a second labeling subunit, which can be used to determine that the target wall object is an exterior wall if the target number of rooms is 2 and the number of room types is 2; a third labeling subunit, which can be used to determine that the target wall object is an interior wall if the target number of rooms is 2 and the number of room types is 1.

[0129] In an exemplary embodiment, the wall point determination module 804 may be used to determine the center point of the wall location line of the target wall object as the target wall point.

[0130] In an exemplary embodiment, the wall point determination module 804 may be used to determine K target wall points on the wall location line in the target wall object, where K is an integer greater than 0.

[0131] In an exemplary embodiment, the first translation module 806 can be used to translate the kth target wall point toward the second direction by the target translation amount to obtain the kth first translation point if the 1st to k-1th first translation points are all located outside at least one room space within the target space range, where k is an integer greater than 1 and less than or equal to K; the second translation module 808 can be used to translate the kth target wall point toward the third direction by the target translation amount to obtain the kth second translation point if the 1st to k-1th second translation points are all located outside at least one room space within the target space range.

[0132] In an exemplary embodiment, the first translation module 806 may include: a first wall thickness determination unit, which can be used to determine the thickness of the first wall object if the first translation point is not in at least one room space within the target space range and the first translation point is within the range of a first wall object; a first translation unit, which can be used to translate the first translation point in a second direction by a first translation amount, and use the translated point as an updated first translation point, and the first translation amount is the thickness of the first wall object.

[0133] In an exemplary embodiment, the first translation module 806 may further include: a first judgment unit, which can be used to determine that the first translation point is not in at least one room space within the target space if the fourth direction of the first wall object is perpendicular to the first direction.

[0134] Refer to the following Fig. 9 An electronic device 900 according to this embodiment of the present invention will be described. Fig. 9 The electronic device 900 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0135] like Fig. 9 As shown, the electronic device 900 is in the form of a general computing device. The components of the electronic device 900 may include but are not limited to: at least one processing unit 910, at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).

[0136] The storage unit stores program codes, which can be executed by the processing unit 910, so that the processing unit 910 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 910 can perform the following steps: Figure 2 or Figure 3 or Figure 4 or Figure 5 or Figure 6 or Figure 7Follow the steps shown in .

[0137] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and / or a cache storage unit 9202 , and may further include a read-only storage unit (ROM) 9203 .

[0138] The storage unit 920 may also include a program / utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 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.

[0139] Bus 930 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.

[0140] The electronic device 900 may also communicate with one or more external devices 1000 (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 900, and / or communicate with any device that enables the electronic device 900 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 950. Furthermore, the electronic device 900 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 via a bus 930. 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 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0141] 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.

[0142] 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.

[0143] 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.

[0144] 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.

[0145] 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.

[0146] 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).

[0147] In addition, 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.

[0148] 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 variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are to be considered exemplary only, and the true scope and concept of the present disclosure are indicated by the claims.

Claims

1. A wall marking method for a building model, characterized in that: include: Determine a target wall object in a building model, wherein the target wall object has a first direction, and the building model has a target space range, wherein the target space range includes at least one room space; Determining a target wall point in the target wall object; The target wall point is translated in a second direction by a target translation amount to obtain a first translation point, where the target translation amount is the thickness of the target wall object, and the second direction is perpendicular to the first direction; The target wall point is translated in a third direction by the target translation amount to obtain a second translation point, wherein the third direction is perpendicular to the first direction and the second direction is opposite to the third direction; Determine a labeling result of the target wall object according to a positional relationship between the first translation point and the second translation point in at least one room space within the target space range; Wherein, determining the labeling result of the target wall object according to the positional relationship between the first translation point and the second translation point in at least one room space within the target space range includes: determining a first room space where the first translation point is located within the target space range; determining a second room space where the second translation point is located within the target space range; and determining the labeling result of the target wall object according to the room type of the first room space and the room type of the second room space; Wherein, determining the labeling result of the target wall object according to the room type of the first room space and the room type of the second room space includes: Integrate the number of spaces of the first room space and the second room space to obtain a target number of rooms; integrate the room types of the first room space and the second room space to obtain a number of room types; If the target room number is 1, or if the target room number is 2 and the room type number is 2, determining that the target wall object is an exterior wall; If the target room number is 2 and the room type number is 1, it is determined that the target wall object is an interior wall.

2. The method according to claim 1, characterized in that Determining a target wall point in the target wall object includes: The center point of the wall positioning line of the target wall object is determined as the target wall point.

3. The method according to claim 1, characterized in that Determining a target wall point in the target wall object includes: K target wall points are determined on the wall positioning line in the target wall object, where K is an integer greater than 0.

4. The method according to claim 3, characterized in that Translating the target wall point in the second direction by a target translation amount to obtain a first translation point includes: If the first translation points from the 1st to the k-1th are all located outside at least one room space within the target space range, the kth target wall point is translated in the second direction by the target translation amount to obtain the kth first translation point, where k is an integer greater than 1 and less than or equal to K; The step of translating the target wall point in a third direction by the target translation amount to obtain a second translation point comprises: If the 1st to k-1th second translation points are all located outside at least one room space within the target space range, the kth target wall point is translated in the third direction by the target translation amount to obtain the kth second translation point.

5. The method according to claim 1, characterized in that Translating the target wall point in the second direction by a target translation amount to obtain a first translation point includes: If the first translation point is not within at least one room space within the target space, and the first translation point is within a first wall object, determining the thickness of the first wall object; The first translation point is translated in a second direction by a first translation amount, and the translated point is used as an updated first translation point, where the first translation amount is the thickness of the first wall object.

6. The method according to claim 5, characterized in that Translating the target wall point in the second direction by a target translation amount to obtain a first translation point further includes: If the fourth direction of the first wall object is perpendicular to the first direction, it is determined that the first translation point is not in at least one room space within the target space range.

7. A wall marking device for a building model, characterized in that: include: A wall object determination module, configured to determine a target wall object in a building model, wherein the target wall object has a first direction, and the building model has a target space range, and the target space range includes at least one room space; A wall point determination module, used to determine a target wall point in the target wall object; A first translation module, used for translating the target wall point in a second direction by a target translation amount to obtain a first translation point, wherein the target translation amount is the thickness of the target wall object, and the second direction is perpendicular to the first direction; A second translation module, used for translating the target wall point in a third direction by the target translation amount to obtain a second translation point, wherein the third direction is perpendicular to the first direction, and the second direction is opposite to the third direction; A wall marking module, configured to determine a marking result of the target wall object according to a positional relationship between the first translation point and the second translation point in at least one room space within the target space range; The wall annotation module determines the annotation result of the target wall object according to the positional relationship between the first translation point and the second translation point in at least one room space within the target space range, including: determining the first room space where the first translation point is located within the target space range; determining the second room space where the second translation point is located within the target space range; and determining the annotation result of the target wall object according to the room type of the first room space and the room type of the second room space; The wall marking module determines the marking result of the target wall object according to the room type of the first room space and the room type of the second room space, including: Integrate the number of spaces of the first room space and the second room space to obtain a target number of rooms; integrate the room types of the first room space and the second room space to obtain a number of room types; If the target room number is 1, or if the target room number is 2 and the room type number is 2, determining that the target wall object is an exterior wall; If the target room number is 2 and the room type number is 1, it is determined that the target wall object is an interior wall.

8. An electronic device, characterized in that: include: at least one processor; A storage device for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Point and line position relationship determination method and device, storage medium and electronic equipment

    CN112200861A

  • Method and system of performing a translation

    US20170083513A1