Method, device and electronic equipment for generating three-dimensional surface model for atmospheric simulation

By obtaining the building and terrain data of the target area and generating three-dimensional building complexes and terrain models, the problem of low generation efficiency of three-dimensional surface models in the existing technology is solved, and more efficient and accurate model generation is achieved.

CN119416318BActive Publication Date: 2025-04-15INST OF ATMOSPHERIC PHYSICS CHINESE ACADEMY SCI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411461658.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-04-15
Estimated Expiration
2044-10-18

AI Technical Summary

Technical Problem

The prior art is complicated to operate and inefficiently in generating a three-dimensional surface model, making it difficult to easily generate a three-dimensional surface model of the target area.

Method used

By obtaining the target building data and initial terrain data of the target area, determine the corresponding target terrain height of each building, and update the initial terrain data, generate a three-dimensional building complex model and three-dimensional terrain model of the target area, and finally synthesize the target three-dimensional surface model.

Benefits of technology

The generation efficiency and quality of the three-dimensional surface model are improved, the accuracy and authenticity of the model are ensured, and the accuracy of subsequent atmospheric simulation tasks is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119416318B_ABST
    Figure CN119416318B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and electronic device for generating a three-dimensional surface model for atmospheric simulation, the method comprising: based on target building data and initial terrain data, respectively determining at least one first grid corresponding to each building in a target area, and respectively determining the target terrain height corresponding to each building based on the terrain height of each first grid in at least one first grid corresponding to each building; based on the target terrain height corresponding to each building, updating the initial terrain data to obtain target terrain data of the target area; based on the target building data, generating a three-dimensional building complex model of the target area; and based on the target terrain data, generating a three-dimensional terrain model of the target area; using the three-dimensional building complex model and the three-dimensional terrain model, generating a target three-dimensional surface model of the target area, the target three-dimensional surface model supports atmospheric simulation tasks. The embodiment of the present invention can conveniently generate a target three-dimensional surface model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of atmospheric simulation technology, and in particular to a method, device and electronic equipment for generating a three-dimensional surface model for atmospheric simulation. Background Art

[0002] As an effective means, numerical simulation technology has been widely used in atmospheric simulation tasks and has achieved good results; that is, atmospheric simulation tasks can be achieved through small-scale models (i.e., CFD models) of computational fluid dynamics (CFD). CFD models usually only support fixed-format three-dimensional model data (such as .obj (a 3D (Three Dimensions, three-dimensional) model file format), .stl (a file format for representing triangular meshes), etc.); but related technologies usually use modeling software such as 3D Max (a three-dimensional animation rendering and production software) to produce three-dimensional surface models by manual modeling, resulting in cumbersome and inefficient operations for generating three-dimensional surface models. Based on this, there is currently no good solution for how to conveniently generate a target three-dimensional surface model of the target area to improve the generation efficiency of the target three-dimensional surface model. Summary of the invention

[0003] In view of this, the embodiments of the present invention provide a three-dimensional surface model generation method, device and electronic device for atmospheric simulation, so as to solve the problems that the related technologies lead to cumbersome operation and low efficiency of generating three-dimensional surface models; that is, the embodiments of the present invention can conveniently generate a target three-dimensional surface model of a target area through the target building data and initial terrain data of the target area, which can effectively improve the generation efficiency of the target three-dimensional surface model; and the target three-dimensional surface model is generated through the three-dimensional building complex model and the three-dimensional terrain model of the target area, rather than just generated based on the buildings, that is, it covers the information of the terrain and buildings of the target area, which can effectively improve the quality of the target three-dimensional surface model, that is, it can effectively improve the accuracy of the target three-dimensional surface model, thereby obtaining a more realistic three-dimensional surface model, and then the accuracy of subsequent atmospheric simulation tasks can be improved through the target three-dimensional surface model.

[0004] According to one aspect of an embodiment of the present invention, a method for generating a three-dimensional surface model for atmospheric simulation is provided, the method comprising:

[0005] Acquire target building data of a target area, and acquire initial terrain data of the target area, wherein the target building data includes building indication data of each building in the target area, and the initial terrain data includes grid data of each grid in the target area, and the grid data of a grid includes the terrain height of the corresponding grid;

[0006] Based on the target building data and the initial terrain data, at least one first grid corresponding to each building is determined from the target area, and based on the terrain height of each first grid in the at least one first grid corresponding to each building, a target terrain height corresponding to each building is determined;

[0007] Based on the target terrain height corresponding to each building, the initial terrain data is updated to obtain the target terrain data of the target area;

[0008] Based on the target building data, a three-dimensional building complex model of the target area is generated; and based on the target terrain data, a three-dimensional terrain model of the target area is generated;

[0009] The three-dimensional building complex model and the three-dimensional terrain model are used to generate a target three-dimensional surface model of the target area, and the target three-dimensional surface model supports atmospheric simulation tasks.

[0010] According to another aspect of an embodiment of the present invention, there is provided a device for generating a three-dimensional surface model for atmospheric simulation, the device comprising:

[0011] an acquisition unit, configured to acquire target building data of a target area and initial terrain data of the target area, wherein the target building data includes building indication data of each building in the target area, and the initial terrain data includes grid data of each grid in the target area, wherein the grid data of a grid includes a terrain height of the corresponding grid;

[0012] a processing unit, configured to determine, from the target area, at least one first grid corresponding to each building based on the target building data and the initial terrain data, and determine a target terrain height corresponding to each building based on a terrain height of each first grid in the at least one first grid corresponding to each building;

[0013] The processing unit is further used to update the initial terrain data based on the target terrain height corresponding to each building to obtain the target terrain data of the target area;

[0014] The processing unit is further used to generate a three-dimensional building complex model of the target area based on the target building data; and to generate a three-dimensional terrain model of the target area based on the target terrain data;

[0015] The processing unit is further used to generate a target three-dimensional surface model of the target area using the three-dimensional building complex model and the three-dimensional terrain model, and the target three-dimensional surface model supports atmospheric simulation tasks.

[0016] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a processor and a memory storing a program, wherein the program comprises instructions, which, when executed by the processor, enable the processor to perform the above-mentioned method.

[0017] According to another aspect of an embodiment of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above-mentioned method.

[0018] The embodiment of the present invention can obtain the target building data of the target area, and obtain the initial terrain data of the target area, the target building data includes the building indication data of each building in the target area, the initial terrain data includes the grid data of each grid in the target area, and the grid data of a grid includes the terrain height of the corresponding grid. Then, based on the target building data and the initial terrain data, at least one first grid corresponding to each building can be determined from the target area, and based on the terrain height of each first grid in the at least one first grid corresponding to each building, the target terrain height corresponding to each building can be determined. Based on this, the initial terrain data can be updated based on the target terrain height corresponding to each building to obtain the target terrain data of the target area; and based on the target building data, a three-dimensional building complex model of the target area is generated, and based on the target terrain data, a three-dimensional terrain model of the target area is generated. Further, the three-dimensional building complex model and the three-dimensional terrain model can be used to generate a target three-dimensional surface model of the target area, and the target three-dimensional surface model supports the use of atmospheric simulation tasks. It can be seen that the embodiment of the present invention can conveniently generate a target three-dimensional surface model of the target area through the target building data and initial terrain data of the target area, which can effectively improve the generation efficiency of the target three-dimensional surface model; and the target three-dimensional surface model is generated through the three-dimensional building complex model and the three-dimensional terrain model of the target area, rather than just based on the buildings, that is, it covers the information of the terrain and buildings in the target area, which can effectively improve the quality of the target three-dimensional surface model, that is, it can effectively improve the accuracy of the target three-dimensional surface model, thereby obtaining a more realistic three-dimensional surface model, and then the accuracy of subsequent atmospheric simulation tasks can be improved through the target three-dimensional surface model. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Further details, features and advantages of the invention are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0020] Figure 1 A schematic flow chart of a method for generating a three-dimensional surface model for atmospheric simulation according to an exemplary embodiment of the present invention is shown;

[0021] Figure 2 A schematic flow chart of another method for generating a three-dimensional surface model for atmosphere simulation according to an exemplary embodiment of the present invention is shown;

[0022] Figure 3 A schematic diagram of a building complex according to an exemplary embodiment of the present invention is shown;

[0023] Figure 4 A schematic diagram showing a terrain according to an exemplary embodiment of the present invention;

[0024] Figure 5 A schematic diagram of a three-dimensional building complex model according to an exemplary embodiment of the present invention is shown;

[0025] Figure 6 A schematic diagram of a three-dimensional terrain model according to an exemplary embodiment of the present invention is shown;

[0026] Figure 7 A schematic diagram of a target three-dimensional surface model according to an exemplary embodiment of the present invention is shown;

[0027] Figure 8 A schematic block diagram of a three-dimensional surface model generating device for atmosphere simulation according to an exemplary embodiment of the present invention is shown;

[0028] Fig. 9 A block diagram of an exemplary electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0029] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0030] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0031] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.

[0034] It should be noted that the execution subject of the three-dimensional surface model generation method for atmospheric simulation provided by the embodiment of the present invention can be one or more electronic devices, and the present invention does not limit this; wherein, the electronic device can be a terminal (i.e., a client) or a server, then when the execution subject includes multiple electronic devices, and the multiple electronic devices include at least one terminal and at least one server, the three-dimensional surface model generation method for atmospheric simulation provided by the embodiment of the present invention can be jointly executed by the terminal and the server. Accordingly, the terminal mentioned here can include but is not limited to: smart phones, tablet computers, laptop computers, desktop computers, etc.; the server mentioned here can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing (cloud computing), cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, etc.

[0035] Based on the above description, an embodiment of the present invention proposes a method for generating a three-dimensional surface model for atmospheric simulation. The method for generating a three-dimensional surface model for atmospheric simulation can be executed by the electronic device (terminal or server) mentioned above; or, the method for generating a three-dimensional surface model for atmospheric simulation can be executed by the terminal and the server together. For the sake of convenience, the following description will be given by taking the electronic device executing the method for generating a three-dimensional surface model for atmospheric simulation as an example; Figure 1 As shown, the method for generating a three-dimensional surface model for atmospheric simulation may include the following steps S101-S105:

[0036] S101, obtaining target building data of a target area and initial terrain data of the target area, wherein the target building data includes building indication data of each building in the target area, and the initial terrain data includes grid data of each grid in the target area, and the grid data of a grid includes the terrain height of the corresponding grid.

[0037] Optionally, the target area may be any area, which is not limited in the embodiment of the present invention; Optionally, the target area may include multiple grids (i.e., grid areas), i.e., each grid in the target area may be each grid in the multiple grids included in the target area. Optionally, a building may include multiple building contour points; Optionally, the building indication data of a building may include, but is not limited to: the contour point coordinates of each building contour point in the corresponding building and the building height indication information of the corresponding building, which is not limited in the embodiment of the present invention.

[0038] Optionally, multiple grids in the target area can be divided according to the target resolution, and the target resolution can be used to indicate the area size of a grid in the target area; Optionally, the target resolution can be set according to experience or according to actual needs, which is not limited in the embodiment of the present invention. Optionally, the terrain height of a grid can be the relative altitude of the corresponding grid, which can also be called relative height or relative terrain height.

[0039] In the embodiment of the present invention, the target building data may be obtained in the following ways, but not limited to:

[0040] The first acquisition method: the target building data of the target area may be stored in the storage space of the electronic device itself. In this case, the electronic device may acquire the target building data from its own storage space.

[0041] The second acquisition method: the electronic device can obtain a building data download link of the target area, and use the building data downloaded based on the building data download link as the target building data.

[0042] The third acquisition method: the electronic device can obtain the initial building data, which can be an original SHP (ESRI shapefile) data (i.e., SHP file, an open format for spatial data). SHP data stores a layer of geometric figures, such as lines, points or polygons, and is associated with a geographic coordinate system. It is a composite data set. SHP files are widely used in various maps and map features. Common SHP files containing building information can contain building ID (Identity document, identity identification number), coordinates of each boundary point on the bottom surface of the building (2D, two-dimensional, i.e., initial contour point coordinates of building contour points), number of building floors, etc. Based on this, the electronic device can clip the initial building data according to the target area latitude and longitude range of the target area to obtain clipped building data. The clipped building data may include initial building indication data of each building in the target area. The initial building indication data of a building may include initial contour point coordinates of each building contour point in the corresponding building and the number of building floors. An initial contour point coordinate may be a two-dimensional latitude and longitude coordinate; and the clipped building data can be used to determine the target building data. Optionally, a building contour point of a building may be used to indicate multiple bottom surface vertices in the bottom surface of the corresponding building and multiple top surface vertices in the top surface of the corresponding building. A building contour point may correspond to a bottom surface vertex and a top surface vertex, and the initial building data may include initial building indication data for each initial building in at least one initial building.

[0043] Optionally, when the initial building data is clipped according to the target area longitude and latitude range of the target area to obtain the clipped building data, each initial building in at least one initial building can be traversed, and the currently traversed initial building can be used as the current initial building, and the initial contour point coordinates of each building contour point in the current initial building can be determined from the initial building indication data of the current initial building; and according to the target area longitude and latitude range of the target area, it can be judged whether the initial contour point coordinates of each building contour point in the current initial building are all within the target area longitude and latitude range (that is, none of them exceed the target area longitude and latitude range); if the initial contour point coordinates of each building contour point in the current initial building are all within the target area longitude and latitude range, the initial building indication data of the current initial building is added to the clipped building data (to take the current initial building as a building in the target area), so as to obtain the clipped building data (which can be a new SHP file) after traversing each initial building in at least one initial building.

[0044] Optionally, when the cropped building data is used to determine the target building data, for any building in the target area, the initial building indication data of any building can be determined from the cropped building data, and the initial contour point coordinates of each building contour point in any building can be converted to obtain the contour point coordinates of each building contour point in any building. A contour point coordinate can be the coordinate of the corresponding building contour point in a Cartesian coordinate system (such as a unit of meters, etc.), and a contour point coordinate can be a two-dimensional coordinate in a Cartesian coordinate system with the target point as the origin; optionally, the target point can be the center point of the target area, or it can be The upper left corner point of the target area, etc., are not limited in the embodiment of the present invention; based on this, the coordinates of each building contour point in any building can be converted from the initial contour point coordinates (i.e., longitude and latitude coordinates) to contour point coordinates (i.e., Cartesian coordinates with the target point as the origin), that is, the initial contour point coordinates of any building contour point can be used to calculate the x coordinate (i.e., horizontal coordinate) and y coordinate (i.e., vertical coordinate) of any building contour point in the Cartesian coordinate system with the target point as the origin, so as to obtain the contour point coordinates of any building contour point, thereby adding the contour point coordinates of each building contour point in any building to the building indication data of any building. Optionally, the electronic device can also add the number of building floors of any building to the building indication data of any building, so as to use the number of building floors of any building as the building height indication information of any building; or, the height of any building (i.e., building height) can be calculated by using the number of building floors and the floor height (i.e., the height of a single floor) of any building, and the height of any building can be added to the building indication data of any building, so as to use the height of any building as the building height indication information of any building, so as to obtain the target building data; and so on. Optionally, the electronic device may also assign an index to each building in the target area, and add the index of any building to the building indication data of any building, so that the building indication data of any building may also include the index of any building (such as building ID, etc.); or, the index of each building may be added to the target building data, so that the target building data may also include the index of each building. Optionally, the floor height may be set according to experience or according to actual needs, which is not limited in the embodiment of the present invention; illustratively, the floor height may be 3m (meter).

[0045] Based on this, an embodiment of the present invention can interpolate the cropped building data into the grid of the target area to project the cropped building data into a Cartesian coordinate system with the target point as the origin to obtain the target building data (that is, the building indicated by the cropped building data can be projected into the terrain grid coordinates) so that the target building data and the initial terrain data are in the same coordinate system.

[0046] Optionally, the grid data of a grid may include but is not limited to at least one of the following: terrain height of the corresponding grid, center point coordinates, grid area range (which may include the x-coordinate range and y-coordinate range of the corresponding grid), etc., which is not limited in this embodiment of the present invention.

[0047] Accordingly, the initial terrain data may be obtained in the following ways, including but not limited to:

[0048] The first acquisition method: the initial terrain data of the target area may be stored in the storage space of the electronic device itself. In this case, the electronic device may acquire the initial terrain data of the target area from the storage space of the electronic device itself.

[0049] The second acquisition method: the electronic device can obtain a download link for the target area terrain data, and use the terrain data downloaded based on the download link for the target area terrain data as the initial terrain data for the target area.

[0050] The third acquisition method: the electronic device can obtain the original terrain data, and clip the original terrain data according to the target area latitude and longitude range of the target area to obtain the clipped terrain data, the clipped terrain data may include the original grid center point data of each original grid center point in the target area, the original grid center point data of an original grid center point may include the latitude and longitude coordinates of the corresponding original grid center point and the original terrain height, an original terrain height may be the altitude of the corresponding original grid center point; based on this, the initial terrain data can be determined based on the clipped terrain data to achieve the acquisition of the initial terrain data of the target area, etc. Optionally, the original terrain data can be a DEM (Digital Elevation Model, also known as Digital Elevation Model) data (the original terrain data can also be called original DEM data or original DEM file), which can usually be in tif format (an image file format) or netcdf format (network Common Data Form, network common data format), etc. The digital elevation model can be a representation of the topological surface of the earth's bare surface (bare ground), excluding trees, buildings and any other surface objects.

[0051] Optionally, when the original terrain data is clipped according to the longitude and latitude range of the target area to obtain the clipped terrain data, the original grid center point data of all original grid center points whose longitude and latitude coordinates are within the longitude and latitude range of the target area can be added to the clipped terrain data to obtain the original grid center point data of each original grid center point in the target area, thereby obtaining the clipped terrain data.

[0052] Optionally, when determining the initial terrain data based on the clipped terrain data, the target area can be gridded according to the target resolution (at this time, the target resolution can be used to indicate the area size of a grid in the longitude and latitude coordinate system) and the longitude and latitude range of the target area to obtain multiple grids in the target area (that is, the longitude and latitude coordinates of each grid center point in the target area can be obtained), so that the original grid center point data of each original grid center point in the target area can be used to calculate the terrain height of each grid respectively (that is, the terrain height of each grid center point, the terrain height of a grid center point can be the terrain height of the grid where the corresponding grid center point is located), and the longitude and latitude coordinates of each grid center point are converted to obtain the center point coordinates of each grid center point (that is, the xy coordinates of each grid center point in the Cartesian coordinate system with the target point as the origin are obtained), so that based on each grid center point The initial terrain data is obtained based on the center point coordinates of the point and the terrain height of each grid, such as adding the center point coordinates of the center point of each grid and the terrain height of each grid to the initial terrain data, or determining the grid area range of each grid based on the center point coordinates of the center point of each grid and the area size of a grid in a Cartesian coordinate system, thereby adding the grid area range and the terrain height of each grid to the initial terrain data, and so on; optionally, for any grid in the target area, the first P original grid center points closest to the latitude and longitude coordinates of the center point of any grid can be determined from the target area, thereby performing a weighted summation (such as a mean operation, etc.) of the original terrain heights of each original grid center point in the first P original grid center points, and obtaining a weighted summation result of the original terrain height of any grid, so as to determine the terrain height of each grid based on the weighted summation result of the original terrain height of each grid. Alternatively, the electronic device may also first perform coordinate conversion on the latitude and longitude range of the target area and the latitude and longitude coordinates of each original grid center point to obtain the target conversion range of the target area in the Cartesian coordinate system and the conversion coordinates of each original grid center point (i.e., the xy coordinates with the target point as the coordinate origin), and may divide the target area into grids according to the target resolution (at this time, the target resolution can be used to indicate the area size of a grid in the Cartesian coordinate system) and the target conversion range to obtain multiple grids in the target area (i.e., the center point coordinates of each grid center point in the target area are obtained). Based on this, for any grid in the target area, the first P original grid center points closest to the center point coordinates of any grid center point can be determined from the target area based on the center point coordinates of the center point of any grid and the conversion coordinates of each original grid center point in the target area, so as to perform weighted summation on the original terrain heights of each original grid center point in the first P original grid center points to obtain the weighted summation result of the original terrain height of any grid, so as to determine the terrain height of each grid based on the weighted summation result of the original terrain height of each grid, thereby achieving the acquisition of initial terrain data, etc. Wherein, P can be a positive integer.

[0053] Optionally, when determining the terrain height of each grid based on the weighted summation result of the original terrain height of each grid, the minimum value (i.e., the weighted summation result of the minimum original terrain height) can be determined from the weighted summation result of the original terrain height of each grid, and the difference between the weighted summation result of the original terrain height of any grid and the determined minimum value can be used as the terrain height of any grid (which can also be called relative altitude or relative terrain height, etc.) to achieve the determination of the terrain height of each grid; at this time, it can avoid generating too high background grids in the subsequent atmospheric simulation task to generate the body-fitting grid corresponding to the target three-dimensional surface model, and can avoid the waste of computing and storage resources. In other embodiments, the electronic device can also use the weighted summation result of the original terrain height of each grid (which can also be called the original terrain height mean calculation result when performing mean calculation) as the terrain height of the corresponding grid, that is, at this time, the terrain height of any grid can be the weighted summation result of the original terrain height of any grid, and so on; the present invention is not limited to this.

[0054] S102, based on the target building data and the initial terrain data, respectively determine at least one first grid corresponding to each building in the target area, and respectively determine the target terrain height corresponding to each building based on the terrain height of each first grid in the at least one first grid corresponding to each building.

[0055] Optionally, when determining the target terrain height corresponding to each building based on the terrain height of each first grid in at least one first grid corresponding to each building, for any building in the target area, the electronic device may perform a mean operation on the terrain height of each first grid in at least one first grid corresponding to any building to obtain the target terrain height corresponding to any building, that is, the target terrain height corresponding to any building may be the mean between the terrain heights of each first grid in at least one first grid corresponding to any building.

[0056] S103, based on the target terrain height corresponding to each building, updating the initial terrain data to obtain the target terrain data of the target area.

[0057] S104, generating a three-dimensional building complex model of the target area based on the target building data; and generating a three-dimensional terrain model of the target area based on the target terrain data.

[0058] In an embodiment of the present invention, the three-dimensional building complex model can be an OBJ (i.e., obj) file (i.e., it can be stored in the form of an OBJ file, and the OBJ file storing the three-dimensional building complex model can be called a three-dimensional building complex model OBJ file), that is, the three-dimensional building complex model can be called a three-dimensional building complex model OBJ file, that is, the data used to indicate the three-dimensional building complex model (such as the top surface indication data and side surface indication data of each building described below) can be added to the three-dimensional building complex model OBJ file to generate a three-dimensional building complex model in OBJ format, that is, a three-dimensional building complex model OBJ file containing the top surface indication data and side surface indication data of each building can be generated. Among them, an OBJ format file can include but is not limited to at least one of the following: vertex data, free-form surface / surface attributes, drawing index sequence, free-form surface / surface content declaration, associated free-form surface, group and rendering attribute information. Most common drawing indexes are expressed as geometric vertices, texture coordinates, vertex normals, and polygon faces. Compared with similar file formats such as STL files, the OBJ format supports high-resolution data, and OBJ files can represent complex or irregularly shaped objects by dividing their surfaces into small triangle blocks. This subdivision and assembly process makes it easier to operate and render designs.

[0059] Correspondingly, the three-dimensional terrain model can also be an OBJ file, that is, the three-dimensional terrain model can also be called a three-dimensional terrain model OBJ file. In other words, the embodiment of the present invention can generate a three-dimensional terrain model in OBJ format; based on this, the following terrain triangulation results can be added to the three-dimensional terrain model OBJ file to generate a three-dimensional terrain model in OBJ format.

[0060] S105, using the three-dimensional building complex model and the three-dimensional terrain model to generate a target three-dimensional surface model of the target area, the target three-dimensional surface model supports the use of atmospheric simulation tasks.

[0061] In an embodiment of the present invention, the target three-dimensional surface model may be an OBJ file, that is, the target three-dimensional surface model may be referred to as a target three-dimensional surface model OBJ file, that is, the target three-dimensional surface model may be stored through the target three-dimensional surface model OBJ file, thereby generating a target three-dimensional surface model in OBJ format.

[0062] Optionally, the three-dimensional building complex model may include vertex data of each first vertex among multiple first vertices and surface representation information of each building surface among multiple building surfaces, the three-dimensional terrain model may include vertex data of each second vertex among multiple second vertices and surface representation information of each terrain surface among multiple terrain surfaces, the surface representation information of a surface (also referred to as point index) includes the index of each vertex in the corresponding surface, and the vertex data of a vertex may include the vertex coordinates and index of the corresponding vertex. Based on this, when using a three-dimensional building complex model and a three-dimensional terrain model to generate a target three-dimensional surface model of the target area, the electronic device can reorder multiple first vertices and multiple second vertices to obtain a reordering index of each first vertex and a reordering index of each second vertex; and use the reordering index of each first vertex to update the three-dimensional building complex model to obtain an updated three-dimensional building complex model, so as to update the index of each first vertex in the three-dimensional building complex model and the index in the surface representation information of each building surface; and use the reordering index of each second vertex to update the three-dimensional terrain model to obtain an updated three-dimensional terrain model, so as to update the index of each second vertex in the three-dimensional terrain model and the index in the surface representation information of each terrain surface; further, the updated three-dimensional building complex model and the updated three-dimensional terrain model can be merged to obtain the target three-dimensional surface model of the target area, so as to generate the target three-dimensional surface model of the target area.

[0063] Optionally, the vertex coordinates of a vertex may include the x-coordinate, y-coordinate and z-coordinate (i.e., vertical coordinates, also referred to as vertical coordinates (i.e., coordinates in the vertical direction)) of the corresponding vertex, and the vertex coordinates may be three-dimensional coordinates in a Cartesian coordinate system with the target point as the origin, and the z-coordinate of a vertex may be the height of the corresponding vertex; optionally, the vertex coordinates of a vertex may be expressed as "v{x}{y}{z}", and the face representation information of a face may be expressed as "f{index1}{index2}{index3}", where v may represent a vertex, f may represent a face, and index may represent an index; it should be noted that the vertex coordinates and face representation information are only exemplarily described here, and the embodiments of the present invention are not limited to this. For example, the face representation information may also include the indices of 4 vertices, and so on.

[0064] Optionally, when reordering a plurality of first vertices and a plurality of second vertices, an index may be assigned to each first vertex in the plurality of first vertices first, and then an index may be assigned to each second vertex in the plurality of second vertices. For example, assuming that the number of first vertices in the plurality of first vertices is W, and the number of second vertices in the plurality of second vertices is V, then at this time, the reordering index of each first vertex in the plurality of first vertices may be 1 to W in sequence, and the reordering index of each second vertex in the plurality of second vertices may be W+1 to W+V in sequence; or, an index may be assigned to each second vertex in the plurality of second vertices first, and then an index may be assigned to each first vertex in the plurality of first vertices, such that at this time, the reordering index of each second vertex may be 1 to V in sequence, and the reordering index of each first vertex may be V+1 to V+M in sequence, and so on; the embodiment of the present invention is not limited to this. Wherein, W and V are both positive integers.

[0065] Optionally, taking a three-dimensional building complex model as an example, when the reordering index of each first vertex is used to update the three-dimensional building complex model to obtain an updated three-dimensional building complex model, for any first vertex among multiple first vertices, the reordering index of any first vertex can be used to update the index of any first vertex in the three-dimensional building complex model and the index of any first vertex in the face representation information of all building faces containing any first vertex, so as to update the three-dimensional building complex model. Exemplarily, assuming that the three-dimensional building complex model includes a first vertex a (index is 1), a first vertex b (index is 2) and a first vertex c (index is 3), and the surface representation information of a building surface in the three-dimensional building complex model is f123 (that is, the building surface is composed of the first vertex a, the first vertex b and the first vertex c, and the surface representation information of the building surface may include the index of each first vertex in the first vertex a, the first vertex b and the first vertex c); and assuming that the reordered index of each first vertex in the first vertex a, the first vertex b and the first vertex c is 101, 102 and 103 respectively, then the index of each first vertex in the first vertex a, the first vertex b and the first vertex c in the three-dimensional building complex model can be updated to 101, 102 and 103 respectively, and the surface representation information of the above-mentioned building surface can be updated to f101102103, that is, the indexes in the surface representation information of the above-mentioned building surface can be updated to 101, 102 and 103 respectively, and so on.

[0066] Correspondingly, the updated three-dimensional building complex model can also be an OBJ file, and the updated three-dimensional building complex model can also be called an updated three-dimensional building complex model OBJ file; and, the updated three-dimensional terrain model can also be an OBJ file, and the updated three-dimensional terrain model can also be called an updated three-dimensional terrain model OBJ file, so that the updated three-dimensional building complex model OBJ file and the updated three-dimensional terrain model OBJ file can be merged into one OBJ file (that is, the above-mentioned target three-dimensional surface model OBJ file) to generate the target three-dimensional surface model; based on this, an OBJ file of terrain superimposed buildings can be obtained.

[0067] The embodiment of the present invention can obtain the target building data of the target area, and obtain the initial terrain data of the target area, the target building data includes the building indication data of each building in the target area, the initial terrain data includes the grid data of each grid in the target area, and the grid data of a grid includes the terrain height of the corresponding grid. Then, based on the target building data and the initial terrain data, at least one first grid corresponding to each building can be determined from the target area, and based on the terrain height of each first grid in the at least one first grid corresponding to each building, the target terrain height corresponding to each building can be determined. Based on this, the initial terrain data can be updated based on the target terrain height corresponding to each building to obtain the target terrain data of the target area; and based on the target building data, a three-dimensional building complex model of the target area is generated, and based on the target terrain data, a three-dimensional terrain model of the target area is generated. Further, the three-dimensional building complex model and the three-dimensional terrain model can be used to generate a target three-dimensional surface model of the target area, and the target three-dimensional surface model supports the use of atmospheric simulation tasks. It can be seen that the embodiment of the present invention can conveniently generate a target three-dimensional surface model of the target area through the target building data and initial terrain data of the target area, which can effectively improve the generation efficiency of the target three-dimensional surface model; and the target three-dimensional surface model is generated through the three-dimensional building complex model and the three-dimensional terrain model of the target area, rather than just based on the buildings, that is, it covers the information of the terrain and buildings in the target area, which can effectively improve the quality of the target three-dimensional surface model, that is, it can effectively improve the accuracy of the target three-dimensional surface model, thereby obtaining a more realistic three-dimensional surface model, and then the accuracy of subsequent atmospheric simulation tasks can be improved through the target three-dimensional surface model.

[0068] Based on the above description, an embodiment of the present invention further proposes a more specific method for generating a three-dimensional surface model for atmospheric simulation. Accordingly, the method for generating a three-dimensional surface model for atmospheric simulation can be executed by the electronic device (terminal or server) mentioned above; or, the method for generating a three-dimensional surface model for atmospheric simulation can be executed jointly by the terminal and the server. For the sake of ease of explanation, the following description will be given by taking the electronic device executing the method for generating a three-dimensional surface model for atmospheric simulation as an example; please refer to Figure 2 The method for generating a three-dimensional surface model for atmospheric simulation may include the following steps S201-S207:

[0069] S201, obtaining target building data of a target area and initial terrain data of the target area, wherein the target building data includes building indication data of each building in the target area, and the initial terrain data includes grid data of each grid in the target area, and the grid data of a grid includes the terrain height of the corresponding grid.

[0070] S202, traverse each building in the target area, and use the currently traversed building as the current building.

[0071] Optionally, the target building data may also include the building identification of each building in the target area. In this case, each building identification in the target building data can be traversed, and the building indicated by the currently traversed building identification can be used as the currently traversed building to traverse each building in the target area; a building identification can be used to indicate a building, and a building identification can be the number (i.e., ID) of the corresponding building. For example, the building identification of the first building in the target area can be 1. Then, when s represents the currently traversed building identification and the currently traversed building is the first building, the value of s can be 1; in other words, the current building can refer to the sth building, and s is a positive integer.

[0072] S203, based on the building indication data and the initial terrain data of the current building, determining at least one first grid corresponding to the current building in the target area, wherein the at least one first grid corresponding to the current building includes a grid where each building contour point in the current building is located.

[0073] The building indication data of a building includes the contour point coordinates of each building contour point in the corresponding building.

[0074] In one implementation, the electronic device may use the grid where each building contour point in the current building is located as at least one first grid corresponding to the current building. The grid where a building contour point is located may be a grid indicated by the grid area range where the contour point coordinates of the corresponding building contour point are located.

[0075] Optionally, when the initial terrain data includes the grid area range of each grid, the grid area range of the contour point coordinates of each building contour point in the current building is directly determined from the target area, so that the grid indicated by the grid area range of the contour point coordinates of any building contour point in the current building is used as the grid where the any building contour point is located; that is, for any grid in the target area, if the x coordinate of any building contour point is within the x coordinate range of any grid, and the y coordinate of any building contour point is within the y coordinate range of any grid, then any grid can be determined as the grid where any building contour point is located.

[0076] Optionally, when the initial terrain data includes the center point coordinates of the center point of each grid (i.e., the grid center point, one grid center point is the center point of one grid) and the area size of each grid, the grid area range of each grid can be determined based on the center point coordinates of the center of each grid and the area size of each grid, and the grid where each building contour point in the current building is located can be determined from the target area based on the grid area range of each grid and the contour point coordinates of each building contour point in the current building, and so on.

[0077] In another implementation, the electronic device may determine the surface contour of the current building based on the contour point coordinates of each building contour point in the current building, and the surface contour of the current building may include the building contour line between any two adjacent building contour points in the current building; and may determine at least one first grid corresponding to the current building from the target area based on the surface contour of the current building and the initial terrain data, and the at least one first grid corresponding to the current building includes the grid where the surface contour of the current building is located, and the grid where the surface contour of the current building is located includes the grid where each building contour point in the current building is located, and so on. Optionally, the surface contour of the current building may be obtained by linking the building contour points in the current building in the order of the building contours; optionally, the order of the building contours may be clockwise or counterclockwise, and the embodiments of the present invention are not limited to this.

[0078] Exemplarily, assuming that the current building includes building contour point 1, building contour point 2, building contour point 3 and building contour point 4, then the surface contour of the current building may be the building contour line between building contour point 1, building contour point 2, building contour point 3 and building contour point 4 in sequence. That is to say, the surface contour of the current building may include the building contour line between building contour point 1 and building contour point 2, the building contour line between building contour point 2 and building contour point 3, the building contour line between building contour point 3 and building contour point 4, and the building contour line between building contour point 4 and building contour point 1.

[0079] Based on this, the electronic device can determine the grid where the surface contour of the current building is located from the target area based on the surface contour of the current building and the grid area range of each grid, so as to use the grid where the surface contour of the current building is located as at least one first grid corresponding to the current building; wherein the grid where the surface contour of the current building is located can refer to the grid through which the surface contour of the current building passes, that is, it can include the grid through which the building contour line between any two adjacent building contour points in the current building passes, and a building contour point can be connected to the previous building contour point and / or the next building contour point of the corresponding building contour point. that is, when the number of building contour points in any building is k, for the ith building contour point in any building, when i is 1, the building contour points adjacent to the ith building contour point may be the i+1th building contour point and the kth building contour point, when i∈[2, k-1], the building contour points adjacent to the ith building contour point may be the i+1th building contour point and the i-1th building contour point, and when i is k, the building contour points adjacent to the ith building contour point may be the 1st building contour point and the i-1th building contour point.

[0080] S204, after traversing each building in the target area, obtaining at least one first grid corresponding to each building, and determining the target terrain height corresponding to each building based on the terrain height of each first grid in the at least one first grid corresponding to each building.

[0081] It should be noted that due to the resolution of terrain data (also called terrain raster data), the terrain height corresponding to a building may be inconsistent. For example, the terrain data may be a grid of 10 meters × 10 meters. When a building occupies two grids and the terrain height of one of the two grids is 5 meters and the terrain height of the other grid is 6 meters, the terrain height corresponding to the building is inconsistent. Based on this, the embodiment of the present invention can make the terrain heights of the grids where the same building is located the same by using the target terrain height corresponding to each building, so as to keep the terrain height under the building consistent.

[0082] Furthermore, at least one first grid corresponding to a building may include the grid where each building contour point in the corresponding building is located or the grid where the surface contour of the corresponding building is located, so that only the terrain height of a circle of grids corresponding to the surface contour of a building can be used to calculate the target terrain height corresponding to the corresponding building. This is because most terrain data are satellite inversion data. For larger buildings, they may become part of the terrain. If the terrain heights of all grids of the building (i.e., the grids where the building is located) are averaged and then the height of the building is superimposed, the height of the building will be raised, which is inconsistent with the actual situation. In other words, the embodiment of the present invention can improve the accuracy of the target terrain height corresponding to each building through at least one first grid corresponding to each building, so that the target building height of subsequent buildings can be more in line with reality.

[0083] S205, based on the target terrain height corresponding to each building, updating the initial terrain data to obtain the target terrain data of the target area.

[0084] Optionally, for any building in the target area, the electronic device can determine at least one second grid corresponding to any building from the target area based on the initial terrain data and the building indication data of any building, and the at least one second grid corresponding to any building includes the grid where any building is located and / or at least one adjacent grid of the grid where any building is located, and the at least one adjacent grid includes a grid adjacent to any grid in the grid where any building is located in the target area; that is, all grids containing any building (i.e., the grid where any building is located) can be marked as the second grid corresponding to any building, and a circle of grids can be expanded outwards on the basis of the grid where any building is located, so that the circle of grids expanded outwards (i.e., at least one adjacent grid of the grid where any building is located) is also marked as the second grid corresponding to any building, so as to achieve the determination of at least one second grid corresponding to any building. It should be understood that, since the terrain height at the building boundary may be inconsistent after the terrain data is triangulated based on the following Delaunay method, etc., adding a circle (marking the circle of grids expanded outwards as the second grid corresponding to any building) can ensure that the terrain corresponding to the building is flat, which can further improve the accuracy of the subsequent three-dimensional building complex model.

[0085] For example, the building group indicated by the target building data (i.e., the building group indicated by the contour point coordinates of the building contour points in each building) can be as follows: Figure 3 As shown, the terrain indicated by the initial terrain data can be Figure 4 As shown, the building complex indicated by the target building data and the terrain indicated by the initial terrain data are located in the same coordinate system (that is, both are located in a Cartesian coordinate system with the target point as the origin), so that the positional relationship between each building and the grid in the target area can be determined based on the target building data and the initial terrain data, and at least one first grid and at least one second grid corresponding to any building in the target area can be determined based on the building indication data and the initial terrain data of any building included in the target building data, and so on.

[0086] Furthermore, the electronic device may use the target terrain height corresponding to any building to update the terrain height of each second grid in at least one second grid corresponding to any building, so as to update the initial terrain data and obtain the target terrain data of the target area. In this case, the terrain height of each second grid in at least one second grid corresponding to any building may be updated to the target terrain height corresponding to any building, so that the terrain height of at least one second grid corresponding to the same building is the same, that is, the terrain height corresponding to the same building is consistent, and the terrain height below the building can be guaranteed to be consistent.

[0087] S206, generating a three-dimensional building complex model of the target area based on the target building data; and generating a three-dimensional terrain model of the target area based on the target terrain data.

[0088] Among them, the building indication data of a building may include the contour point coordinates of each building contour point in the corresponding building and the building height indication information of the corresponding building. Based on this, when generating the three-dimensional building complex model of the target area based on the target building data, the electronic device may determine the target building height of each building based on the target terrain height corresponding to each building and the building height indication information of each building; and may determine the building vertex indication data of each building based on the target building height of each building and the contour point coordinates of each building contour point in each building, the building vertex indication data of a building includes the vertex data of each building vertex in the corresponding building, and the vertex data of a building vertex includes the vertex coordinates of the vertex of the corresponding building. Optionally, when the building height indication information of a building is the height of the corresponding building, the sum of the target terrain height corresponding to any building and the building height indication information of any building can be used as the target building height of any building; or, when the building height indication information of a building is the number of building floors of the corresponding building, the building height indication information of any building and the floor height can be used to calculate the height of any building (that is, the product between the number of building floors and the floor height of any building), so that the sum of the height of any building and the target terrain height corresponding to any building can be used as the target building height of any building, and so on.

[0089] Optionally, the vertex data of a building vertex may also include the index of the corresponding building vertex, that is, the vertex data of a building vertex may include but is not limited to the vertex coordinates and index of the corresponding building vertex, etc., which are not limited in the embodiment of the present invention; wherein, a vertex coordinate may be a three-dimensional coordinate (including an x-coordinate, a y-coordinate and a z-coordinate (the z-coordinate of a building vertex may be the height of the corresponding building vertex)); illustratively, the z-coordinate of a bottom vertex of any building may be 0 or the target terrain height corresponding to any building (that is, the height of a bottom vertex of any building may be 0 or the target terrain height corresponding to any building), and the z-coordinate of a top vertex of any building may be the target building height of any building (that is, the height of any top vertex of any building may be the target building height of any building). Optionally, a building contour point may correspond to a bottom vertex and a top vertex, that is, the contour point coordinates of a building contour point may include an x-coordinate and a y-coordinate, then the x-coordinates in the vertex coordinates of the bottom vertex and the top vertex corresponding to a building contour point may both be the x-coordinates of the corresponding building contour point, and the y-coordinates in the vertex coordinates of the bottom vertex and the top vertex corresponding to a building contour point may both be the y-coordinates of the corresponding building contour point. Then correspondingly, for any building in the target area, the electronic device can determine the vertex coordinates and index of each building vertex in any building based on the contour point coordinates of each building contour point in any building and the target building height of any building; and the vertex coordinates and index of each building vertex in any building can be added to the building vertex indication data of any building, so that the vertex data of a building vertex in any building includes the vertex coordinates and index of the corresponding building vertex, thereby determining the building vertex indication data of any building. Based on this, the electronic device can use the target building height of any building as the height of each top surface vertex in any building (i.e., the z coordinate of the top surface vertex); wherein the x coordinate, y coordinate and z coordinate in the vertex coordinates of a building vertex can also be referred to as the x coordinate, y coordinate and z coordinate of the corresponding building vertex. It can be seen that the embodiment of the present invention can stretch the building height when generating the building, so as to stretch the building height to the actual building height plus the target terrain height where the building is located, thereby ensuring that any building starts from the ground. Wherein, the index of any building vertex can be allocated in sequence, and the embodiment of the present invention is not limited to this.

[0090] Furthermore, the electronic device can determine the top surface indication data and the side surface indication data of each building based on the building vertex indication data of each building; and use the top surface indication data and the side surface indication data of each building to generate a three-dimensional building complex model of the target area, such as Figure 5As shown; Optionally, the electronic device can add the top surface indication data and side surface indication data of each building to the OBJ file of the three-dimensional building complex model to realize the generation of the three-dimensional building complex model. Among them, the top surface indication data and side surface indication data of a building can be used to represent the three-dimensional building model of the corresponding building. Among them, the top surface indication data and side surface indication data of all buildings in the target area can be used to represent the three-dimensional building complex model, that is, the top surface indication data and side surface indication data of each building in the target area can be used to represent the three-dimensional building complex model. It should be understood that all faces in the three-dimensional building complex model can be called building faces, that is, the multiple building faces included in the three-dimensional building complex model can include all faces indicated by the top surface indication data of each building (such as the top surface triangulation face) and all faces indicated by the side surface indication data of each building (here, the side); and all vertices in the three-dimensional building complex model can be called first vertices, that is, the multiple first vertices included in the three-dimensional building complex model can include all building vertices of each building.

[0091] In an embodiment of the present invention, it can be assumed that the shapes of all buildings are basically consistent from top to bottom; optionally, for any building in the target area, the electronic device can generate side indication data of any building based on the building vertex indication data of any building in accordance with the target side link order, and the side indication data of any building includes surface representation information of each side of k sides of any building, and one surface representation information includes the index of each vertex in a surface (that is, the corresponding surface can be represented by the index of each vertex in a surface), k is the number of building contour points in any building, and k is an integer greater than 1; optionally, the target side link order can be clockwise (i.e., clockwise order), or counterclockwise (i.e., counterclockwise order), etc., which is not limited to the embodiment of the present invention. Exemplarily, the indices of each bottom surface vertex in any building may be p+1, p+2, ..., p+k, and the indices of each top surface vertex in any building may be p+k+1, p+k+2, ..., p+k+k, respectively; wherein p is the initial vertex index of any building, and the number of bottom surface vertices and the number of top surface vertices in any building are both k; based on this, since the side surfaces are all rectangles (convex polygons), the k side surfaces of any building can be directly generated according to the target side surface linking order; for example, when the target side surface linking order is counterclockwise, each side surface can be linked counterclockwise, then the face representation information of the i-th side surface (i∈[1, k-1]) of any building can be f p+i p+i+1p+i+1+k p+i+k, and the face representation information of the k-th side surface can be f p+k p+1p+k+1p+k+k; wherein, f can represent a face, when m in p+m is less than or equal to k, p+m can represent the index of the mth bottom vertex among the multiple bottom vertices of any building (such as p+i or p+1 mentioned above, etc.), when m is greater than k, p+m can represent the index of the mkth top vertex among the multiple top vertices of any building (such as p+i+k mentioned above, etc.), and m is a positive integer.

[0092] Correspondingly, the electronic device can determine the vertex data of each top surface vertex in the top surface of any building from the building vertex indication data of any building; and based on the vertex data of each top surface vertex, triangulate (i.e., triangulate) the top surface of any building to obtain the top surface indication data of any building. The top surface indication data of any building may include the surface representation information of each top surface triangulation surface among multiple top surface triangulation surfaces of the top surface of any building. Optionally, the electronic device may adopt the ear-cutting method to triangulate the top surface of any building based on the vertex data of each top surface vertex to obtain the top surface indication data of any building; wherein, the ear-cutting method can correctly handle the triangulation of all simple polygons (including concave polygons), and the algorithm is relatively simple and easy to implement, and the ear-cutting method is very suitable for the triangulation of buildings; the surfaces of buildings are mostly concave polygons, and the vertices of a single building are very limited, usually not more than 10, and rarely more than 20, and the buildings are independent, and it is easy to implement parallel computing processing, which can avoid the problem of low efficiency of the ear-cutting method and unsuitability for processing large-scale data; therefore, the embodiment of the present invention adopts the ear-cutting method to realize the triangulation of building data, which can take into account the correctness and processing efficiency of triangulation, and avoid the generation of top surface triangulation surfaces outside the corresponding top surface, thereby improving the accuracy of the top surface indication data.

[0093] Optionally, the electronic device may also determine whether the number of building contour points in any building is greater than a preset contour point threshold; if the number of building contour points in any building is greater than the preset contour point threshold, then the above-mentioned vertex data based on each top surface vertex is triggered to triangulate the top surface of any building to obtain the top surface indication data of any building; if the number of building contour points in any building is less than or equal to the preset contour point threshold, then the vertex data of each top surface vertex in the top surface of any building is used to generate the top surface representation information of any building (at this time, the top surface representation information of any building may include the index of each top surface vertex in the top surface of any building, such as the top surface representation information may be expressed as f p+k+1p+k+2…p+k+k), so as to add the top surface representation information of any building to the top surface indication data of any building, and the top surface representation information of any building includes the index of each top surface vertex in the top surface of any building. Optionally, the preset contour point threshold may be set according to experience or according to actual needs, and the embodiment of the present invention does not limit this; illustratively, the preset contour point threshold may be 4, and it should be understood that when the number of building contour points in any building does not exceed 4 (i.e., less than or equal to 4), the top surface of any building is usually a simple polygon, so the index of each top surface vertex in any building can be directly output according to the target top surface sequence; optionally, the target top surface sequence can be clockwise or counterclockwise, etc., and the embodiment of the present invention does not limit this. Based on this, the embodiment of the present invention can first determine whether the building contour is a complex polygon (i.e., determine whether the number of building contour points is greater than the preset contour point threshold, and the complex polygon can be the top surface whose number of building contour points is greater than the preset contour point threshold), so as to only triangulate the complex polygon, which can effectively improve the operation efficiency.

[0094] It can be seen that the embodiment of the present invention can ignore the bottom surface of the building when processing the building part, and only generate the side and top surfaces of the building (i.e., side indication data and top surface indication data). After being subsequently merged with the terrain, the bottom surface can be directly filled in through the terrain, which can effectively save computing resources.

[0095] Further, when generating a three-dimensional terrain model of the target area based on the target terrain data, the electronic device may use the target terrain data to construct a terrain grid center point data set, the terrain grid center point data set including center point data of each grid center point in the target area, a grid center point is a center point of a grid in the target area, the center point data of a grid center point includes the center point coordinates and height of the corresponding grid center point, and the height of a grid center point is the terrain height of the grid where the corresponding grid center point is located; and based on the terrain grid center point data set, the target area is triangulated to obtain a three-dimensional terrain model of the target area (such as Figure 6As shown), the three-dimensional terrain model may include a terrain triangulation result of the target area (i.e., a terrain triangulation result may be obtained after triangulating the target area, and the terrain triangulation result may be added to the three-dimensional terrain model OBJ file to obtain a three-dimensional terrain model of the target area), and the terrain triangulation result may include the vertex coordinates of each terrain vertex in a plurality of terrain vertices (also referred to as second vertices) and the surface representation information of each terrain triangulation surface in a plurality of terrain triangulation surfaces; optionally, the terrain triangulation result may also include an index of each terrain vertex. Among them, all terrain triangulation surfaces in the three-dimensional terrain model can be called terrain surfaces, that is, the multiple terrain surfaces included in the three-dimensional terrain model can include multiple terrain triangulation surfaces; and, a second vertex corresponds to a grid center point, and the vertex coordinates of a second vertex can include the center point coordinates of the corresponding grid center point and the terrain height of the grid where the corresponding grid center point is located, that is, the vertex coordinates of a second vertex can be (x (i.e., the x coordinate of the corresponding grid center point), y (i.e., the y coordinate of the corresponding grid center point), height (i.e., the terrain height of the grid where the corresponding grid center point is located)); wherein, the terrain height of the grid where any grid center point is located is determined from the target terrain data.

[0096] Optionally, when triangulating the target area based on the terrain grid center point data set to obtain a three-dimensional terrain model of the target area, the electronic device may use a Delaunay method (a triangulation method) to triangulate the target area based on the terrain grid center point data set to obtain a three-dimensional terrain model of the target area. Optionally, the electronic device may perform two-dimensional plane triangulation processing on the target area based on the center point coordinates of each grid center point (that is, each grid center point may be used as a vertex to perform two-dimensional plane triangulation on the target area), thereby obtaining a two-dimensional terrain triangulation result, and the two-dimensional terrain triangulation result may include surface representation information of each terrain triangulation surface and the xy coordinates of each terrain vertex (that is, the center point coordinates of each grid center point); then, the terrain height of the grid where each grid center point is located may be used as the z coordinate of the terrain vertex corresponding to the corresponding grid center point to determine the vertex coordinates of each terrain vertex, thereby achieving three-dimensional terrain triangulation, and obtaining a three-dimensional terrain model of the target area; or, the electronic device may first determine the vertex coordinates of each terrain vertex in the target area (that is, the terrain vertex corresponding to each grid center point) based on the terrain grid center point data set, and triangulate the target area based on the vertex coordinates of each terrain vertex to obtain a three-dimensional terrain model, and so on. Among them, the Delaunay method can generate high-quality triangles (with better shapes and avoiding long and thin triangles), and is suitable for processing large-scale point cloud data. After optimization, the time complexity can reach O(nlogn); but the point cloud that the Delaunay method can process needs to meet specific conditions, that is, the triangle composed of three adjacent points in the point set, and the circle surrounded by its three vertices does not contain other points in the point set, while the raster data can just meet the conditions of the Delaunay method, and the raster data has more points (usually more than 100,000), so the Delaunay method can be the best choice for processing terrain raster data, thereby effectively improving the accuracy of the three-dimensional terrain model and quickly obtaining the three-dimensional terrain model.

[0097] S207, using the three-dimensional building complex model and the three-dimensional terrain model to generate a target three-dimensional surface model of the target area, the target three-dimensional surface model supports the use of atmospheric simulation tasks.

[0098] Among them, the target three-dimensional surface model supports the atmospheric simulation task, which may refer to the target three-dimensional surface model supports the atmospheric simulation task for the target area (i.e., CFD atmospheric simulation task), that is, the diffusion simulation of any substance (such as any pollutant) in the target area can be realized through the target three-dimensional surface model; for example, the target three-dimensional surface model is input into the CFD model to perform atmospheric simulation based on the target three-dimensional surface model.

[0099] For example, Figure 7As shown, after merging the 3D building complex model and the 3D terrain model, the target 3D surface model can be obtained.

[0100] The embodiment of the present invention can traverse each building in the target area after obtaining the target building data of the target area and the initial terrain data of the target area, and use the currently traversed building as the current building, the target building data includes the building indication data of each building in the target area, the initial terrain data includes the grid data of each grid in the target area, and the grid data of a grid includes the terrain height of the corresponding grid. Then, based on the building indication data and the initial terrain data of the current building, at least one first grid corresponding to the current building can be determined from the target area, and the at least one first grid corresponding to the current building includes the grid where each building contour point in the current building is located; after traversing each building in the target area, at least one first grid corresponding to each building is obtained, and the target terrain height corresponding to each building is determined based on the terrain height of each first grid in the at least one first grid corresponding to each building. Based on this, the initial terrain data can be updated based on the target terrain height corresponding to each building to obtain the target terrain data of the target area; thereby, a three-dimensional building complex model of the target area is generated based on the target building data, and a three-dimensional terrain model of the target area is generated based on the target terrain data. Furthermore, a three-dimensional building complex model and a three-dimensional terrain model can be used to generate a target three-dimensional surface model of the target area, and the target three-dimensional surface model supports atmospheric simulation tasks. It can be seen that the embodiment of the present invention can easily generate a target three-dimensional surface model, that is, the embodiment of the present invention proposes a method for generating a three-dimensional surface model for CFD atmospheric simulation tasks based on building data and terrain data, which can realize the automatic generation of a three-dimensional surface model of a building complex superimposed on terrain, and the operation is simple and efficient; and the embodiment of the present invention can update the initial terrain data to obtain the target terrain data through the target terrain height corresponding to each building, and can determine the target building height of each building based on the target terrain height corresponding to each building, thereby realizing a fusion solution of building data and terrain data at different resolutions, which can make the building height more reasonable.

[0101] Based on the description of the above-mentioned related embodiments of the method for generating a three-dimensional surface model for atmospheric simulation, the embodiment of the present invention further proposes a three-dimensional surface model generating device for atmospheric simulation, and the three-dimensional surface model generating device for atmospheric simulation can be a computer program (including program code) running in an electronic device; Figure 8 As shown, the three-dimensional surface model generation device for atmosphere simulation may include an acquisition unit 801 and a processing unit 802. The three-dimensional surface model generation device for atmosphere simulation may execute Figure 1 or Figure 2The method for generating a three-dimensional surface model for atmosphere simulation shown, that is, the device for generating a three-dimensional surface model for atmosphere simulation, can run the above-mentioned units:

[0102] An acquisition unit 801 is used to acquire target building data of a target area and to acquire initial terrain data of the target area, wherein the target building data includes building indication data of each building in the target area, and the initial terrain data includes grid data of each grid in the target area, wherein the grid data of a grid includes the terrain height of the corresponding grid;

[0103] The processing unit 802 is used to determine at least one first grid corresponding to each building in the target area based on the target building data and the initial terrain data, and determine the target terrain height corresponding to each building based on the terrain height of each first grid in the at least one first grid corresponding to each building;

[0104] The processing unit 802 is further configured to update the initial terrain data based on the target terrain height corresponding to each building to obtain the target terrain data of the target area;

[0105] The processing unit 802 is further configured to generate a three-dimensional building complex model of the target area based on the target building data; and to generate a three-dimensional terrain model of the target area based on the target terrain data;

[0106] The processing unit 802 is further used to generate a target three-dimensional surface model of the target area using the three-dimensional building complex model and the three-dimensional terrain model, and the target three-dimensional surface model supports the atmospheric simulation task.

[0107] In one implementation, the building indication data of a building includes the contour point coordinates of each building contour point in the corresponding building; when the processing unit 802 determines at least one first grid corresponding to each building in the target area based on the target building data and the initial terrain data, the processing unit 802 can be specifically used to:

[0108] Traverse each building in the target area, and use the currently traversed building as the current building;

[0109] Based on the building indication data of the current building and the initial terrain data, determining at least one first grid corresponding to the current building from the target area, wherein the at least one first grid corresponding to the current building includes a grid where each building contour point in the current building is located;

[0110] After traversing each building in the target area, at least one first grid corresponding to each building is obtained.

[0111] In another implementation manner, when the processing unit 802 determines at least one first grid corresponding to the current building in the target area based on the building indication data of the current building and the initial terrain data, it can be specifically configured to:

[0112] Determine the ground contour of the current building based on the contour point coordinates of each building contour point in the current building, wherein the ground contour of the current building includes a building contour line between any two adjacent building contour points in the current building;

[0113] Based on the surface contour of the current building and the initial terrain data, at least one first grid corresponding to the current building is determined from the target area, the at least one first grid corresponding to the current building includes the grid where the surface contour of the current building is located, and the grid where the surface contour of the current building is located includes the grid where each building contour point in the current building is located.

[0114] In another implementation manner, when the processing unit 802 updates the initial terrain data based on the target terrain height corresponding to each building to obtain the target terrain data of the target area, it can be specifically used to:

[0115] For any building in the target area, based on the initial terrain data and the building indication data of the any building, at least one second grid corresponding to the any building is determined from the target area, wherein the at least one second grid corresponding to the any building includes a grid where the any building is located and / or at least one adjacent grid of the grid where the any building is located, and the at least one adjacent grid includes a grid in the target area adjacent to any grid in the grid where the any building is located;

[0116] The target terrain height corresponding to any one of the buildings is used to update the terrain height of each second grid in at least one second grid corresponding to any one of the buildings, so as to update the initial terrain data and obtain the target terrain data of the target area.

[0117] In another embodiment, the building indication data of a building includes the contour point coordinates of each building contour point in the corresponding building and the building height indication information of the corresponding building; when the processing unit 802 generates the three-dimensional building complex model of the target area based on the target building data, it can be specifically used to:

[0118] Determine the target building height of each building based on the target terrain height corresponding to each building and the building height indication information of each building;

[0119] Determine building vertex indication data of each building based on the target building height of each building and the contour point coordinates of each building contour point in each building, wherein the building vertex indication data of one building includes vertex data of each building vertex in the corresponding building, and the vertex data of one building vertex includes the vertex coordinates of the corresponding building vertex;

[0120] Based on the building vertex indication data of each building, respectively determine the top surface indication data and the side surface indication data of each building;

[0121] The top surface indication data and side surface indication data of each building are used to generate a three-dimensional building complex model of the target area.

[0122] In another implementation manner, when the processing unit 802 generates the three-dimensional terrain model of the target area based on the target terrain data, it can be specifically used to:

[0123] Using the target terrain data, construct a terrain grid center point data set, the terrain grid center point data set includes center point data of each grid center point in the target area, a grid center point is the center point of a grid in the target area, the center point data of a grid center point includes the center point coordinates and height of the corresponding grid center point, and the height of a grid center point is the terrain height of the grid where the corresponding grid center point is located;

[0124] Based on the terrain grid center point data set, the target area is triangulated to obtain a three-dimensional terrain model of the target area.

[0125] In another embodiment, the three-dimensional building complex model includes vertex data of each first vertex among a plurality of first vertices and surface representation information of each building surface among a plurality of building surfaces, the three-dimensional terrain model includes vertex data of each second vertex among a plurality of second vertices and surface representation information of each terrain surface among a plurality of terrain surfaces, the surface representation information of a surface includes an index of each vertex in the corresponding surface, and the vertex data of a vertex includes vertex coordinates and an index of the corresponding vertex; when the processing unit 802 uses the three-dimensional building complex model and the three-dimensional terrain model to generate the target three-dimensional surface model of the target area, it can be specifically used to:

[0126] Reorder the plurality of first vertices and the plurality of second vertices to obtain a reordering index of each first vertex and a reordering index of each second vertex;

[0127] The three-dimensional building complex model is updated by using the reordered index of each first vertex to obtain an updated three-dimensional building complex model, so as to update the index of each first vertex in the three-dimensional building complex model and the index in the surface representation information of each building surface; the three-dimensional terrain model is updated by using the reordered index of each second vertex to obtain an updated three-dimensional terrain model, so as to update the index of each second vertex in the three-dimensional terrain model and the index in the surface representation information of each terrain surface;

[0128] The updated three-dimensional building complex model and the updated three-dimensional terrain model are merged to obtain a target three-dimensional surface model of the target area, so as to realize the generation of the target three-dimensional surface model of the target area.

[0129] According to one embodiment of the present invention, Figure 8 Each unit in the three-dimensional surface model generation device for atmosphere simulation shown can be separately or completely combined into one or several other units to form, or one (some) of the units can be further divided into multiple smaller units in function to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be realized by multiple units, or the functions of multiple units can be realized by one unit. In other embodiments of the present invention, any three-dimensional surface model generation device for atmosphere simulation can also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0130] According to another embodiment of the present invention, the program can be executed by running a program on a general electronic device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 1 or Figure 2 A computer program (including program code) for each step involved in the corresponding method shown in Figure 8 The three-dimensional surface model generation device for atmospheric simulation shown in and the three-dimensional surface model generation method for atmospheric simulation of the embodiment of the present invention are implemented. The computer program can be recorded on a computer storage medium, for example, and loaded into the above-mentioned electronic device through the computer storage medium and run therein.

[0131] Based on the description of the above method embodiment and device embodiment, the exemplary embodiment of the present invention further provides an electronic device, including: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to enable the electronic device to perform the method according to the embodiment of the present invention when executed by the at least one processor.

[0132] Exemplary embodiments of the present invention also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present invention.

[0133] An exemplary embodiment of the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform a method according to an embodiment of the present invention.

[0134] refer to Fig. 9 , a block diagram of an electronic device 900 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0135] like Fig. 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0136] A plurality of components in the electronic device 900 are connected to the I / O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 may be any type of device capable of inputting information to the electronic device 900, and the input unit 906 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 907 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 908 may include, but is not limited to, a disk, an optical disk. The communication unit 909 allows the electronic device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0137] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above. For example, in some embodiments, a three-dimensional surface model generation method for atmospheric simulation may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. In some embodiments, the computing unit 901 may be configured to perform a three-dimensional surface model generation method for atmospheric simulation by any other appropriate means (e.g., by means of firmware).

[0138] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0139] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0140] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0141] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0142] Furthermore, it should be understood that what is disclosed above is only a preferred embodiment of the present invention, and certainly cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A method for generating a three-dimensional surface model for atmospheric simulation, characterized in that: include: Acquire target building data of a target area, and acquire initial terrain data of the target area, wherein the target building data includes building indication data of each building in the target area, and the initial terrain data includes grid data of each grid in the target area, and the grid data of a grid includes the terrain height of the corresponding grid; Based on the target building data and the initial terrain data, at least one first grid corresponding to each building is determined from the target area, and based on the terrain height of each first grid in the at least one first grid corresponding to each building, the target terrain height corresponding to each building is determined; wherein the building indication data of a building includes the contour point coordinates of each building contour point in the corresponding building, and the at least one first grid corresponding to a building includes the grid where each building contour point in the corresponding building is located or the grid where the surface contour of the corresponding building is located; Based on the target terrain height corresponding to each building, the initial terrain data is updated to obtain the target terrain data of the target area, including: for any building in the target area, based on the initial terrain data and the building indication data of any building, at least one second grid corresponding to any building is determined from the target area, the at least one second grid corresponding to any building includes the grid where the any building is located and / or at least one adjacent grid of the grid where the any building is located, and the at least one adjacent grid includes a grid in the target area adjacent to any grid in the grid where the any building is located; Using the target terrain height corresponding to any one of the buildings, updating the terrain height of each second grid in at least one second grid corresponding to any one of the buildings, so as to update the initial terrain data and obtain the target terrain data of the target area; Based on the target building data, a three-dimensional building complex model of the target area is generated; and based on the target terrain data, a three-dimensional terrain model of the target area is generated; The three-dimensional building complex model and the three-dimensional terrain model are used to generate a target three-dimensional surface model of the target area, and the target three-dimensional surface model supports atmospheric simulation tasks.

2. The method according to claim 1, characterized in that The step of determining at least one first grid corresponding to each building in the target area based on the target building data and the initial terrain data comprises: Traverse each building in the target area, and use the currently traversed building as the current building; Based on the building indication data of the current building and the initial terrain data, determining at least one first grid corresponding to the current building from the target area, wherein the at least one first grid corresponding to the current building includes a grid where each building contour point in the current building is located; After traversing each building in the target area, at least one first grid corresponding to each building is obtained.

3. The method according to claim 2, characterized in that The determining, based on the building indication data of the current building and the initial terrain data, at least one first grid corresponding to the current building in the target area comprises: Determine the ground contour of the current building based on the contour point coordinates of each building contour point in the current building, wherein the ground contour of the current building includes a building contour line between any two adjacent building contour points in the current building; Based on the surface contour of the current building and the initial terrain data, at least one first grid corresponding to the current building is determined from the target area, the at least one first grid corresponding to the current building includes the grid where the surface contour of the current building is located, and the grid where the surface contour of the current building is located includes the grid where each building contour point in the current building is located.

4. The method according to any one of claims 1 to 3, characterized in that: The building indication data of a building includes the contour point coordinates of each building contour point in the corresponding building and the building height indication information of the corresponding building; the generating of the three-dimensional building complex model of the target area based on the target building data includes: Determine the target building height of each building based on the target terrain height corresponding to each building and the building height indication information of each building; Determine building vertex indication data of each building based on the target building height of each building and the contour point coordinates of each building contour point in each building, wherein the building vertex indication data of one building includes vertex data of each building vertex in the corresponding building, and the vertex data of one building vertex includes the vertex coordinates of the corresponding building vertex; Based on the building vertex indication data of each building, respectively determine the top surface indication data and the side surface indication data of each building; The top surface indication data and side surface indication data of each building are used to generate a three-dimensional building complex model of the target area.

5. The method according to any one of claims 1 to 3, characterized in that: The step of generating a three-dimensional terrain model of the target area based on the target terrain data includes: Using the target terrain data, construct a terrain grid center point data set, the terrain grid center point data set includes center point data of each grid center point in the target area, a grid center point is the center point of a grid in the target area, the center point data of a grid center point includes the center point coordinates and height of the corresponding grid center point, and the height of a grid center point is the terrain height of the grid where the corresponding grid center point is located; Based on the terrain grid center point data set, the target area is triangulated to obtain a three-dimensional terrain model of the target area.

6. The method according to any one of claims 1 to 3, characterized in that: The three-dimensional building complex model includes vertex data of each first vertex among a plurality of first vertices and surface representation information of each building surface among a plurality of building surfaces, the three-dimensional terrain model includes vertex data of each second vertex among a plurality of second vertices and surface representation information of each terrain surface among a plurality of terrain surfaces, the surface representation information of a surface includes an index of each vertex in the corresponding surface, and the vertex data of a vertex includes vertex coordinates and an index of the corresponding vertex; The step of using the three-dimensional building complex model and the three-dimensional terrain model to generate a target three-dimensional surface model of the target area includes: Reorder the plurality of first vertices and the plurality of second vertices to obtain a reordering index of each first vertex and a reordering index of each second vertex; The three-dimensional building complex model is updated by using the reordered index of each first vertex to obtain an updated three-dimensional building complex model, so as to update the index of each first vertex in the three-dimensional building complex model and the index in the surface representation information of each building surface; the three-dimensional terrain model is updated by using the reordered index of each second vertex to obtain an updated three-dimensional terrain model, so as to update the index of each second vertex in the three-dimensional terrain model and the index in the surface representation information of each terrain surface; The updated three-dimensional building complex model and the updated three-dimensional terrain model are merged to obtain a target three-dimensional surface model of the target area, so as to realize the generation of the target three-dimensional surface model of the target area.

7. A three-dimensional surface model generation device for atmospheric simulation, characterized in that: The device comprises: an acquisition unit, configured to acquire target building data of a target area and initial terrain data of the target area, wherein the target building data includes building indication data of each building in the target area, and the initial terrain data includes grid data of each grid in the target area, wherein the grid data of a grid includes a terrain height of the corresponding grid; A processing unit is used to determine at least one first grid corresponding to each building in the target area based on the target building data and the initial terrain data, and determine the target terrain height corresponding to each building based on the terrain height of each first grid in the at least one first grid corresponding to each building; wherein the building indication data of a building includes the contour point coordinates of each building contour point in the corresponding building, and the at least one first grid corresponding to a building includes the grid where each building contour point in the corresponding building is located or the grid where the surface contour of the corresponding building is located; The processing unit is further used to update the initial terrain data based on the target terrain height corresponding to each building to obtain the target terrain data of the target area, including: for any building in the target area, based on the initial terrain data and the building indication data of any building, determining at least one second grid corresponding to any building from the target area, wherein the at least one second grid corresponding to any building includes the grid where the any building is located and / or at least one adjacent grid of the grid where the any building is located, and the at least one adjacent grid includes a grid in the target area adjacent to any grid in the grid where the any building is located; using the target terrain height corresponding to the any building, updating the terrain height of each second grid in the at least one second grid corresponding to the any building, so as to achieve updating of the initial terrain data and obtain the target terrain data of the target area; The processing unit is further used to generate a three-dimensional building complex model of the target area based on the target building data; and to generate a three-dimensional terrain model of the target area based on the target terrain data; The processing unit is further used to generate a target three-dimensional surface model of the target area using the three-dimensional building complex model and the three-dimensional terrain model, and the target three-dimensional surface model supports atmospheric simulation tasks.

8. An electronic device, characterized in that: include: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Method and system for establishing three-dimensional terrain and building model

    CN113538685A

  • Gravity topography correction precision constraint method and system

    CN117592151A