An efficient free-form surface slicing method based on grid intersection and its application

Through the method based on grid intersection, the problems of low efficiency and accuracy error of surface layering algorithm are solved, efficient and accurate surface layering is achieved, which is suitable for processing large-sized complex models and expands the scope of application.

CN114742852BActive Publication Date: 2024-09-06HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210215526.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-07
Publication Date
2024-09-06
Estimated Expiration
2042-03-07

AI Technical Summary

Technical Problem

Existing surface layering algorithms have problems such as low efficiency, inability to handle large-size complex models, accuracy errors, and limited application range. Especially in multi-degree-of-freedom additive manufacturing technology, it is difficult to achieve efficient and accurate layering on curved surface substrates. processing.

Method used

An efficient free-form surface layering method based on grid intersection is used to reduce algorithm time complexity and improve layering efficiency and accuracy by screening triangular patches, discretizing voxels, judging intersection segments, merging intersection loops and triangulation. , suitable for processing large-sized and complex models.

Benefits of technology

It significantly improves the efficiency and accuracy of surface layering, can handle large-size models containing tens of millions of triangular patches, reduces storage space, enhances the accuracy and robustness of layering results, and expands application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114742852B
    Figure CN114742852B
Patent Text Reader

Abstract

The present invention belongs to the technical field related to additive manufacturing, and discloses an efficient free-form surface layering method based on grid intersection and its application, which comprises the following steps: (1) screening out triangular facets in a common collision space between an STL model and a surface slice layer; (2) voxelizing the common collision space, and determining all voxels through which the triangular facets pass, and then storing the ID numbers of the triangular facets in the voxels; (3) solving intersection segments; (4) connecting the intersection segments into intersection loops; (5) triangulating the polygonal areas of the intersecting triangular facets divided by the intersection loops, and screening out the newly triangular facets located in the STL model; and at the same time obtaining the vertices of the triangular facets located inside the STL model, and searching based on the obtained triangular facet vertices to obtain triangular facets containing the triangular facet vertices and not belonging to the intersecting triangular facets, and then completing the layering. The present invention significantly improves efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field related to additive manufacturing, and more specifically, relates to an efficient free-form surface layering method based on grid intersection and its application. Background Art

[0002] Traditional additive manufacturing is based on a planar layering method. There are many limitations and shortcomings in using a planar layering method to manufacture parts, such as the need to add support materials, the existence of step effects, distortion of the model surface, and difficulty in forming on curved substrates. The curved layering method can improve these limitations and shortcomings, and has significant improvements in achieving conformal manufacturing, reducing the loss of model surface features, and improving the surface accuracy of parts. With the continuous development of multi-degree-of-freedom additive manufacturing technology, curved layer deposition forming CLFD (Curved Layer Fused Deposition) has been widely studied, such as wire arc additive manufacturing WAAM (Wire Arc Additive Manufacturing), laser cladding deposition LENS (Laser Engineered Net Shaping) and other processes. In the fields of support-free printing and remanufacturing on existing curved substrates, it is necessary to study surface layering and path planning technology.

[0003] In the field of additive manufacturing surface processing, there are currently many surface layering algorithms. For example, Chinese invention patents CN110750870 A and CN 111951399 A propose methods based on voxel surface distance fields for surface layering and path trajectory planning. The time complexity and space complexity of the voxelized surface layering algorithm are both cubic complexity. The amount of data after voxelization is large, the calculation time is long, and there are precision errors. It is impossible to process large-scale models and complex lattice structures. For example, Chinese invention patent CN 110126279 A proposes surface layering based on triangular mesh subdivision and reverse offset along the normal of the facet. This method requires continuous traversal of all triangular facets of the model, and each layering requires triangular mesh reconstruction of the offset point cloud data, which is relatively inefficient. The existing triangular-based meshing surface layering method requires traversing all the triangular faces of the model and the triangular faces of the surface slice layer when using the surface slice layer to intersect the model. The algorithm has a quadratic complexity and cannot handle large-scale complex models.

[0004] In summary, the existing surface layering methods have problems such as low efficiency and inability to process large-size models. Some of the current surface layering algorithms can only process simple surface models and have problems such as precision errors, which limits their application scope in the field of surface processing. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides an efficient free-form surface layering method based on grid intersection and its application. The layering method can layer the surfaces of cylinders, spheres and any free-form surface types on STL models; the algorithm time complexity is reduced from the traditional quadratic complexity to linear complexity, which significantly improves the efficiency; and it can process large-scale complex models of Gb level containing tens of millions of triangles, which is an efficient and accurate surface layering method.

[0006] To achieve the above object, according to one aspect of the present invention, an efficient free-form surface layering method based on grid intersection is provided, and the layering method comprises the following steps:

[0007] (1) screening out triangular facets in the triangular mesh of the STL model of the part to be processed and triangular facets in the triangular mesh of the surface slice layer corresponding to the part to be processed that are located in a common collision space; the common collision space is the common collision space between the STL model and the surface slice layer;

[0008] (2) The common collision space is discretized into voxels, and all voxels through which each triangular facet selected in step (1) passes are solved according to the separating axis theorem, and then the ID number of the triangular facet to which it belongs is stored in the solved voxel, that is, the ID number of the triangular facet to which it belongs is stored in the solved voxel;

[0009] (3) obtaining voxels in the common collision space that store both the triangle ID number of the STL model and the triangle ID number of the surface slice layer, and determining whether any two triangles corresponding to each obtained voxel intersect, and if so, recording the intersection line segment; otherwise, skipping;

[0010] (4) merging the same intersection points of the obtained intersection line segments to connect all the intersection line segments into a closed and orderly intersection line ring;

[0011] (5) The interior of the intersecting triangular facets obtained in step (3) is divided into a plurality of regions by the intersection line ring, and the polygonal regions in the plurality of regions are triangulated, and new triangular facets located in the STL model are screened out from the triangular facets obtained by triangulation; at the same time, the vertices of the triangular facets located in the STL model are obtained, and a search is performed based on the obtained triangular facet vertices to obtain triangular facets that contain the triangular facet vertices and do not belong to the intersecting triangular facets obtained in step (3);

[0012] (6) The triangular facets searched in step (5) are combined with the newly subdivided triangular facets to form a triangular mesh containing the internal information of the surface, and the obtained triangular mesh and the intersection ring are used as the result of free surface layering.

[0013] Furthermore, in step (4), the same intersection points of the obtained intersection line segments are merged according to the topological continuity of the adjacent edges of the triangular mesh of the STL model and the surface slice layer, so as to connect all the intersection line segments into a closed and ordered intersection line ring.

[0014] Furthermore, before step (1), the method further includes topologically reconstructing the triangular mesh of the STL model of the part to be processed, and constructing a series of surface slice layers according to the surface features of the part to be processed.

[0015] Furthermore, the common part of the bounding box of the STL model and the bounding box of the surface slice layer, ie, the common collision space, is obtained by solving.

[0016] Furthermore, in step (2), the voxel accuracy is set according to the characteristic size of the triangular facets of the STL model, and the voxel accuracy is linearly correlated with the characteristic size of the triangular facets of the STL model.

[0017] Furthermore, the overall characteristics of the triangle size are first comprehensively characterized according to the mode and median of the triangles in the triangular mesh of the STL model, and the obtained overall characteristic value is multiplied by a coefficient as the voxel accuracy value.

[0018] Further, the coefficient is 1.8.

[0019] Furthermore, in step (5), the ear-cut algorithm is used to triangulate the polygonal region.

[0020] According to another aspect of the present invention, there is provided an application of the above-mentioned efficient free-form surface layering method based on grid intersection in additive manufacturing.

[0021] In general, compared with the prior art, the above technical solution conceived by the present invention, the efficient free-form surface layering method based on grid intersection and its application provided by the present invention mainly have the following beneficial effects:

[0022] 1. The layering method saves and solves the surface layering in the form of facets. Compared with the voxel method for surface layering, it improves the accuracy of the layering results and reduces the use of algorithm storage space. It has great advantages in processing refined models and large-size models such as complex lattice structures. The layering method can process models containing error information and non-solid face triangular meshes, and can layer models of cylindrical surfaces, spherical surfaces, and arbitrary free-form surfaces.

[0023] 2. By establishing a multi-information voxel space and optimizing the triangular facet screening of the model and surface slicing layer, the algorithm time complexity is reduced from the traditional quadratic complexity to linear complexity. Assuming that the number of triangular facets in the model and surface slicing layer is M and N respectively, the time complexity of the traditional algorithm is O(MN), and the time complexity of this method is O(M+N+V), where V is the number of intersecting facets, which significantly improves the layering efficiency of large-scale complex models; this method can process large-scale models of Gb level containing tens of millions of triangular facets.

[0024] 3. The same intersection points of the intersection segments are merged according to the topological continuity of the adjacent edges of the triangular mesh, avoiding repeated calculation of the intersection points of the same contour ring under different intersection conditions, solving the point diffusion problem caused by floating-point calculation errors in the repeated intersection process, and obtaining the correct surface contour intersection ring, thereby ensuring the accuracy and robustness of the surface layering algorithm, making the surface layering method have a wider range of application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a schematic flow chart of an efficient free-form surface layering method based on grid intersection provided by the present invention;

[0026] Figure 2 is a schematic diagram of the part model to be processed;

[0027] Figure 3 It is the constructed multi-information voxel space and the model intersecting triangular facets;

[0028] Figure 4 It is the three-dimensional contour intersection loop obtained by layering the model surface;

[0029] Figure 5 It is the surface layering result of the model. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0031] See also Figure 1 , Figure 2 and Figure 3 The present invention provides an efficient free-form surface layering method based on grid intersection, which mainly includes the following steps:

[0032] Step 1: topologically reconstruct the triangular mesh of the STL model of the part to be processed, and construct a series of surface slice layers according to the surface features of the part to be processed.

[0033] Specifically, the STL model of the part to be processed is read in, and the triangular mesh of the STL model is topologically reconstructed. At the same time, a corresponding series of surface slice layers are constructed according to the surface features of the part to be processed. Simple surfaces such as cylinders and spheres can be directly generated by algorithms, while free-form surfaces are generated by inverse search of the STL model surface or using modeling software.

[0034] Step 2: filter out triangular facets in the triangular mesh of the STL model and triangular facets in the triangular mesh of the surface slice layer that are located in a common collision space, wherein the common collision space is the common collision space between the STL model and the surface slice layer.

[0035] Specifically, the common collision space between the bounding box of the STL model and the bounding box of the surface slice layer is solved, and the triangular facets in the triangular mesh of the STL model and the triangular facets in the triangular mesh of the surface slice layer are traversed to screen out the triangular facets located in the common collision space.

[0036] Among them, for the STL model and the surface slice layer, first calculate their respective bounding boxes, then solve the common part of the two bounding boxes (that is, the common collision space), and then traverse the triangular facets in the STL model and the surface slice layer to filter out the triangular facets located in the common collision space.

[0037] Step three, discretize the common collision space into voxels, and solve all the voxels that each triangle screened out in step two passes through according to the separating axis theorem, and then store the triangle ID number to which it belongs in the solved voxel, that is, the solved voxel stores the triangle ID number to which it belongs.

[0038] Specifically, the common collision space is discretized into voxels, and after the voxel precision is set according to the characteristic size of the triangular facets of the STL model, all the triangular facets in the STL model and the surface slice layer located in the common collision space are traversed respectively, and all the voxels passed by each triangular facet are solved according to the separating axis theorem, and the ID numbers of the corresponding triangular facets are stored in these voxels.

[0039] Among them, when discretizing the common collision space into voxels, selecting appropriate voxel accuracy is the key to optimizing efficiency. If the voxel accuracy is too small, the number of voxels will increase, and the time for intersection detection between triangles and voxels will increase; if the accuracy is too low, the range of the divided space will be too large, which will lead to too many triangles stored inside the voxel, and the optimization effect will be reduced. Voxel accuracy is linearly related to the characteristic size of the triangular facets of the STL model, and more specifically to the size of the triangular facets at the intersection of the STL model and the surface slice layer. This embodiment first comprehensively characterizes the overall characteristics of the triangular facet size based on the mode and median of the triangular facets in the triangular mesh of the STL model, and multiplies the obtained overall characteristic value by a coefficient as the voxel accuracy value. This embodiment obtains the relationship between voxel accuracy and triangular facet size through surface layering tests and simulation studies on multiple STL models. The coefficient in the algorithm is 1.8.

[0040] In this embodiment, for this free-form surface lattice model, the characteristic size of the triangle patch is 0.3, so the characteristic size is multiplied by the voxel precision coefficient of 1.8, the voxel precision is taken as 0.5, and the triangular patch surface is voxelized to determine the voxel to which each triangle patch belongs, and the corresponding triangle patch ID number is saved in the voxel to construct a multi-information voxel space.

[0041] Step 4: Obtain voxels in the common collision space that store both the triangle ID number of the STL model and the triangle ID number of the surface slice layer, and determine whether any two triangles corresponding to each obtained voxel intersect. If so, record the intersection line segment; otherwise, skip.

[0042] Specifically, all voxels in the common collision space are traversed. If the voxel stores both the triangle ID number of the STL model and the triangle ID number of the surface slice layer, all triangles in the voxel are traversed to determine whether the two triangles intersect according to the spatial triangle intersection algorithm. If they intersect, the intersection line segment is recorded; if they do not intersect, it is skipped. If the voxel is empty or only stores one triangle ID number, it is skipped, and this process is repeated until all voxels are traversed to complete the screening and intersection of intersecting triangles.

[0043] Step 5: Merge the same intersection points of the obtained intersection line segments according to the topological continuity of the adjacent edges of the triangular mesh of the STL model and the surface slice layer, so as to connect all the intersection line segments into a closed and orderly intersection line ring.

[0044] See also Figure 4In which, the intersection algorithm of two spatial triangles not only saves the intersection points, but also records the information of the edge to which each intersection point belongs. In the process of finding the intersection of spatial triangles, due to repeated intersection of the same edge, floating-point arithmetic errors will cause unequal intersection values ​​and point diffusion problems, affecting the subsequent extraction of intersection rings. This implementation method merges the same intersection points through the topological continuity of adjacent edges of the triangular mesh, ensuring that the intersection rings are correctly connected in order.

[0045] Step six, the interior of the intersecting triangles obtained in step four is divided into multiple areas by the intersection ring, triangulation is performed on the obtained multiple areas, and new triangular faces located in the STL model are screened out from the triangular faces obtained by triangulation; at the same time, the triangular face vertices located inside the STL model are obtained, and a search is performed based on the obtained triangular face vertices to obtain triangular faces that contain the triangular face vertices and do not belong to the intersecting triangle faces obtained in step four, and the searched triangular faces are called native triangular faces.

[0046] Specifically, when triangulating intersecting triangular patches, the polygonal area in the triangular patch must be extracted first, and a local coordinate system must be established on the triangular plane. The intersection line loop on the patch must be planarized, and the ear-cut algorithm must be called to triangulate the polygonal area. According to the intersection line loop obtained in the above steps, the intersecting triangular patch is divided into multiple polygonal areas, and triangulated. The inside and outside classification of the polygonal area is determined according to the direction of the intersection line loop and the normal direction of the triangular patch, and the triangular patch located inside the model is obtained.

[0047] When classifying triangles into inside and outside, the internal vertices of the triangles inside the model are obtained according to the above-mentioned intersection boundary processing steps, the vertex queue is initialized with these vertices, and a BFS graph search is performed on the STL model triangle mesh to obtain all triangles that contain these vertices and are not intersecting and unmarked. These triangles are placed in the result set and marked as processed; then, these vertices are deleted from the vertex queue, and all the vertices of these triangles are placed in the vertex queue, and the search is continued until the vertex queue is empty, completing the inside and outside classification of triangles.

[0048] Step 7: Combine the triangular facets found in step 6 with the newly subdivided triangular facets to form a triangular mesh containing the internal information of the surface, and use the obtained triangular mesh and the intersection line ring as the result of free surface layering. Figure 5 shown.

[0049] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An efficient free-form surface layering method based on grid intersection, characterized in that: The layering method comprises the following steps: (1) screening out triangular facets in the triangular mesh of the STL model of the part to be processed and triangular facets in the triangular mesh of the surface slice layer corresponding to the part to be processed that are located in a common collision space; the common collision space is the common collision space between the STL model and the surface slice layer; (2) The common collision space is discretized into voxels, and all voxels through which each triangular facet selected in step (1) passes are solved according to the separating axis theorem, and then the ID number of the triangular facet to which it belongs is stored in the solved voxel, that is, the ID number of the triangular facet to which it belongs is stored in the solved voxel; (3) obtaining voxels in the common collision space that store both the triangle ID number of the STL model and the triangle ID number of the surface slice layer, and determining whether any two triangles corresponding to each obtained voxel intersect, and if so, recording the intersection line segment; otherwise, skipping; (4) merging the same intersection points of the obtained intersection line segments to connect all the intersection line segments into a closed and orderly intersection line ring; (5) The interior of the intersecting triangular facets obtained in step (3) is divided into a plurality of regions by the intersection line ring, and the polygonal regions in the plurality of regions are triangulated, and new triangular facets located in the STL model are screened out from the triangular facets obtained by triangulation; at the same time, the vertices of the triangular facets located in the STL model are obtained, and a search is performed based on the obtained triangular facet vertices to obtain triangular facets that contain the triangular facet vertices and do not belong to the intersecting triangular facets obtained in step (3); (6) The triangular facets searched in step (5) are combined with the newly subdivided triangular facets to form a triangular mesh containing the internal information of the surface, and the obtained triangular mesh and the intersection ring are used as the result of free surface layering.

2. The efficient free-form surface layering method based on grid intersection as claimed in claim 1, characterized in that: In step (4), the same intersection points of the obtained intersection line segments are merged according to the topological continuity of the adjacent edges of the triangular mesh of the STL model and the surface slice layer, so as to connect all the intersection line segments into a closed and orderly intersection line ring.

3. The efficient free-form surface layering method based on grid intersection as claimed in claim 1, characterized in that: Before step (1), the method also includes topologically reconstructing the triangular mesh of the STL model of the part to be processed, and constructing a series of surface slice layers according to the surface features of the part to be processed.

4. The efficient free-form surface layering method based on grid intersection as claimed in claim 1, characterized in that: The common part of the bounding box of the STL model and the bounding box of the surface slice layer, that is, the common collision space, is obtained by solving the problem.

5. The efficient free-form surface layering method based on grid intersection according to any one of claims 1 to 4, characterized in that: In step (2), the voxel accuracy is set according to the characteristic size of the triangular facets of the STL model, and the voxel accuracy is linearly related to the characteristic size of the triangular facets of the STL model.

6. The efficient free-form surface layering method based on grid intersection as claimed in claim 5, characterized in that: Firstly, the overall characteristics of the triangle size are comprehensively characterized according to the mode and median of the triangles in the triangular mesh of the STL model, and the overall characteristic value is multiplied by a coefficient as the voxel accuracy value.

7. The efficient free-form surface layering method based on grid intersection as claimed in claim 6, characterized in that: The coefficient is 1.

8.

8. The efficient free-form surface layering method based on grid intersection according to any one of claims 1 to 4, characterized in that: In step (5), the ear-cut algorithm is used to triangulate the polygonal area.

9. Application of the efficient free-form surface layering method based on grid intersection as described in any one of claims 1 to 8 in additive manufacturing.