Method, device, computer equipment and medium for acquiring building exterior surface data
The acquisition of building exterior surface data through computer automation methods solves the problem of inefficient manual acquisition in the prior art, and realizes efficient extraction of building exterior surface model.
Patent Information
- Application Number
- CN202011374711.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-30
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2040-11-30
AI Technical Summary
In the prior art, the efficiency of obtaining the building's exterior surface model from the BIM model by manual means is inefficient, resulting in low working efficiency.
Through computer automation methods, the wall line segments of the building are obtained, the intersection point between the initial line segment and the wall line segment is determined, the target intersection point is extracted as the outer wall line segment, and the next outer wall line segment is determined based on the angle between the intersection point and the wall line segment. Until data on the exterior surface of the building is obtained.
It improves the efficiency of obtaining external surface data of the building, realizes automatic extraction of building exterior surface models, reduces manual intervention, and improves work efficiency.
Smart Images

Figure CN114580044B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and medium for acquiring building exterior surface data. Background Art
[0002] BIM modeling software can create three-dimensional solid models of buildings. Architectural design three-dimensional renderings, park-level building operation and maintenance and display, CIM and other fields also require three-dimensional building models. However, the three-dimensional models required in these fields are essentially models of the building's exterior surface, that is, models that can be seen outdoors.
[0003] In traditional technology, in order to obtain the external surface model from the complete BIM model of a single building, indoor components in the BIM model are manually removed, or the display accuracy of outdoor components is manually adjusted.
[0004] However, the manual separation of indoor components and outdoor components leads to low work efficiency. Summary of the invention
[0005] Based on this, it is necessary to provide a method, device, computer equipment and storage medium that can improve the efficiency of acquiring building exterior surface data in response to the above technical problems.
[0006] A method for acquiring building exterior surface data, the method comprising:
[0007] Get the wall line segment corresponding to the building to be processed;
[0008] Determine an initial line segment based on the internal points in the building to be processed, and calculate the intersection points of the initial line segment and the wall line segment to obtain an intersection point set;
[0009] Extract the target intersection point from the intersection point set, and use the wall line segment where the target intersection point is located as the initial outer wall line segment;
[0010] The wall line segment intersecting with the initial outer wall surface line segment is taken as the target line segment;
[0011] Determine the next exterior wall line segment according to the angle between each target line segment and the initial exterior wall line segment, until the end condition is reached to obtain the exterior wall data set;
[0012] The building exterior surface data is obtained according to the exterior wall data set.
[0013] In one embodiment, determining an initial line segment and calculating the intersection points of the initial line segment and the wall line segment to obtain an intersection point set includes:
[0014] Determine a target point inside the building to be processed, and determine an initial line segment based on the target point;
[0015] Calculate the intersection point between the initial line segment and the wall line segment;
[0016] The intersection point set is obtained according to each intersection point.
[0017] In one embodiment, extracting a target intersection point from the intersection point set and using the wall line segment where the target intersection point is located as the initial exterior wall surface line segment includes:
[0018] Calculate the distance between the intersection point in the intersection point set and the target point;
[0019] Extract the intersection point with the farthest distance as the target intersection point;
[0020] The wall line where the target intersection point is located is determined as the initial exterior wall line segment.
[0021] In one embodiment, determining the next exterior wall line segment according to the angle between each target line segment and the initial exterior wall line segment includes:
[0022] Get the positional relationship between the target point and the target line segment;
[0023] Determine the angle level based on the position relationship;
[0024] The next exterior wall line segment is determined according to the determined angle level and the angle between each target line segment and the initial exterior wall line segment.
[0025] In one embodiment, determining the angle level according to the position relationship includes:
[0026] When the target point is in the first azimuth direction of the target line segment, the angle level is determined to be the minimum angle level;
[0027] When the target point is in the second azimuth direction of the target line segment, the angle level is determined to be the maximum angle level, and the first azimuth direction and the second azimuth direction are two opposite directions.
[0028] In one embodiment, determining the next exterior wall line segment according to the determined angle level and the angle between each target line segment and the initial exterior wall line segment includes:
[0029] When the target point is in the first orientation direction of the target line segment, the target line segment with the smallest angle with the initial wall line segment is extracted from the target line segment as the next outer wall line segment;
[0030] When the target point is in the second orientation direction of the target line segment, the target line segment having the largest angle with the initial wall line segment is extracted from the target line segment as the next outer wall line segment.
[0031] In one embodiment, the building is a single building, and the single building includes multiple floors; obtaining the wall line segments corresponding to the building to be processed includes:
[0032] Get the wall line segments corresponding to each floor of the single building;
[0033] The building exterior surface data is obtained based on the exterior wall data set, including:
[0034] Get the external wall data set corresponding to each floor;
[0035] The external surface data of the building surface corresponding to the single building is obtained according to the external wall data set of each floor.
[0036] A device for acquiring data on the outer surface of a building, the device comprising:
[0037] An acquisition module, used to acquire the wall line segments corresponding to the building to be processed;
[0038] A calculation module, used for determining an initial line segment based on internal points in the building to be processed, and calculating intersection points between the initial line segment and the wall line segment to obtain an intersection point set;
[0039] A first extraction module is used to extract a target intersection point from the intersection point set, and use the wall line segment where the target intersection point is located as an initial exterior wall surface line segment;
[0040] A second extraction module is used to take the wall line segments intersecting with the initial outer wall surface line segments as target line segments;
[0041] The third extraction module is used to determine the next outer wall line segment according to the angle between each target line segment and the initial outer wall line segment, until the outer wall data set is obtained when the end condition is met;
[0042] The generation module is used to obtain the building exterior surface data according to the exterior wall surface data set.
[0043] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of any of the above embodiments when executing the computer program.
[0044] A computer-readable storage medium stores a computer program, which implements the steps of the method of any of the above embodiments when the computer program is executed by a processor.
[0045] The above-mentioned building exterior surface data acquisition method, device, computer equipment and storage medium acquire the wall line segment corresponding to the building to be processed; determine the initial line segment, and calculate the intersection of the initial line segment and the wall line segment to obtain the intersection set; extract the target intersection from the intersection set, and use the wall line segment where the target intersection is located as the initial exterior wall surface line segment; use the wall line segment that intersects with the initial exterior wall surface line segment as the target line segment; determine the next exterior wall surface line segment according to the angle between each target line segment and the initial exterior wall surface line segment, until the end condition is met to obtain the exterior wall surface data set; obtain the building exterior surface data according to the exterior wall surface data set. The building exterior surface model is automatically extracted by computer, which improves the efficiency of acquiring the building exterior surface data. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A diagram showing an application environment of a method for acquiring building outer surface data in an embodiment;
[0047] Figure 2 A schematic diagram of a flow chart of a method for acquiring building exterior surface data in one embodiment;
[0048] Figure 3 A schematic diagram of a wall line of a building to be processed provided in one embodiment;
[0049] Figure 4 A schematic diagram of a wall of a building to be treated provided in one embodiment;
[0050] Figure 5 A schematic diagram of a wall surface obtained by performing Boolean operations on an original wall surface and doors and windows provided in an embodiment;
[0051] Figure 6 It is a structural block diagram of a device for acquiring data on the outer surface of a building in one embodiment;
[0052] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment.
[0053] Reference numerals:
[0054] 310, starting wall line; 320, ending wall line; 330, left line, 340, right line;
[0055] 400, wall; 410, original wall;
[0056] 510. Doors and windows; 520. Walls. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0058] The method for acquiring building exterior surface data provided in this application can be applied to servers or terminals. Among them, the server can be an independent physical server, or it can be implemented by a server cluster composed of multiple servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms, etc., without limitation. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.
[0059] In a specific embodiment, the building exterior surface data acquisition method provided by the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The server 104 obtains the wall line segment corresponding to the building to be processed; determines the initial line segment based on the internal points in the building to be processed, and calculates the intersection of the initial line segment and the wall line segment to obtain the intersection set; extracts the target intersection from the intersection set, and uses the wall line segment where the target intersection is located as the initial external wall surface segment; uses the wall line segment that intersects with the initial external wall surface segment in the wall line segment as the target segment; determines the next external wall surface segment according to the angle between each target segment and the initial external wall surface segment, until the external wall surface data set is obtained when the end condition is met; obtains the building external surface data according to the external wall surface data set, and displays the building external surface data in the terminal 102.
[0060] In one embodiment, Figure 2 As shown, a method for acquiring building exterior surface data is provided, and the method is applied to Figure 1 The following uses the server in as an example.
[0061] Step 202: Obtain the wall line segments corresponding to the building to be processed.
[0062] The buildings to be processed can be single buildings. Single buildings are relative to building groups. Each independent building in a building group can be called a single building, such as a single-story building in a building. Since there are many internal walls in addition to the external walls in a single-story building, both the external walls and the internal walls are represented by wall line segments in the model. To extract the building's external surface data, it is necessary to identify which are the internal walls and which are the external walls.
[0063] The wall line segments are line segments corresponding to the walls of the building to be processed. In one embodiment, a line segment set L = {L1, L2, ... Ln} is generated based on the wall lines of all walls, and the line segment set is used as the wall line segments. Furthermore, all elements in the line segment set L intersect with one or more other wall lines at their endpoints only at their endpoints.
[0064] Specifically, the wall line segment may include one or more line segments, and each line segment corresponds to a wall line. The wall line segment includes the sideline and end line of the wall, wherein the sideline includes one or more of the left sideline and the right sideline, and the end line includes one or more of the starting wall line and the ending wall line. Figure 3 As shown, Figure 3 A schematic diagram of a wall line of a building to be processed is provided in an embodiment. Figure 3 The wall includes a starting point wall line 310, an end point wall line 320, a left side line 330 and a right side line 340. Figure 4 As shown, Figure 4 A schematic diagram of a wall of a building to be treated is provided in an embodiment. Figure 4 The components of the building to be processed include a wall 400 and wall lines that constitute the wall, wherein the wall lines include a starting wall line 310, an ending wall line 320, a left line 330 and a right line 340, and the wall 400 is a spatial structure formed by sweeping the left line 330, the right line 340, the starting wall line 310 and the ending wall line 320 along the Z direction.
[0065] Specifically, based on the boundary representation method, the three-dimensional wall model can be divided into the wall surface, bottom surface, top surface and end surface. Figure 4 , it can be seen that the left line 330 and the right line 340 can be swept along a certain direction (Z direction) to form the original wall surface 410. Further, the original wall surface 410 can be divided into a left wall surface and a right wall surface. Among them, the wall surface is obtained by performing Boolean operations on the original wall surface and the door and window mesh, such as Figure 5 As shown, Figure 5 A schematic diagram of a wall surface obtained by performing Boolean operations on an original wall surface and doors and windows provided in an embodiment. Figure 5 It can be seen that the wall includes a door and window 510 structure, which is obtained by performing Boolean operations on the original wall 410 and the door and window 510.
[0066] Step 204: determine an initial line segment based on the internal points in the building to be processed, and calculate the intersection points of the initial line segment and the wall line segment to obtain an intersection point set.
[0067] The initial line segment is a predetermined line segment, and the initial line segment can be a ray or a straight line obtained by determining a starting end point in the building to be processed and infinitely extending the starting end point. Specifically, the initial line segment can intersect with a wall line in the wall line segment to obtain an intersection point, and if the initial line segment intersects with multiple wall lines in the wall line segment, an intersection point set is obtained according to the intersection point between the initial line segment and each wall line.
[0068] Step 206: extract the target intersection point from the intersection point set, and use the wall line segment where the target intersection point is located as the initial exterior wall surface line segment.
[0069] The target intersection is one or more intersections extracted from the intersection set. In one embodiment, the target intersection can be determined based on the relative position relationship between each intersection and the starting endpoint of the initial line segment. For example, the intersection farthest from the starting endpoint can be used as the target intersection, or one or more intersections at a preset distance from the starting endpoint can be used as the target intersection.
[0070] In one embodiment, the intersection point farthest from the starting end point is used as the target intersection point, and the wall line where the target intersection point is located is used as the initial outer wall line segment, wherein the outer wall line segment refers to the line segment constituting the outer boundary.
[0071] Step 208: taking the wall line segment that intersects with the initial exterior wall surface line segment as the target line segment.
[0072] The target line segment includes one or more wall lines. Specifically, each wall line in the wall line segment is traversed, and it is determined whether there is an intersection between each wall line and the initial outer wall surface line segment. When there is an intersection, the intersecting wall line segment is extracted as the target line segment, and a target line segment set is obtained according to the extracted target line segment.
[0073] Step 210, determining the next exterior wall line segment according to the angle between each target line segment and the initial exterior wall line segment, until an exterior wall line segment set is obtained when an end condition is met.
[0074] Specifically, a target line segment is extracted one by one, and the angle between the target line segment and the initial outer wall line segment is calculated, and the next outer wall line segment is determined according to the angle value between each target line segment and the initial outer wall line segment. In another embodiment, the angles between all target line segments and the initial outer wall line segment are calculated simultaneously to improve the calculation efficiency of the angle.
[0075] The end condition may specifically be that all line segments in the wall line segments are traversed and judged, and all outer wall surface line segments are extracted from the wall line segments.
[0076] Step 212, obtaining the building outer surface data according to the outer wall line segment set.
[0077] Among them, the building surface data are the line segments that constitute the outline of the building's outer edge. By extracting the outer wall line segments that constitute the outer outline from the wall line segments corresponding to the building to be processed, the building's outer surface data can be obtained based on the extracted outer wall line segments, thereby achieving the purpose of quickly extracting the building's outer surface model.
[0078] The above-mentioned method for acquiring building external surface data obtains the wall line segment corresponding to the building to be processed; determines the initial line segment, and calculates the intersection point between the initial line segment and the wall line segment to obtain the intersection point set; extracts the target intersection point from the intersection point set, and uses the wall line segment where the target intersection point is located as the initial external wall surface line segment; uses the wall line segment that intersects with the initial external wall surface line segment as the target line segment; determines the next external wall surface line segment according to the angle between each target line segment and the initial external wall surface line segment, until the external wall surface data set is obtained when the end condition is met; and obtains the building external surface data according to the external wall surface data set. The building external surface model is automatically extracted by a computer, thereby improving the efficiency of acquiring the building external surface data.
[0079] In one embodiment, an initial line segment is determined, and intersection points of the initial line segment and the wall line segment are calculated to obtain an intersection point set, including: determining a target point inside the building to be processed, and determining the initial line segment according to the target point; calculating the intersection points of the initial line segment and the wall line segment; and obtaining an intersection point set according to each intersection point.
[0080] Specifically, an arbitrary point O is determined inside the building to be processed as the target point, and a ray RL is made with point O as the initial endpoint, and the ray is used as the initial line segment. The intersection points of RL and all the wall line segments L = {L1, L2, ... Ln} included in the wall line segments are calculated to obtain the intersection point set ps = {p1, p2 ... pn}.
[0081] It should be noted that when the building to be processed includes multiple floors, it also includes obtaining the floor building data to be processed corresponding to each floor, and determining the initial line segment and the floor building outer surface data of the corresponding floor according to the corresponding floor building data to be processed.
[0082] In the above embodiment, the intersection point set is determined by determining an initial line segment at a point inside the building to be processed. The method is simple and can improve the efficiency of obtaining the intersection point data while ensuring accurate acquisition of the intersection point data.
[0083] In one embodiment, a target intersection is extracted from an intersection set, and a wall line segment where the target intersection is located is used as an initial exterior wall surface segment, including: calculating the distance between the intersections in the intersection set and the target point; extracting the intersection with the farthest distance as the target intersection; and determining the wall line where the target intersection is located as the initial exterior wall surface segment.
[0084] Specifically, the server searches for the intersection with the largest distance from the target point O in the obtained intersection set ps, and uses the found intersection as the target intersection pi. Furthermore, the obtained target intersection pi is verified, and the specific verification method includes checking whether pi is the endpoint of a wall line segment in the wall line segment L. If pi is the endpoint of an element in L, then return to the step of redetermining the initial line segment and calculating the target intersection. If pi is not the endpoint of an element in L, the line segment where pi is located is Li, and Li must correspond to an external wall line segment, so the corresponding external wall line segment is used as the initial external wall line segment and added to the external wall line segment set LW.
[0085] In the above embodiment, the initial exterior wall line segments are determined by the distance values between the line segments, and the target intersection points for determining the initial exterior wall are verified, thereby ensuring the accuracy of the initial exterior wall line segments.
[0086] In one embodiment, the next exterior wall line segment is determined based on the angle between each target line segment and the initial exterior wall line segment, including: obtaining the positional relationship between the target point and the target line segment; determining the angle level based on the positional relationship; and determining the next exterior wall line segment based on the determined angle level and the angle between each target line segment and the initial exterior wall line segment.
[0087] The position relationship may be an orientation relationship, so as to determine the next exterior wall surface according to the orientation relationship between the target point and the initial exterior wall target line segment. The angle level is determined according to the size of the angle, such as by ranking the angles in order according to the size of the angle to obtain angle levels corresponding to different angle ranges.
[0088] In one embodiment, the angle level is determined according to the positional relationship, including: when the target point is in the first azimuth direction of the target line segment, the angle level is determined to be the minimum angle level; when the target point is in the second azimuth direction of the target line segment, the angle level is determined to be the maximum angle level, and the first direction and the second direction are two relative directions.
[0089] The first azimuth direction and the second azimuth direction are two relative directions, specifically, a left direction and a right direction. In a specific embodiment, the server determines the azimuth relationship between the target point and the target line segment, and when it is determined that the target point is on the right side of the target line segment, the angle level is determined to be the minimum angle level; when the target point is on the left side of the target line segment, the angle level is determined to be the maximum angle level.
[0090] In one embodiment, the next exterior wall line segment is determined based on the determined angle level and the angle between each target line segment and the initial exterior wall line segment, including: when the target point is in the first orientation direction of the target line segment, the target line segment with the smallest angle with the initial wall line segment is extracted from the target line segment as the next exterior wall line segment; when the target point is in the second orientation direction of the target line segment, the target line segment with the largest angle with the initial wall line segment is extracted from the target line segment as the next exterior wall line segment.
[0091] Specifically, take Li as the initial line segment, denoted as L0, search for all line segments that intersect with the starting point p1 of L0 in L, and determine the target line segment set Lis based on the found line segments. Calculate the vector V0 from p1 to the end point p2 of L0. And calculate the vectors of all line segments in Lis with p1 as the starting point and the other end point of the line segment as the end point, and record the vector set as Vs. Determine the azimuth relationship between the target point O and the initial line segment. If it is determined that the target point O is on the right side of L0, then search for the vector Vi with the smallest angle (0 to 360 degrees) with V0 in Vs. If the target point O is on the left side of L0, then search for the vector Vi with the largest angle (0 to 360 degrees) with V0 in Vs, and use the line segment Li corresponding to Vi as the newly found exterior wall line segment, i.e., the next exterior wall line segment. If Li is not in LW, add Li to the set LW, and set Li to the new L0, continue to perform the step of searching for the next external wall line segment based on the initial external wall line segment, and loop the process. If Li is in LW, end the process of obtaining the external wall line segments of the building to be processed, and achieve the search step of obtaining all external wall line segments, and the found line segment set associated with the external wall is LW = {LW1, LW2, ... LWn}.
[0092] If the building to be processed corresponds to a certain floor, the processing of the current floor should be terminated and the processing step of the next floor should be started. It should be noted that after obtaining the next external wall line segment Li, the server also determines whether the starting point of Li is equal to the starting point p1 of L0, and if they are equal, the step of exchanging the starting point and the end of Li is executed.
[0093] In one embodiment, the building is a single building, and the single building includes multiple floors; obtaining wall line segments corresponding to the building to be processed includes: obtaining wall line segments corresponding to each floor of the single building.
[0094] In one embodiment, obtaining building exterior surface data according to an exterior wall data set includes: acquiring an exterior wall data set corresponding to each floor; and obtaining building exterior surface data corresponding to a single building according to the exterior wall data set of each floor.
[0095] Specifically, the building is a single building, which includes multiple floors, and the wall data is stored by floor to obtain the floor to-be-processed building data corresponding to each floor. The floor to-be-processed building data corresponding to the current floor is obtained, and for the wall of each floor, any point is determined in any room of the current floor as the target point O, and a ray RL is randomly made from the target point as the starting point to the farthest point as the initial line segment, and then the building exterior wall line segment is extracted from the floor to-be-processed building data according to the initial line segment as the exterior wall data set corresponding to each floor.
[0096] Specifically, obtain the external wall data set LW corresponding to each floor, merge the LW of each floor into a set BLW, and record the set BLW as the external surface data of the building surface corresponding to the single building. The surface associated with BLW is the external wall surface geometry data of the single building. Furthermore, the external wall surface geometry data together with the roof model constitute the external surface model of the single building.
[0097] In the above embodiment, the building exterior surface model can be automatically extracted in the computer, the model processing efficiency can be improved, and a feasible technical path is provided for viewing and editing the BIM model. In particular, for buildings with regular shapes composed of straight walls and curved walls, the building exterior surface model can be automatically extracted without manually removing indoor components, which greatly improves the efficiency of obtaining the exterior surface model.
[0098] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0099] In one embodiment, Figure 6 As shown, a device for acquiring data of the outer surface of a building is provided, comprising:
[0100] The acquisition module 602 is used to acquire the wall line segments corresponding to the building to be processed.
[0101] The calculation module 604 is used to determine the initial line segment based on the internal points in the building to be processed, and calculate the intersection points of the initial line segment and the wall line segment to obtain an intersection point set.
[0102] The first extraction module 606 is used to extract a target intersection point from the intersection point set, and use the wall line segment where the target intersection point is located as an initial exterior wall surface line segment.
[0103] The second extraction module 608 is used to take the wall line segments intersecting with the initial outer wall surface line segments as target line segments.
[0104] The third extraction module 610 is used to determine the next exterior wall line segment according to the angle between each target line segment and the initial exterior wall line segment, until the exterior wall data set is obtained when the end condition is met.
[0105] The generating module 612 is used to obtain the building exterior surface data according to the exterior wall surface data set.
[0106] In one embodiment, the calculation module 604 is further used to determine a target point inside the building to be processed, determine an initial line segment according to the target point; calculate the intersection of the initial line segment and the wall line segment; and obtain an intersection point set according to each intersection point.
[0107] In one embodiment, the first extraction module 606 is further used to calculate the distance between the intersection points in the intersection point set and the target point; extract the intersection point with the farthest distance as the target intersection point; and determine the wall line where the target intersection point is located as the initial exterior wall line segment.
[0108] In one embodiment, the third extraction module 610 is also used to obtain the positional relationship between the target point and the target line segment; determine the angle level according to the positional relationship; and determine the next exterior wall line segment according to the determined angle level and the angle between each target line segment and the initial exterior wall line segment.
[0109] In one embodiment, the third extraction module 610 is also used to determine the angle level as the minimum angle level when the target point is in the first azimuth direction of the target line segment; when the target point is in the second azimuth direction of the target line segment, determine the angle level as the maximum angle level, and the first azimuth direction and the second azimuth direction are two relative directions.
[0110] In one embodiment, the third extraction module 610 is also used to extract the target line segment with the smallest angle with the initial wall line segment as the next exterior wall line segment when the target point is in the first orientation direction of the target line segment; and to extract the target line segment with the largest angle with the initial wall line segment as the next exterior wall line segment when the target point is in the second orientation direction of the target line segment.
[0111] In one embodiment, the building is a single building, which includes multiple floors; the acquisition module 602 is also used to obtain the wall line segments corresponding to each floor of the single building; the generation module 612 is also used to obtain the external wall surface data set corresponding to each floor; and the external surface data of the building surface corresponding to the single building is obtained according to the external wall surface data set of each floor.
[0112] The specific definition of the building outer surface data acquisition device can be found in the definition of the building outer surface data acquisition method above, which will not be repeated here. Each module in the above-mentioned building outer surface data acquisition device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0113] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store three-dimensional modeling data of the building to be processed. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for acquiring building external surface data is implemented.
[0114] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0115] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining wall line segments corresponding to a building to be processed; determining an initial line segment based on internal points in the building to be processed, and calculating the intersection points between the initial line segment and the wall line segment to obtain an intersection point set; extracting a target intersection point from the intersection point set, and taking the wall line segment where the target intersection point is located as an initial exterior wall surface segment; taking the wall line segment intersecting with the initial exterior wall surface segment among the wall line segments as a target line segment; determining the next exterior wall surface segment according to the angle between each target line segment and the initial exterior wall surface segment, until an exterior wall surface data set is obtained when an end condition is met; and obtaining the exterior surface data of the building according to the exterior wall surface data set.
[0116] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining a target point inside the building to be processed, and determining an initial line segment according to the target point; calculating the intersection of the initial line segment and the wall line segment; and obtaining an intersection point set according to each intersection point.
[0117] In one embodiment, when the processor executes the computer program, the following steps are also implemented: calculating the distance between the intersection in the intersection set and the target point; extracting the intersection with the farthest distance as the target intersection; and determining the wall line where the target intersection is located as the initial exterior wall line segment.
[0118] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining the positional relationship between the target point and the target line segment; determining the angle level based on the positional relationship; determining the next exterior wall line segment based on the determined angle level and the angle between each target line segment and the initial exterior wall line segment.
[0119] In one embodiment, the processor also implements the following steps when executing the computer program: when the target point is in the first azimuth direction of the target line segment, the angle level is determined to be the minimum angle level; when the target point is in the second azimuth direction of the target line segment, the angle level is determined to be the maximum angle level, and the first azimuth direction and the second azimuth direction are two relative directions.
[0120] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the target point is in the first orientation direction of the target line segment, the target line segment with the smallest angle with the initial wall line segment is extracted from the target line segment as the next exterior wall line segment; when the target point is in the second orientation direction of the target line segment, the target line segment with the largest angle with the initial wall line segment is extracted from the target line segment as the next exterior wall line segment.
[0121] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining a wall line segment corresponding to each floor of the single building;
[0122] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining the external wall surface data set corresponding to each floor; and obtaining the external surface data of the building surface corresponding to the single building according to the external wall surface data set of each floor.
[0123] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining wall line segments corresponding to a building to be processed; determining an initial line segment based on internal points in the building to be processed, and calculating the intersection of the initial line segment and the wall line segment to obtain an intersection set; extracting a target intersection from the intersection set, and taking the wall line segment where the target intersection is located as an initial exterior wall segment; taking the wall line segment that intersects with the initial exterior wall segment as a target segment; determining the next exterior wall segment according to the angle between each target segment and the initial exterior wall segment, until an exterior wall data set is obtained when an end condition is met; and obtaining the exterior surface data of the building according to the exterior wall data set.
[0124] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining a target point inside the building to be processed, and determining an initial line segment according to the target point; calculating the intersection of the initial line segment and the wall line segment; and obtaining an intersection point set according to each intersection point.
[0125] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: calculating the distance between the intersection in the intersection set and the target point; extracting the intersection with the farthest distance as the target intersection; determining the wall line where the target intersection is located as the initial exterior wall line segment.
[0126] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: obtaining the positional relationship between the target point and the target line segment; determining the angle level based on the positional relationship; determining the next exterior wall line segment based on the determined angle level and the angle between each target line segment and the initial exterior wall line segment.
[0127] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: when the target point is in the first azimuth direction of the target line segment, the angle level is determined to be the minimum angle level; when the target point is in the second azimuth direction of the target line segment, the angle level is determined to be the maximum angle level, and the first azimuth direction and the second azimuth direction are two relative directions.
[0128] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: when the target point is in the first orientation direction of the target line segment, the target line segment with the smallest angle with the initial wall line segment is extracted from the target line segment as the next exterior wall line segment; when the target point is in the second orientation direction of the target line segment, the target line segment with the largest angle with the initial wall line segment is extracted from the target line segment as the next exterior wall line segment.
[0129] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: obtaining a wall line segment corresponding to each floor of the single building;
[0130] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining the exterior wall surface data set corresponding to each floor; and obtaining the exterior surface data of the building surface corresponding to the single building according to the exterior wall surface data set of each floor.
[0131] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0132] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0133] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for acquiring building exterior surface data, characterized in that: The method comprises: Get the wall line segment corresponding to the building to be processed; Determine an initial line segment based on the internal points in the building to be processed, and calculate the intersection points of the initial line segment and the wall line segment to obtain an intersection point set; Extracting a target intersection point from the intersection point set, and using the wall line segment where the target intersection point is located as the initial exterior wall surface segment, wherein the target intersection point is determined according to the relative position relationship between each intersection point and the starting end point of the initial line segment; Taking the wall line segment intersecting with the initial outer wall surface line segment among the wall line segments as the target line segment; Determine the next exterior wall line segment according to the angle between each target line segment and the initial exterior wall line segment, until an exterior wall data set is obtained when an end condition is met; Obtain building exterior surface data according to the exterior wall surface data set; Wherein, determining the next exterior wall line segment according to the angle between each target line segment and the initial exterior wall line segment comprises: Acquire the positional relationship between the target point and the target line segment; determining an angle level according to the positional relationship; Determining the next exterior wall line segment according to the determined angle level and the angle between each target line segment and the initial exterior wall line segment; Wherein, determining the angle level according to the position relationship includes: When the target point is in the first azimuth direction of the target line segment, determining the angle level to be the minimum angle level; When the target point is in the second azimuth direction of the target line segment, determining the angle level to be the maximum angle level, the first azimuth direction and the second azimuth direction are two opposite directions; Wherein, determining the next exterior wall line segment according to the determined angle level and the angle between each target line segment and the initial exterior wall line segment comprises: When the target point is in the first orientation direction of the target line segment, extracting from the target line segment the target line segment with the smallest angle with the initial outer wall line segment as the next outer wall line segment; When the target point is in the second orientation direction of the target line segment, the target line segment having the largest angle with the initial exterior wall line segment is extracted from the target line segment as the next exterior wall line segment.
2. The method according to claim 1, characterized in that: The step of determining an initial line segment and calculating the intersection points of the initial line segment and the wall line segment to obtain an intersection point set includes: Determine the target point inside the building to be processed, and determine the initial line segment according to the target point; Calculating the intersection point between the initial line segment and the wall line segment; An intersection point set is obtained according to each of the intersection points.
3. The method according to claim 2, characterized in that The step of extracting a target intersection point from the intersection point set and using the wall line segment where the target intersection point is located as the initial exterior wall line segment includes: Calculating the distance between the intersection point in the intersection point set and the target point; Extracting the intersection point with the longest distance as the target intersection point; The wall line where the target intersection point is located is determined as the initial exterior wall line segment.
4. The method according to any one of claims 1 to 3, characterized in that The building is a single building, and the single building includes multiple floors; The step of obtaining the wall line segments corresponding to the building to be processed includes: Obtaining the wall line segments corresponding to each floor of the single building; The step of obtaining the building outer surface data according to the outer wall surface data set includes: Get the external wall data set corresponding to each floor; The building exterior surface data corresponding to the single building is obtained according to the exterior wall surface data set of each floor.
5. A device for acquiring data on the exterior surface of a building, characterized in that: The device comprises: An acquisition module, used to acquire the wall line segments corresponding to the building to be processed; A calculation module, used for determining an initial line segment based on the internal points in the building to be processed, and calculating the intersection points of the initial line segment and the wall line segment to obtain an intersection point set; A first extraction module is used to extract a target intersection point from the intersection point set, and use the wall line segment where the target intersection point is located as the initial exterior wall surface segment, and is also used to determine the target intersection point according to the relative position relationship between each intersection point and the starting end point of the initial line segment; A second extraction module is used to take the wall line segment intersecting with the initial outer wall surface line segment among the wall line segments as the target line segment; The third extraction module is used to determine the next exterior wall line segment according to the angle between each target line segment and the initial exterior wall line segment, until the exterior wall data set is obtained when the end condition is met, and is also used to obtain the positional relationship between the target point and the target line segment; determine the angle level according to the positional relationship; determine the next exterior wall line segment according to the determined angle level and the angle between each target line segment and the initial exterior wall line segment; and when the target point is in the first azimuth direction of the target line segment, determine that the angle level is the minimum angle level; when the target point is in the first azimuth direction of the target line segment, determine that the angle level is the minimum angle level; when the target When the point is in the second azimuth direction of the target line segment, the angle level is determined to be the maximum angle level, and the first azimuth direction and the second azimuth direction are two opposite directions; it is also used for when the target point is in the first azimuth direction of the target line segment, extracting from the target line segment the target line segment with the smallest angle with the initial exterior wall line segment as the next exterior wall line segment; when the target point is in the second azimuth direction of the target line segment, extracting from the target line segment the target line segment with the largest angle with the initial exterior wall line segment as the next exterior wall line segment; A generating module is used to obtain building exterior surface data according to the exterior wall surface data set.
6. The device according to claim 5, characterized in that The calculation module is also used to determine the target point inside the building to be processed, determine the initial line segment according to the target point; calculate the intersection point of the initial line segment and the wall line segment; and obtain an intersection point set according to each intersection point.
7. The device according to claim 6, characterized in that The first extraction module is further used to calculate the distance between the intersection in the intersection set and the target point; extract the intersection with the farthest distance as the target intersection; and determine the wall line where the target intersection is located as the initial exterior wall line segment.
8. The device according to any one of claims 5 to 7, characterized in that The building is a single building, and the single building includes multiple floors; the acquisition module is also used to acquire the wall line segment corresponding to each floor of the single building; The generation module is also used to obtain the external wall surface data set corresponding to each floor; and obtain the external surface data of the building surface corresponding to the single building according to the external wall surface data set of each floor.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
