A method for controlling grid density based on optimal transmission and related products

By using the optimal transmission method in grid generation to perform grid parameterization and density control on the three-dimensional model surface, the problem of grid density control is solved, and efficient grid density adjustment and computing resource optimization are achieved.

CN118470252BActive Publication Date: 2024-09-17DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410926025.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2023-12-29
Filing Date
2024-07-11
Publication Date
2024-09-17
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively control the grid density during grid generation, resulting in a large amount of calculation and waste of storage space, and cannot meet the grid density requirements of different areas, affecting the calculation stability and accuracy of the model.

Method used

A method based on optimal transmission is used to parameterize the grid of the three-dimensional model surface. By setting the target probability measure and optimal transmission mapping, the grid density is controlled to achieve refined control of the grid density.

Benefits of technology

It improves the refinement and accuracy of density control, reduces the consumption of computing resources, realizes efficient control of grid density, and is suitable for grid density adjustment of complex models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470252B_ABST
    Figure CN118470252B_ABST
Patent Text Reader

Abstract

The present application discloses a method for controlling mesh density based on optimal transmission and related products. The method includes: performing mesh parameterization on the original three-dimensional model surface to obtain a parameter plane mesh; setting a target probability measure of the mesh points in the parameter plane mesh; determining the optimal transmission mapping from the parameter plane mesh area to the mesh points in the parameter plane mesh based on the mesh points in the parameter plane mesh and the target probability measure to obtain a parameter plane mesh after density transformation; and pulling the parameter plane mesh after density transformation back to the original three-dimensional model surface to achieve mesh density control of the original three-dimensional model surface. Using the solution of the present application, fine control of the mesh of the original three-dimensional model surface can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to the field of image processing technology. More specifically, the present application relates to a method, device and computer-readable storage medium for grid density control based on optimal transmission. Background Art

[0002] Mesh generation plays an important role in the fields of Computer Aided Design (CAD) and Computer Aided Engineering (CAE). Current CAE relies on finite element or finite volume methods, which rely heavily on the meshing of the model. The key properties of the calculation stability, accuracy of the approximate solution, and convergence speed mostly depend on the quality of the mesh. In current computer numerical simulations, denser meshes at model features often produce better calculation results.

[0003] In practical applications, numerical simulations are often performed using global high-resolution grids to obtain better results. However, this method will lead to unnecessary calculations and waste computer storage space and computing resources. In actual industrial applications, there are often different requirements for the density of the grid, such as anisotropic grids, uniformly distributed grids of unit areas, etc. In a given computational space, it is usually more desirable to concentrate dense, small-area grids in more complex areas of the model, while sparse, large-area grids are concentrated in relatively flat areas of the model, so that grids of the same size can represent more information of the original model. Therefore, when using discrete grids to express three-dimensional models, it is necessary to pay attention to the balance between the scale of the grid and the fineness of the model characterization.

[0004] In view of this, there is an urgent need to provide a solution for controlling mesh density based on optimal transmission, so as to combine the optimal transmission algorithm with the parameterization of the mesh and achieve fine control of the surface mesh of the original three-dimensional model. Summary of the invention

[0005] In order to at least solve one or more of the technical problems mentioned above, the present application proposes a solution for controlling grid density based on optimal transmission in multiple aspects.

[0006] In a first aspect, the present application provides a method for grid density control based on optimal transmission, comprising: meshing an original three-dimensional model surface to obtain a parameter plane grid; setting a target probability measure for grid points in the parameter plane grid; determining an optimal transmission mapping from a parameter plane grid area to grid points in the parameter plane grid based on the grid points in the parameter plane grid and the target probability measure to obtain a parameter plane grid after density transformation; and pulling the parameter plane grid after density transformation back to the original three-dimensional model surface to achieve grid density control of the original three-dimensional model surface.

[0007] In one embodiment, the original three-dimensional model surface is meshed and parameterized to obtain a parametric plane mesh, which includes: determining the boundary of the original three-dimensional model surface, and harmonically mapping the original three-dimensional model surface into a unit disk according to the length ratio of the boundary; constructing a linear equation system about the internal points of the triangular mesh in the unit disk; and solving the linear equation system to mesh parameterize the original three-dimensional model surface to obtain the parametric plane mesh.

[0008] In another embodiment, constructing a group of linear equations about the internal points of the triangular mesh in the unit disk includes: calculating the triangle patch angle corresponding to the triangular mesh in the unit disk; calculating the cotangent weights between triangle vertices based on the triangular patch angles; and constructing a group of linear equations about the internal points of the triangular mesh in the unit disk based on the cotangent weights.

[0009] In yet another embodiment, constructing a linear equation system about the internal points of the triangular mesh in the unit disk based on the cotangent weights comprises: constructing a linear equation system about the internal points of the triangular mesh in the unit disk by the following formula: ,in, represents the cotangent weight, and represents the internal point of the triangle mesh in the unit disk, Represents a harmonic map.

[0010] In another embodiment, determining the optimal transmission mapping from a parameter plane grid area to grid points in the parameter plane grid based on the grid points in the parameter plane grid and the target probability measure includes: in response to the target probability measure satisfying the convex space, constructing a height function related to the optimal transmission mapping based on the grid points in the parameter plane grid; and optimizing the height function to determine the optimal transmission mapping from the parameter plane grid area to the grid points in the parameter plane grid.

[0011] In another embodiment, the height function is optimized by the following operations: constructing a target equation containing the height function; and iteratively solving the target equation to obtain a new height function, and stopping when the new height function meets a preset condition to optimize the height function.

[0012] In another embodiment, constructing a target equation including the height function comprises: constructing an initial height function, an initial Delaunay triangulation and a Voroni duality based on grid points in the parameter plane grid; calculating the Voroni cell area and obtaining a gradient; calculating a side length of the Delaunay triangulation and a side length of the Voroni duality to obtain a Hessian matrix; and constructing a target equation including the height function based on the initial height function, the gradient and the Hessian matrix.

[0013] In yet another embodiment, the objective equation is expressed as ,in represents the gradient, represents the Hessian matrix, represents the differential of the height function.

[0014] In a second aspect, the present application provides a device for performing grid density control based on optimal transmission, comprising: a processor; and a memory storing program instructions for performing grid density control based on optimal transmission, wherein when the program instructions are loaded and executed by the processor, the device implements multiple embodiments of the aforementioned first aspect.

[0015] In a third aspect, the present application provides a computer-readable storage medium, in which program instructions for controlling grid density based on optimal transmission are stored. When the program instructions are loaded and executed by a processor, the processor executes multiple embodiments of the aforementioned first aspect.

[0016] Through the scheme of controlling the grid density based on optimal transmission as provided above, the embodiment of the present application obtains the parameter plane grid by calculating the grid parameterization of the original three-dimensional model surface, and calculates the optimal transmission mapping of the parameter plane grid area to the grid points in the parameter plane grid by setting the target probability measure to complete the control of the plane grid density. Then, by pulling the parameter plane grid after the density transformation back to the original three-dimensional model surface, the density refinement control of the original three-dimensional model surface is achieved. Based on this, the embodiment of the present application directly sets the grid target density (i.e., the target probability measure) so that the density control has a high degree of refinement and accuracy, and at the same time, the convergence accuracy is high, and the grid density control is easy to achieve. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0018] Figure 1 is an exemplary flowchart showing a method for controlling grid density based on optimal transmission according to an embodiment of the present application;

[0019] Figure 2 is an exemplary flowchart showing mesh parameterization of an original three-dimensional model surface according to an embodiment of the present application;

[0020] Figure 3 is an exemplary flowchart showing the calculation of the optimal transmission mapping according to an embodiment of the present application;

[0021] Figure 4 is an exemplary schematic diagram showing mesh density control on a curved surface of a three-dimensional face model according to an embodiment of the present application;

[0022] Figure 5 is an exemplary schematic diagram showing a planar grid density control result according to an embodiment of the present application;

[0023] Figure 6 is an exemplary schematic diagram showing the mesh density control of the tail of a kitten model according to an embodiment of the present application;

[0024] Figure 7 is an exemplary schematic diagram showing anisotropic density control of a drone model according to an embodiment of the present application;

[0025] Figure 8 It is an exemplary structural block diagram showing a device for performing grid density control based on optimal transmission according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0027] It should be understood that the terms "include" and "comprising" used in the specification and claims of the present application indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.

[0028] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this application specification and claims, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms. It should also be further understood that the term "and / or" used in this application specification and claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0029] As used in this specification and claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0030] The specific implementation of the present application is described in detail below with reference to the accompanying drawings.

[0031] Figure 1 FIG. 1 is an exemplary flowchart of a method 100 for controlling grid density based on optimal transmission according to an embodiment of the present application. Figure 1 As shown in , at step S101, the original three-dimensional model surface is meshed and parameterized to obtain a parametric plane mesh. In one embodiment, the boundary of the original three-dimensional model surface can be determined, and the original three-dimensional model surface is harmonically mapped into a unit disk according to the length ratio of the boundary, and then a linear equation system about the internal points of the triangular mesh in the unit disk is constructed to solve the linear equation system to mesh the original three-dimensional model surface to obtain a parametric plane mesh. That is, the parametric plane mesh is obtained by meshing parameterization through, for example, topological disk harmonic mapping. It can be understood that mesh parameterization is given by a one-dimensional curve. Surrounding Surface Mesh (that is, the original three-dimensional model surface of the embodiment of the present application), where , the parameterization of the surface is a mapping .in, Represents the pixel coordinates within the parametric plane grid, which are used to map the pixels to the original 3D model surface.

[0032] Based on the mapped unit disk, in an implementation scenario, by calculating the triangle patch angle corresponding to the triangular mesh in the unit disk, the cotangent weights between the triangle vertices are calculated according to the triangle patch angles, so as to construct a set of linear equations about the internal points of the triangular mesh in the unit disk based on the cotangent weights. It can be understood that the triangular mesh in the unit disk is the surface mesh of the original three-dimensional model surface mapped to the mesh of the unit disk. The triangular patch is a two-dimensional geometric image composed of three vertices and three edges in the triangular network, which is used to describe the surface of a three-dimensional object. The triangular network contains multiple triangular patches. The aforementioned triangle patch angle is the angle between the edges in the triangular network, which can be obtained by triangle geometry calculation. The cotangent weights between the triangle vertices can be calculated based on the triangle patch angle.

[0033] In an implementation scenario, the cotangent weight between triangle vertices can be calculated by the following formula:

[0034] (1)

[0035] in, represents the cotangent weight, and Represents the edge connecting vertices i and j The diagonal angle between two adjacent triangles. That is, when the edge When it belongs to the original 3D model surface, the cotangent weight is the cotangent value of a diagonal angle of the adjacent triangle face; When it does not belong to the original 3D model surface, the cotangent weight is the sum of the cotangent values ​​of the two diagonal angles of two adjacent triangular facets.

[0036] Next, a linear equation system about the internal points of the triangular mesh in the unit disk is constructed based on the cotangent weights. Specifically, in an implementation scenario, a linear equation system about the internal points of the triangular mesh in the unit disk can be constructed based on the following formula:

[0037] (2)

[0038] in, represents the cotangent weight, represents the interior point of the triangular mesh in the unit disk, Denotes the harmonic mapping. Further, by solving the above linear equations, the harmonic mapping is obtained , in order to parameterize the mesh of the original 3D model surface and obtain a parametric plane mesh.

[0039] Based on the parameter plane grid obtained above, at step S102, the target probability measure of the grid points in the parameter plane grid is set, and at step S103, the optimal transmission mapping from the parameter plane grid area to the grid points in the parameter plane grid is determined based on the grid points in the parameter plane grid and the target probability measure to obtain the parameter plane grid after the density is transformed. In some embodiments, the aforementioned optimal mapping can be obtained by iteratively solving, for example, a convex geometry algorithm. Specifically, in one embodiment, in response to the target probability measure satisfying the convex space, a height function related to the optimal transmission mapping is constructed based on the grid points in the parameter plane grid, and then the height function is optimized to determine the optimal transmission mapping from the parameter plane grid area to the grid points in the parameter plane grid.

[0040] It is important to understand that when given a distribution in two measure spaces The probability density on , satisfying the equality of the sum of probability measures ,or: And define the transmission cost , which means that the source space Transfer to target space The transmission cost of In the embodiment of the present application, the parameter plane grid area and the grid points in the parameter plane grid correspond to the measurement space X and Y respectively, the probability density of the parameter plane grid area is determined based on the original three-dimensional model surface, and the target probability density of the grid points in the parameter plane grid is obtained based on the above settings.

[0041] Among them, for optimizing the height function, a new height function can be obtained by constructing a target equation containing the height function, iteratively solving the target equation, and stopping when the new height function meets the preset conditions to optimize the height function. More specifically, the above-mentioned target equation containing the height function can be obtained by the following operations, that is, first constructing an initial height function, an initial Delaunay triangulation, and a Voroni duality based on the grid points in the parameter plane grid, then calculating the Voroni cell area, and obtaining the gradient, and calculating the side length of the Delaunay triangulation and the side length of the Voroni duality to obtain the Hessian matrix, so as to construct the target equation containing the height function according to the initial height function, the gradient, and the Hessian matrix.

[0042] In one implementation scenario, the initial height function can be constructed by the following formula: , …, ,in represents the initial height function, represents the grid points in the parameter plane grid. As an example, suppose The target probability density is recorded as ,but , represents a convex space. That is, the target probability measure satisfies the convex space. In some embodiments, before initializing the height function, the parameter plane grid is also translated and / or scaled so that the grid points are contained in the convex space. Then, an initial Delaunay triangulation and Voroni duality are constructed based on the grid points in the parameter plane grid, and the Voroni cell area is calculated and the gradient is obtained. , calculate the side lengths of the Delaunay triangulation and the side lengths of the Voroni dual to obtain the Hessian matrix, and then construct the objective equation including the height function.

[0043] In some embodiments, the Voroni cell area is the sum of the areas of the polygons formed by the vertices of the triangle, the center of the circumscribed circle of its 1-neighborhood triangle, and the midpoint of its 1-neighborhood edge. is the difference between the target measured Voroni area and the currently calculated Voroni area. The above Hessian matrix can be obtained based on the Hessian of the energy corresponding to the ratio of the side length of the Delaunay triangulation to the side length of the Voroni dual.

[0044] In one embodiment, the specific Construct the objective equation including the height function, where represents the gradient, represents the Hessian matrix, Represents the differential of the height function. The height function is updated by iteratively solving the above objective equation until the new height function satisfies ( represents the target threshold), the optimal transmission mapping can be obtained. That is, the height function after the final update is the optimal transmission.

[0045] It can be understood that triangulation is the process of generating a set of triangles (such as the triangular mesh of the embodiment of the present application) for a given plane point set, and the triangulation in which the circumscribed circles of all triangles in the triangular mesh satisfy the empty circle property is a Delaunay triangulation. Among them, the aforementioned empty circle property means that the circumscribed circle of a triangle (or edge) does not contain any vertex in the point set P (except the boundary). The Voroni dual is the dual graph of the Delaunay triangle. The Voroni graph is also called the Thiessen polygon or the Dirichlet graph, which is composed of a set of connected polygons composed of the perpendicular bisectors of the straight lines connecting two adjacent points in the Delaunay triangle.

[0046] In addition, it is important to understand that in two dimensions, the discrete optimal transport can induce a cellular decomposition of the source space according to the measure of the grid points. , the volume of each cell cavity Equal to the target point The measure of , each cell is a Voroni cell. Therefore, the embodiment of the present application treats the grid points in the parameter plane grid as target points, sets the target point measure as the expected Voroni cell area of ​​the point, and thus treats the parameter plane grid area as a continuous source space, and calculates the optimal transmission mapping from the parameter plane grid area to the grid points to induce the Voroni cell decomposition of the parameter plane grid area. It is easy to prove through the duality theory that the cell decomposition volume corresponding to the grid points is It is equal to the average value of the grid area around the grid point. Then, the centroid of each cell is taken and the grid is normalized to change the position of the grid points and obtain the parameter plane grid after density transformation.

[0047] Furthermore, at step S104, the parameter plane mesh after density transformation is pulled back to the original three-dimensional model surface to realize mesh density control of the original three-dimensional model surface. That is, the parameter plane mesh after density transformation is remapped back to the original three-dimensional model surface, realizing the self-homeomorphic mapping between the parameter plane meshes, and completing the mesh density control of the original three-dimensional model surface.

[0048] In combination with the above description, it can be seen that the embodiment of the present application performs fine control of the density of the parameter plane mesh by parameterizing the mesh of the original three-dimensional model surface, setting the target probability measure, and calculating the optimal transmission mapping from the parameter plane mesh area to the mesh points in the parameter plane mesh. Furthermore, the parameter plane mesh after the density transformation is pulled back to the original three-dimensional model surface, thereby realizing the mesh density control of the original three-dimensional model surface, improving the refinement and accuracy of the density control, and having high convergence accuracy, and facilitating the density control of the mesh (including, for example, triangular meshes and quadrilateral meshes).

[0049] Figure 2 is an exemplary flow chart showing mesh parameterization of an original three-dimensional model surface according to an embodiment of the present application. It should be understood that: Figure 2 is the above Figure 1 A specific embodiment of Figure 1 The description also applies to Figure 2 .

[0050] like Figure 2As shown in , at step S201, the boundary of the original three-dimensional model surface is determined, and the original three-dimensional model surface is harmonically mapped into a unit disk according to the length ratio of the boundary. Then, at step S202, the triangle patch angle corresponding to the triangular mesh is calculated. As can be seen from the previous text, the triangle patch angle is the angle between the edges in the triangular network, which can be obtained by triangle geometry calculation. Based on the obtained triangle patch angle, at step S203, the cotangent weight between the triangle vertices is calculated. Specifically, the cotangent weight between the triangle vertices can be calculated based on the above formula (1): When the side When it belongs to the original 3D model surface, the cotangent weight is the cotangent value of a diagonal angle of the adjacent triangle face; When it does not belong to the original 3D model surface, the cotangent weight is the sum of the cotangent values ​​of the two diagonal angles of two adjacent triangular facets.

[0051] Further, at step S204, a linear equation system about the internal points of the triangular mesh in the unit disk is constructed based on the cotangent weight. In one embodiment, a linear equation system can be constructed based on the above formula (2), and at step S205, the linear equation system is solved to achieve mesh parameterization of the original three-dimensional model surface to obtain a parametric plane mesh. The above operation is mesh parameterization of the topological disk harmonic mapping.

[0052] Figure 3 is an exemplary flowchart showing the calculation of the optimal transmission mapping according to an embodiment of the present application. It should be understood that: Figure 3 is the above Figure 1 A specific embodiment of Figure 1 The description also applies to Figure 3 .

[0053] like Figure 3 As shown in , at step S301, the parameter plane grid is translated and / or scaled so that the grid points are contained in the convex space. Then, at step S302, the height function is initialized to obtain the initial height function In an implementation scenario, you can , …, Initialize to get the initial height function At step S303, an initial Delaunay triangulation and a Voroni dual are constructed based on the grid points in the parameter plane grid, and at step S304, the Voroni cell area is calculated and the gradient is obtained. Further, at step S305, the side length of the Delaunay triangulation and the side length of the Voroni dual are calculated to obtain the Hessian matrix, that is, .

[0054] After obtaining the above height function, gradient and Hessian matrix, in step S306, solve the target equation , and at step S307, based on Update height function . Based on the new height function, where represents a constant coefficient. In step S308, it is determined Is it established? If true, in step S309, a new height function is returned. If not, return to step S303 and repeat the above operation until the When the transformation stops, the new height function is returned to obtain the optimal transmission mapping and realize the parameter plane mesh transformation. Finally, the parameter plane mesh after density transformation is pulled back to the original 3D model surface to realize the mesh density control of the original 3D model surface.

[0055] Figure 4 FIG. 1 is an exemplary schematic diagram showing how to control the mesh density on the surface of a three-dimensional face model according to an embodiment of the present application. Figure 4 As shown in , taking the face three-dimensional model surface as an example, the face three-dimensional model surface 401 is first mapped to the unit disk 402 to obtain a parameter plane grid. Then, based on the optimal transmission, the parameter plane grid after the transformation density is obtained. In some implementation scenarios, the parameter plane grid 403 after the transformation density can be obtained by uniform optimal transmission or the parameter plane grid 404 after the transformation density can be obtained by anisotropic optimal transmission, and then the parameter plane grid after the transformation density is pulled back to the original three-dimensional model surface to achieve the grid density control of the original three-dimensional model surface. For example, taking anisotropic optimal transmission as an example, the parameter plane grid 404 after the transformation density obtained by anisotropic optimal transmission is pulled back to the original face three-dimensional model surface to obtain the face three-dimensional model surface 405 after the grid density is controlled. It can be seen from the red mark in the figure that after the grid density control of the embodiment of the present application, the grid of the face three-dimensional model surface after the grid density control is denser.

[0056] Figure 5 FIG. 1 is an exemplary schematic diagram showing the planar grid density control result according to an embodiment of the present application. Figure 5 As shown in the figure, taking the four-sided grid as an example, Figure 5 The plane quadrilateral grid points with uneven distribution of patch areas shown in Figure (a) are taken as the target of optimal transmission. At the same time, the probability measure of each point is set as the grid area or the number of grid patches, and the self-homeomorphic mapping of the plane quadrilateral grid is calculated to obtain Figure 5 (b) shows the quadrilateral mesh after density transformation.

[0057] In order to verify that this method can accurately control the grid density, Figure 5 Figure (c) and Figure 5 Figure (d) also shows the area distribution histogram of the original grid cells and the area distribution histogram of the quadrilateral grid after density transformation. From the results of the above histograms, it can be seen that the area distribution of the original grid patches is uneven, and after the density transformation, the areas of all grid cells are concentrated around the mean value of 0.0105247. That is, after the density transformation, the area distribution of all grid cells is relatively uniform.

[0058] Figure 6 FIG. 1 is an exemplary schematic diagram showing the mesh density control of the tail of a kitten model according to an embodiment of the present application. Figure 6 Figure (a) shows the original kitten model. The red marked part of its tail is relatively flat and has a high mesh density. The corresponding parameter plane mesh is as follows: Figure 6 When calculating the self-homeomorphic mapping of the parameter plane, by setting the area measure of the tail grid of the kitten parameterized plane to 2 times and 4 times the original, the corresponding parameterized plane results are as follows: Figure 6 In this scenario, since the total measure of the original grid and the grid after the density change is consistent, the area of ​​the remaining grids becomes smaller (that is, the grid density becomes denser), for example Figure 6 Figures (b) and (c) correspond to schematic diagrams of setting the area measurement of the kitten's parameterized plane tail mesh to 2 and 4 times the original respectively, and then pulling it back to the original kitten model.

[0059] Based on this, the solution of the embodiment of the present application is also applicable to the multi-grid model. Figure 6 In the embodiment of the present application, the mesh of the tail (the flatter part) of the kitten model can be made sparse, and the mesh can be more concentrated on the part with model features, so that the model mesh distribution is more reasonable.

[0060] Figure 7 FIG. 1 is an exemplary schematic diagram showing anisotropic density control of a drone model according to an embodiment of the present application. Figure 7 As shown in the figure, by combining mesh parameterization, precise control of the quadrilateral mesh density of the topological disk surface model is achieved, and mesh control for the wing part of the UAV model is obtained (such as the red mark in the figure).

[0061] Specifically, by calculating the Gaussian curvature of the quadrilateral mesh, the model with a curvature greater than a certain threshold is marked as a feature. In one embodiment, the Gaussian curvature of the discrete surface is calculated as follows:

[0062]

[0063] Depend on Figure 7 It can be seen that the leading and trailing edges of the wing in the model are marked. When setting the target probability measure, the Gaussian curvature is combined with the target measure. The target measure is the current probability measure plus the absolute value of the curvature. The probability measure is then normalized to satisfy the condition that the target measure is the same as the original measure. Finally, the grid density is adjusted through the solution of the embodiment of the present application so that the grid units are concentrated in the part with higher curvature of the model, completing the grid anisotropic density adjustment.

[0064] In combination with the above description, it can be known that the embodiments of the present application relate to the fields of computer graphics, computer-aided manufacturing, finite element analysis, etc., and a method for fine control of the density of the surface mesh is achieved by adjusting the geometric position of the mesh points using an optimal transmission method without changing the topological connection relationship of the existing surface mesh. Specifically, the surface mesh is first parameterized to a plane area, and then the original density function of the mesh is calculated, and the target density function is set at the same time. The optimal transmission mapping from the plane source area to the target area is calculated using a geometric method, and the geometric position of the mesh points is adjusted according to the mapping to complete the control of the plane mesh density. Finally, the mesh of the two-dimensional plane is pulled back to the original surface, and fine control of the density of the original surface mesh is achieved. The present application supports directly setting the target density of the mesh, and the advantage is that the density control is refined and accurate, and the algorithm converges with high precision and is easy to implement. In addition, the embodiments of the present application are also applicable to triangular meshes and quadrilateral meshes.

[0065] The above solution of the embodiment of the present application can be implemented with the help of program instructions. Therefore, the present application also provides a device for controlling grid density based on optimal transmission, such as Figure 8 shown.

[0066] Figure 8 8 is an exemplary structural block diagram showing a device 800 for performing grid density control based on optimal transmission according to an embodiment of the present application. Figure 8 As shown in , the device 800 may include a processor 801 and a memory 802, wherein the processor 801 and the memory 802 communicate with each other via a bus. The memory 802 stores computer instructions for controlling mesh density based on optimal transmission. When the computer instructions are executed by the processor 801, the device 800 implements the method steps described in the above text in combination with the accompanying drawings: mesh parameterization of the original three-dimensional model surface to obtain a parameter plane mesh; setting a target probability measure of the mesh points in the parameter plane mesh; determining an optimal transmission mapping from a parameter plane mesh area to mesh points in the parameter plane mesh based on the mesh points in the parameter plane mesh and the target probability measure to obtain a parameter plane mesh after density transformation; and pulling the parameter plane mesh after density transformation back to the original three-dimensional model surface to achieve mesh density control of the original three-dimensional model surface.

[0067] The above-mentioned device may correspond to a computing device having various processing functions. For example, the computing device may be implemented as various types of devices, including but not limited to a personal computer (PC), a server device, a mobile device, etc.

[0068] The processor is configured to execute program instructions to control all functions of the computing device. For example, the processor controls all functions of the computing device by executing a program stored in a memory on the computing device. The processor can be implemented by a central processing unit (CPU), a graphics processing unit (GPU), an application processor (AP), an artificial intelligence processor chip (IPU), etc. provided in the computing device. However, the present application is not limited thereto.

[0069] The memory is used to store various data processed in the computing device. For example, the memory can store processed data and data to be processed in the computing device. The memory can store data that has been processed or to be processed by the processor. In addition, the memory can store program instructions such as applications, drivers, etc. to be driven by the computing device. For example: the memory can store various programs related to the operation and processing of encrypted data to be executed by the processor. The memory can be DRAM, but the present application is not limited to this. The memory can include at least one of a volatile memory or a non-volatile memory. The non-volatile memory can include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, a phase change RAM (PRAM), a magnetic RAM (MRAM), a resistive RAM (RRAM), a ferroelectric RAM (FRAM), etc. The volatile memory can include a dynamic RAM (DRAM), a static RAM (SRAM), a synchronous DRAM (SDRAM), a PRAM, an MRAM, a RRAM, a ferroelectric RAM (FeRAM), etc. In an embodiment, the memory may include at least one of a hard disk drive (HDD), a solid state drive (SSD), a high-density flash memory (CF), a secure digital (SD) card, a micro secure digital (Micro-SD) card, a mini secure digital (Mini-SD) card, an extreme digital (xD) card, caches, or a memory stick.

[0070] In summary, the specific functions implemented by the memory and processor of the device provided in the implementation mode of this specification can be explained in comparison with the aforementioned implementation modes in this specification, and can achieve the technical effects of the aforementioned implementation modes, so they will not be repeated here.

[0071] In an embodiment of the present application, a computer-readable storage medium is also provided, in which program instructions for controlling grid density based on optimal transmission are stored. When the program instructions are loaded and executed by a processor, the processor executes the method described in the embodiment of the present application.

[0072] Computer readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or components, or any combination thereof. More specific examples (non-exhaustive examples) of computer readable storage media can include, for example: an electrical connection with one or more wires, 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 thereof. In this article, a computer readable storage medium can be any tangible medium containing or storing a program that can be used by an instruction execution system, device, or device or used in combination with it.

[0073] Although multiple embodiments of the present disclosure have been shown and described herein, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art may think of many changes, modifications, and alternatives without departing from the thought and spirit of the present disclosure. It should be understood that in the process of practicing the present disclosure, various alternatives to the embodiments of the present disclosure described herein may be adopted. The attached claims are intended to define the scope of protection of the present disclosure, and therefore cover equivalents or alternatives within the scope of these claims.

[0074] In addition, the collection and acquisition of various data in this application complies with relevant laws and regulations and is authorized by the data provider. Any organization or individual that needs to obtain external data must obtain authorization in accordance with the law and ensure data security. It is not allowed to illegally collect, use, process, or transmit unauthorized or unprotected data, or to illegally buy, sell, provide, or disclose unauthorized or unprotected data.

Claims

1. A method for controlling grid density based on optimal transmission, characterized in that: include: Parameterize the mesh of the original three-dimensional model surface to obtain a parametric plane mesh; Setting a target probability measure for grid points in the parameter plane grid; Determining an optimal transmission mapping from a parameter plane grid region to grid points in the parameter plane grid based on the grid points in the parameter plane grid and the target probability measure to obtain a parameter plane grid after density transformation; as well as Pulling the density-transformed parameter plane mesh back to the original three-dimensional model surface to achieve mesh density control of the original three-dimensional model surface, The original 3D model surface is meshed and parameterized to obtain a parametric plane mesh including: Determine the boundary of the original three-dimensional model surface, and harmonically map the original three-dimensional model surface into a unit disk according to the length ratio of the boundary; Calculate the triangle patch angle corresponding to the triangle mesh in the unit disk; Calculate the cotangent weight between triangle vertices according to the triangle patch angle; Constructing a system of linear equations about the interior points of the triangular mesh in the unit disk based on the cotangent weights; and Solving the linear equations to parameterize the mesh of the original three-dimensional model surface to obtain the parametric plane mesh; Wherein determining the optimal transmission mapping from the parameter plane grid area to the grid grid points in the parameter plane grid based on the grid grid points in the parameter plane grid and the target probability measure comprises: In response to the target probability measure satisfying a convex space, constructing a height function associated with an optimal transmission map based on grid points in the parameter plane grid; and Optimizing the height function to determine an optimal transmission mapping of a parameter plane grid region to grid points in the parameter plane grid; The height function is optimized by the following operations: constructing a target equation including the height function; and The target equation is iteratively solved to obtain a new height function, and the process stops when the new height function satisfies a preset condition, so as to optimize the height function.

2. The method according to claim 1, characterized in that Wherein constructing a linear equation group about the internal points of the triangular mesh in the unit disk based on the cotangent weights includes: constructing a linear equation group about the internal points of the triangular mesh in the unit disk by the following formula: in, represents the cotangent weight, and Represents the vertices i and j on the original three-dimensional model surface as two internal points of the triangular mesh in the unit disk, Represents a harmonic map.

3. The method according to claim 1, characterized in that The objective equation including the height function is constructed as follows: constructing an initial height function, an initial Delaunay triangulation, and a Voroni dual based on grid points in the parametric plane grid; Calculate the Voroni cell cavity area and obtain the gradient; calculating the side lengths of the Delaunay triangulation and the side lengths of the Voroni dual to obtain the Hessian matrix; and A target equation including the height function is constructed according to the initial height function, the gradient and the Hessian matrix.

4. The method according to claim 3, characterized in that The objective equation is expressed as ,in represents the gradient, represents the Hessian matrix, represents the differential of the height function.

5. A device for controlling grid density based on optimal transmission, characterized in that: include: processor; as well as A memory storing program instructions for controlling grid density based on optimal transmission, wherein when the program instructions are loaded and executed by the processor, the device implements the method according to any one of claims 1 to 4.

6. A computer-readable storage medium, characterized in that: Program instructions for controlling grid density based on optimal transmission are stored therein, and when the program instructions are loaded and executed by a processor, the processor executes the method according to any one of claims 1-4.