3D printing path planning method, device and medium based on sine curve
Through the sinusoidal curve path planning method, the problems of irreconcilable filling density and insufficient strength in the existing technology are solved, achieving efficient 3D printing quality and time reduction.
Patent Information
- Application Number
- CN202411459568.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-10-18
AI Technical Summary
Existing 3D printing path planning methods are unable to adjust the model filling density when dealing with various stress conditions, resulting in material waste and increased printing time. In addition, continuous fiber printing lacks strength, and the grid filling structure is prone to breakpoints that weaken the model strength.
A sine curve-based path planning method is adopted. By constructing a model and slicing it, the contour line is evenly divided, the parameters of the sine curve and the filling path are set, and the order and intersection of the sine curve are determined to form a continuous and evenly distributed filling path.
It improves the strength and quality of printed parts, shortens printing time, reduces material waste and printing time, and enhances the continuity of filling paths and conformity to contours.
Smart Images

Figure CN119141861B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of 3D printing technology, and in particular to a 3D printing path planning method, device and medium based on a sine curve. Background Art
[0002] 3D printing technology, also known as additive manufacturing, involves a computer-assisted printing process that creates a model layer by layer. Common 3D printing processes include selective laser sintering (SLS), stereolithography (SLA), layered object manufacturing (LOM), three-dimensional powder deposition (3DP), and fused deposition modeling (FDM). Compared to traditional manufacturing processes, 3D printing offers numerous advantages, including the elimination of molds, integrated molding, and shortened product development cycles and reduced R&D costs. A wide range of materials, including plastics, metals, and ceramics, are available. This increases design freedom and allows for the printing of complex geometric models. 3D printing technology has a wide range of applications, including in the aerospace industry for the manufacture of complex-shaped parts; in the automotive industry for new product development and small-batch part production; in biomedicine for tissue regeneration and model printing; and in architecture, for the direct printing of entire building structures, shortening construction times and reducing costs.
[0003] The 3D printing process typically includes model creation, slicing, path planning, and printing. The process involves designing and creating a 3D model, generating a model file for slicing, then slicing the model into layers according to the model's forming direction, and obtaining the contours of each layer. The area enclosed by the contours is then filled with paths such as contour offsets, parallel lines, and grids. Finally, G-code is generated for 3D printing. The infill paths determine the internal structure of the printed model, impacting the model's mechanical properties, printing time, and build quality.
[0004] Among existing path planning methods, models printed using contour offset infill methods have a fixed internal structure and are unable to cope with various stress conditions. The inability to change the model's infill density results in material waste. Parallel line and grid infill methods allow for adjustment of the model's infill density and infill angle, but this significantly increases the number of path breakpoints, nozzle startups and shutdowns, and extruder retractions. When printing continuous fibers, parallel line infill structures often only have a single fiber under load at a given cross-section, and the path undergoes multiple reciprocating, high-angle turns. Grid infill structures are prone to multiple breakpoints, weakening the model's strength and increasing shearing times and printing time. Summary of the Invention
[0005] The purpose of the present invention is to provide a 3D printing path planning method, device and medium based on sine curves, which can shorten printing time, enhance the strength of printed parts and improve 3D printing quality.
[0006] To achieve the above object, the present invention provides the following solutions:
[0007] A 3D printing path planning method based on a sine curve, the method comprising:
[0008] Build 3D printing models;
[0009] Slicing and layering the 3D printed model to obtain multiple slices;
[0010] determining a target slice from the plurality of slices, and acquiring a contour line of the target slice;
[0011] Two points are set on the contour line, one of which is called a starting point and the other is called an ending point, and the starting point and the ending point divide the corresponding contour line into an upper contour and a lower contour;
[0012] The same number of points are evenly set on the upper contour and the lower contour of the contour line to obtain a plurality of upper contour segmentation points and a plurality of lower contour segmentation points, and the upper contour segmentation points and the lower contour segmentation points correspond to each other one by one, and each upper contour segmentation point is connected with the corresponding lower contour segmentation point to obtain a plurality of segmentation lines, and the line connecting the midpoints of each segmentation line of each contour line is used as the central axis of the filling path;
[0013] Setting parameter information of the sinusoidal filling path to be filled; the parameter information includes the starting position, the ending position, the number of sinusoids, the period length of the sinusoids, the starting position amplitude of the sinusoids, and the ending position amplitude of the sinusoids;
[0014] Determining a printing order of the sinusoidal curves to be filled according to the number of the sinusoidal curves, the connection relationship between the starting positions of the sinusoidal curves to be filled, and the connection relationship between the ending positions;
[0015] The amplitude of the sine curve to be filled is preset according to the length of the dividing line, with the central axis as the X-axis and the dividing line as the Y-axis, and the intersection of each sine curve to be filled on the dividing line is determined according to the period length of the sine curve, the starting position amplitude of the sine curve and the ending position amplitude of the sine curve, and the filling path of each sine curve to be filled is determined according to the intersection and the printing order.
[0016] Optionally, the dividing point is moved in a direction such that the ratio of the two angles formed by the dividing line and the upper contour is equal to the ratio of the two angles formed by the dividing line and the lower contour, and the upper dividing point and the lower dividing point are evenly distributed; the dividing lines do not intersect in the filling area.
[0017] Optionally, the phase difference between adjacent sinusoidal curves to be filled is 2π / n, where n is the number of sinusoidal curves.
[0018] Optionally, the starting position and the ending position are set at the crest, trough or intersection of the sine curve to be filled; the intersection is the intersection of two sine curves to be filled.
[0019] Optionally, when the amplitude of the sine curve to be filled corresponding to the starting point is smaller than the amplitude of the starting position, the amplitude of the starting position is used as the amplitude of the sine curve to be filled corresponding to the starting point; when the amplitude of the sine curve to be filled corresponding to the ending point is smaller than the amplitude of the ending position, the amplitude of the ending position is used as the amplitude of the sine curve to be filled corresponding to the ending point.
[0020] Optionally, determining the printing order of the sine curves to be filled according to the number of the sine curves, the connection relationship between the starting positions of the sine curves to be filled, and the connection relationship between the ending positions of the sine curves to be filled specifically includes:
[0021] From the starting position to the ending position, numbering each of the to-be-filled sinusoidal curves in sequence according to the order in which the peaks appear and the number of the sinusoidal curves to obtain a line number for each of the to-be-filled sinusoidal curves;
[0022] Determining the starting point of the next printed sine curve connected to the end point of the currently printed sine curve based on the connection relationship between the starting positions and the connection relationship between the end positions of the sine curves to be filled;
[0023] Determine whether the same line number is obtained repeatedly at the starting position or the ending position;
[0024] When the same line number is repeatedly obtained at the starting position or the ending position of the currently printed sine curve, the line number that is not in the printing order is used as the currently printed sine curve, and so on to determine the printing order of the sine curve to be filled.
[0025] Optionally, when the filling path of the sine curve to be filled exceeds the contour line, the contour line that is exceeded is used as the corresponding filling path of the sine curve to be filled.
[0026] A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any one of the above-mentioned sine curve-based 3D printing path planning methods.
[0027] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements any of the above-mentioned sine curve-based 3D printing path planning methods.
[0028] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0029] The present invention discloses a 3D printing path planning method, device, and medium based on sinusoidal curves. The method constructs a model and performs layered slicing to obtain contour line point data; evenly divides the contour; sets parameters for the fill curves and the start and end positions of the sinusoidal fill path; numbers the fill curves and determines the order of all curves; and obtains the coordinate points of the sinusoidal curves on the dividing line, which are sequentially connected to form a complete sinusoidal fill path. The path planning method provided by the present invention ensures a uniform and continuous distribution of the sinusoidal curves within the fill contour, improving printing quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. 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 any creative work.
[0031] Figure 1 A schematic flow chart of a 3D printing path planning method based on a sine curve provided in Example 1 of the present invention;
[0032] Figure 2 This is a schematic diagram of the model slice outline;
[0033] Figure 3 Schematic diagram of the model slicing and segmentation method;
[0034] Figure 4 Schematic diagram of the model slicing and segmentation results
[0035] Figure 5 A schematic diagram of the basic graphics of the sine curve filling path;
[0036] Figure 6 Fill the schematic for the sinusoidal fill path;
[0037] Figure 7 Schematic diagram of the path filling for a sinusoidal curve with increasing contact area with the contour;
[0038] Figure 8 Schematic diagram of the sample printed by applying a sinusoidal fill path with an increased contact area with the contour;
[0039] Figure 9 This is a diagram of the internal structure of a computer device. DETAILED DESCRIPTION
[0040] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0041] The purpose of the present invention is to provide a 3D printing path planning method, device and medium based on sine curves, aiming to shorten printing time, enhance the strength of printed parts and improve the quality of 3D printing.
[0042] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0043] Example 1
[0044] like Figure 1 As shown, the sine curve-based 3D printing path planning method in this embodiment includes:
[0045] Step S1: Constructing a 3D printing model.
[0046] Step S2: Slicing and layering the 3D printing model to obtain multiple slices.
[0047] Step S3: determining a target slice from the plurality of slices and obtaining a contour line of the target slice, wherein the target slice is selected according to actual needs.
[0048] Step S4: setting two points on the contour line, where one point is called a starting point and the other point is called an ending point. The starting point and the ending point divide the corresponding contour line into an upper contour and a lower contour.
[0049] Step S5: Evenly set the same number of points on the upper contour and the lower contour of the contour line to obtain multiple upper contour segmentation points and multiple lower contour segmentation points, and the upper contour segmentation points and the lower contour segmentation points correspond one to one, connect each upper contour segmentation point with the corresponding lower contour segmentation point to obtain multiple segmentation lines, and use the line connecting the midpoints of each segmentation line of each contour line as the central axis of the filling path.
[0050] Specifically, the dividing point is moved in a direction that makes the ratio of the two angles formed by the dividing line and the upper contour equal to the ratio of the two angles formed by the dividing line and the lower contour, and the upper dividing point and the lower dividing point are evenly distributed; the dividing lines do not intersect in the filling area.
[0051] Step S6: setting parameter information of the sinusoidal filling path to be filled; the parameter information includes the starting position, the ending position, the number of sinusoids, the period length of the sinusoid, the starting position amplitude of the sinusoid and the ending position amplitude of the sinusoid.
[0052] Step S7: determining the printing order of the sinusoidal curves to be filled according to the number of the sinusoidal curves, the connection relationship between the starting positions of the sinusoidal curves to be filled, and the connection relationship between the ending positions.
[0053] S7 specifically includes:
[0054] Step S71: numbering each of the to-be-filled sinusoidal curves in sequence from the starting position to the ending position according to the order in which the peaks appear and the number of the sinusoidal curves to obtain the line number of each of the to-be-filled sinusoidal curves.
[0055] Specifically, according to the number of the sinusoidal curves, each of the sinusoidal curves to be filled is numbered, and numbered in sequence from the starting position to the ending position according to the order in which the peaks appear: 1, 2, ..., n-1, n; and the line number of each of the sinusoidal curves to be filled is obtained.
[0056] Step S72: determining the starting point of the next printed sine curve connected to the end point of the currently printed sine curve according to the connection relationship between the starting positions and the connection relationship between the end positions of the sine curves to be filled.
[0057] Step S73: Determine whether the same line number is repeatedly obtained at the starting position or the ending position.
[0058] Step S74: When the same line number is repeatedly obtained at the starting position or the ending position of the currently printed sine curve, the line number that is not in the printing order is used as the currently printed sine curve, and so on, to determine the printing order of the sine curve to be filled.
[0059] Step S8: Preset the amplitude of the sine curve to be filled according to the length of the dividing line, with the central axis as the X-axis and the dividing line as the Y-axis, and determine the intersection of each sine curve to be filled on the dividing line according to the period length of the sine curve, the starting position amplitude of the sine curve and the ending position amplitude of the sine curve, and determine the filling path of each sine curve to be filled according to the intersection and the printing order.
[0060] Specifically, when the filling path of the to-be-filled sinusoidal curve exceeds the contour line, the contour line is used to replace the corresponding to-be-filled sinusoidal curve as the filling path.
[0061] As a specific implementation, the phase difference between adjacent sinusoidal curves to be filled is 2π / n, where n is the number of sinusoidal curves.
[0062] As a specific implementation manner, the starting position and the ending position are set at the crest, trough or intersection of the sine curve to be filled; the intersection is the intersection of two sine curves to be filled.
[0063] As a specific implementation method, when the amplitude of the sine curve to be filled corresponding to the starting point is smaller than the amplitude of the starting position, the amplitude of the starting position is used as the amplitude of the sine curve to be filled corresponding to the starting point; when the amplitude of the sine curve to be filled corresponding to the ending point is smaller than the amplitude of the ending position, the amplitude of the ending position is used as the amplitude of the sine curve to be filled corresponding to the ending point.
[0064] In practical applications, the specific implementation steps of the present invention are as follows:
[0065] (1) Build the model and perform layered slicing to obtain the contour point set data. The contour line is as follows Figure 2 shown.
[0066] (2) Set the starting point and ending point on the contour line. These two points divide the contour line into the upper contour and the lower contour. Different starting and ending points will result in different directions of the fill path through the figure. The starting and ending points can be freely set according to actual needs.
[0067] (3) Take the line connecting the points on the upper and lower contour lines as the contour segmentation line, such as Figure 3 As shown. Make the dividing line evenly arranged from the starting point to the end point, the dividing line is as follows Figure 4 As shown, the line connecting the midpoints of the dividing lines is defined as the central axis of the filling path.
[0068] (4) Set the starting position, ending position, number of filling curves, cycle length, and the starting position amplitude and ending position amplitude of the sine curve filling path. The starting position and ending position refer to the position at the beginning and end of the filling path curve. Figure 5 The start point and end point are points on the contour line, and the start position and end position refer to the positions on the fill path.
[0069] The basic graphics of the sine curve filling path are as follows Figure 5 As shown in the figure, the number of fill curves is set to 5, and the sine curve has a length of 2.2 cycles from the start position to the end position. The amplitude of the start position and the end position is set to 5mm.
[0070] (5) Number the sine curve and obtain the line numbers of the starting and ending positions of the curve, such as Figure 4 shown.
[0071] (6) Determine the path order of each sine curve. The starting curve is curve No. 1, and its printing order is 1. At the end position, find the line number of the curve that intersects with curve No. 1, and its order is 2. Alternately obtain the line numbers at the starting position and the end position until the order of all curves is determined.
[0072] Determine the path order of each sine curve. The starting curve is curve 1, and its printing order is 1. At the end position, find the line number of the curve corresponding to curve 1, which is 3 and its order is 2. Alternately obtain the line numbers at the starting position and the end position. Finally, the printing order of all curves is 1→3→4→5→2.
[0073] (7) Draw the curve. The amplitude of the sine curve is 0.5 times the length of the segment. The central axis is the x-axis of the sine path, and the segment is the y-axis of the sine path. The coordinate points of the sine curve are obtained on the segment, and they are connected in sequence to obtain a complete sine filling path as shown in the figure. Figure 6 shown.
[0074] In the step (3), let the upper contour points be S0, S1, S2, ..., S i ,…,S p The lower contour points are S'0, S'1, S'2, ..., S' j ,…,S' q The initial values of i and j are 1, K and K' are the ratios of the two angles after the line segment is divided, p is the number of upper contour points, and q is the number of lower contour points. The specific steps include:
[0075] (3-1) Connecting line segment S i S' j , the ratio of two adjacent angles K ij =∠S i-1 S i S' j / ∠S' j S i S i+1 , K' ij =∠S' j-1 S' j S i / ∠S i S' j S' j+1 .
[0076] (3-2) If K ij <K’ ij , find the straight line S i-1 S i K mj =K' mj point M, then line segment MS'j is the dividing line of the contour, point M is point S' j The split point on the upper contour. If point M is on line segment S i-1 S i External point S i-1 One side (including point S i-1 ), then point M is point S i-1 If point M is on line segment S i-1 S i External point S i One side (including point S i ), then point M is point S i , i=i+1. j=j+1, the steps start from (3-1).
[0077] If K ij >K' ij , the method is the same as K ij <K’ ij .
[0078] If K ij =K' ij , then line segment S i S' j is the dividing line of the contour, i=i+1, j=j+1, and the steps start from (3-1).
[0079] (3-3) When the execution reaches the end point of the upper or lower contour, the remaining points of the other contour correspond to its end point. Finally, the segmentation points on the upper and lower contours are one-to-one corresponding.
[0080] (3-4) Find repeated segmentation points and distribute them in equal proportion to their corresponding points on the contour between the two points before and after them.
[0081] (3-5) Set the range of the distance between the midpoints of adjacent cutting lines. When the distance is less than the lower limit of the range, the cutting line is deleted. When the distance is greater than the upper limit of the range, the cutting line is inserted proportionally.
[0082] In the step (4), the sinusoidal function with a period of T is:
[0083]
[0084] Where A is the amplitude, ω is the angular frequency, is the initial phase. The number of curves is used to adjust the filling density. The more sine curves there are, the greater the filling density. The period is used to adjust the filling angle of the filling sine curve.
[0085] N sinusoidal filling curves with the same period are evenly distributed, and the phase difference between adjacent curves is 2π / n. The first peak sinusoidal curve is numbered 1, the second peak sinusoidal curve is numbered 2, and so on. The sinusoidal curve at the nth peak is numbered n.
[0086] Specifically, five sinusoidal filling curves with the same period are evenly distributed, and the phase difference between adjacent curves is 2π / n. The first peak sinusoidal curve is numbered 1, the second peak sinusoidal curve is numbered 2, and so on. The sinusoidal curve of the fifth peak is numbered 5.
[0087] The starting and ending positions of the fill path are set at the peak, trough, or intersection of the sine curve. The starting point of the fill path is set at the peak, trough, or intersection of sine curve No. 1 and sine curve No. n.
[0088] Specifically, the starting point of the filling path is set at the peak of the No. 1 sine curve.
[0089] In the step (6), before obtaining the order of all curves, when the line number of the same curve is repeatedly obtained at the starting position or the ending position, the curve whose order has not been determined at that position is reset as a new starting point to re-obtain the line number until the order of all curves is determined.
[0090] In step (7), when the amplitude of the sine curve is set to be greater than 0.5 times the length of the dividing line, the sine path exceeds the contour, and the part of the path exceeding the contour is cut off with the contour line as the cutting line. The contact area between the obtained path and the contour is increased, thereby obtaining better boundary quality.
[0091] Specifically, when the amplitude of the sine curve is set to 1.05 times the original value, the contact area between the path and the contour increases, and better boundary quality is obtained. Figure 7 As shown, the printed sample is as follows Figure 8 shown.
[0092] Figure 6 Fill the diagram for the sinusoidal fill path; Figure 7 Schematic diagram of the path filling for a sinusoidal curve with increasing contact area with the contour; Figure 7 and Figure 6 The difference is: Figure 7 The contact area between the path and the contour increases, which is caused by cutting off the part of the path that exceeds the contour using the contour line as the cutting line.
[0093] The present invention provides a sinusoidal curve-based 3D printing path planning method. The sinusoidal curve fill path is formed by the interlaced superposition of multiple sinusoidal curves. The sinusoidal curves are continuous and evenly distributed within the fill range. This path planning method increases the continuity of the fill path, making the sinusoidal curve path smoother and aligning with the contour curve, resulting in better conformity to the contour. This reduces the number of starts and stops of the extruder and travel motors, shortening printing time. Furthermore, by varying the parameters of the sinusoidal curves, the fill path structure can be adjusted, enhancing the strength of the printed part and improving 3D printing quality.
[0094] Example 2
[0095] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the sine curve-based 3D printing path planning method in Example 1.
[0096] Example 3
[0097] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the sine curve-based 3D printing path planning method in embodiment 1.
[0098] Example 4
[0099] A computer program product includes a computer program, which, when executed by a processor, implements the sine curve-based 3D printing path planning method in embodiment 1.
[0100] Example 5
[0101] A computer device, which may be a database, may have an internal structure as shown in FIG. Figure 9 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the sine curve-based 3D printing path planning method in Example 1 is implemented.
[0102] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0103] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but are not limited to these.
[0104] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0105] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only intended to help understand the method and core concept of the present invention. At the same time, those skilled in the art will find that the specific implementation methods and application scopes may vary based on the concept of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims
1. A 3D printing path planning method based on sine curves, characterized in that: The method comprises: Build 3D printing models; Slicing and layering the 3D printed model to obtain multiple slices; determining a target slice from the plurality of slices, and acquiring a contour line of the target slice; Two points are set on the contour line, one of which is called a starting point and the other is called an ending point, and the starting point and the ending point divide the corresponding contour line into an upper contour and a lower contour; The same number of points are evenly set on the upper contour and the lower contour of the contour line to obtain a plurality of upper contour segmentation points and a plurality of lower contour segmentation points, and the upper contour segmentation points and the lower contour segmentation points are in one-to-one correspondence, each of the upper contour segmentation points is connected with the corresponding lower contour segmentation point to obtain a plurality of segmentation lines, and the line connecting the midpoints of each segmentation line of each contour line is used as the central axis of the filling path; Setting parameter information of the sinusoidal filling path to be filled; the parameter information includes the starting position, the ending position, the number of sinusoids, the period length of the sinusoids, the starting position amplitude of the sinusoids, and the ending position amplitude of the sinusoids; Determining a printing order of the sine curves to be filled according to the number of the sine curves, the connection relationship between the starting positions of the sine curves to be filled, and the connection relationship between the ending positions; The amplitude of the sine curve to be filled is preset according to the length of the dividing line, with the central axis as the X-axis and the dividing line as the Y-axis, and the intersection of each sine curve to be filled on the dividing line is determined according to the period length of the sine curve, the starting position amplitude of the sine curve and the ending position amplitude of the sine curve, and the filling path of each sine curve to be filled is determined according to the intersection and the printing order.
2. The 3D printing path planning method based on sine curve according to claim 1, characterized in that: The dividing points are moved in a direction such that the ratio of the two angles formed by the dividing line and the upper contour is equal to the ratio of the two angles formed by the dividing line and the lower contour, and the upper and lower dividing points are evenly distributed; the dividing lines do not intersect in the filling area.
3. The 3D printing path planning method based on sine curve according to claim 1, characterized in that: The phase difference between adjacent sinusoidal curves to be filled is 2π / n, where n is the number of sinusoidal curves.
4. The 3D printing path planning method based on sine curve according to claim 1, characterized in that: The starting position and the ending position are set at the crest, trough or intersection of the sine curve to be filled; the intersection is the intersection of two sine curves to be filled.
5. The 3D printing path planning method based on sine curve according to claim 1, characterized in that: When the amplitude of the sinusoidal curve to be filled corresponding to the starting point is smaller than the amplitude of the starting position, the amplitude of the starting position is used as the amplitude of the sinusoidal curve to be filled corresponding to the starting point; When the amplitude of the to-be-filled sinusoidal curve corresponding to the end point is smaller than the end position amplitude, the end position amplitude is used as the amplitude of the to-be-filled sinusoidal curve corresponding to the end point.
6. The 3D printing path planning method based on sine curve according to claim 1, characterized in that: Determining the printing order of the sine curves to be filled according to the number of the sine curves, the connection relationship between the starting positions of the sine curves to be filled, and the connection relationship between the ending positions of the sine curves to be filled, specifically includes: From the starting position to the ending position, numbering each of the to-be-filled sinusoidal curves in sequence according to the order in which the peaks appear and the number of the sinusoidal curves to obtain a line number for each of the to-be-filled sinusoidal curves; Determining the starting point of the next printed sine curve connected to the end point of the currently printed sine curve based on the connection relationship between the starting positions and the connection relationship between the end positions of the sine curves to be filled; Determine whether the same line number is obtained repeatedly at the starting position or the ending position; When the same line number is repeatedly obtained at the starting position or the ending position of the currently printed sine curve, the line number that is not in the printing order is used as the currently printed sine curve, and so on to determine the printing order of the sine curve to be filled.
7. The 3D printing path planning method based on sine curve according to claim 1, characterized in that: When the filling path of the to-be-filled sinusoidal curve exceeds the contour line, the exceeded contour line is used as the corresponding filling path of the to-be-filled sinusoidal curve.
8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the sine curve-based 3D printing path planning method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the sine curve-based 3D printing path planning method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Parallel reciprocating linear filling optimization method and system
CN108556364A
3D printing corrugated sandwich wing structure
CN221606052U