A dynamic generation method for mesh surface fitting terrain

The three-dimensional model is obtained through the drone and the coordinate point set is extracted using the lead-ray method to create a Mesh surface that fits the terrain, solving the problem of low fitting efficiency between the Mesh surface and the terrain in the existing technology, and achieving high-quality reality of the three-dimensional scene Sensitive and dynamic adaptability.

CN118334261BActive Publication Date: 2024-11-12CHINA JK INST OF ENG INVESTIGATION & DESIGN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410472324.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-19
Publication Date
2024-11-12
Estimated Expiration
2044-04-19

AI Technical Summary

Technical Problem

In the prior art, the precise dynamic fit between the Mesh surface and the terrain has problems such as large workload, inaccurate and low efficiency in three-dimensional scenes, making it difficult to achieve realistic terrain characteristics and interactive experience.

Method used

The drone is used to obtain the three-dimensional model of the administrative region to be tested. By extracting the set of matrix coordinate points in the external regular quadrilateral, using the lead-ray method to extract the set of matrix coordinate points, and creating a Mesh surface that fits the terrain based on the triangle vertices and altitude values, realizing The dynamic fit between the Mesh surface and the terrain.

Benefits of technology

It realizes the fast and accurate fit between the Mesh surface and the terrain, improves the realism and interactive experience of the three-dimensional scene, and can dynamically generate Mesh surfaces in a real-time environment, adapt to changes in the administrative division hierarchical database, and ensures high-quality visual effects and dynamics. Adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334261B_ABST
    Figure CN118334261B_ABST
Patent Text Reader

Abstract

This invention discloses a method for dynamically generating a mesh surface that fits the terrain. The method includes the following steps: 1. Obtaining a 3D model of the administrative region to be measured using a UAV; 2. Extracting the set of matrix coordinate points from the circumscribed regular quadrilateral of the administrative region; 3. Extracting the set of matrix coordinate points within the administrative region using the ray casting method; 4. Obtaining the vertex indices of all triangles in the set of matrix coordinate points within the administrative region; 5. Extracting the height values ​​of the set of matrix coordinate points within the administrative region; 6. Creating a mesh surface that fits the terrain based on the triangle vertices and their elevation values. This invention features simple steps and a reasonable design, enabling rapid and accurate dynamic fitting of the mesh surface to the terrain of the administrative region to enhance the realism of the 3D scene and facilitate subsequent realistic environmental interactions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of surveying and mapping geographic three-dimensional models, and in particular relates to a method for dynamically generating a Mesh surface that fits the terrain. Background Art

[0002] In the field of modern virtual reality and geographic information systems, realistic terrain is an important component of achieving an immersive user experience. In three-dimensional scenes, in order to achieve realistic environmental simulation and interaction, it is often necessary to accurately fit the Mesh surface to the terrain in order to present more realistic terrain features and interactive experience. However, due to the complexity of the terrain, it has always been a technical challenge to achieve accurate dynamic fit of the Mesh surface on the terrain. Although the Mesh surface and the terrain are in the same range from a top view, there is a height difference between the two from a side view, and the height difference changes with the terrain.

[0003] Currently, many 3D scenes use manual editing, preset heights and other methods to achieve the fit of mesh surfaces to terrain, but these methods have problems such as large workload, inaccuracy and low efficiency.

[0004] Therefore, a well-designed dynamic generation method for mesh surfaces fitting the terrain is needed, which can quickly and accurately dynamically fit the mesh surface to the terrain of the administrative area to be tested, so as to enhance the realism of the three-dimensional scene of the administrative area to be tested and facilitate the subsequent realization of realistic environmental interaction. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a method for dynamically generating a Mesh surface to fit the terrain in view of the deficiencies in the above-mentioned prior art. The method has simple steps and reasonable design, and can quickly and accurately dynamically fit the Mesh surface to the terrain of the administrative area to be tested, so as to enhance the realism of the three-dimensional scene of the administrative area to be tested, and facilitate the subsequent realization of realistic environmental interaction.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for dynamically generating a Mesh surface that fits the terrain, characterized in that the method comprises the following steps:

[0007] Step 1: Use drones to obtain the 3D model of the administrative area to be tested:

[0008] Step 101: Use a drone equipped with a five-lens camera to collect aerial images of the administrative district to be tested using an oblique photography technique, obtain multiple images of the administrative district to be tested and POS data corresponding to the multiple images of the administrative district to be tested, and transmit them to a computer;

[0009] Step 102, using a computer to import multiple images of administrative regions to be measured and POS data corresponding to the multiple images of administrative regions to be measured into Context Capture software to obtain a three-dimensional model of the administrative region to be measured;

[0010] Step 2: Extract the matrix coordinate point set in the regular quadrilateral circumscribing the administrative area to be tested:

[0011] Step 201: Use a computer to import the three-dimensional model of the administrative area to be tested into Unity3D software to generate a three-dimensional model;

[0012] Step 202: using a computer in Unity3D software, click the mouse in the three-dimensional model in step 201 to obtain the position coordinates of the mouse selection point, and record them as the interaction point coordinates;

[0013] Step 203: using a computer to obtain the district data containing the coordinates of the interaction point selected by the mouse from the administrative district division level MYSQL database, and filtering out the coordinates of the edge vertices of the administrative district to be tested from the district data to obtain a set of the coordinates of the edge vertices of the administrative district to be tested;

[0014] Step 204: using a computer to convert the vertex coordinate set of the edge of the administrative area to be tested into the UnityVector3 coordinate set of the vertex of the edge of the administrative area to be tested in Unity3D software;

[0015] Step 205, using a computer in Unity3D software to obtain the minimum and maximum coordinate points from the UnityVector3 coordinate set of the edge vertices of the administrative area to be tested;

[0016] Step 206: Using a computer in Unity3D software, calculate the four vertices of the circumscribed regular quadrilateral according to the minimum and maximum coordinate points, and record the regular quadrilateral enclosed by the four vertices as the regular quadrilateral to be determined;

[0017] Step 207, using a computer in Unity3D software to obtain a set of matrix coordinate points separated by a set distance minUnit in the regular quadrilateral to be determined;

[0018] Step 3: Use the ray method to extract the matrix coordinate point set in the administrative area to be tested;

[0019] Step 4: Get the vertex indices of all triangles in the matrix coordinate point set within the administrative area to be tested:

[0020] Step 401, using a computer to set the matrix coordinate point set in the administrative area to be tested as S, any coordinate point in the matrix coordinate point set S in the administrative area to be tested is recorded as A, and the projection coordinates of the coordinate point A on the XZ plane are set as (Xa, Za);

[0021] Step 402: Use a computer to determine whether there is a coordinate point B (Xa+minUnit, Za) or a coordinate point C (Xa+minUnit, Za+minUnit) in the matrix coordinate point set S of the administrative area to be tested. If there is a coordinate point B and a coordinate point C, then record point A, point B and point C as vertex indices of the triangle.

[0022] Step 403, repeating steps 401 and 402 for multiple times, completing the traversal of all coordinate points in the matrix coordinate point set S in the administrative area to be tested, and obtaining the vertex indexes of all triangles;

[0023] Step 5: Extract the height value of the matrix coordinate point set in the administrative area to be tested:

[0024] Step 501: using a computer to convert each point in the matrix coordinate point set in the administrative area to be tested from UnityVector3 coordinates to longitude and latitude coordinates in Unity3D software, so as to obtain the longitude and latitude coordinates of each point in the matrix coordinate point set in the administrative area to be tested;

[0025] Step 502: Using a computer, the longitude and latitude coordinates of each point in the matrix coordinate point set in the administrative area to be tested are passed into the Mapbox Ti lequery API to obtain the altitude value of each point;

[0026] Step 6: Create a Mesh surface that fits the terrain based on the triangle vertices and altitude values:

[0027] Step 601: Use a computer to create a GameObject object in Unity3D software, and add a mesh filter and a mesh renderer component to the object to create a Mesh object;

[0028] Step 602: using a computer in Unity3D software to assign materials, shaders, longitude and latitude values ​​and altitude values ​​of each point in the matrix coordinate point set in the administrative area to be tested, and vertex indexes of all triangles to the Mesh object in sequence;

[0029] Step 603: Use a computer to transfer the Mesh object to MeshRenderer in Unity3D software to create a Mesh surface model that fits the terrain of the administrative area to be measured.

[0030] The above-mentioned method for dynamically generating a Mesh surface conforming to terrain is characterized in that: Step 102, the specific process is as follows:

[0031] Step 1021: using a computer to import the multiple administrative district images to be tested and the POS data corresponding to the multiple administrative district images to be tested into the Context Capture software, and using the Context Capture software to perform aerial triangulation on the multiple administrative district images to be tested and the POS data corresponding to the multiple administrative district images to be tested, so as to obtain the point cloud data of the administrative district to be tested;

[0032] Step 1022: Use a computer to use the “Regular planar grid” tool in the Context Capture software, set the Tile size in the “Regular planar grid” tool to 80-130, and operate the “Reconstruction” tool to process the point cloud data of the administrative district to be tested, so as to obtain a three-dimensional model of the administrative district to be tested.

[0033] The above-mentioned method for dynamically generating a Mesh surface conforming to terrain is characterized by: Step 3, the specific process is as follows:

[0034] Step 301: Use a computer to record the UnityVector3 coordinate set of the edge vertex of the administrative area to be tested in step 204 as p, where p = [p 1 ,....,p i ,....,p I ], p i represents the coordinates of the ith vertex in the UnityVector3 coordinate set of the edge vertex of the administrative area to be tested, where i and I are both positive integers and 1≤i≤I; p i =(x i ,y i ,z i ), x i ,y i ,z i Represents the X-axis, Y-axis, and Z-axis coordinates of the i-th vertex; the positive direction of the X-axis is east, the positive direction of the Z-axis is north, and the Y-axis is perpendicular to the XZ plane formed by the X-axis and the Z-axis and points upward;

[0035] Step 302: Use a computer to set any edge of the administrative division to be tested as (p i ,p i+1 ), and obtain the administrative area polygon to be tested; wherein the center point of the administrative area polygon to be tested is recorded as P0;

[0036] And set any point to be judged in the matrix coordinate point set as q, and q = (x, y, z), and draw a ray from the point to be judged q to the direction of P0. If the ray of the point to be judged q is aligned with the edge (p i ,p i+1), the number of intersections a is increased by 1; wherein x, y, z represent the coordinates of the point to be determined on the X-axis, Y-axis, and Z-axis; the initial value of the number of intersections a is zero;

[0037] Step 303: Use a computer to determine the number of intersections a. If the number of intersections a is an odd number, the point to be determined q=(x, y, z) is located inside or on the edge of the administrative region polygon to be determined; if the number of intersections a is an even number, the point to be determined q=(x, y, z) is located outside the administrative region polygon to be determined;

[0038] Step 304, repeating steps 301 to 303 multiple times, traversing and judging each point to be judged in the matrix coordinate point set, obtaining the matrix coordinate point set within and on the edge of the administrative area to be tested, and recording it as the matrix coordinate point set within the administrative area to be tested.

[0039] Compared with the prior art, the present invention has the following advantages:

[0040] 1. The dynamic generation method of the Mesh surface fitting the terrain of the present invention has simple steps, is easy to implement and easy to operate. By inputting the three-dimensional model of the administrative area to be tested obtained by the drone, the mesh surface can be quickly and efficiently fitted to the terrain, ensuring high-quality visual effects and performance, and solving the drawbacks of existing manual editing, preset height and other methods.

[0041] 2. The dynamic generation method of the Mesh surface fitting the terrain of the present invention is easy to operate and has good effect. First, a three-dimensional model of the administrative area to be tested is obtained by using a drone, and then the matrix coordinate point set in the circumscribed regular quadrilateral of the administrative area to be tested is extracted. Then, the matrix coordinate point set in the administrative area to be tested is extracted by using the ray method, the vertex indexes of all triangles in the matrix coordinate point set in the administrative area to be tested are obtained, and the height value of the matrix coordinate point set in the administrative area to be tested is extracted. Finally, a Mesh surface fitting the terrain is created according to the triangle vertices and altitude values. The Mesh surface can be automatically fitted in batches so that the Mesh surface fits the terrain when viewed from the top view and the side view.

[0042] 3. The present invention is different from the traditional static terrain generation method. The present invention allows the dynamic generation of Mesh in a real-time environment and performs real-time updates when the administrative division level MYSQL database data changes. This real-time performance ensures the dynamic adaptability of the terrain.

[0043] 4. The present invention extracts the matrix coordinate point set in the circumscribed regular quadrilateral of the administrative area to be tested from the administrative area division hierarchy MYSQL database, and uses the ray method to extract the matrix coordinate point set in the administrative area to be tested. Finally, the matrix coordinate point set in the administrative area to be tested is judged to obtain the vertex indexes of all triangles. Through the vertices and height values ​​of the triangles, the height value is introduced to achieve perfect fit between the Mesh and the terrain.

[0044] 5. The present invention creates a Mesh surface that fits the terrain based on triangle vertices and altitude values, so that the dynamically generated Mesh can be processed according to actual terrain data, which can achieve higher quality visual effects, facilitate subsequent realistic environmental interaction, and facilitate subsequent users to enjoy realistic terrain details in the virtual environment.

[0045] In summary, the method of the present invention has simple steps and reasonable design, and can quickly and accurately dynamically fit the Mesh surface to the terrain of the administrative area to be tested, so as to enhance the realism of the three-dimensional scene of the administrative area to be tested, and facilitate the subsequent realization of realistic environmental interaction.

[0046] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a flowchart of the present invention. DETAILED DESCRIPTION

[0048] like Figure 1 A method for dynamically generating a Mesh surface that fits the terrain is shown, the method comprising the following steps:

[0049] Step 1: Use drones to obtain the 3D model of the administrative area to be tested:

[0050] Step 101: Use a drone equipped with a five-lens camera to collect aerial images of the administrative district to be tested using an oblique photography technique, obtain multiple images of the administrative district to be tested and POS data corresponding to the multiple images of the administrative district to be tested, and transmit them to a computer;

[0051] Step 102, using a computer to import multiple images of administrative regions to be measured and POS data corresponding to the multiple images of administrative regions to be measured into Context Capture software to obtain a three-dimensional model of the administrative region to be measured;

[0052] Step 2: Extract the matrix coordinate point set in the regular quadrilateral circumscribing the administrative area to be tested:

[0053] Step 201: Use a computer to import the three-dimensional model of the administrative area to be tested into Unity3D software to generate a three-dimensional model;

[0054] Step 202: using a computer in Unity3D software, click the mouse in the three-dimensional model in step 201 to obtain the position coordinates of the mouse selection point, and record them as the interaction point coordinates;

[0055] Step 203: using a computer to obtain the district data containing the coordinates of the interaction point selected by the mouse from the administrative district division level MYSQL database, and filtering out the coordinates of the edge vertices of the administrative district to be tested from the district data to obtain a set of the coordinates of the edge vertices of the administrative district to be tested;

[0056] Step 204: using a computer to convert the vertex coordinate set of the edge of the administrative area to be tested into the UnityVector3 coordinate set of the vertex of the edge of the administrative area to be tested in Unity3D software;

[0057] Step 205, using a computer in Unity3D software to obtain the minimum and maximum coordinate points from the UnityVector3 coordinate set of the edge vertices of the administrative area to be tested;

[0058] Step 206: Using a computer in Unity3D software, calculate the four vertices of the circumscribed regular quadrilateral according to the minimum and maximum coordinate points, and record the regular quadrilateral enclosed by the four vertices as the regular quadrilateral to be determined;

[0059] Step 207, using a computer in Unity3D software to obtain a set of matrix coordinate points separated by a set distance minUnit in the regular quadrilateral to be determined;

[0060] Step 3: Use the ray method to extract the matrix coordinate point set in the administrative area to be tested;

[0061] Step 4: Get the vertex indices of all triangles in the matrix coordinate point set within the administrative area to be tested:

[0062] Step 401, using a computer to set the matrix coordinate point set in the administrative area to be tested as S, any coordinate point in the matrix coordinate point set S in the administrative area to be tested is recorded as A, and the projection coordinates of the coordinate point A on the XZ plane are set as (Xa, Za);

[0063] Step 402: Use a computer to determine whether there is a coordinate point B (Xa+minUnit, Za) or a coordinate point C (Xa+minUnit, Za+minUnit) in the matrix coordinate point set S of the administrative area to be tested. If there is a coordinate point B and a coordinate point C, then record point A, point B and point C as vertex indices of the triangle.

[0064] Step 403, repeating steps 401 and 402 for multiple times, completing the traversal of all coordinate points in the matrix coordinate point set S in the administrative area to be tested, and obtaining the vertex indexes of all triangles;

[0065] Step 5: Extract the height value of the matrix coordinate point set in the administrative area to be tested:

[0066] Step 501: using a computer to convert each point in the matrix coordinate point set in the administrative area to be tested from UnityVector3 coordinates to longitude and latitude coordinates in Unity3D software, so as to obtain the longitude and latitude coordinates of each point in the matrix coordinate point set in the administrative area to be tested;

[0067] Step 502: Using a computer, the longitude and latitude coordinates of each point in the matrix coordinate point set in the administrative area to be tested are passed into the Mapbox Ti lequery API to obtain the altitude value of each point;

[0068] Step 6: Create a Mesh surface that fits the terrain based on the triangle vertices and altitude values:

[0069] Step 601: Use a computer to create a GameObject object in Unity3D software, and add a mesh filter and a mesh renderer component to the object to create a Mesh object;

[0070] Step 602: using a computer in Unity3D software to assign materials, shaders, longitude and latitude values ​​and altitude values ​​of each point in the matrix coordinate point set in the administrative area to be tested, and vertex indexes of all triangles to the Mesh object in sequence;

[0071] Step 603: Use a computer to transfer the Mesh object to MeshRenderer in Unity3D software to create a Mesh surface model that fits the terrain of the administrative area to be measured.

[0072] In this embodiment, step 102, the specific process is as follows:

[0073] Step 1021: using a computer to import the multiple administrative district images to be tested and the POS data corresponding to the multiple administrative district images to be tested into the Context Capture software, and using the Context Capture software to perform aerial triangulation on the multiple administrative district images to be tested and the POS data corresponding to the multiple administrative district images to be tested, so as to obtain the point cloud data of the administrative district to be tested;

[0074] Step 1022: Use a computer to use the “Regular planar grid” tool in the Context Capture software, set the Tile size in the “Regular planar grid” tool to 80-130, and operate the “Reconstruction” tool to process the point cloud data of the administrative district to be tested, so as to obtain a three-dimensional model of the administrative district to be tested.

[0075] In this embodiment, step three, the specific process is as follows:

[0076] Step 301: Use a computer to record the UnityVector3 coordinate set of the edge vertex of the administrative area to be tested in step 204 as p, where p = [p 1 ,....,p i ,....,p I ], p i represents the coordinates of the ith vertex in the UnityVector3 coordinate set of the edge vertex of the administrative area to be tested, where i and I are both positive integers and 1≤i≤I; p i =(x i ,y i ,z i ), x i ,y i ,z i Represents the X-axis, Y-axis, and Z-axis coordinates of the i-th vertex; the positive direction of the X-axis is east, the positive direction of the Z-axis is north, and the Y-axis is perpendicular to the XZ plane formed by the X-axis and the Z-axis and points upward;

[0077] Step 302: Use a computer to set any edge of the administrative division to be tested as (p i ,p i+1 ), and obtain the administrative area polygon to be tested; wherein the center point of the administrative area polygon to be tested is recorded as P0;

[0078] And set any point to be judged in the matrix coordinate point set as q, and q = (x, y, z), and draw a ray from the point to be judged q to the direction of P0. If the ray of the point to be judged q is aligned with the edge (p i ,p i+1 ), the number of intersections a is increased by 1; wherein x, y, z represent the coordinates of the point to be determined on the X-axis, Y-axis, and Z-axis; the initial value of the number of intersections a is zero;

[0079] Step 303: Use a computer to determine the number of intersections a. If the number of intersections a is an odd number, the point to be determined q=(x, y, z) is located inside or on the edge of the administrative region polygon to be determined; if the number of intersections a is an even number, the point to be determined q=(x, y, z) is located outside the administrative region polygon to be determined;

[0080] Step 304, repeating steps 301 to 303 multiple times, traversing and judging each point to be judged in the matrix coordinate point set, obtaining the matrix coordinate point set within and on the edge of the administrative area to be tested, and recording it as the matrix coordinate point set within the administrative area to be tested.

[0081] In this embodiment, it should be noted that the center point P0 within the administrative region polygon to be tested in step 302 is the average value of the sum of coordinates of all vertices of the edge of the administrative region to be tested.

[0082] In this embodiment, the distance minUnit is set to a value of 1 meter.

[0083] In this embodiment, it should be noted that the administrative district division level MYSQL database is an existing conventional database.

[0084] In this embodiment, it should be noted that in step 203, the coordinates of the interaction point are first converted into longitude and latitude coordinates, and the district data containing the coordinates of the interaction point are obtained from the administrative district division level MYSQL database according to the longitude and latitude coordinates, and the coordinates of the edge vertices of the administrative district to be tested are screened out from the district data; wherein the coordinates of the edge vertices of the administrative district to be tested are longitude and latitude coordinates;

[0085] In step 204, all Y-axis values ​​of the UnityVector3 coordinate set of the edge vertices of the administrative area to be tested are set to 0;

[0086] In this embodiment, it should be noted that the minimum coordinate point in step 205 is the point with the minimum X-axis and Z-axis coordinates, and the maximum coordinate point is the point with the maximum X-axis and Z-axis coordinates.

[0087] In summary, the method of the present invention has simple steps and reasonable design, and can quickly and accurately dynamically fit the Mesh surface to the terrain of the administrative area to be tested, so as to enhance the realism of the three-dimensional scene of the administrative area to be tested, and facilitate the subsequent realization of realistic environmental interaction.

[0088] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any way. Any simple modification, change and equivalent structural change made to the above embodiment based on the technical essence of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A method for dynamically generating a Mesh surface that fits the terrain, characterized in that: The method comprises the following steps: Step 1: Use drones to obtain the 3D model of the administrative area to be tested: Step 101: Use a drone equipped with a five-lens camera to collect aerial images of the administrative district to be tested using an oblique photography technique, obtain multiple images of the administrative district to be tested and POS data corresponding to the multiple images of the administrative district to be tested, and transmit them to a computer; Step 102, using a computer to import multiple images of administrative regions to be measured and POS data corresponding to the multiple images of administrative regions to be measured into Context Capture software to obtain a three-dimensional model of the administrative region to be measured; Step 2: Extract the matrix coordinate point set in the regular quadrilateral circumscribing the administrative area to be tested: Step 201: Use a computer to import the three-dimensional model of the administrative area to be tested into Unity3D software to generate a three-dimensional model; Step 202: using a computer in Unity3D software, click the mouse in the three-dimensional model in step 201 to obtain the position coordinates of the mouse selection point, and record them as the interaction point coordinates; Step 203: using a computer to obtain the district data containing the coordinates of the interaction point selected by the mouse from the administrative district division level MYSQL database, and filtering out the coordinates of the edge vertices of the administrative district to be tested from the district data to obtain a set of the coordinates of the edge vertices of the administrative district to be tested; Step 204: using a computer to convert the vertex coordinate set of the edge of the administrative area to be tested into the UnityVector3 coordinate set of the vertex of the edge of the administrative area to be tested in Unity3D software; Step 205, using a computer in Unity3D software to obtain the minimum and maximum coordinate points from the UnityVector3 coordinate set of the edge vertices of the administrative area to be tested; Step 206: Using a computer in Unity3D software, calculate the four vertices of the circumscribed regular quadrilateral according to the minimum and maximum coordinate points, and record the regular quadrilateral enclosed by the four vertices as the regular quadrilateral to be determined; Step 207, using a computer in Unity3D software to obtain a set of matrix coordinate points separated by a set distance minUnit in the regular quadrilateral to be determined; Step 3: Use the ray method to extract the matrix coordinate point set in the administrative area to be tested; Step 4: Get the vertex indices of all triangles in the matrix coordinate point set within the administrative area to be tested: Step 401, using a computer to set the matrix coordinate point set in the administrative area to be tested as S, any coordinate point in the matrix coordinate point set S in the administrative area to be tested is recorded as A, and the projection coordinates of the coordinate point A on the XZ plane are set as (Xa, Za); Step 402: Use a computer to determine whether there is a coordinate point B (Xa+minUnit, Za) or a coordinate point C (Xa+minUnit, Za+minUnit) in the matrix coordinate point set S of the administrative area to be tested. If there is a coordinate point B and a coordinate point C, then record point A, point B and point C as vertex indices of the triangle. Step 403, repeating steps 401 and 402 for multiple times, completing the traversal of all coordinate points in the matrix coordinate point set S in the administrative area to be tested, and obtaining the vertex indexes of all triangles; Step 5: Extract the height value of the matrix coordinate point set in the administrative area to be tested: Step 501: using a computer to convert each point in the matrix coordinate point set in the administrative area to be tested from UnityVector3 coordinates to longitude and latitude coordinates in Unity3D software, so as to obtain the longitude and latitude coordinates of each point in the matrix coordinate point set in the administrative area to be tested; Step 502: Using a computer, the longitude and latitude coordinates of each point in the matrix coordinate point set in the administrative area to be tested are passed into the Mapbox Tilequery API to obtain the altitude value of each point; Step 6: Create a Mesh surface that fits the terrain based on the triangle vertices and altitude values: Step 601: Use a computer to create a GameObject object in Unity3D software, and add a mesh filter and a mesh renderer component to the object to create a Mesh object; Step 602: using a computer in Unity3D software to assign materials, shaders, longitude and latitude values ​​and altitude values ​​of each point in the matrix coordinate point set in the administrative area to be tested, and vertex indexes of all triangles to the Mesh object in sequence; Step 603: using a computer to transfer the Mesh object to MeshRenderer in Unity3D software to create a Mesh surface model that fits the terrain of the administrative area to be measured; Step 3: The specific process is as follows: Step 301: Use a computer to record the UnityVector3 coordinate set of the edge vertices of the administrative area to be tested in step 204 as p, where p = [p1, ...., p i ,....,p I ], p i represents the coordinates of the ith vertex in the UnityVector3 coordinate set of the edge vertex of the administrative area to be tested, where i and I are both positive integers and 1≤i≤I; p i =(x i ,y i ,z i ), x i ,y i ,z i Represents the X-axis, Y-axis, and Z-axis coordinates of the i-th vertex; the positive direction of the X-axis is east, the positive direction of the Z-axis is north, and the Y-axis is perpendicular to the XZ plane formed by the X-axis and the Z-axis and points upward; Step 302: Use a computer to set any edge of the administrative division to be tested as (p i ,p i+1 ), and obtain the administrative area polygon to be tested; wherein the center point of the administrative area polygon to be tested is recorded as P0; And set any point to be judged in the matrix coordinate point set as q, and q = (x, y, z), and draw a ray from the point to be judged q to the direction of P0. If the ray of the point to be judged q is aligned with the edge (p i ,p i+1 ), the number of intersections a is increased by 1; wherein x, y, z represent the coordinates of the point to be determined on the X-axis, Y-axis, and Z-axis; the initial value of the number of intersections a is zero; Step 303: Use a computer to determine the number of intersections a. If the number of intersections a is an odd number, the point to be determined q=(x, y, z) is located inside or on the edge of the administrative region polygon to be determined; if the number of intersections a is an even number, the point to be determined q=(x, y, z) is located outside the administrative region polygon to be determined; Step 304, repeating steps 301 to 303 multiple times, traversing and judging each point to be judged in the matrix coordinate point set, obtaining the matrix coordinate point set within and on the edge of the administrative area to be tested, and recording it as the matrix coordinate point set within the administrative area to be tested.

2. A method for dynamically generating a Mesh surface conforming to terrain according to claim 1, characterized in that: Step 102, the specific process is as follows: Step 1021: using a computer to import the multiple administrative district images to be tested and the POS data corresponding to the multiple administrative district images to be tested into the Context Capture software, and using the Context Capture software to perform aerial triangulation on the multiple administrative district images to be tested and the POS data corresponding to the multiple administrative district images to be tested, so as to obtain the point cloud data of the administrative district to be tested; Step 1022: Use a computer to use the "Regular planar grid" tool in the Context Capture software, set the Tile size in the "Regular planar grid" tool to 80-130, and operate the "Reconstruction" tool to process the point cloud data of the administrative district to be tested, so as to obtain a three-dimensional model of the administrative district to be tested.