Processing path generation method for annular expansion based on grid curved surface boundary points

Through the annular expansion method based on the boundary points of the mesh surface, the 'dead end' problem in the path generation of the triangular mesh surface is solved, the expansion process is simplified, and the generation efficiency and accuracy of the processing path are improved.

CN118760058APending Publication Date: 2024-10-11BEIJING INST OF TECH +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410724812.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing triangular mesh surface path generation has the problem of parameter mapping deformation and 'dead end' in the single-chain expansion method, resulting in low processing accuracy and increased model expansion complexity.

Method used

The annular expansion method based on the boundary points of the mesh surface is adopted. By searching the annular boundary triangles layer by layer and expanding them to the same plane, the processing path is generated, which simplifies the expansion process and reduces the number of judgments and calculations.

Benefits of technology

It effectively reduces the overlap phenomenon and model expansion complexity, and improves the efficiency and accuracy of processing path generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760058A_ABST
    Figure CN118760058A_ABST
Patent Text Reader

Abstract

According to the processing path generation method based on the annular expansion of the grid curved surface boundary points, the expansion process is simplified by adopting a layer-by-layer expansion mode on the curved surface boundary, the number of times of judgment and calculation in the expansion process is reduced to a certain extent, and the expansion process is accelerated. The method specifically comprises the following steps: step 1, aiming at an STL model, starting from the outermost side of a curved surface boundary, carrying out annular boundary triangle searching, and realizing annular grouping of curved surface triangular patches of the STL model; step 2, unfolding each group of annular curved surface triangular patches into the same plane; and step 3, generating a laser processing path in the plane expanded in the step 2.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of curved surface laser subtractive processing, and more specifically, relates to a processing path generation method based on annular expansion of mesh curved surface boundary points. Background Art

[0002] When laser processing curved surfaces, path planning is required in advance. Usually, a plane pattern is designed first, and then the path is generated on the curved surface using the mapping relationship between the plane and the curved surface. This mapping relationship usually requires manual design. Currently, there are two mainstream methods: parameter mapping and direct expansion. Using parameter mapping to project the entire surface onto a plane will cause deformation, which has a certain impact on the processing accuracy. Relatively speaking, the direct expansion of the mesh surface will maximize the integrity of the processing area.

[0003] In the direct expansion method, there are two main expansion methods: chain expansion and tree expansion. The single chain expansion method is similar to the Euler diagram, which realizes the "one-stroke" single chain expansion by expanding adjacent triangles one by one; the surface tree expansion has the characteristics of complex situations and scattered paths, which is not suitable for processing. In both expansion methods, there will be certain overlap problems, and the expansion direction needs to be adjusted during the expansion process.

[0004] The graphics generated by single-chain expansion are simple and continuous, which is convenient for the generation of subsequent paths. However, due to the different complexity of the model, in many cases, the single-chain expansion is not a complete single chain. When searching for a triangle that can be expanded along the next edge of the triangle boundary, you may encounter a "dead end" and fail to find the next boundary. When changing the search direction, you can find a single-chain structure, but some triangles will be lost. If you add side chains to put the lost triangles into the corresponding positions of the main chain, the complexity of the model expansion will be significantly increased.

[0005] Wang Yujin and others flattened the mesh surface with islands or holes by using the quasi-conformal parameterization method used in the field of texture mapping for complex triangular mesh surfaces. Wang Jiacheng and others used the HE_Mesh library on the Java platform to realize the tree expansion of the mesh surface model based on the minimum spanning tree method and the single chain expansion based on the depth-first method, but there is still a "dead end" problem. Summary of the invention

[0006] In order to solve the problems of parameter mapping deformation and the "dead end" of single-chain unfolding method in the existing triangular mesh surface path generation, a processing path generation method based on ring unfolding of mesh surface boundary points was proposed. This method simplifies the unfolding process by unfolding the surface boundary layer by layer, reduces the number of judgments and calculations in the unfolding to a certain extent, and speeds up the unfolding process.

[0007] The technical solution for implementing the present invention is as follows:

[0008] A machining path generation method based on annular expansion of mesh surface boundary points, the specific process is as follows:

[0009] Step 1: for the STL model, starting from the outermost side of the surface boundary, searching for annular boundary triangles is performed to realize annular grouping of the surface triangle patches of the STL model;

[0010] Step 2: For each group of annular surface triangle patches, unfold them into the same plane;

[0011] Step 3: Generate a laser processing path in the plane obtained by unfolding in step 2.

[0012] Furthermore, the process of searching for the annular boundary triangle in step 1 of the present invention is as follows:

[0013] For the STL model, find the first boundary half-edge H1 that has no corresponding outer half-edge, and use the directionality of H1 and the closed loop characteristics of the boundary to gradually find the shared half-edge H i The triangle at the end point will eventually return to the starting half edge H1 to form a half-edge closed loop; the found triangle row will be eliminated, and the search will continue in the remaining STL model according to the above method until there is no edge without a corresponding outer half edge.

[0014] Furthermore, the specific process of searching for the annular boundary triangle of the present invention is as follows:

[0015] (1) For the STL model, find any boundary half-edge in the surface as the starting half-edge and put the triangle where it is located into the face set;

[0016] (2) Determine whether the outer half-edge of the next half-edge connected to the half-edge found initially exists. If so, point the pointer to the outer half-edge of the next half-edge, add the face where the half-edge is located to the face set, and execute step (2) again; if not, move to the next half-edge;

[0017] (3) Determine whether the loop has returned to the starting half. If not, go to step (2). If it has returned to the starting half, end the search for the annular surface.

[0018] After completing the search for a ring patch through the above steps (1)-(3), the boundaries of the remaining triangles need to be updated again. When all the patches in the layered surface are divided, the ring grouping of the surface patches is completed.

[0019] Furthermore, in step 2 of the present invention, each group of annular surface triangle patches is unfolded to the same plane, and the following process is used to implement it:

[0020] First, select the first triangle F1 in the mesh boundary, place the first half edge on the x-axis, and determine the coordinates of the two vertices of the first half edge on the x-axis;

[0021] Secondly, according to the length and angle of the second half side of the triangle patch F1, the coordinates of the third vertex of the triangle patch are calculated to realize the unfolding of the first patch;

[0022] Again, using the characteristics of shared edges, we gradually calculate the positions of the third points of adjacent triangles to achieve the expansion of all triangles.

[0023] Furthermore, the position of the third point of the adjacent triangle is calculated as follows:

[0024] Assume that the starting point of the shared edge is V1(x1,y1,z1), the vector modulus l and the angle γ with the x-axis, then the coordinates of the third point are V2(x2,y2,z2):

[0025]

[0026] Furthermore, the angle γ between the common side and the x-axis of the present invention is calculated by the following process:

[0027] (1) Calculate the angle β between the two half sides H1 and H2 of the original triangle;

[0028] (2) Calculate the angle α' between the edge H1 and the x-axis. If the projection of H1 on the y-axis y>=0, then α=α'; otherwise α=α'+π;

[0029] (3) Calculate the angle γ = α + β.

[0030] Beneficial effects:

[0031] The present invention searches for boundary triangles through mesh boundary points, groups the surface in annular shape, and utilizes the adjacency relationship between triangles and their own geometric information to realize the planar expansion of the mesh surface, thereby reducing the occurrence of overlapping phenomena to a certain extent, reducing the number of judgments and calculations in the expansion to a certain extent, and speeding up the expansion process. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0033] Figure 1 The process of the method of the present invention;

[0034] Figure 2 It is a single-chain side branch;

[0035] Figure 3 It is a schematic diagram of the ring expansion;

[0036] Figure 4 This is a schematic diagram of the boundary of the sub-surface.

[0037] Figure 5 Find the process for boundary patch rings;

[0038] Figure 6 is the initial patch position;

[0039] Figure 7 Calculate the position of the third point;

[0040] Figure 8 This is a schematic diagram of γ angle calculation;

[0041] Fig. 9 Expand the surface boundary patch loops. DETAILED DESCRIPTION

[0042] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0043] It should be noted that the following embodiments and features in the embodiments may be combined with each other in the absence of conflict; and, based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making any creative work are within the scope of protection of the present disclosure.

[0044] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0045] Due to the different complexity of STL models, in many cases, the single chain expansion is not a complete single chain, such as Figure 2 As shown in (a), searching for a triangle that can be expanded in a single chain along the next edge of the triangle boundary may lead to a "dead end" and the next boundary cannot be found, such as Figure 2 (b) When the search direction is changed, a single chain structure can be found, but some triangles will be lost, as shown in Figure 2 (c) Therefore, the missing triangles need to be put into the corresponding positions of the main chain to fully unfold it.

[0046] Based on the single chain method and combined with the model after surface layering, the embodiment of the present application proposes a processing path generation method based on the ring expansion of the mesh surface boundary points, which reduces the complexity of model expansion and reduces the occurrence of facet overlap. The so-called ring expansion is to expand the mesh model layer by layer from the boundary, and the facets expanded once are similar to "rings", such as Figure 2 shown.

[0047] The present application embodiment provides a method for generating a surface path based on annular expansion of mesh surface boundary points, wherein the annular expansion mainly consists of two processes: boundary triangle search and plane expansion. Figure 1 As shown, the specific process is:

[0048] Step 1: Find the ring boundary triangle

[0049] For the side chain situation that may appear in the single chain expansion, the search for the boundary triangle of the present invention relies on the half-edge structure of the triangle. The boundary information includes an edge and its two endpoints, and the two endpoints are the boundary points. Figure 2 (d) Only boundary triangles have such boundary information. That is, by judging whether the triangle patch includes boundary points, the boundary half-edge can be determined from the boundary points, and then whether it is located on the outermost ring, to determine whether the triangle is a boundary triangle.

[0050] In a closed STL model, all triangles have a complete half-edge structure, that is, the half-edge itself must have an outer half-edge corresponding to it, and the edge at the boundary of the layered surface has no corresponding outer half-edge, such as Figure 4 As shown in the figure, the half edge H1 located at the boundary of the layered surface has no corresponding outer half edge, but the half edge h1 has a corresponding outer half edge H1. Therefore, by using this feature, we can find the first half edge H1 in the STL model, and by using the directionality of H1 and the closed loop characteristics of the boundary, we can gradually find the shared half edge H1. i The triangle at the end point will eventually return to the starting half edge H1, forming a half-edge closed loop. Eventually, all the triangular facets on the surface boundary can be found, completing the search for a ring of facets.

[0051] The flow chart of boundary patch ring search is as follows: Figure 5 As shown, the process mainly includes the following steps:

[0052] (1) For the STL model, find any boundary half-edge in the surface as the starting half-edge and put the triangle where it is located into the face set;

[0053] (2) Determine whether the outer half-edge of the next half-edge connected to the half-edge found initially exists. If so, point the pointer to the outer half-edge of the next half-edge, add the face where the half-edge is located to the face set, and execute step (2) again; if not, move to the next half-edge;

[0054] (3) Determine whether the loop has returned to the starting half. If not, go to step (2). If it has returned to the starting half, end the search for the annular surface.

[0055] After completing the search for a ring patch through the above steps (1) to (3), the boundaries of the remaining triangles need to be updated to facilitate the search for the next layer of patches. When all patches in the layered surface are divided, the ring grouping of the surface patches is completed and the next surface expansion is performed.

[0056] Step 2: Unfold the annular triangle patch

[0057] The triangles in the mesh are connected by a common edge, which acts as an "axis" in the unfolding. The two triangles can be rotated to the same plane, such as the XOY plane. Figure 5 As shown, first select the first triangle F1 in the mesh boundary, place the first half edge on the x-axis, and the starting point V 1,1 The coordinates are set to (0,0,0), point V 1,2 According to the length of its side, the coordinates are set to (a,0,0), point V 1,3 It can be calculated by its half-side angle value β, as shown in formula (1):

[0058] V 1,3 =(a+bcos(β),bsin(β),0) (1)

[0059] After unfolding the first face, due to the existence of shared edges, all triangles are unfolded by gradually calculating the position of the third point of the adjacent triangles. The calculation of the position of the third point can be described as Figure 7 The mathematical problem shown is: given the coordinates of the starting point V1 (x1, y1, z1) in the vector (i.e. the boundary point), the vector modulus l (i.e. the boundary length) and the angle γ with the x-axis, the coordinates of the point V2 (x2, y2, z2) can be calculated using formula (2):

[0060]

[0061] The angle γ is the angle that the x-axis rotates counterclockwise to the position H2.

[0062] After determining the unfolded position of the first triangle, the position of the third point of the adjacent triangles can be calculated through the common edge. However, since the position of the common edge in the triangle is unknown, the angle value γ with the coordinate axis (the x-axis used in this implementation) cannot be directly used as the angle between the direction vector of the half edge and the coordinate axis.

[0063] This embodiment provides the following calculation method. Figure 8 As shown, given the planar unfolding position of half edge H1 and the shape information of the spatial triangle, the angle γ between the half edge where the third point is located and the coordinate axis can be calculated by rotation, which mainly includes the following three steps:

[0064] (1) Calculate the angle β between the two half sides H1 and H2 of the original triangle;

[0065] (2) Half side H1 can be obtained by rotating the x-axis counterclockwise by α. Calculate the angle α' between the currently known half side H1 and the x-axis. If y>=0, then α=α', otherwise α=α'+π;

[0066] (3) H2 can be obtained by rotating H1 counterclockwise by β, from which we can know that γ=α+β.

[0067] After obtaining this angle, we can use it in the above formula to find the coordinates of the third point of the plane expansion. In the beginning, we use the adjacency relationship to get the boundary and two points on the boundary. Through these three points, we can draw a boundary triangle on the plane, and then realize the surface flattening of the boundary triangle face ring.

[0068] The rotation angle is obtained, and the position of the third vertex after expansion can be calculated by formula (2). Based on the above method, the surface boundary can be circularly expanded, and some results are as follows: Fig. 9 As shown:

[0069] Step three, based on the ring expansion of the mesh surface boundary points, the surface path is generated.

[0070] Surface parameter mapping is prone to deformation, the tree-shaped expansion is complex, the path is scattered, and it is not suitable for processing. In contrast, the graphics generated by single-chain expansion are simple and continuous, which is convenient for the generation of subsequent paths. Based on the single-chain expansion method, the present invention proposes a processing path generation method based on annular expansion of mesh surface boundary points. The boundary triangles are found by mesh boundary points, the surface is grouped in annular form, and the adjacency relationship between triangles and their own geometric information are used to realize the plane expansion of the mesh surface, which reduces the occurrence of overlapping phenomena to a certain extent, reduces the number of judgments and calculations in the expansion to a certain extent, and speeds up the expansion process.

[0071] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A machining path generation method based on annular expansion of mesh surface boundary points, It is characterized in that The specific process is: Step 1: for the STL model, starting from the outermost side of the surface boundary, searching for annular boundary triangles is performed to realize annular grouping of the surface triangle patches of the STL model; Step 2: For each group of annular surface triangle patches, unfold them into the same plane; Step 3: Generate a laser processing path in the plane obtained by unfolding in step 2.

2. According to the method for generating a machining path based on annular expansion of mesh surface boundary points according to claim 1, It is characterized in that The process of searching the annular boundary triangle in step 1 is as follows: For the STL model, find the first boundary half-edge H that has no corresponding outer half-edge 1 , the boundary half side H 1 The two endpoints of are the boundary points, using H 1 The directionality and closed loop characteristics of the boundary are used to gradually find the shared half edge H i The triangle at the end eventually returns to the starting half H 1 , forming a half-edge closed loop; the found triangle rows are eliminated, and the search continues in the remaining STL model according to the above method until there is no edge without a corresponding outer half-edge.

3. According to claim 2, the processing path generation method based on the annular expansion of the mesh surface boundary points, It is characterized in that The specific process of searching the annular boundary triangle is as follows: (1) For the STL model, find any boundary half edge H on the surface 1 Use this as a starting point to find the half edge and put the triangle it is in into the face set; (2) Determine the half edge H found at the beginning 1 Check whether the outer half-edge of the next half-edge exists. If so, point the pointer to the outer half-edge of the next half-edge, add the face of the half-edge pointed to at this time to the face set, and execute step (2) again. If not, move to the next half-edge. (3) Determine whether it has returned to the starting half H 1 If it does not return, go to step (2). If it returns to the starting half H 1 , then the search for this annular surface ends; After completing the search for a ring patch through the above steps (1)-(3), the boundaries of the remaining triangles need to be updated again. When all the patches in the layered surface are divided, the ring grouping of the surface patches is completed.

4. The method for generating a machining path based on annular expansion of mesh surface boundary points according to claim 1, It is characterized in that Step 2: For each group of annular surface triangles, unfold them to the same plane, using the following process: First, select the first triangle F in the mesh boundary 1 , place the first half edge on the x-axis and determine the coordinates of the two vertices of the first half edge on the x-axis; Secondly, according to the triangle patch F 1 The length and angle of the second half side of the triangle are used to calculate the coordinates of the third vertex of the triangle patch, thus realizing the unfolding of the first patch. Again, using the characteristics of shared edges, we gradually calculate the positions of the third points of adjacent triangles to achieve the expansion of all triangles.

5. The method for generating a machining path based on annular expansion of mesh surface boundary points according to claim 1, It is characterized in that The calculation of the position of the third point of the adjacent triangle is: Let the starting point of the shared edge be V 1 (x 1 ,y 1 ,z 1 ), the vector modulus l and the angle γ with the x-axis, then the coordinates of the third point are V 2 (x 2 ,y 2 ,z 2 ):

6. The method for generating a machining path based on annular expansion of mesh surface boundary points according to claim 5, It is characterized in that The angle γ of the x-axis is calculated by the following process: (1) Calculate the two half sides H of the original triangle 1 and H 2 The angle β between them; (2) Calculate edge H 1 The angle α' with the x-axis, if H 1 Projection on the y-axis y>=0, then α=α', otherwise α=α'+π; (3) Calculate the angle γ = α + β.

Citation Information

Cited By

  • Multi-curved-surface surface machining path planning algorithm and device and storage medium

    CN119739109A

  • Laser processing method and system for narrow-spacing discrete tombstone array circuit

    CN122322668A

  • A method and system for laser processing of a narrow-pitch discrete monument array circuit

    CN122322668B