Curved surface fragmentation conformal flattening method
The surface is processed through the Reeb diagram and the conformal energy minimization method, which solves the problem of low surface processing efficiency and realizes the rapid and accurate flattening of the surface on the two-dimensional plane. It is suitable for the field of computer-aided engineering and improves the efficiency of surface processing. efficiency and accuracy.
Patent Information
- Application Number
- CN202411346090.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology is inefficient when processing curved surfaces and it is difficult to effectively perform surface shearing, segmentation and conformal flattening. As a result, the shape cannot be preserved when the processing of complex curved surfaces in three-dimensional space is converted into two-dimensional plane processing, which affects the fields of geometric processing and surface rendering. application.
Use Reeb diagrams and wrap numbers to find ring handle circles and tunnel circles, shorten and cut the surface through the shortest path tree, construct a graph Laplacian matrix to search for connected branches, detect singly connected surfaces, and use the conformal energy minimization method to calculate the total Flatten mapping to flatten a curved surface onto a flat surface.
It achieves universal and robust processing of arbitrary surfaces, can flatten surfaces quickly and accurately, and is directly applied to computer-aided engineering scenarios such as mesh generation and surface rendering, ensuring that the conformal error of mapping is small, and the calculation method Mature and fast.
Smart Images

Figure CN118864231A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of curved surface flattening, and in particular to a curved surface slice conformal flattening method. Background Art
[0002] Discrete surfaces can represent different complex shapes of objects and are often used in many fields. However, people often need to spend a lot of energy and time to process surfaces. By performing reasonable shearing and slicing on the surface and then flattening it conformally to a two-dimensional plane, the processing of complex surfaces in three-dimensional space can be converted to processing on a simple two-dimensional plane. At the same time, conformal mapping can ensure that this conversion is shape-preserving, which plays an important role in geometric processing, surface rendering and other fields. Summary of the invention
[0003] In view of the deficiencies in the prior art, the present invention aims to provide a method for conformal flattening of surface slices.
[0004] In order to achieve the above object, the present invention adopts the following technical solution: A surface slice conformal flattening method, the method comprising: S1: If the genus of the surface is greater than 0, use the Reeb graph and the winding number to find the handle and tunnel circles, then use the shortest path tree to shorten the handle and tunnel circles, cut the surface along the handle and tunnel circles found, and obtain a piecewise edge surface; S2: Use the graph Laplacian matrix to search for all connected branches of the sliced edge surface, and search the boundary of each connected branch to detect whether each connected branch is a simply connected surface; S2.1: Use the cut surface to construct a graph Laplacian matrix, where the edge weight of the graph Laplacian matrix is set to 1. Calculate all zero eigenvalues and corresponding eigenvectors of the Laplacian matrix. The number of zero eigenvalues represents the number of connected branches of the surface. The eigenvectors are clustered into multiple clusters according to the number of connected branches, and each cluster corresponds to a connected branch. S2.2: Search for all free edges of each connected branch, connect the vertices along the free edges, and obtain the boundary of the connected branch.
[0005] S3: For connected branches of non-simply connected surfaces, find the cutting paths between different boundaries and cut them to form a simply connected surface; for connected branches without boundaries, cut them along a path to form a boundary; S4: Calculate the conformal flattening map by the conformal energy minimization method to flatten all connected branches onto the plane.
[0006] S4.1: Compute the Cotangent Laplacian Matrix : ; in, It is the edge The corresponding cotangent Laplace matrix edge weights, and It is the edge The two opposite angles; is the edge weight of the cotangent Laplacian matrix, and It is the edge The two opposite angles; S4.2: Construct the following antisymmetric matrices respectively and the diagonal matrix : ; S4.3: Under orthogonal constraints Next, minimize the conformal energy: ; in, are the horizontal and vertical coordinates of the vertices of the flattened surface, and the resulting matrix This is the conformal flattening mapping of the surface.
[0007] The application of the present invention in the field of computer-aided engineering is: after the surface slices are conformally flattened, the surface processing is implemented on the plane, and then the processing effect is restored back to the surface, such as mesh generation, texture mapping, etc.
[0008] Beneficial effects: 1. The method of searching for connected components through the eigenvalues and eigenvectors of the graph Laplacian matrix has strict theoretical guarantees. The algorithm can be applied to any surface and is universal and robust.
[0009] 2. Conformal energy theoretically characterizes the conformal error of the mapping. Minimizing the conformal energy can obtain the conformal flattened mapping, which can be directly applied to computer-aided engineering scenarios such as mesh generation and surface rendering.
[0010] 3. The conformal energy minimization problem under orthogonal constraints is a classic optimization problem. Currently, there are very mature targeted calculation methods that can calculate conformal mapping quickly, accurately and robustly. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 It is a flow chart of the algorithm described in the present invention.
[0012] Figure 2 The model of the specific implementation case and the segmented ring handle circle and tunnel circle, as well as the clipping path along the boundary.
[0013] Figure 3 It is the conformal flattening result achieved by the algorithm in the specific implementation case. DETAILED DESCRIPTION
[0014] The present invention will be further described below. It should be noted that the following embodiments are based on the present technical solution and provide detailed implementation methods and specific operation processes, but the protection scope of the present invention is not limited to these embodiments.
[0015] The present invention provides a surface slice conformal flattening method, the specific steps are: S1: If the genus of the surface is greater than 0, use the Reeb graph and the winding number to find the handle and tunnel circles, then use the shortest path tree to shorten the handle and tunnel circles, cut the surface along the handle and tunnel circles found, and obtain a piecewise edge surface; S2: Use the graph Laplacian matrix to search for all connected branches of the sliced edge surface, and search the boundary of each connected branch to detect whether each connected branch is a simply connected surface; S2.1: Use the cut surface to construct a graph Laplacian matrix, where the edge weight of the graph Laplacian matrix is set to 1. Calculate all zero eigenvalues and corresponding eigenvectors of the Laplacian matrix. The number of zero eigenvalues represents the number of connected branches of the surface. The eigenvectors are clustered into multiple clusters according to the number of connected branches, and each cluster corresponds to a connected branch. S2.2: Search all free edges of each connected branch, connect the vertices along the free edges, and obtain the boundary of the connected branch; S3: For connected branches of non-simply connected surfaces, find the cutting paths between different boundaries and cut them to form a simply connected surface; for connected branches without boundaries, cut them along a path to form a boundary; S4: Calculate the conformal flattening map by the conformal energy minimization method to flatten all connected branches onto the plane; S4.1: Compute the Cotangent Laplacian Matrix : ; in, It is the edge The corresponding cotangent Laplace matrix edge weights, and It is the edge The two opposite angles; is the edge weight of the cotangent Laplacian matrix, and It is the edge The two opposite angles; S4.2: Construct the following antisymmetric matrices respectively and the diagonal matrix : ; S4.3: Under orthogonal constraints Next, minimize the conformal energy: ; in, are the horizontal and vertical coordinates of the vertices of the flattened surface, and the resulting matrix This is the conformal flattening mapping of the surface.
[0016] Embodiment 1: This embodiment takes a Cube model with a genus of 5 as an example to further introduce the present invention in detail. The specific steps are as follows: S1: The genus of the surface is greater than 0. Use the Reeb graph and the winding number to find the ring handle and tunnel circle, and then use the shortest path tree to shorten the ring handle and tunnel circle. The obtained ring handle and tunnel circle are as follows Figure 2 As shown by line 1, the surface is cut along the found ring handle circle and tunnel circle to obtain the sliced edge surface; S2: Use the graph Laplacian matrix to search for all connected branches of the sliced edge surface, and search the boundary of each connected branch to detect whether each connected branch is a simply connected surface; S2.1: Use the cut surface to construct the graph Laplacian matrix, where the edge weight of the graph Laplacian matrix is set to 1, and calculate all zero eigenvalues and corresponding eigenvectors of the Laplacian matrix. The matrix has 1 zero eigenvalue, so the number of connected branches of the surface is 1, and all vertices are on the same connected branch; S2.2: Search for all free edges of the connected branch, connect the vertices along the free edges, and obtain the boundary of the connected branch. The number of boundaries of the connected branch obtained by searching is 4, which is not a simply connected surface; S3: For the connected branch that is not a simply connected surface, find the cutting path between different boundaries and cut it apart to make the connected branch a simply connected surface. The cutting path is as follows: Figure 2 As shown in Line 2, there are 3 lines in total; S4: Calculate the conformal flattening map by the conformal energy minimization method to flatten all connected branches onto the plane; S4.1: Compute the Cotangent Laplacian Matrix : ; in, It is the edge The corresponding cotangent Laplace matrix edge weights, and It is the edge The two opposite angles; is the edge weight of the cotangent Laplacian matrix, and It is the edge The two opposite angles; S4.2: Construct the following antisymmetric matrices respectively and the diagonal matrix : ; S4.3: Under orthogonal constraints Next, minimize the conformal energy: ; This minimization problem can be transformed into a large-scale sparse generalized eigenvalue problem to solve the minimum non-zero eigenvalue pair. ; This problem can be quickly solved by the inverse Lanczos algorithm, and the resulting matrix That is, the conformal flattening mapping of the surface, such as Figure 3 shown.
[0017] The technical means disclosed in the scheme of the present invention are not limited to the technical means disclosed in the above-mentioned implementation mode, but also include technical schemes composed of any combination of the above-mentioned technical features. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications are also regarded as the protection scope of the present invention.
Claims
1. A method for conformal flattening of surface slices, characterized in that: The method comprises: S1: If the genus of the surface is greater than 0, use the Reeb graph and the winding number to find the handle and tunnel circles, then use the shortest path tree to shorten the handle and tunnel circles, cut the surface along the handle and tunnel circles found, and obtain a piecewise edge surface; S2: Use the graph Laplacian matrix to search for all connected branches of the sliced edge surface, and search the boundary of each connected branch to detect whether each connected branch is a simply connected surface; S3: For connected branches of non-simply connected surfaces, find the cutting paths between different boundaries and cut them to form a simply connected surface; for connected branches without boundaries, cut them along a path to form a boundary; S4: Calculate the conformal flattening map by the conformal energy minimization method to flatten all connected branches onto the plane.
2. A surface slice conformal flattening method according to claim 1, characterized in that: Step S2 specifically includes the following steps: S2.1: Use the cut surface to construct a graph Laplacian matrix, where the edge weight of the graph Laplacian matrix is set to 1. Calculate all zero eigenvalues and corresponding eigenvectors of the Laplacian matrix. The number of zero eigenvalues represents the number of connected branches of the surface. The eigenvectors are clustered into multiple clusters according to the number of connected branches, and each cluster corresponds to a connected branch. S2.2: Search for all free edges of each connected branch, connect the vertices along the free edges, and obtain the boundary of the connected branch.
3. A surface slice conformal flattening method according to claim 1, characterized in that: Step S4 specifically includes the following steps: S4.1: Compute the Cotangent Laplacian Matrix : ; in, It is the edge The corresponding cotangent Laplace matrix edge weights, and It is the edge The two opposite angles; is the edge weight of the cotangent Laplacian matrix, and It is the edge The two opposite angles; S4.2: Construct the following antisymmetric matrices respectively and the diagonal matrix : ; S4.3: Under orthogonal constraints Next, minimize the conformal energy: ; in, are the horizontal and vertical coordinates of the vertices of the flattened surface, and the resulting matrix This is the conformal flattening mapping of the surface.
4. A surface slice conformal flattening method according to claim 1, characterized in that: The application in the field of computer-aided engineering is: after the surface slices are conformally flattened, the surface processing is performed on the plane, and then the processing effect is restored back to the surface.
