Three-dimensional grid hole repairing method based on boundary feature enhancement

Through the boundary feature enhancement method, the average length of the boundary edge and the unit vector of the angular bisector are used to simplify the three-dimensional mesh hole repair, which solves the problems of cumbersome existing methods and poor triangle quality, and achieves efficient hole repair and feature information recovery.

CN118587387APending Publication Date: 2024-09-03TAIYUAN UNIVERSITY OF TECHNOLOGY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410746044.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing three-dimensional mesh hole repair methods are cumbersome and rely on normal vector estimation and projection, resulting in poor triangle quality, insufficient use of mesh information, complex calculations, and deviations in repair results.

Method used

A method based on boundary feature enhancement is used to simplify the calculation of the insertion point and avoid rotation operations by calculating the average length of the hole boundary edge and the unit vector of the angle bisector. The minimum angle principle is used to select the starting point for repair, and the boundary points are updated cyclically until the hole is closed.

Benefits of technology

It improves the mesh quality, reduces the situation of low triangular patch quality, restores the characteristic information of the hole area, simplifies the algorithm steps, and improves time efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587387A
    Figure CN118587387A
Patent Text Reader

Abstract

The invention discloses a three-dimensional grid hole repairing method based on boundary feature enhancement, and belongs to the technical field of hole repairing, and the method comprises the following steps: S1, importing a three-dimensional grid model and point cloud data of a target tooth, searching and sorting hole boundary points, and selecting a repairing starting point based on a minimum angle; s2, calculating a boundary point angle, estimating a vertex normal vector of the boundary point according to the boundary point angle, and calculating an angular bisector unit vector of the boundary point; s3, calculating an insertion point according to the angular bisector unit vector and the vertex normal vector; and S4, after triangulation, updating the boundary points and related information thereof, taking the adjacent boundary points as new repairing points, circulating the steps S2-S4 until all the boundary points are updated, taking the updated points as the boundary points, selecting a repairing starting point based on the minimum angle, and circulating the steps S2-S4 until the hole is closed. According to the three-dimensional grid hole repairing method based on boundary feature enhancement, the feature information of the hole area can be greatly recovered by using the vertex normal vector, angle and other information of the boundary.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of hole repair, and in particular to a three-dimensional grid hole repair method based on boundary feature enhancement. Background Art

[0002] At present, most of the existing methods for solving the angles corresponding to mesh vertices rely on the estimated normal vectors of the hole boundary vertices, or judge through projection and the normal of the hole area, and the steps are cumbersome. The normal vector proposed in this patent calculates the angle corresponding to the mesh vertex, which does not need to estimate the normal vectors of the hole boundary vertices, and does not need to sort and project the hole boundary points in a certain direction. The idea is simple and time-efficient. Among the existing hole repair algorithms, some have poor triangle quality after rough repair, some algorithms do not make full use of the mesh information around the hole, resulting in deviations in the repair results, and some algorithms are too complicated to calculate the insertion point.

[0003] The calculation method of the insertion point proposed in the present invention does not require the rotation of the vector, and the idea is simple and clear, relying only on the angle bisector vector and the estimated vertex normal vector. By calculating the average length of the hole boundary edge as the insertion point step, low-quality triangles rarely appear, and the repair method does not always select the repair point from the minimum angle, but only selects the repair starting point based on the minimum angle. Therefore, it will not appear to gather on one side of the hole like the wavefront method, and can greatly restore the feature information contained in the hole area. Through experiments, the algorithm can obtain a higher quality mesh. Summary of the invention

[0004] The purpose of the present invention is to provide a three-dimensional mesh hole repair method based on boundary feature enhancement, which utilizes information such as estimated boundary mesh vertex normal vectors and boundary vertex angles to maximize the restoration of feature information contained in the hole area.

[0005] To achieve the above object, the present invention provides a three-dimensional mesh hole repair method based on boundary feature enhancement, comprising the following steps:

[0006] S1. Import the three-dimensional mesh model and point cloud data information of the target tooth, find the boundary points of the hole and sort the boundary points, calculate the average length of the boundary edge of the hole; according to the angle corresponding to the calculated boundary points of the hole, select the repair starting point based on the minimum angle principle;

[0007] S2. Calculate the angle corresponding to the hole boundary point and find the angle bisector unit vector. Use the calculated boundary point angle to estimate the mesh vertex normal vector corresponding to the boundary point. If the angle is less than 85, there is no need to solve it. Otherwise, find the angle bisector unit vector corresponding to the boundary point.

[0008] S3, calculating the insertion point information from the angle bisector unit vector and the mesh vertex normal vector;

[0009] S4, insert the point, the original boundary vertex or form a triangle between the original boundary vertices, update the boundary point and its corresponding one-ring neighborhood triangle, so as to obtain the updated one-ring neighborhood boundary directed triangle and boundary triangle, and use the next boundary vertex connected to the original boundary vertex as the new patching point, and so on, and repeat steps S2-S4 until all boundary points are updated; after the update is completed, use the updated point as the new boundary point, then calculate the new boundary point angle, and then select a new patching starting point based on the minimum angle, and then repeat steps S2-S4 until the hole is closed.

[0010] Preferably, in step S1, the target tooth contains a hole, and the three-dimensional mesh model and point cloud data information of the target tooth are imported; a ring domain point of a point refers to the point cloud data information directly connected to the point, and a ring domain triangle of a point is a ring domain point of the point connected to the point, and adjacent ring domain points are connected, and these three vertices form a triangular face;

[0011] If the number of points in a ring domain of each extracted point cloud coordinate is equal to the number of triangles in a ring domain, it is an internal point; otherwise, it is a hole boundary point; the extracted boundary points are sorted, and then the repair starting point is selected based on the minimum angle principle.

[0012] Preferably, in step S2, the angle θ of the boundary point is obtained by calculating the dot product of a ring of neighborhood boundary directed triangles and the normal vector of the boundary directed triangle, and judging the relationship between the dot product result and 0;

[0013] The relationship between the type and dot product of the hole boundary point is: Point1 is the third vertex in the triangle where Ti-1 is located in the triangle of the ring domain of Ti, that is, a non-boundary point, and Point2 is the third vertex in the triangle where Ti+1 is located in the triangle of the ring domain of Ti;

[0014]

[0015] T i is a convex point, otherwise, it is a concave point;

[0016] Where T i-1 , T i , T i+1 are three adjacent vertices in the hole boundary vertex set;

[0017] The relationship between the type and angle of the boundary point is expressed as:

[0018]

[0019] Preferably, in step S2, the angle corresponding to the desired hole boundary point is: when the angle is less than 85 degrees, there is no need to calculate the angle bisector unit vector; when the angle is greater than 85, the angle bisector unit vector of the angle is calculated, and the mesh vertex normal vector of the starting point is calculated; when the corresponding angle is greater than 85, step S3 is executed to calculate the insertion point information, and then step S4 is executed; when the corresponding angle is less than 85, step S4 is executed.

[0020] Preferably, in step S2, the calculated angle is used to estimate the mesh vertex normal vector of the boundary point, and a one-ring neighborhood triangle is defined as: between the adjacent one-ring neighborhood points of point a, and between the one-ring neighborhood point and point a. The triangular face formed by connecting these three vertices is called the one-ring neighborhood triangle of point a. The target boundary vertex is the boundary vertex to be repaired.

[0021] Preferably, in step S3, the direction vector of the insertion point is obtained based on the extracted hole boundary point data of the target tooth and the angle corresponding to the hole boundary point obtained in step S2, and the coordinates of the new insertion point are calculated based on the average length of the boundary edge obtained in S1 and the direction vector obtained in S3.

[0022] Preferably, in step S4, T i The corresponding angle is less than 85, then T i-1 , T i , T i+1 , directly forming a triangle, T i The corresponding angle is greater than 85, then the insertion point new_point calculated by step S3, then T i-1 , T i , T i+1 and new_point respectively form two triangles, determine whether a cross triangle is formed, and process it, update the boundary point and the first ring area triangle, so as to obtain the updated first ring area boundary directed triangle and boundary triangle, and the boundary vertex adjacent to the current boundary point is used as the next patch point, and then loop steps S2-S4 until all boundary points are updated;

[0023] After all the boundary points are updated, the updated boundary points, i.e., the insertion points, are used as new boundary points, and then the minimum angle selection is used to determine a new repair starting point, and then steps S2-S4 are looped until the hole is closed.

[0024] Therefore, the present invention adopts the above-mentioned three-dimensional mesh hole repair method based on boundary feature enhancement, and utilizes information such as estimated boundary mesh vertex normal vectors and boundary mesh vertex angles to restore the feature information contained in the hole area to the maximum extent.

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

[0026] Figure 1 This is a flow chart of a three-dimensional mesh hole repair method based on boundary feature enhancement of the present invention;

[0027] Figure 2 A schematic diagram of hole boundaries identified in a three-dimensional mesh hole repair method based on boundary feature enhancement of the present invention;

[0028] Figure 3 It is a schematic diagram of a partially enlarged view of a three-dimensional grid hole repair method based on boundary feature enhancement after rough repair is completed in the present invention;

[0029] Figure 4 It is a schematic diagram of the optimized repair result of a three-dimensional mesh hole repair method based on boundary feature enhancement of the present invention;

[0030] Figure 5 A schematic diagram of hole boundaries and cross triangles of a three-dimensional mesh hole repair method based on boundary feature enhancement according to the present invention;

[0031] Figure 6 The present invention is a schematic diagram of a ring domain point vi and a ring domain triangle fi in a three-dimensional grid hole repair method based on boundary feature enhancement. DETAILED DESCRIPTION

[0032] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.

[0033] Unless otherwise defined, technical or scientific terms used in the present invention shall have the common meanings understood by one having ordinary skills in the field to which the present invention belongs.

[0034] Embodiment 1

[0035] like Figure 1-6 As shown, the present invention provides a three-dimensional mesh hole repair method based on boundary feature enhancement.

[0036] S1. Import the three-dimensional mesh model and point cloud data information of the target tooth, find the boundary points of the hole and sort the boundary points, calculate the average length of the boundary edge of the hole; according to the angle corresponding to the calculated boundary points of the hole, select the repair starting point based on the minimum angle principle;

[0037] In step S1, the target tooth contains a hole, and the three-dimensional mesh model and point cloud data information of the target tooth are imported; a ring domain point of a point refers to the point cloud data information directly connected to the point, and a ring domain triangle of a point is a triangular face formed by the three vertices connecting the ring domain point of the point and the point, and connecting the adjacent ring domain points.

[0038] If the number of points in a ring domain of each extracted point cloud coordinate is equal to the number of triangles in a ring domain, it is an internal point; otherwise, it is a hole boundary point; the extracted boundary points are sorted, and then the repair starting point is selected based on the minimum angle principle.

[0039] After sorting the boundary points of the extracted holes, the resulting boundary point set is T1, T2, …, T r}, where r is the number of hole boundary points, T1 is the point cloud coordinate of the first boundary point, T r is the point cloud coordinate of the rth boundary point.

[0040] Calculate the average length of the hole boundary edge as the step length of the new insertion point, and select the boundary point corresponding to the minimum angle as the starting point for repair.

[0041] S2. In step S1, the target tooth contains a hole, and the three-dimensional mesh model and point cloud data information of the target tooth are imported; a ring domain point of a point refers to the point cloud data information directly connected to the point, and a ring domain triangle of a point is a triangular face formed by the three vertices connecting the ring domain point of the point and the point, and connecting the adjacent ring domain points.

[0042] If the number of points in a ring domain of each extracted point cloud coordinate is equal to the number of triangles in a ring domain, it is an internal point; otherwise, it is a hole boundary point; the extracted boundary points are sorted, and then the repair starting point is selected based on the minimum angle principle.

[0043] In step S2, the angle θ of the boundary point is obtained by calculating the dot product of the normal vector of the boundary directed triangle of a ring neighborhood boundary and the normal vector of the boundary directed triangle, and judging the relationship between the dot product result and 0;

[0044] The relationship between the type and dot product of the hole boundary point is: Point1 is the third vertex in the triangle where Ti-1 is located in the triangle of the ring domain of Ti, that is, a non-boundary point, and Point2 is the third vertex in the triangle where Ti+1 is located in the triangle of the ring domain of Ti;

[0045]

[0046] T i is a convex point, otherwise, it is a concave point;

[0047] Where T i-1 , T i ,,T i+1 are three adjacent vertices in the hole boundary vertex set;

[0048] The relationship between the type and angle of the boundary point is expressed as:

[0049]

[0050] In step S2, the angle corresponding to the desired hole boundary point is: when the angle is less than 85 degrees, there is no need to calculate the angle bisector unit vector; when the angle is greater than 85, the angle bisector unit vector of the angle is calculated; the mesh vertex normal vector of the starting point is calculated; when the corresponding angle is greater than 85, step S3 is executed to calculate the insertion point information, and then step S4 is executed; when the corresponding angle is less than 85, step S4 is executed.

[0051]

[0052] The ∥∥ in the formula means finding the length of this vector;

[0053] Where a and b are vectors The calculation formula is as follows:

[0054]

[0055] represents a vector, ∥∥ means to find the length of vector A, and the formula finds the unit vector of a vector.

[0056] In step S2, the calculated angle is used to estimate the mesh vertex normal vector of the boundary point. The one-ring neighborhood triangle is defined as: the one-ring neighborhood points adjacent to point a, and the one-ring neighborhood point and point a. The triangular patch formed by connecting these three vertices is called the one-ring neighborhood triangle of point a. The target boundary vertex is the boundary vertex to be repaired.

[0057] The detailed steps are: find the angle of the hole boundary point in step S2, record it as θ, then calculate the normal vector and area of ​​the neighboring triangle of the boundary vertex, and sum them, record them as A and i ,B i (i is the number of missing triangles in the neighborhood), the normal vector and area of ​​the boundary triangle are denoted as a and b respectively. Finally, the unit normal vector N of the mesh vertex of the boundary vertex is estimated using the formula:

[0058]

[0059] ∑A i B i Indicates A i B i Sum, ∥∥ means to find the length of vector A;

[0060] S3, calculating the insertion point information from the angle bisector unit vector and the mesh vertex normal vector;

[0061] In step S3, the direction vector of the insertion point is obtained based on the extracted hole boundary point data of the target tooth and the angle corresponding to the hole boundary point obtained in step S2, and the coordinates of the new insertion point are calculated based on the average length of the boundary edge obtained in S1 and the direction vector obtained in S3.

[0062] Detailed steps: The average length of the boundary edge is recorded as constant. Assume there are three connected boundary vertices T i-1 , T i , T i+1 , find the two unit vectors Based on the two unit vectors, we can find T i The unit vector of the angle bisector corresponding to the angle. Then, according to the T estimated in step S2 i The mesh vertex normal vector and angle bisector unit vector are used to calculate the new insertion point information. The formula is as follows: new =T i +constant×P1.

[0063] S4, inserting a point, an original boundary vertex or a triangle formed between the original boundary vertices, updating the boundary point and its corresponding one-ring neighborhood triangle, thereby obtaining an updated one-ring neighborhood boundary directed triangle and boundary triangle, and the next boundary vertex connected to the original boundary vertex is used as a new patching point, and so on, looping through steps S2-S4 until all boundary points are updated;

[0064] After the update is completed, the updated point is used as the new boundary point, and then the new boundary point angle is calculated. Then, a new repair starting point is selected based on the minimum angle, and steps S2-S4 are executed repeatedly until the hole is closed.

[0065] If T i The corresponding angle is less than 85, then T i-1 , T i , T i+1 Directly form triangular facets. If T i If the corresponding angle is greater than 85, the new insertion point T is calculated in step S3. new , then use T i-1 ,T,T new and T i+1 , T i , T new Form triangular patches.

[0066] Put T i Remove from the set of boundary points, T new Add to the boundary point set, T i+1 Become the new T i , the resulting triangular face is added to the new T iA ring of neighborhood triangles is used to update the boundary points and a ring of neighborhood triangles and boundary triangles, and then steps S2 to S4 are repeated to calculate new insertion points and form triangles. When all the original boundary points are updated to new insertion points, the updated boundary points are used as new boundary points, and new repair starting points are selected based on the minimum angle principle. Then, operations S2-S4 are repeated until the hole is closed.

[0067] Determine whether the new triangular face forms a cross triangle. If a cross triangle is formed, it is necessary to determine which situation it belongs to. Since the solution angle is wrong, the direction of the insertion point is reversed and a new insertion point is calculated; since the step size and the direction of the insertion point jointly cause the appearance of a cross triangle, the insertion point is modified to the point closest to the boundary vertex as the insertion point; since the step size produces a cross triangle, the insertion point is changed to the boundary point closest to the insertion point, and then divided into sub-holes, and then the sub-holes are repaired using this method until the hole is closed.

[0068] Therefore, the present invention adopts the above-mentioned three-dimensional mesh hole repair method based on boundary feature enhancement, and utilizes information such as estimated boundary mesh vertex normal vectors and boundary mesh vertex angles to restore the feature information contained in the hole area to the maximum extent.

[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A three-dimensional mesh hole repair method based on boundary feature enhancement, characterized in that: The following steps are involved: S1, importing the three-dimensional mesh model and point cloud data information of the target tooth, finding and sorting the boundary points of the hole, and calculating the average length of the boundary edge of the hole; According to the angle corresponding to the hole boundary point, the repair starting point is selected based on the minimum angle principle; S2, according to the angle corresponding to the hole boundary point, the angle bisector unit vector is obtained, and the normal vector of the mesh vertex corresponding to the boundary point is estimated using the calculated boundary point angle; S3, calculating the insertion point information from the angle bisector unit vector and the mesh vertex normal vector; S4, inserting a point, an original boundary vertex or a triangle formed between the original boundary vertices, updating the boundary point and its corresponding one-ring neighborhood triangle, thereby obtaining an updated one-ring neighborhood boundary directed triangle and boundary triangle, and the next boundary vertex connected to the original boundary vertex is used as a new patching point, and so on, looping through steps S2-S4 until all boundary points are updated; After the update is completed, the updated point is used as the new boundary point, and then the new boundary point angle is calculated. Then, a new repair starting point is selected based on the minimum angle, and steps S2-S4 are executed repeatedly until the hole is closed.

2. A three-dimensional mesh hole repair method based on boundary feature enhancement according to claim 1, characterized in that: In step S1, the target tooth contains a hole, and the three-dimensional mesh model and point cloud data information of the target tooth are imported; a ring domain point of a point refers to the point cloud data information directly connected to the point, and a ring domain triangle of a point is a ring domain point of the point connected to the point, and adjacent ring domain points are connected, and these three vertices form a triangular face; If the number of points in a ring domain of each extracted point cloud coordinate is equal to the number of triangles in a ring domain, it is an internal point; otherwise, it is a hole boundary point; the extracted boundary points are sorted, and then the repair starting point is selected based on the minimum angle principle.

3. The three-dimensional mesh hole repair method based on boundary feature enhancement according to claim 1, characterized in that: In step S2, the angle θ of the boundary point is obtained by calculating the dot product of the normal vector of the boundary directed triangle of a ring neighborhood boundary and the normal vector of the boundary directed triangle, and judging the relationship between the dot product result and 0; The relationship between the type and dot product of the hole boundary point is: Point1 is the third vertex in the triangle where Ti-1 is located in the triangle of the ring domain of Ti, that is, a non-boundary point, and Point2 is the third vertex in the triangle where Ti+1 is located in the triangle of the ring domain of Ti; T i is a convex point, otherwise, it is a concave point; Where T i-1 , T i , T i+1 are three adjacent vertices in the hole boundary vertex set; The relationship between the type and angle of the boundary point is expressed as:

4. The three-dimensional mesh hole repair method based on boundary feature enhancement according to claim 1, characterized in that: In step S2, the angle corresponding to the desired hole boundary point is: when the angle is less than 85 degrees, there is no need to calculate the angle bisector unit vector; when the angle is greater than 85, the angle bisector unit vector of the angle is calculated, and the mesh vertex normal vector of the starting point is calculated; when the corresponding angle is greater than 85, step S3 is executed to calculate the insertion point information, and then step S4 is executed; when the corresponding angle is less than 85, step S4 is executed.

5. The three-dimensional mesh hole repair method based on boundary feature enhancement according to claim 4 is characterized in that: In step S2, the calculated angle is used to estimate the mesh vertex normal vector of the boundary point. The one-ring neighborhood triangle is defined as: the one-ring neighborhood points adjacent to point a, and the one-ring neighborhood point and point a. The triangular patch formed by connecting these three vertices is called the one-ring neighborhood triangle of point a. The target boundary vertex is the boundary vertex to be repaired.

6. The three-dimensional mesh hole repair method based on boundary feature enhancement according to claim 1, characterized in that: In step S3, the direction vector of the insertion point is obtained based on the extracted hole boundary point data of the target tooth and the angle corresponding to the hole boundary point obtained in step S2, and the coordinates of the new insertion point are calculated based on the average length of the boundary edge obtained in S1 and the direction vector obtained in S3.

7. The three-dimensional mesh hole repair method based on boundary feature enhancement according to claim 5, characterized in that: In step S4, if T i The corresponding angle is less than 85, then T i-1 , T i , T i+1 Directly form triangular facets. If T i If the corresponding angle is greater than 85, the new insertion point T is calculated in step S3. new , then use T i-1 ,T,T new and T i+1 , T i , T new Form triangular patches. Put T i Remove from the set of boundary points, T new Add to the boundary point set, T i+1 Become the new T i , the resulting triangular face is added to the new T i A ring of neighborhood triangles is used to update the boundary points and a ring of neighborhood triangles and boundary triangles, and then steps S2 to S4 are repeated to calculate new insertion points and form triangles. When all the original boundary points are updated to new insertion points, the updated boundary points are used as new boundary points, and new repair starting points are selected based on the minimum angle principle. Then, operations S2-S4 are repeated until the hole is closed. Determine whether the new triangular face forms a cross triangle. If a cross triangle is formed, it is necessary to determine which situation it belongs to. Since the solution angle is wrong, the direction of the insertion point is reversed and a new insertion point is calculated; since the step size and the direction of the insertion point jointly cause the appearance of a cross triangle, the insertion point is modified to the point closest to the boundary vertex as the insertion point; since the step size produces a cross triangle, the insertion point is changed to the boundary point closest to the insertion point, and then divided into sub-holes, and then the sub-holes are repaired using this method until the hole is closed.