A method for generating path planning for additive manufacturing
By identifying the concave and convex points of the slice outline in additive manufacturing, constructing and adjusting the segmentation line segments, and generating a closed printing path, the problem of uneven material accumulation caused by too small corners of the polygon slice outline is solved, and the product appearance and additive manufacturing are improved. Material process efficiency.
Patent Information
- Application Number
- CN202211115974.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-09-14
AI Technical Summary
In additive manufacturing, the corners of the scanning and filling paths of polygonal slice contours are too small, resulting in uneven material accumulation and affecting the product morphology quality.
By constructing a rectangular coordinate system, identify the concave and convex points of the slice outline, construct dividing line segments, delete intersecting line segments, select a set of dividing line segments with the smallest characteristics and quantity, adjust the angle of the filled line segments, generate a closed printing path, and reduce small-angle turning points Material accumulation.
It improves product shape accuracy and quality, reduces non-additive path planning, improves additive process efficiency, reduces filling breakpoints and the number of starts and stops, and improves the smoothness and molding quality of the filling surface.
Smart Images

Figure CN115503240B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of additive manufacturing, and in particular to a method for generating additive manufacturing path planning. Background Art
[0002] In additive manufacturing technology, scanning and filling path planning for the slice contours after layered slicing of a three-dimensional model is one of its key technologies.
[0003] Currently, polygon slice contours use the reciprocating straight line method or offset contour method to generate scan fill paths, such as Figure 1-2 In the process of scanning and filling the polygonal contour, the corner a at the connection between multiple adjacent paths is small, resulting in the material accumulation at the corner a being significantly excessive relative to the place with a larger corner. Therefore, when generating a three-dimensional product, the morphology of the product is poor due to the accumulation of materials at multiple small corners. Summary of the invention
[0004] In view of the shortcomings of the prior art, one of the objectives of the present invention is to provide a method for generating additive manufacturing path planning.
[0005] The above-mentioned object of the present invention is achieved through the following technical solutions:
[0006] A method for generating an additive manufacturing path planning, characterized in that it comprises the following steps:
[0007] S1. construct a rectangular coordinate system, and construct a slice contour line in the rectangular coordinate system;
[0008] S2. Construct the filling area:
[0009] S2.1: Get each turning point of the slice contour and set it as point S;
[0010] S2.2: Get the turning points adjacent to point S and set them as points p and q respectively, and construct a directed line segment from point p to point q
[0011] S2.3: Determine if point S is located at On the left side, then point S is preset as a concave point to form a concave point set. On the contrary, if point S is located on On the right side of , point S is preset as a convex point;
[0012] S2.4: The line connecting each two concave points can form a segmentation line segment. The polygons formed by the two sides of each segmentation line segment are obtained separately, and it is determined whether the two endpoints of the segmentation line segment are convex points in the polygon. If so, the segmentation line segment is retained, otherwise, the segmentation line segment is deleted.
[0013] S2.5: Determine whether the segmentation line segments retained in S2.4 intersect. If there are multiple segmentation line segments intersecting, delete the intersecting segmentation line segments until there are no intersecting segmentation line segments and there is at least one segmentation line segment at each concave point. The retained segmentation line segments constitute a potential segmentation line segment set.
[0014] S2.6: In the potential segmentation line segment set, a subset with the smallest sum of the segmentation line segment characteristics and the number of segmentation line segments is selected as the final segmentation line segment set, wherein the segmentation line segment characteristic is the sum of the length of the segmentation line segment and the angle difference at the segmentation point;
[0015] S2.7: The retained segmentation line segments and the slice contour lines form a number of closed filling areas;
[0016] S3. Construct the printing path:
[0017] S3.1: Preset a plurality of parallel filling line segments in the filling area;
[0018] S3.2: Select any filling line segment in each filling area, calculate the sum of the cosines of the angles between the two ends of the filling line segment and the dividing line or slice contour line constituting the filling area as Z, and adjust the filling line segment angle to minimize Z;
[0019] S3.3: Connect the fill line segments to form a printing path.
[0020] In a preferred example, the present invention can be further configured as follows:
[0021] Step S2.3 also includes:
[0022] The distance between each concave point and the adjacent turning point is measured as D; if D>W, the concave point is retained in the concave point set; otherwise, the concave point is removed from the concave point set, where W is the minimum threshold of concave point significance and is a constant, W=0.85.
[0023] In a preferred example, the present invention can be further configured as follows:
[0024] Step S3.3 also includes:
[0025] S3.3.1: Each fill area independently constructs a closed printing path 1;
[0026] S3.3.2: Obtain a segment with the same printing path in each filling area, and use any two points on the same segment as transfer points, with the interval between the two transfer points on the same segment being the printing width d;
[0027] S3.3.2: Construct a closed path 2 by using path 1 in the filling area on both sides of the dividing line where the transfer point is located, the dividing line segment divided into two segments by the transfer point, and the transfer point.
[0028] In a preferred example, the present invention can be further configured as follows: in step S3.3.1, if the number of filling line segments in the filling area and the splitting line segments or slice contour line segments parallel to the filling line segments is an odd number, then at least two of the line segments are printed along a sine wave.
[0029] In summary, the present invention includes at least one of the following beneficial technical effects:
[0030] 1. Reduce and minimize the turning points with smaller angles during filling, thereby improving the morphological accuracy and quality of the product;
[0031] 2. All the individually closed paths 1 are constructed into a complete closed path 2, which not only reduces the non-additive path planning and improves the efficiency of the entire additive process, but also greatly reduces the breakpoints during filling, reduces the frequent start and stop of the filling mechanism, avoids too many filling start and stop points, and improves the flatness of the filling surface and the molding quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a slice profile of a specific embodiment.
[0033] Figure 2 is the slice outline with turning point markers added.
[0034] Figure 3 It is the slice outline to which the split line segments are added.
[0035] Figure 4 It is the preset filling line segment in the filling area.
[0036] Figure 5 It is a closed path constructed in the fill area.
[0037] Figure 6 Path 2 is composed of path 1. DETAILED DESCRIPTION
[0038] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0039] A method for generating a path planning for additive manufacturing is provided. Figure 1 The slice contours are described as objects.
[0040] like Figure 2 As shown, get the concave points:
[0041] Step 1:
[0042] Construct a slice contour line in a rectangular coordinate system (the rectangular coordinate system is omitted in the figure), and obtain the coordinates of each turning point of the slice contour line. In this embodiment, a total of S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S20, S21, S22, S23, S24, S25, S26, S27, S28, S29, S30, S31, S32, S33, S34, S35, S36, S37, S38, S39, S40, S41, S42, S43, S44, S45, S46, S47, S48, S49, S50, S51, S52, S53, S54, S55,10 , S 11 , S 12 , S 13 , S 14 , S 15 , S 16 , S 17 There are a total of 17 turning points, and then it is judged one by one whether each turning point is a concave point;
[0043] The judgment method is as follows:
[0044] Assume that the turning point is S, the turning points adjacent to both sides of point S are set as point p and point q respectively, and a directed line segment from point p to point q is constructed If point S is located on the left side, then point S is preset as a concave point. On the contrary, if point S is located on the right side, then point S is preset as a convex point;
[0045] Then calculate the vertical distance V from the S point determined as a concave point to the . If V > W, the concave point mark of point S is retained. Otherwise, the concave point mark of point S is cancelled. W is the minimum threshold of concave point significance and is a constant;
[0046] Finally, the concave point set S n , n is a natural number, the coordinates of S n are
[0047] Specifically, taking point S1 and point S3 as examples, the two points adjacent to point S1 are point S 13 and point S2. Connect point S 13 and point S2 in the counterclockwise direction to form a directed line segment At this time, point S1 is located on the right side, or it is calculated that to determine that point S1 is a convex point;
[0048] The two points adjacent to point S3 are point S2 and point S4. Connect point S2 and point S4 in the counterclockwise direction to form a directed line segment At this time, point S3 is located on the left side, or it is calculated that to determine that point S3 is a concave point, and then calculate the vertical distance D from point S3 to the > W;
[0049] Finally, the obtained concave point set is {S3, S6, S 10 , S 13 , S 14 , S 17}, where D < W at point S7, so S7 is excluded.
[0050] Such as Figure 3As shown, get the segmentation line segment of the slice contour line
[0051] Step 2:
[0052] Connect each concave point to form a number of segmentation line segments, obtain the polygons formed by each segmentation line segment on both sides of the slice contour separately, and determine whether the two endpoints of the segmentation line segment are convex points in the polygon, then retain the segmentation line segment, otherwise delete the segmentation line segment;
[0053] Then determine whether the retained segmentation line segments intersect. If multiple segmentation line segments intersect, delete the intersecting segmentation line segments until there are no intersecting segmentation line segments and each concave point has at least one segmentation line segment. The retained segmentation line segments constitute a potential segmentation line segment set.
[0054] Finally, in the potential segmentation line set, the subset with the smallest sum of the segmentation line characteristics and the number of segmentation line segments is selected as the final segmentation line set, where the segmentation line characteristic is the sum of the length of the segmentation line segment and the angle difference at the segmentation point, specifically:
[0055] Assume that L is a set of segmented lines, and line segment x i,j is the line between the split points i and j. Then X=(x i,j ) T It is a binary vector indicating whether to accept or reject the line segment as a segmentation line segment.
[0056]
[0057] min||X||0+αW T X
[0058] st,AX≥1BX≤1X∈{0,1} n
[0059] W is the feature vector of the segment endpoints W = dist(i, j) + β max {Δθ i ,Δθ j}, dist(i,j) is the normalized line segment x i,j The length of Δθ i , Δθ j are the normalized angle differences of the split polygon vertices at points i and j respectively.
[0060] A is the convex polygon constraint matrix, that is, the segmented polygon P i ,P j are all convex polygons,
[0061]
[0062] B is the non-overlapping constraint matrix of the segmentation lines, that is, the segmentation lines k and l cannot intersect.
[0063]
[0064] like Figure 4-6 As shown, construct the printing path:
[0065] Step 4:
[0066] A closed printing path 1 is constructed separately for each filling area, wherein if the number of filling line segments and split line segments or slice contour line segments parallel to the filling line segments in the filling area is an odd number, at least two of the line segments are printed along a sine wave, and the same split line segments as the printing path 1 in each filling area are obtained, and any two points on the same split line segment are used as transfer points, and the interval between the two transfer points on the same split line segment is the printing width d, and the path 1 in the filling area on both sides of the split line where the transfer point is located, the split line segment divided into two segments by the transfer point, and the transfer point construct a closed path 2.
[0067] The embodiments of this specific implementation method are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, all equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating additive manufacturing path planning, Features: The method comprises the following steps: S1. constructing a rectangular coordinate system, and constructing a slice contour line in the rectangular coordinate system; S2. Construct the filling area: S2.1: Get each turning point of the slice contour and set it as point S; S2.2: Get the turning points adjacent to point S and set them as points p and q respectively, and construct a directed line segment from point p to point q S2.3: Determine if point S is located at On the left side, then point S is preset as a concave point to form a concave point set. On the contrary, if point S is located on On the right side of , point S is preset as a convex point; S2.4: The line connecting each two concave points can form a segmentation line segment. The polygons formed by the two sides of each segmentation line segment are obtained separately, and it is determined whether the two endpoints of the segmentation line segment are convex points in the polygon. If yes, the segmentation line segment is retained, otherwise, the segmentation line segment is deleted; S2.5: Determine whether the segmentation line segments retained in S2.4 intersect. If there are multiple segmentation line segments intersecting, delete the intersecting segmentation line segments until there are no intersecting segmentation line segments and there is at least one segmentation line segment at each concave point. The retained segmentation line segments constitute a potential segmentation line segment set. S2.6: In the potential segmentation line segment set, a subset with the smallest sum of the segmentation line segment characteristic and the number of segmentation line segments is selected as the final segmentation line segment set, wherein the segmentation line segment characteristic is the sum of the segmentation line segment length and the angle difference at the segmentation point; S2.7: The retained segmentation line segments and the slice contour lines form a number of closed filling areas; S3. Construct the printing path: S3.1: Preset a plurality of parallel filling line segments in the filling area; S3.2: Select any filling line segment in each filling area, and calculate the angle between the two ends of the filling line segment and the dividing line or slice contour line constituting the filling area. The sum of the chords is Z, and the fill line segment angle is adjusted to minimize Z; S3.3: Connect the fill line segments to form a printing path.
2. The method for generating an additive manufacturing path planning according to claim 1, Features: Step S2.3 also includes: The distance between each concave point and the adjacent turning point is measured as D; if D>W, the concave point is retained in the concave point set; otherwise, the concave point is removed from the concave point set, where W is the minimum threshold of concave point significance and is a constant.
3. The method for generating an additive manufacturing path planning according to claim 1, Features: Step S3.3 also includes: S3.3.1: Each fill area independently constructs a closed printing path 1; S3.3.2: Obtain a segment with the same printing path in each filling area, and use any two points on the same segment as transfer points, with the interval between the two transfer points on the same segment being the printing width d; S3.3.3: Construct a closed path 2 by using the path 1 in the filling area on both sides of the dividing line where the transfer point is located, the dividing line segment divided into two segments by the transfer point, and the transfer point.
4. The method for generating an additive manufacturing path planning according to claim 3, Features: In step S3.3.1, if the number of filling line segments in the filling area and the splitting line segments or slice contour line segments parallel to the filling line segments is an odd number, at least two of the line segments are printed along a sine wave.
