Method, device, equipment and storage medium for integrating terrain data with BIM model
By obtaining the LOD level information and terrain data of the BIM model, determining the target area and reconstructing the triangulation network, the problem of inaccurate integration of the BIM model and terrain data is solved, and the effect of smart city applications is improved.
Patent Information
- Application Number
- CN202110004605.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-04
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-01-04
AI Technical Summary
The integration of BIM models and terrain data in the existing technology is not accurate enough, which affects the application effects of smart cities in urban and landscape planning and other fields.
By obtaining the LOD level information of the BIM model, the geometric structure to be fused is determined, so as to determine the target area from the terrain data, and the terrain triangulation network control points inside and outside the target area are used to reconstruct the triangulation network of the BIM model to realize the BIM model. More accurate fusion with terrain data.
It improves the fusion accuracy of BIM models and terrain data, enhances the application effect in urban and landscape planning and other fields, and improves the fit and analysis accuracy of the model.
Smart Images

Figure CN113763555B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to BIM technology, and is related to but not limited to a method, device, equipment and storage medium for integrating terrain data with a BIM model. Background Art
[0002] The BIM model (Building Information Modeling) can realize the integration of building information. Various building information is always integrated in a three-dimensional model information database. The BIM model has a certain LOD level (Level of Detail). Different LOD levels represent different accuracy of the BIM model. By integrating the BIM model with terrain data, it can be used in many fields of smart cities such as urban and landscape planning, urban microenvironment analysis, etc.
[0003] However, the fusion of BIM models and terrain data in related technologies is not accurate enough. Summary of the invention
[0004] In view of this, the present application provides a method, device, equipment and storage medium for integrating terrain data with a BIM model.
[0005] In a first aspect, an embodiment of the present application provides a method for fusing terrain data with a BIM model, the method comprising: acquiring LOD level information of the terrain data and the BIM model; determining a geometric structure to be fused in the BIM model according to the LOD level information; determining a target area from the terrain data according to the geometric structure; determining terrain triangulation control points inside and outside the target area; and reconstructing the triangulation of the BIM model using the terrain triangulation control points inside and outside the target area.
[0006] In the second aspect, an embodiment of the present application provides a device for fusing terrain data and a BIM model, including: an acquisition module for acquiring LOD level information of terrain data and a BIM model; a first determination module for determining a geometric structure to be fused in the BIM model according to the LOD level information; a second determination module for determining a target area from the terrain data according to the geometric structure; a third determination module for determining terrain triangulation control points inside and outside the target area; and a reconstruction module for reconstructing the triangulation of the BIM model using terrain triangulation control points inside and outside the target area.
[0007] In a third aspect, an embodiment of the present application provides a computer device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps in the method for fusing terrain data with a BIM model described in any of the embodiments of the present application are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in any method of fusing terrain data with a BIM model as described in any embodiment of the present application.
[0009] In an embodiment of the present application, the geometric structure of the BIM model is determined according to the LOD level information of the BIM model, and then the target area is determined from the terrain data, and the triangulated network of the BIM model is reconstructed through the terrain triangulated network control points inside and outside the target area. Since the target area is indirectly determined according to the LOD level information of the BIM model, the BIM model can be fit to the target area corresponding to the terrain triangulated network, thereby enabling more accurate fusion of the BIM model and terrain data. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A schematic diagram of a flow chart of a method for integrating terrain data and a BIM model according to an embodiment of the present application;
[0011] Figure 2 A schematic diagram of the fusion of terrain data and BIM model according to an embodiment of the present application;
[0012] Figure 3 A flowchart of a method for fusing a BIM model and terrain data at the LOD0 level according to an embodiment of the present application;
[0013] Figure 4 This is a schematic diagram of the intersection of a surface and a line according to an embodiment of the present application;
[0014] Figure 5 A flowchart of a method for fusing BIM models and terrain data at levels LOD1 to LOD4 according to an embodiment of the present application;
[0015] Figure 6 A schematic diagram of the structure of a device for fusing terrain data and a BIM model according to an embodiment of the present application;
[0016] Figure 7 A hardware entity schematic diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0017] The technical solution of the present application is further described in detail below with reference to the accompanying drawings and embodiments.
[0018] Figure 1 A schematic diagram of the implementation flow of a method for integrating terrain data and a BIM model provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:
[0019] Step 102: Obtain terrain data and LOD level information of the BIM model;
[0020] Among them, the terrain data can be data in the map that can represent the ups and downs of the earth's surface, that is, data with elevation information; the BIM model can help realize the integration of building information, from the design, construction, operation of the building to the end of the building's entire life cycle, various information is always integrated in a three-dimensional model information database; the LOD level can be divided into five levels: LOD0, LOD1, LOD2, LOD3 and LOD4. From LOD0 to LOD4, the accuracy of the BIM model gradually increases; for example, LOD0 only includes information such as the area, height, volume, location and orientation of the building; and LOD3 can contain relevant detailed information, such as the assembly order and manufacturing information of the components of the building.
[0021] Step 104: Determine the geometric structure to be merged in the BIM model according to the LOD level information;
[0022] The geometric structure may be used to represent the structure of the BIM model, that is, whether the BIM model is a two-dimensional plane model or a three-dimensional solid model, and the geometric structure of the BIM model may be a two-dimensional surface or a three-dimensional surface.
[0023] Step 106: determining a target area from the terrain data according to the geometric structure;
[0024] Among them, due to the different geometric structures of the BIM model, the size and position of the BIM model in the map are also different. Therefore, the target area can be determined according to the geometric structure to merge the terrain data and the BIM model in the target area.
[0025] Step 108: Determine the terrain triangulation control points inside and outside the target area;
[0026] Among them, by triangulating the terrain surface in the map, terrain triangulation control points can be obtained, and the triangulation control points are connected into multiple triangles according to the ups and downs of the terrain surface to finally form a terrain surface triangulation network, so as to achieve the purpose of surface or volume of the terrain triangulation control points; according to the target area, the terrain triangulation control points can be divided into terrain triangulation control points within the target area and terrain triangulation control points outside the target area.
[0027] Step 110: Reconstruct the triangulation network of the BIM model using the terrain triangulation control points inside and outside the target area.
[0028] Among them, the BIM model can also be triangulated. If the geometric structure of the BIM model is a two-dimensional plane, the plane triangulation of the BIM model can be obtained; if the geometric structure of the BIM model is a three-dimensional surface, the three-dimensional surface triangulation of the BIM model can be obtained; the triangulation of the BIM model can be reconstructed by processing the terrain triangulation control points inside and outside the target area.
[0029] In an embodiment of the present application, the geometric structure of the BIM model is determined according to the LOD level information of the BIM model, and then the target area is determined from the terrain data, and the triangulated network of the BIM model is reconstructed through the terrain triangulated network control points inside and outside the target area. Since the target area is indirectly determined according to the LOD level information of the BIM model, the BIM model can be fit to the target area corresponding to the terrain triangulated network, thereby enabling more accurate fusion of the BIM model and terrain data.
[0030] The embodiment of the present application also provides a method for integrating terrain data with a BIM model, the method comprising the following steps S202 to S212:
[0031] Step S202: Obtaining terrain data and LOD level information of the BIM model;
[0032] Step S204: when the LOD level information is the first LOD level, determining that the geometric structure to be merged in the BIM model is a two-dimensional plane of the BIM model;
[0033] Step S206: determining the plane contour of the BIM model according to the two-dimensional plane of the BIM model;
[0034] The plane contour may be a line constituting an outer edge of the two-dimensional plane. Assuming that the two-dimensional plane of the BIM model is a rectangle, the plane contour of the BIM model may be four sides of the rectangle.
[0035] Step S208: determining the area within the plane contour as the target area.
[0036] Step S210: determining terrain triangulation control points inside and outside the target area;
[0037] Step S212: Reconstructing the triangulated network of the BIM model using the terrain triangulated network control points inside and outside the target area.
[0038] In the embodiment of the present application, by determining the area within the plane outline of the BIM model as the target area when the LOD level is the first LOD level, the target area can be determined more accurately.
[0039] The embodiment of the present application also provides a method for integrating terrain data with a BIM model, the method comprising the following steps S302 to S324:
[0040] Step S302: Obtaining terrain data and LOD level information of the BIM model;
[0041] Step S304: when the LOD level information is the first LOD level, determining that the geometric structure to be merged in the BIM model is a two-dimensional plane of the BIM model;
[0042] The first LOD level may be the LOD0 level.
[0043] Step S306: determining the plane contour control points of the BIM model according to the two-dimensional plane of the BIM model;
[0044] Among them, the plane contour control points can be points that determine the direction of lines on the plane contour; the plane contour control points of the first LOD level of the BIM model can be obtained through semantic information on the two-dimensional plane of the BIM model; assuming that the two-dimensional plane of the BIM model is a rectangle, the plane contour control points can be the four vertices of the rectangle.
[0045] Step S308: determining the plane contour of the BIM model according to the plane contour control points.
[0046] Among them, by connecting the plane contour control points, a plurality of lines can be formed, and the bounded surface formed by the plurality of lines is the plane contour of the BIM model.
[0047] Step S310: determining the area within the plane contour as the target area;
[0048] Step S312: determining terrain triangulation control points inside and outside the target area;
[0049] Step S314: obtaining a terrain surface triangulation network from the terrain data;
[0050] Step S316: triangulate the two-dimensional plane of the BIM model to obtain plane triangulation control points of the BIM model;
[0051] Among them, triangulation is the most basic research method in algebraic topology. Taking a surface as an example, we cut the surface into pieces, requiring the following conditions to be met: (1) Each piece is a curved triangle; (2) Any two such curved triangles on the surface either do not intersect or intersect at exactly one common edge (they cannot intersect at two or more edges at the same time).
[0052] Step S318: determining the intersection of the plane contour and the terrain surface triangulation network;
[0053] In one embodiment, the lowest elevation of the terrain triangulation control point within the plane contour may be determined as the elevation of the intersection point to achieve the fit between the two-dimensional plane of the BIM model and the terrain surface.
[0054] In one embodiment, the process of calculating the intersection point is the process of finding the intersection between the surface and the line. Figure 4 This is a schematic diagram of the intersection of a surface and a line in an embodiment of the present application, see Figure 4 The plane contour can be represented by plane M, the lines in the terrain surface triangulation can be represented by straight line AB, and the intersection of the plane contour and the terrain surface triangulation can be represented by point B. The coordinates of point A and the direction vector of straight line AB are known. Coordinates of any point P in plane AB, plane normal Since both point B and point P are in plane M, we can get formula (1):
[0055]
[0056] Assuming the distance between AB is S, we can get formula (2) based on the straight line:
[0057]
[0058] Since there are two unknowns S and B in formula (1) and formula (2), the coordinates of points S and B can be calculated. The specific calculation process can be decomposed into the following formulas (3) to (6):
[0059]
[0060]
[0061]
[0062]
[0063] After S is found, substitute S into formula (2) to obtain the coordinates of the intersection point B.
[0064] Step S320: replacing the terrain triangulation control points in the plane contour with the plane triangulation control points and the intersection points;
[0065] Step S322: reconstructing the triangulated network of the BIM model by using the plane triangulated network control points, the intersection points and the terrain triangulated network control points outside the plane contour;
[0066] Step S324: performing linear interpolation on the plane triangulation control points within the plane contour, the intersection points and the terrain triangulation control points outside the plane contour.
[0067] In an embodiment of the present application, when determining a plane contour based on a two-dimensional plane, the plane contour control points are first determined based on the two-dimensional plane, and then the plane contour is determined based on the plane contour control points, so that the determination of the plane contour can be more accurate; by linearly interpolating the plane triangulation control points within the plane contour, the intersection points and the terrain triangulation control points outside the plane contour, a smooth transition between the terrain within the plane contour and the terrain outside the plane contour can be ensured.
[0068] The embodiment of the present application also provides a method for integrating terrain data with a BIM model, the method comprising the following steps S402 to S414:
[0069] Step S402: Obtaining terrain data and LOD level information of the BIM model;
[0070] Step S404: when the LOD level information is the second LOD level, determining that the geometric structure to be fused in the BIM model is a three-dimensional surface of the BIM model;
[0071] The second LOD level may be any level from LOD1 to LOD4.
[0072] Step S406: Acquire a terrain surface from the terrain data;
[0073] Step S408: determining a positional relationship between a bottom surface in the three-dimensional surface of the BIM model and the terrain surface;
[0074] Among them, the positional relationship includes that the bottom surface of the three-dimensional surface of the BIM model is located below or below the terrain surface; since some buildings have underground parking lots, it can be understood that the bottom surface of the BIM model constructed according to the building is located below the terrain surface.
[0075] Step S410: determining a target area from the terrain data according to the positional relationship and the three-dimensional surface of the BIM model.
[0076] Step S412: Determine the terrain triangulation control points inside and outside the target area;
[0077] Step S414: Reconstructing the triangulated network of the BIM model using the terrain triangulated network control points inside and outside the target area.
[0078] In the embodiment of the present application, by determining the area within the plane outline of the BIM model as the target area when the LOD level is the first LOD level, the target area can be determined more accurately.
[0079] The embodiment of the present application also provides a method for integrating terrain data with a BIM model, the method comprising the following steps S502 to S522:
[0080] Step S502: Obtaining terrain data and LOD level information of the BIM model;
[0081] Step S504: when the LOD level information is the second LOD level, determining that the geometric structure to be fused in the BIM model is a three-dimensional surface of the BIM model;
[0082] Step S506: Acquire a terrain surface from the terrain data;
[0083] Step S508: determining a positional relationship between a bottom surface in the three-dimensional surface of the BIM model and the terrain surface;
[0084] Step S510: when the bottom surface of the three-dimensional surface of the BIM model is below the terrain surface, obtaining a terrain surface triangulation network from the terrain data;
[0085] Step S512: determining the intersection line between the side surface in the three-dimensional surface of the BIM model and the triangulated network of the terrain surface;
[0086] In one embodiment, when the bottom surface of the BIM model is located underground, the intersection lines of the lateral surface (lateral surface) of the BIM model and the terrain surface triangulation network are calculated, and the intersection lines form a closed polygon. The calculation of the intersection lines of the lateral surface and the terrain surface triangulation network is the process of finding the intersection between the surfaces.
[0087] Assume that two planes P1 and P2 intersect at line l0, and the plane normal vectors are Then there is From a known point P in p1, draw a perpendicular line to l0 to get a straight line l1, then Then the direction vector of l1 can be expressed by formula (7):
[0088]
[0089] The straight line l1 can be expressed by formula (8):
[0090]
[0091] Calculate the intersection point of line l1 and plane P2 as R;
[0092] The straight line l0 can be expressed by formula (9):
[0093]
[0094] Step S514: determining the area within the closed polygon determined based on the intersection line as the target area.
[0095] Step S516: Determine the terrain triangulation control points inside and outside the target area;
[0096] Step S518: determining the vertices of the closed polygon;
[0097] Step S520: replacing the terrain triangulation control points within the closed polygon with the vertices;
[0098] Step S522: Reconstructing the triangulated network of the BIM model using the vertices and the terrain triangulated network control points outside the closed polygon.
[0099] In an embodiment of the present application, when the LOD level is the second LOD level and the bottom surface of the three-dimensional surface of the BIM model is located below the terrain surface, the area within the closed polygon formed by the intersection of the lateral surface (side surface) of the BIM model and the terrain surface triangulation network is determined as the target area, thereby enabling the target area to be determined more accurately.
[0100] The embodiment of the present application also provides a method for integrating terrain data with a BIM model, the method comprising the following steps S602 to S624:
[0101] Step S602: Obtaining terrain data and LOD level information of the BIM model;
[0102] Step S604: when the LOD level information is the second LOD level, determining that the geometric structure to be fused in the BIM model is a three-dimensional surface of the BIM model;
[0103] Step S606: Acquire a terrain surface from the terrain data;
[0104] Step S608: determining a positional relationship between a bottom surface in the three-dimensional surface of the BIM model and the terrain surface;
[0105] Among them, the positional relationship includes that the bottom surface of the three-dimensional surface of the BIM model is located above or below the terrain surface; the positional relationship between the bottom surface of the BIM model and the terrain surface can be determined according to the bottom surface elevation of the BIM model.
[0106] Step S610: when the bottom surface of the three-dimensional surface of the BIM model is located above the terrain surface, determining the surface contour of the BIM model according to the three-dimensional surface of the BIM model;
[0107] Step S612: determining the area within the surface contour as the target area;
[0108] Step S614: determining terrain triangulation control points inside and outside the target area;
[0109] Step S616: obtaining a terrain surface triangulation network from the terrain data;
[0110] Step S618: triangulate the three-dimensional surface of the BIM model to obtain surface triangulation control points of the BIM model;
[0111] Step S620: determining the intersection of the surface contour and the terrain surface triangulation network;
[0112] Step S622: replacing the terrain triangulation control points in the surface contour with the surface triangulation control points and the intersection points;
[0113] Step S624: reconstructing the triangulation of the BIM model using the surface triangulation control points, the intersection points and the terrain triangulation control points outside the surface contour.
[0114] In an embodiment of the present application, when the LOD level is the second LOD level and the bottom surface of the three-dimensional surface of the BIM model is located above the terrain surface, the area within the surface contour of the BIM model is determined as the target area, so that the target area can be determined more accurately.
[0115] The embodiment of the present application also provides a method for integrating terrain data with a BIM model, the method comprising the following steps S702 to S726:
[0116] Step S702: Obtaining terrain data and LOD level information of the BIM model;
[0117] Step S704: when the LOD level information is the second LOD level, determining that the geometric structure to be fused in the BIM model is a three-dimensional surface of the BIM model;
[0118] Step S706: Acquire a terrain surface from the terrain data;
[0119] Step S708: determining a positional relationship between a bottom surface in the three-dimensional surface of the BIM model and the terrain surface;
[0120] Wherein, the positional relationship includes that the bottom surface of the three-dimensional surface of the BIM model is located above the terrain surface;
[0121] Step S710: when the bottom surface of the three-dimensional surface of the BIM model is located above the terrain surface, determining the surface contour control points of the BIM model according to the three-dimensional surface of the BIM model;
[0122] Step S712: determining the surface contour of the BIM model according to the surface contour control points;
[0123] Step S714: determining the area within the surface contour as the target area;
[0124] Step S716: Determine the terrain triangulation control points inside and outside the target area;
[0125] Step S718: obtaining a terrain surface triangulation network from the terrain data;
[0126] Step S720: triangulate the three-dimensional surface of the BIM model to obtain surface triangulation control points of the BIM model;
[0127] Step S722: determining the intersection of the surface contour and the terrain surface triangulation network;
[0128] Step S724: replacing the terrain triangulation control points in the surface contour with the surface triangulation control points and the intersection points;
[0129] Step S726: Reconstruct the triangulation of the BIM model using the surface triangulation control points, the intersection points and the terrain triangulation control points outside the surface contour.
[0130] In the embodiment of the present application, when determining the surface contour according to the two-dimensional plane, the surface contour control points are first determined according to the three-dimensional surface, and then the surface contour is determined according to the surface contour control points, so that the determination of the surface contour can be more accurate.
[0131] A geographic information system (GIS) is a computer system used to input, store, query, analyze and display geographic data (also known as terrain data). It can analyze and process spatial information and is a type of map service platform.
[0132] The tile map pyramid model is a multi-resolution hierarchical model. The tile map pyramid model can be a pyramid model based on a quadtree. The tile map pyramid model can be called a quadtree pyramid. From the bottom to the top of the tile pyramid, the resolution is getting lower and lower, but the geographical range represented remains unchanged. First, determine the number of zoom levels N to be provided by the map service platform, take the map image with the highest zoom level and the largest map scale as the bottom layer of the pyramid, that is, the 0th layer, and divide it into blocks. Starting from the upper left corner of the map image, cut from left to right and from top to bottom, and divide it into square map tiles of the same size (for example, 256x256 pixels) to form the 0th layer tile matrix; on the basis of the 0th layer map image, generate the 1st layer map image by synthesizing each 2x2 pixels into one pixel, and divide it into blocks, and divide it into square map tiles of the same size as the next layer to form the 1st layer tile matrix; use the same method to generate the 2nd layer tile matrix...; and so on until the N-1th layer, forming the entire tile map pyramid.
[0133] As described above, multi-resolution terrain can be organized by using map tile cutting and quadtree pyramid to organize terrain data. The terrain surface triangulation structure of terrain data can change in real time with the terrain resolution, that is, the lower the level corresponding to the terrain resolution, the simpler the terrain surface triangulation is.
[0134] BIM models can help achieve the integration of building information. From the design, construction, operation to the end of the building's life cycle, various information is always integrated in a three-dimensional model information database. Design teams, construction units, facility operation departments, owners and other parties can work together based on BIM models, which can effectively improve work efficiency.
[0135] The BIM model has a certain LOD level, which can be divided into five levels: LOD0, LOD1, LOD2, LOD3 and LOD4. From LOD0 to LOD4, the accuracy of the BIM model gradually increases.
[0136] By integrating BIM models with terrain data in GIS systems, it can be used to build smart cities. It can be applied in many fields such as urban and landscape planning, urban traffic analysis, urban microenvironment analysis, municipal pipe network management, residential area planning and existing building renovation. Compared with their separate applications, there are significant improvements in modeling quality, analysis accuracy, decision-making efficiency and cost control level.
[0137] Since the LOD levels of the BIM model are different, how to properly handle the integration of the BIM model with the terrain tiles at each LOD level, that is, to achieve the fit between the model surface and the terrain data, is the key to the integration of the BIM model and terrain data.
[0138] Figure 2 A schematic diagram of the fusion of terrain data and BIM model provided in the embodiment of the present application, see Figure 2 , the LOD0 to LOD4 levels of the LOD level division of the BIM three-dimensional model data 201 can be divided into two fusion ideas, because at the LOD0 level, the BIM model is a two-dimensional expression with a rough outline, that is, the fusion of the two-dimensional plane of the BIM model and the multi-resolution terrain data 202. In the LOD1 to LOD4 levels, the BIM model is a three-dimensional model with a closed outer surface, and the difference between each LOD level lies in the internal structure and surface details of the BIM model, which will not affect the outer surface shape, so the LOD1 to LOD4 levels can be fused with the terrain data according to a unified idea.
[0139] See also Figure 2 , when the BIM model is at the LOD0 level, first execute step 2031: determine the plane contour, that is, determine the plane contour of the two-dimensional plane of the BIM model; replace the terrain triangulation control points in the plane contour with plane triangulation control points and intersection points, the plane triangulation control points are the plane triangulation control points obtained by triangulating the two-dimensional plane of the BIM model, and the intersection points are the intersection points of the plane contour and the terrain surface triangulation; then execute step 204: triangulation reconstruction, that is, use the plane triangulation control points, the intersection points and the terrain triangulation control points outside the plane contour to reconstruct the plane triangulation of the BIM model.
[0140] When the BIM model is at any level from LOD1 to LOD4, first execute step 2032: obtain the terrain intersection, that is, obtain the intersection line of the side surface of the three-dimensional surface of the BIM model and the terrain surface triangulation; then execute step 2033: obtain the section contour point, that is, determine the area within the closed polygon based on the intersection line as the target area, obtain the vertices of the closed polygon, the vertices of the polygon can be regarded as the contour points of the section, and replace the terrain triangulation control points within the closed polygon with the vertices; finally execute step 204: triangulation reconstruction, that is, use the vertices and the terrain triangulation control points outside the closed polygon to reconstruct the triangulation of the BIM model.
[0141] The BIM model at the LOD0 level is expressed as a two-dimensional plane with the approximate outer contour of the building. The terrain at the position corresponding to the two-dimensional plane may be undulating. Therefore, it is only necessary to fit the two-dimensional plane to the position corresponding to the terrain triangulation network to achieve at least the same elevation at the plane boundary and the points in the plane, while ensuring a smooth transition with the surrounding terrain.
[0142] The method of integrating the BIM model with terrain data at the LOD0 level can be summarized as follows: determine the terrain area covered by the outline of the two-dimensional plane of the BIM model at LOD0, delete the terrain triangulation control points in the terrain area, and triangulate the two-dimensional plane of the BIM model at the same time, calculate the intersection of the plane triangulation obtained after triangulation and the terrain surface triangulation, and add the intersection to the terrain surface triangulation for reconstruction. Finally, in order to ensure the transition of the surrounding terrain, it is necessary to interpolate the terrain triangulation control points around the two-dimensional plane.
[0143] Figure 3 This is a flow chart of a method for integrating a BIM model and terrain data at the LOD0 level according to an embodiment of the present application, see Figure 3 , the method comprises the following steps:
[0144] Step 301: Obtaining plane contour control points;
[0145] Obtain the plane contour control points of the BIM model at the LOD0 level through the semantic information of the BIM model;
[0146] Step 302: Determine whether the terrain triangulation control point is within the plane contour of the BIM model; if so, execute step 303; if not, execute step 305;
[0147] According to the (X, Y) coordinates of the terrain triangulation control point, determine whether the terrain triangulation control point falls within the plane outline of the BIM model, and execute step 303 for the terrain triangulation control point that falls within the plane outline of the BIM model; and execute step 305 for the terrain triangulation control point that does not fall within the plane outline of the BIM model.
[0148] Step 303: Record the lowest elevations of all terrain triangulation control points that fall within the plane contour, and triangulate the two-dimensional plane of the BIM model;
[0149] The lowest elevation of all terrain triangulation control points falling within the plane contour is recorded, and the two-dimensional plane of the BIM model is triangulated to obtain the plane triangulation control points of the BIM model.
[0150] Step 304: Calculate the intersection of the plane contour of the BIM model and the current terrain surface triangulation, and set the elevation of the intersection to the lowest elevation of the terrain triangulation control points recorded in step 303 and falling within the plane contour.
[0151] In one embodiment, the process of calculating the intersection point is the process of finding the intersection between the surface and the line. Figure 4 This is a schematic diagram of the intersection of a surface and a line in an embodiment of the present application, see Figure 4 The plane contour can be represented by plane M, the lines in the terrain surface triangulation can be represented by straight line AB, and the intersection of the plane contour and the terrain surface triangulation can be represented by point B. The coordinates of point A and the direction vector of straight line AB are known. Coordinates of any point P in plane AB, plane normal Since both point B and point P are in plane M, we can get formula (1):
[0152]
[0153] Assuming the distance between AB is S, we can get formula (2) based on the straight line:
[0154]
[0155] Since there are two unknowns S and B in formula (1) and formula (2), the coordinates of points S and B can be calculated. The specific calculation process can be decomposed into the following formulas (3) to (6):
[0156]
[0157]
[0158]
[0159]
[0160] After S is found, substitute S into formula (2) to obtain the coordinates of the intersection point B.
[0161] Step 305: triangulated network reconstruction;
[0162] The plane triangulation control points of the BIM model, the intersection points and the terrain triangulation control points outside the plane contour of the BIM model are subjected to triangulation reconstruction operation.
[0163] Step 306: linear interpolation;
[0164] Linear interpolation is performed on the plane triangulation control points and the intersection points within the plane contour and the terrain triangulation control points outside the plane contour to eliminate terrain jumps.
[0165] At LOD1 to LOD4 levels, the BIM model is three-dimensional, a closed space formed by the exterior surface of the building. The structure of the interior space changes with the LOD level, but this does not change the external boundary of the BIM model. Therefore, it is only necessary to use the intersection of the BIM model and the terrain as a new terrain control point to reconstruct the terrain triangulation.
[0166] Since the BIM building model may include underground space structures, it is not enough to only consider the integration of the bottom surface of the model with the terrain. Therefore, it is necessary to make an intersection judgment between the terrain surface and the outer surface of the building, so as to transform the terrain.
[0167] The method of integrating BIM model with terrain data at LOD1 to LOD4 levels can be summarized as follows: obtain the bottom elevation of the BIM model, adjust the elevation of the BIM model accordingly, and perform intersection judgment on the terrain triangulation network. The terrain triangulation control points in the closed area formed by the intersection lines are deleted, and these intersection points (vertices of the closed polygons) are used as new terrain triangulation control points for re-meshing.
[0168] Figure 5 This is a flow chart of a method for fusing BIM models and terrain data at LOD1 to LOD4 levels according to an embodiment of the present application. Figure 5 , the method comprises the following steps:
[0169] Step 501: Obtain the bottom elevation of the current BIM model;
[0170] Step 502: judging whether the bottom surface of the BIM model is below the terrain surface according to the bottom surface elevation, if so, executing step 503; if not, executing step 508;
[0171] In one embodiment, the elevations of the terrain triangulation control points within the bottom contour range of the current BIM model can be compared. If the elevations of the terrain triangulation control points are all higher than the bottom elevation, the bottom surface of the BIM model is below the terrain surface, that is, underground. Otherwise, the bottom surface range of the BIM model can be modified to correspond to the terrain to achieve fusion.
[0172] Step 503: Calculate the intersection line between the side surface of the BIM model and the terrain surface triangulation network;
[0173] In one embodiment, when the bottom surface of the BIM model is located underground, the intersection lines of the lateral surface of the BIM model and the terrain surface triangulation network are calculated, and the intersection lines form a closed polygon. The calculation of the intersection lines of the lateral surface and the terrain surface triangulation network is the process of finding the intersection between the surfaces.
[0174] Assume that two planes P1 and P2 intersect at line l0, and the plane normal vectors are Then there is From a known point P in p1, draw a perpendicular line to l0 to get a straight line l1, then Then the direction vector of l1 can be expressed by formula (7):
[0175]
[0176] The straight line l1 can be expressed by formula (8):
[0177]
[0178] Calculate the intersection point of line l1 and plane P2 as R;
[0179] The straight line l0 can be expressed by formula (9):
[0180]
[0181] Step 504: forming a closed polygon based on the intersection lines;
[0182] Step 505: deleting the terrain triangulation control points within the range of the closed polygon;
[0183] There is no need to triangulate the BIM model here.
[0184] Step 506: triangulated network reconstruction;
[0185] The vertices of the closed polygon are used as new terrain triangulation control points to reconstruct the triangulation together with the terrain triangulation control points outside the closed polygon, and it is stipulated that the interior of the closed polygon cannot be triangulated.
[0186] Step 507: linear interpolation;
[0187] Linear interpolation is performed on the vertices of the closed polygon within the closed polygon and the terrain triangulation control points outside the closed polygon to eliminate terrain jumps.
[0188] Step 508: Obtaining surface contour control points;
[0189] Obtaining the surface contour control points of the BIM model at any level from LOD1 to LOD4 through the semantic information of the BIM model;
[0190] Step 509: Determine whether the terrain triangulation control point is within the surface contour of the BIM model; if so, execute step 510; if not, execute step 512.
[0191] According to the (X, Y) coordinates of the terrain triangulation control point, determining whether the terrain triangulation control point falls within the surface contour of the BIM model, and executing step 510 for the terrain triangulation control point that falls within the surface contour of the BIM model;
[0192] Step 510: Record the lowest elevations of all terrain triangulation control points that fall within the surface contour, and triangulate the three-dimensional surface of the BIM model to obtain surface triangulation control points of the BIM model.
[0193] Step 511: Calculate the intersection of the surface contour of the BIM model and the triangulated network of the current terrain surface;
[0194] Here, after calculating the intersection of the surface contour of the BIM model and the current terrain surface triangulation network, the elevation of the intersection needs to be set to the lowest elevation of the terrain triangulation control points falling within the surface contour recorded in step 410.
[0195] Step 512: triangulated network reconstruction;
[0196] The surface triangulation control points of the BIM model, the intersection points, and the terrain triangulation control points outside the surface contour of the BIM model are subjected to triangulation reconstruction operations.
[0197] Step 513: linear interpolation;
[0198] Linear interpolation is performed on the surface triangulation control points and the intersection points within the surface contour and the terrain triangulation control points outside the surface contour to eliminate terrain jumps.
[0199] Based on the foregoing embodiments, the embodiments of the present application provide a device for integrating terrain data and a BIM device, which includes the various units included and the various modules included in the units, and can be implemented by a processor in a computer device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0200] Figure 6 Schematic diagram of the composition structure of the device for integrating terrain data and BIM model according to the embodiment of the present application, as shown in FIG. Figure 6 As shown, the apparatus 600 includes an acquisition module 601, a first determination module 602, a second determination module 603, a third determination module 604 and a reconstruction module 605, wherein:
[0201] An acquisition module 601 is used to acquire LOD level information of terrain data and BIM model; a first determination module 602 is used to determine the geometric structure to be integrated in the BIM model according to the LOD level information; a second determination module 603 is used to determine the target area from the terrain data according to the geometric structure; a third determination module 604 is used to determine the terrain triangulation control points inside and outside the target area; a reconstruction module 605 is used to reconstruct the triangulation of the BIM model using the terrain triangulation control points inside and outside the target area.
[0202] In some embodiments, the first determining module 602 is used to determine that the geometric structure to be fused in the BIM model is a two-dimensional plane of the BIM model when the LOD level information is the first LOD level;
[0203] Correspondingly, the second determination module 603 is used to determine the plane outline of the BIM model according to the two-dimensional plane of the BIM model; and determine the area within the plane outline as the target area.
[0204] In some embodiments, the second determination module 603 is used to determine the plane contour control points of the BIM model according to the two-dimensional plane of the BIM model; and determine the plane contour of the BIM model according to the plane contour control points.
[0205] In some embodiments, the reconstruction module 605 is used to obtain a terrain surface triangulation network from the terrain data; triangulate the two-dimensional plane of the BIM model to obtain the plane triangulation network control points of the BIM model; determine the intersection of the plane contour and the terrain surface triangulation network; replace the terrain triangulation network control points within the plane contour with the plane triangulation network control points and the intersection points; and reconstruct the triangulation network of the BIM model using the plane triangulation network control points, the intersection points and the terrain triangulation network control points outside the plane contour.
[0206] In some embodiments, the first determining module 602 is used to determine that the geometric structure to be fused in the BIM model is a three-dimensional surface of the BIM model when the LOD level information is the second LOD level;
[0207] Correspondingly, the second determination module 603 is used to obtain a terrain surface from the terrain data; determine a positional relationship between a bottom surface in the three-dimensional surface of the BIM model and the terrain surface; and determine the target area from the terrain data based on the positional relationship and the three-dimensional surface of the BIM model.
[0208] In some embodiments, the positional relationship includes that the bottom surface of the three-dimensional surface of the BIM model is located below the terrain surface, and the second determination module 603 is used to obtain the terrain surface triangulation network from the terrain data; determine the intersection line of the side surface in the three-dimensional surface of the BIM model and the terrain surface triangulation network; and determine the area within the closed polygon determined based on the intersection line as the target area.
[0209] In some embodiments, the reconstruction module 605 is used to determine the vertices of the closed polygon; replace the terrain triangulation control points within the closed polygon with the vertices; and reconstruct the triangulation of the BIM model using the vertices and the terrain triangulation control points outside the closed polygon.
[0210] In some embodiments, the positional relationship includes that the bottom surface of the three-dimensional surface of the BIM model is located above the terrain surface, and the second determination module 603 is used to determine the surface contour of the BIM model based on the three-dimensional surface of the BIM model; and determine the area within the surface contour as the target area.
[0211] In some embodiments, the reconstruction module 605 is used to obtain a terrain surface triangulation from the terrain data; triangulate the three-dimensional surface of the BIM model to obtain surface triangulation control points of the BIM model; determine the intersection of the surface contour and the terrain surface triangulation; replace the terrain triangulation control points within the surface contour with the surface triangulation control points and the intersection; and reconstruct the triangulation of the BIM model using the surface triangulation control points, the intersection points, and the terrain triangulation control points outside the surface contour.
[0212] In some embodiments, the second determination module is used to determine the surface contour control points of the BIM model according to the three-dimensional surface of the BIM model; and determine the surface contour of the BIM model according to the surface contour control points.
[0213] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0214] It should be noted that in the embodiments of the present application, if the above-mentioned method of integrating terrain data with BIM model is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a mobile phone, tablet computer, desktop computer, personal digital assistant, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0215] Correspondingly, an embodiment of the present application provides a computer device, Figure 7 A schematic diagram of a hardware entity of a computer device according to an embodiment of the present application is shown in FIG. Figure 7 As shown, the hardware entity of the computer device 700 includes: a memory 701 and a processor 702, wherein the memory 701 stores a computer program that can be run on the processor 702, and when the processor 702 executes the program, the steps in the method for integrating terrain data and the BIM model provided in the above embodiment are implemented.
[0216] The memory 701 is configured to store instructions and applications executable by the processor 702, and can also cache data to be processed or processed by the processor 702 and various modules in the computer device 700 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0217] Correspondingly, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the method for integrating terrain data with a BIM model provided in the above embodiment are implemented.
[0218] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0219] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0220] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0221] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0222] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, the functional units in the embodiments of the present application may be all integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0223] It can be understood by those skilled in the art that all or part of the steps of the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiment are executed; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, read-only memory (ROM), magnetic disks or optical disks. Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensor device, etc.) to execute all or part of the methods described in each embodiment of the present application. And the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, magnetic disks or optical disks.
[0224] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain a new method embodiment. The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain a new product embodiment. The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain a new method embodiment or device embodiment.
[0225] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for integrating terrain data with a building information model (BIM), characterized in that: The method comprises: Obtain the level of detail (LOD) information of terrain data and BIM models; Determine, according to the LOD level information, a geometric structure to be integrated in the BIM model; determining a target area from the terrain data according to the geometric structure; Determine the terrain triangulation control points inside and outside the target area; Reconstructing the triangulated network of the BIM model using the terrain triangulated network control points inside and outside the target area; Wherein, determining the geometric structure to be integrated in the BIM model according to the LOD level information includes: When the LOD level information is the first LOD level, determining that the geometric structure to be merged in the BIM model is a two-dimensional plane of the BIM model; When the LOD level information is the second LOD level, it is determined that the geometric structure to be merged in the BIM model is the three-dimensional surface of the BIM model.
2. The method according to claim 1, characterized in that Determining the target area from the terrain data based on the geometric structure includes: determining the plane outline of the BIM model based on the two-dimensional plane of the BIM model; and determining the area within the plane outline as the target area.
3. The method according to claim 2, characterized in that Determining the plane contour of the BIM model according to the two-dimensional plane of the BIM model includes: According to the two-dimensional plane of the BIM model, determining the plane contour control points of the BIM model; The plane contour of the BIM model is determined according to the plane contour control points.
4. The method according to claim 2, characterized in that: The reconstructing the triangulated network of the BIM model by using the terrain triangulated network control points inside and outside the target area includes: Acquire a terrain surface triangulation network from the terrain data; Triangulate the two-dimensional plane of the BIM model to obtain the plane triangulation control points of the BIM model; Determine the intersection of the plane contour and the terrain surface triangulation; Replacing the terrain triangulation control points within the plane contour with the plane triangulation control points and the intersection points; The triangulated network of the BIM model is reconstructed using the plane triangulated network control points, the intersection points and the terrain triangulated network control points outside the plane contour.
5. The method according to claim 1, characterized in that Determining the target area from the terrain data based on the geometric structure includes: acquiring a terrain surface from the terrain data; determining a positional relationship between a bottom surface in a three-dimensional surface of the BIM model and the terrain surface; and determining the target area from the terrain data based on the positional relationship and the three-dimensional surface of the BIM model.
6. The method according to claim 5, characterized in that The positional relationship includes that a bottom surface of the three-dimensional surface of the BIM model is located below the terrain surface, and determining the target area from the terrain data according to the positional relationship and the three-dimensional surface of the BIM model includes: Acquire a terrain surface triangulation network from the terrain data; Determine the intersection line between the side surface in the three-dimensional surface of the BIM model and the triangulated network of the terrain surface; An area within a closed polygon determined based on the intersection line is determined as the target area.
7. The method according to claim 6, characterized in that The reconstructing the triangulated network of the BIM model by using the terrain triangulated network control points inside and outside the target area includes: Determining the vertices of the closed polygon; Replacing the terrain triangulation control points within the closed polygon with the vertices; The triangulated network of the BIM model is reconstructed using the vertices and the terrain triangulated network control points outside the closed polygon.
8. The method according to claim 5, characterized in that The positional relationship includes that a bottom surface of the three-dimensional surface of the BIM model is located above the terrain surface, and determining the target area from the terrain data according to the positional relationship and the three-dimensional surface of the BIM model includes: According to the three-dimensional surface of the BIM model, a surface contour of the BIM model is determined; and an area within the surface contour is determined as the target area.
9. The method according to claim 8, characterized in that The reconstructing the triangulated network of the BIM model by using the terrain triangulated network control points inside and outside the target area includes: Acquire a terrain surface triangulation network from the terrain data; Triangulating the three-dimensional surface of the BIM model to obtain surface triangulation control points of the BIM model; Determining the intersection of the surface contour and the terrain surface triangulation; Replacing the terrain triangulation control points within the surface contour with the surface triangulation control points and the intersection points; The triangulated network of the BIM model is reconstructed using the surface triangulated network control points, the intersection points and the terrain triangulated network control points outside the surface contour.
10. The method according to claim 8, characterized in that Determining the surface contour of the BIM model according to the three-dimensional surface of the BIM model includes: Determining the surface contour control points of the BIM model according to the three-dimensional surface of the BIM model; The surface contour of the BIM model is determined according to the surface contour control points.
11. A device for integrating terrain data with a BIM model, characterized in that: The device comprises: The acquisition module is used to obtain the LOD level information of the terrain data and BIM model; A first determining module is used to determine that the geometric structure to be merged in the BIM model is a two-dimensional plane of the BIM model when the LOD level information is a first LOD level; and to determine that the geometric structure to be merged in the BIM model is a three-dimensional surface of the BIM model when the LOD level information is a second LOD level; A second determination module, configured to determine a target area from the terrain data according to the geometric structure; A third determination module is used to determine the terrain triangulation control points inside and outside the target area; The reconstruction module is used to reconstruct the triangulation network of the BIM model by using the terrain triangulation control points inside and outside the target area.
12. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps in the method for fusing terrain data with a BIM model as described in any one of claims 1 to 10 are implemented.
13. 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 in the method for integrating terrain data with a BIM model as described in any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Three-dimensional map semantic processing method, system and device and computer medium
CN110675323A
BIM data processing system for BIM data format conversion
KR101465481B1
