A parametric surface mesh generation method with controllable error

Through the error-controllable parametric surface mesh generation method, through local editing and global optimization of the mesh, the problems of mesh generation errors and error control in the existing technology are solved, and high-quality, low-error watertight mesh generation is achieved, which is suitable for For physical simulation and model viewing and modification.

CN116797762BActive Publication Date: 2024-10-25ACAD OF MATHEMATICS & SYSTEMS SCIENCE - CHINESE ACAD OF SCI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310814527.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-04
Publication Date
2024-10-25
Estimated Expiration
2043-07-04

AI Technical Summary

Technical Problem

The existing technology is prone to produce erroneous mesh structures, such as degenerate triangles and mesh gaps, when generating parametric surface meshes, and cannot effectively control errors, affecting physical simulation and the watertightness of the model.

Method used

An error-controllable parametric surface mesh generation method is adopted. Through local editing of the mesh, including uniform sampling, boundary optimization, internal sampling point optimization and global optimization, CDT is used to generate the initial optimized mesh, and the target side length calculation and synchronization network are used. Local grid editing operations ensure the watertightness and error control of the grid.

Benefits of technology

The generated mesh model has high quality and low error, ensuring water tightness and error control, improving the quality of mesh triangle patches, and is suitable for physical simulation and model viewing and modification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116797762B_ABST
    Figure CN116797762B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for generating a parametric surface mesh with controllable errors, and relates to the technical field of computer-aided geometric design. The method comprises: S1, inputting a boundary representation parametric surface model, uniformly sampling the parametric surface model, and obtaining an initialization mesh; S2, optimizing the boundary sampling points, and obtaining an initial optimization mesh; S3, optimizing the internal sampling points of the initial optimization mesh, and obtaining a post-optimization mesh; S4, globally optimizing the post-optimization mesh, and generating a final mesh. In the process of mesh generation, the present invention ensures the coordination of the generated mesh by synchronously editing the common edges of the mesh, and merges the matching points of the coordinated mesh to generate a watertight mesh; in addition, two new target side length calculation methods are designed according to the error requirements, and the target side length is used to perform a local mesh editing operation to generate a triangular mesh that meets the error requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of computer graphics processing, and in particular to a method for generating a parametric surface mesh with controllable errors. Background Art

[0002] Both parametric representation and mesh representation are important methods for representing three-dimensional geometric shapes. They play a vital role in computer-aided design (CAD) and computer-aided engineering (CAE). Parametric representation is continuous and precise, and is a common representation for geometric modeling in CAD systems. Mesh representation is a discrete representation and is a common representation for physical simulation calculations in CAE systems. Before the parametric model obtained by CAD design is imported into CAE for simulation calculation, it is usually necessary to use the parametric surface mesh generation method to realize the conversion of the representation method.

[0003] In CAD systems, parametric surface models with boundary representation are very common. These models are usually stored in IGES and STEP formats and are the basic geometric representation used by most surface modeling technologies. Generating meshes from models with boundary representation is a key issue in many fields such as numerical simulation, rapid prototyping, computational fluid dynamics, and visualization. However, current mainstream CAD software such as Open Cascade, NetGen, and Gmesh still produce erroneous mesh structures during the mesh generation process, such as degenerate triangles and mesh gaps, and cannot control the errors of the generated mesh. Although erroneous mesh structures can be repaired using mesh repair technology, the repair results often have large errors.

[0004] One of the reasons for the generation of incorrect mesh structures is that the model represented by the boundary is not watertight. Since the common edges of two facets on the boundary representation model are stored separately on the parameter domains of the two parametric surfaces, they will be affected by computer truncation errors and produce gaps. In addition, design errors, Boolean operation intersection errors, and errors caused by different precision requirements of different CAD software will destroy the watertightness of the model. Therefore, the mesh generation process must perform special treatment on the model's heavy edges and key points. At present, there are usually two ways to repair the watertightness of the model. One is to fill and merge the gaps on the mesh through local mesh editing operations. This method is only suitable for stitching gaps with small spacing, and cannot identify mesh edges that overlap geometrically. The other is to first globally reconstruct the implicit surface of the model and then discretize the surface to generate a watertight mesh. This process can ensure the output of a watertight mesh, but this type of algorithm will blur important features of the mesh, such as sharp points, hard boundaries, and thin plates, resulting in large errors in the generated mesh model. In addition, neither of these two methods can guarantee the existence of mesh edges corresponding to the boundary lines of the parametric surface in the generated mesh, which is not conducive to the viewing and modification of the model.

[0005] For applications such as physical simulation, in addition to maintaining watertightness, the surface mesh model also needs to reduce errors and resolution as much as possible and improve the quality of mesh triangles. This goal can be achieved by using mesh simplification methods. Mesh simplification algorithms based on local mesh editing can use continuous parametric surface representations or discrete mesh surface representations. The advantage of using parametric surface representations is that the geometric accuracy is high and the position, tangent vector, curvature and other properties of surface points can be quickly calculated, but the related geometric calculations are usually nonlinear, there are numerical stability issues, and the calculation of projection points is time-consuming. The advantage of using mesh surface representations is that the projection calculations are convenient, the related geometric calculations are linear, fast and effective, but there are certain discrete errors. At present, most mesh simplification algorithms only use mesh representations for calculations, and cannot accurately control the errors in the discretization process.

[0006] Therefore, it is an urgent problem for those skilled in the art to propose a parametric surface mesh generation method with controllable errors to solve the difficulties existing in the prior art. Summary of the invention

[0007] In view of this, the present invention provides a parametric surface mesh generation method with controllable errors, which uses a local mesh editing method to design a mesh generation algorithm and converts a parametric surface model represented by a boundary into a watertight mesh model that meets the error requirements.

[0008] In order to achieve the above object, the present invention adopts the following technical solution:

[0009] A method for generating a parametric surface mesh with controllable error comprises the following steps:

[0010] S1, input boundary representation parameter surface model, uniformly sample the parameter surface model to obtain the initialization grid;

[0011] S2, optimize the boundary sampling points to obtain the initial optimized grid;

[0012] S3, optimizing the internal sampling points of the initial optimized grid to obtain a post-optimized grid;

[0013] S4. Perform global optimization on the post-optimization grid to generate the final grid.

[0014] In the above method, optionally, in S1, the boundary parameter surface model is uniformly sampled according to the length of the three-dimensional curve, and the number of sampling points for two boundaries representing the same common edge is consistent.

[0015] In the above method, optionally, in S2, one of the two boundaries representing the common edge is optimized so that the boundary line meets a given distance error requirement, and then a synchronous mesh local editing operation is performed on the other boundary line representing the same common edge according to the same length ratio to maintain a pairing relationship between the vertices of the two boundary lines;

[0016] After boundary optimization is completed, use CDT to generate the initial optimization mesh.

[0017] The above method, optionally, uses the following formula for the optimization of two common edges:

[0018]

[0019] in, The boundary line v a v b The target length, For Surface In v c The minimum radius of curvature at The boundary line is at v c The radius of curvature at , e is the given error value.

[0020] In the above method, optionally, the synchronous grid local editing operation is: for two boundaries representing the same common edge, when one of the boundary lines performs edge splitting, edge merging and sampling point position optimization operations, the other boundary line also performs edge splitting, edge merging and sampling point position optimization operations according to the same side length ratio.

[0021] The above method optionally optimizes the internal sampling points of the initial optimized mesh in S3, specifically: using the mapping distance to determine the distance between the mesh and the boundary parameter surface model so that the internal mesh satisfies the error, that is, completing the optimization of the internal sampling points of the initial optimized mesh.

[0022] Alternatively, the method for making the internal grid meet the error is as follows:

[0023]

[0024] in, For vertex v a The target length, l a is the minimum length of adjacent sides, is the distance from the centroid of the triangle to the surface, For Surface The minimum radius of curvature at , e is the given error value, i = 1, 2, ..., n a v a The adjacent triangles of .

[0025] In the above method, optionally, the specific content of performing global optimization on the post-optimized grid in S4 includes:

[0026] S4.1 Narrow triangle optimization;

[0027] S4.2 global angle optimization;

[0028] S4.3 Global error optimization.

[0029] It can be seen from the above technical solution that, compared with the prior art, the present invention provides a parametric surface mesh generation method with controllable errors, which has the following beneficial effects: in the mesh generation process, the coordination of the generated mesh is ensured by synchronously editing the common edges of the mesh, and the matching points of the coordinated mesh are merged to generate a watertight mesh; in addition, two new target edge length calculation methods are designed according to the error requirements, and the target edge length is used to perform local mesh editing operations to generate a triangular mesh that meets the error requirements; on the basis of controllable errors, the continuous parametric surface representation and discrete mesh surface representation are comprehensively used to perform global quality optimization to obtain a high-quality and low-error triangular mesh. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0031] Figure 1 A flow chart of a method for generating a parametric surface mesh with controllable errors provided by the present invention;

[0032] Figure 2 A schematic diagram of the local editing operation of a grid used in steps S1-S4 provided by the present invention;

[0033] Figure 3 A schematic diagram of the results of steps S1-S4 provided by the present invention;

[0034] Figure 4 A mouse mesh model result diagram generated under different error requirements provided by the present invention;

[0035] Figure 5 A comparison chart of the mesh model results generated by Gmsh, Netgen and the present invention on the gear model;

[0036] Figure 6 A comparison chart of the mesh model results generated by Gmsh, Netgen and the present invention on the hummingbird model;

[0037] Figure 7 A comparison chart of the mesh model results generated by Gmsh, Netgen and the present invention on the turbine model;

[0038] Figure 8 A comparison chart of the mesh model results generated on the mouse model by Gmsh, Netgen and the present invention;

[0039] Fig. 9 A comparison chart of the mesh model results generated on the pillow model by Gmsh, Netgen and the present invention. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Reference Figure 1 As shown, the present invention discloses a method for generating a parametric surface mesh with controllable errors, comprising the following steps:

[0042] S1, input boundary representation parameter surface model, uniformly sample the parameter surface model to obtain the initialization grid;

[0043] S2, optimize the boundary sampling points to obtain the initial optimized grid;

[0044] S3, optimizing the internal sampling points of the initial optimized grid to obtain a post-optimized grid;

[0045] S4. Perform global optimization on the post-optimization grid to generate the final grid.

[0046] Furthermore, in S1, the boundary parameter surface model is uniformly sampled according to the length of the three-dimensional curve, and the number of sampling points for two boundaries representing the same common edge is consistent.

[0047] Specifically, the input is a CAD model represented by a boundary (IGES or STEP format) The model contains parametric surfaces represented by n-piece boundaries Then the user needs to provide a given error value e, which represents the single-sided Hausdorff distance from the surface to the triangular mesh. The output of the algorithm is a triangular mesh that satisfies the error e.

[0048] S1 uses the isoparametric lines of the parameter domain to obtain the initialization grid ( Figure 3b), the specific contents are as follows: first, an isoparametric mesh is generated inside the parameter domain; then, the boundary lines are uniformly sampled according to the length of the three-dimensional curve, and the number of sampling points of the two boundaries representing the same common edge is guaranteed to be consistent; finally, the constrained Delaunay triangulation (CDT) is used to generate the initialization mesh and the surface mesh is obtained through the surface parameter equation.

[0049] Further, in S2, one of the two boundaries representing the common edge is optimized so that the boundary line meets the given distance error requirement, and then the other boundary line representing the same common edge is subjected to a synchronous mesh local editing operation according to the same length ratio to maintain the pairing relationship between the vertices of the two boundary lines;

[0050] After boundary optimization is completed, use CDT to generate the initial optimization mesh.

[0051] Furthermore, the optimization method for two common boundaries adopts the following formula:

[0052]

[0053] in, The boundary line v a v b The target length, For Surface In v c The minimum radius of curvature at The boundary line is at v c The radius of curvature at , e is the given error value.

[0054] Furthermore, the synchronous grid local editing operation is: for two boundaries representing the same common edge, when one of the boundary lines performs edge splitting, edge merging and sampling point position optimization operations, the other boundary line also performs edge splitting, edge merging and sampling point position optimization operations according to the same edge length ratio.

[0055] Specifically, the optimization process of optimizing the boundary sampling points in S2 includes the following steps:

[0056] Step S2.1 Calculate the target side length: Calculate a target side length for each line segment on the boundary line, so that when the line segment length is the target side length, the boundary line can meet the distance error. Given a vertex The line segment v a v b , whose corresponding curve is a parametric surface and Let is the line segment v a v b The midpoint of the corresponding curve segment. In order to make the side length meet the distance error requirements, first calculate the surface In v c The minimum radius of curvature at Surface In v c The minimum radius of curvature at and the curve segment at v c The radius of curvature at Then the line segment v is calculated as follows a v b Target length Finally, to avoid generating line segments that are too long or too short, you can set the target length Restricted to a given range [l min ,l max ]Inside.

[0057] Step S2.2 Edge Splitting Optimization: When the line segment v a v b The side length l ab Greater than When the line segment v a v b Insert line segment v in the middle a v b The midpoint v of the corresponding curve segment c , and update v c The target side length of the adjacent line segment.

[0058] Step S2.3 Edge merging optimization: When line segment v a v b The side length l ab Less than When , merge line segment v a v b To the midpoint v of its corresponding curve segment c , and update the line segment v a-1 v c and v c v b+1 The target side length is v a-1 v a The previous sampling point, v c v b+1 v b The next sampling point.

[0059] Step S2.4 Sampling point position optimization: For two line segments v a v b and v b v d The common point v b , according to the target side length and Optimization point v b The location satisfies in Respectively represent line segment v a v b and v b v d The length of the corresponding curve segment.

[0060] Furthermore, in S3, the internal sampling points of the initial optimized mesh are optimized. Specifically, the mapping distance is used to determine the distance between the mesh and the boundary parameter surface model so that the internal mesh satisfies the error, that is, the optimization of the internal sampling points of the initial optimized mesh is completed.

[0061] Furthermore, the method to make the internal grid satisfy the error adopts the following formula:

[0062]

[0063] in, For vertex v a The target length, l a is the minimum length of adjacent sides, is the distance from the centroid of the triangle to the surface, For Surface The minimum radius of curvature at , e is the given error value, i = 1, 2, ..., n a v a The adjacent triangles of .

[0064] Specifically, S3 optimizes the internal sampling points of the initial optimized grid, and the specific contents are as follows:

[0065] The mapping distance is used to estimate the distance between the mesh and the surface. The mapping distance of a triangle patch f on the surface mesh is the distance between the surface point p1 represented by the centroid of f in the parameter domain and the centroid p2 of f. The optimization process of this step is given by Algorithm 2, which includes the following steps.

[0066] Step S3.1 Calculate the target edge length: The purpose of this step is to calculate the target edge length for each point v on the grid. a Calculate a target length When the length of each edge of the mesh does not exceed the sum of the target lengths of the two end points, the mesh satisfies the distance error. a , calculate the minimum length l of its adjacent sides a .make v a The adjacent triangles of is the centroid of the triangle, is the distance from the centroid of the triangle to the surface, for To Surface The projection point of For Surface The minimum radius of curvature at the vertex v a Target length for:

[0067] Step S3.2 Edge Splitting Optimization: v a v b The side length l ab Target side length satisfy When the mesh is split, the edge splitting operation is performed on the mesh, that is, on the edge v a v b Insert the middle point v c , and split with edge v a v b Adjacent patches. After all mesh edges have been processed, update the target edge length of the mesh.

[0068] Step S3.3 Edge merging optimization: When the mesh edge v a v b The side length l ab Target side length satisfy When , merge line segment v a v b To line segment v a v b The midpoint v of the corresponding curve segment c After processing all mesh edges, update the target edge length of the mesh.

[0069] Step S3.4 Vertex degree optimization: The number of adjacent edges of a mesh vertex is called the degree of the mesh vertex. The target degree of internal mesh vertices is 6, and the target degree of boundary mesh vertices is where θ is the internal angle between the boundary edges. The goal of this step is to make the degree of the mesh vertex as close to the target degree as possible. For each mesh edge v a v b , let its adjacent triangles be v a v b v c and v a v b v d , where the four grid points v a ,v b ,v c ,v d The degrees are D a ,D b ,D c ,D d , the target degrees are O a ,O b ,O c ,O dIf the edge flipping operation can optimize the degree of the four grid points, that is, |D a -1-O a |+|D b -1-O b |+|D c +1-O c |+|D d +1-O d |<|D a -O a |+|D b -O b |+|D c -O c |+|D d -O d |, then flip edge v a v b And update the target edge length of the mesh.

[0070] Step S3.5 Vertex position optimization: First, for each internal vertex v a , calculate all adjacent patches Center of gravity Then according to the three vertices v of each face a , The target length is used to calculate the weight of the patch. in is the average of the target lengths of all vertices. Finally, update vertex v a Location: in For triangle Dough The area of ​​​​the surface, P(p) represents the projection of the spatial point p onto the surface.

[0071] Step S3.6 Angle optimization: The goal of this step is to optimize the angle energy where θ i ,i=1,...,n angle is the internal angle of all triangles inside the mesh. For each internal mesh edge v of a triangle a v b , check whether edge flipping can reduce the angular energy E angle , if possible, flip edge v a v b .

[0072] Furthermore, the specific contents of the global optimization of the post-optimized grid in S4 include:

[0073] S4.1 Narrow triangle optimization;

[0074] S4.2 global angle optimization;

[0075] S4.3 Global error optimization.

[0076] Specifically, S4.1 narrow triangle optimization

[0077] In this step, each parametric surface is sampled in turn under the condition that the boundary sampling points are fixed. The optimization includes the following steps.

[0078] Step S4.1.1 Edge splitting optimization: For all triangles f with angles less than 15 degrees, calculate the length of their shortest side l s , if the non-boundary edge e in triangle f i The length is greater than 2l s , then select any such edge to split. During the splitting process, record the number of newly added vertices N inserted .

[0079] Step S4.1.2 Edge merging optimization: Merge the opposite edges of small angles in order from small to large angles. When the number of merged edges reaches The merge ends when

[0080] S4.2 Global Angle Optimization

[0081] In this step, firstly, the meshes of all the surface patches obtained in the previous steps are merged to generate a watertight mesh M w , then for M w Perform global optimization. During the optimization process, the grid points corresponding to the vertices of the parametric surface patch remain fixed, the boundary edges corresponding to the boundary of the parametric surface patch remain marked, and the endpoints on the boundary edges are always located on the boundary of the surface patch. w It is close enough to the surface, and the spatial point to M can be used in the global optimization process w The projection of replaces the projection of the space point to the surface. The global optimization includes the following steps.

[0082] Step S4.2.1 calculates the target edge length: Unlike step S2.1, this step uses the current mesh to estimate the minimum radius of curvature r at the vertex a Instead of using parametric surfaces to estimate the minimum radius of curvature, each vertex v on the mesh a Target length for: The minimum radius of curvature r on the grid a It can be found through the mean curvature and Gaussian curvature of the grid.

[0083] Step S4.2.2 Edge splitting optimization: Calculate the number of obtuse triangles n obtuse , for all obtuse triangles f, split them in order from largest to smallest obtuse angle The longest side of the obtuse triangle and record the number of newly added vertices N inserted When the longest edge is a surface boundary edge, the newly added vertices need to be projected onto the surface boundary.

[0084] Step S4.2.3 Edge merging optimization: Merge the opposite edges of small angles in order from small to large angles. When the number of merged edges reaches N inserted When the merge edge v a v b When the vertex of contains vertices on the boundary edge, the merged vertex needs to be projected to the merge. a v b The vertices of the parametric surface include the vertices v a When a v b Merged into v a on the corresponding surface boundaries; when the vertices of the merged edge contain vertices on two different boundary edges, cancel the merge.

[0085] Step S4.2.4 Vertex position optimization: This step is similar to step S3.5, except that the target edge length used to calculate the weight in step S3.5 is changed to the target edge length obtained in step S4.2.1, and the projection P(·) of the spatial point to the surface is changed to the watertight grid M w Projection.

[0086] S4.3 Global Error Optimization

[0087] In the global optimization stage of mesh error, the condition of edge splitting (step S4.2.2) in global angle optimization is first changed from obtuse triangle to triangle with larger error. This edge splitting step is called the edge splitting step for optimizing error. Then the following steps are looped 3-4 times: edge splitting step for optimizing error, vertex degree optimization (step S3.4), calculation of mesh target edge length (step S4.2.1) and updating of vertex position optimization (step S4.2.4).

[0088] Figure 2 A schematic diagram of the local editing operation of the mesh used in steps S1-S4 of the present invention is shown, the first line is the mesh before editing, the second line is the mesh after editing; 2a is edge splitting, 2b is edge merging, 2c is edge flipping, and 2d is vertex position optimization.

[0089] Figure 3 The result schematic diagram of the process of steps S1-S4 of the present invention is shown, 3a is the boundary representation parametric surface model of S1 input, which is composed of six parametric surfaces; 3b is the grid initialization result of S1; 3c is the boundary sampling point optimization result of S2; 3d is the internal sampling point error optimization result of S3; 3e is the global angle and error optimization result of S4.

[0090] Figure 4 The mouse mesh models with different resolutions generated by different error limits are shown. The corresponding mesh quality indicators are given in Table 1. Under different given errors, the mesh models generated by the present invention can meet the error requirements. Among them, 4a is e=0.03, 4b is e=0.12, 4c is e=0.3, and 4d is e=0.6.

[0091] Table 1 Quality indicators of mouse mesh models generated with different error requirements

[0092]

[0093] Among them, the length of the mouse model bounding box is 229.36. e is the input distance error. |V| is the number of model vertices. h is the single-sided Hausdorff distance from the parameter model to the mesh model. d is the average distance from the parameter model to the mesh model. θ min is the minimum grid angle. max is the maximum angle of the grid. is the average value of the minimum angle of all mesh patches. <30° % is the proportion of triangles with a minimum angle less than 30 degrees.

[0094] Figure 5-Figure 9 In which, 5a, 6a, 7a, 8a, 9a represent the mesh models of gear, hummingbird, turbine, mouse and pillow generated by Gmsh respectively; 5b, 6b, 7b, 8b, 9b represent the mesh models of gear, hummingbird, turbine, mouse and pillow generated by NetGen respectively; 5c, 6c, 7c, 8c, 9c represent the mesh models of gear, hummingbird, turbine, mouse and pillow generated by the present invention respectively. The error index e used by the present invention to generate the illustrated mesh is 0.2, 1.0, 0.06, 0.12, 0.4 respectively. The corresponding mesh quality index is given in Table 2.

[0095] Table 2 Comparison of this algorithm with open source mesh generation software Gmsh and Netgen

[0096]

[0097] Where L is the diagonal length of the model bounding box. P is the number of model faces. |V| is the number of model vertices. h is the single-sided Hausdorff distance from the parameter model to the mesh model. d is the average distance from the parameter model to the mesh model. θ min θ is the minimum grid angle. max is the maximum grid angle. is the average value of the minimum angle of all mesh patches. <30° % is the proportion of triangles with a minimum angle less than 30 degrees.

[0098] The indicators in Table 2 show that the invention can generate meshes with lower maximum error and average error when the mesh resolution is significantly lower than that of meshes generated by Gmsh and Netgen, and the meshes can meet the error requirements. In terms of mesh angle quality, the minimum angle, maximum angle and proportion of small-angle triangles of this algorithm are better than Gmsh as a whole, and the indicator level is comparable to Netgen. At the same time, the invention has the best accuracy and quality indicators on both the mouse and pillow models. In particular, Figure 8 On the mouse model, the meshes generated by Gmsh and Netgen are not watertight, while the meshes generated by the present invention are watertight.

[0099] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for generating parametric surface meshes with controllable errors, characterized in that: The following steps are involved: S1. Input a boundary representation parameter surface model, uniformly sample the parameter surface model, and obtain an initialization grid, wherein the input boundary representation parameter surface model is a CAD model; S2, optimize the boundary sampling points to obtain the initial optimized grid; S3, optimizing the internal sampling points of the initial optimized grid to obtain a post-optimized grid; S4, globally optimize the post-optimization grid to generate the final grid; In S2, one of the two boundaries representing the common edge is optimized so that the boundary line meets the given distance error requirement, and then the other boundary line representing the same common edge is subjected to a synchronous mesh local editing operation according to the same length ratio to maintain the pairing relationship between the vertices of the two boundary lines; After boundary optimization is completed, use CDT to generate the initial optimized grid; The optimization method for two common boundaries uses the following formula: in, For the border line The target length, For Surface exist The minimum radius of curvature at For the boundary line The radius of curvature at is the given error value.

2. The error-controllable parametric surface mesh generation method according to claim 1, characterized in that: In S1, the parametric surface model is uniformly sampled according to the length of the three-dimensional curve, and the number of sampling points is consistent for two boundaries representing the same common edge.

3. The error-controllable parametric surface mesh generation method according to claim 1, characterized in that: The synchronous mesh local editing operation is as follows: for two boundaries representing the same common edge, when one boundary line is subjected to edge splitting, edge merging and sampling point position optimization operations, the other boundary line is also subjected to edge splitting, edge merging and sampling point position optimization operations according to the same edge length ratio.

4. The error-controllable parametric surface mesh generation method according to claim 1, characterized in that: In S3, the internal sampling points of the initial optimized mesh are optimized. Specifically, the mapping distance is used to determine the distance between the mesh and the boundary parameter surface model so that the internal mesh satisfies the error, that is, the optimization of the internal sampling points of the initial optimized mesh is completed.

5. The error-controllable parametric surface mesh generation method according to claim 4, characterized in that: The method to make the internal grid meet the tolerance is as follows: in, Vertex The target length, is the minimum length of adjacent sides, is the distance from the centroid of the triangle to the surface, For Surface The minimum radius of curvature at For a given error value, for The adjacent triangles of .

6. The error-controllable parametric surface mesh generation method according to claim 1, characterized in that: The specific contents of global optimization of the post-optimized grid in S4 include: S4.1 Narrow triangle optimization; S4.2 global angle optimization; S4.3 Global error optimization.

Citation Information

Patent Citations

  • Fixed node discharge curve approximation and curved surface mesh generation optimizing technology

    CN102831648A

  • A 3D printing method based on grid model simplification

    CN106564192A