An improved 3D printing path filling method based on a
Hilbert curve comprises the following specific steps of (1) drawing the
Hilbert curve, and storing coordinates of all control points of the
Hilbert curve; (2) carrying out cubic B-spline
curve fitting on the coordinates of the control points, carrying out interpolation
smoothing on the fitted curve, and storing all
control point coordinates ofthe smoothed curve; (3) drawing an optimized Hilbert curve by utilizing all the control points in the step (2), calculating the length of the curve, performing 3D
simulation printing, and calculatingthe steering condition of the motor in each direction during printing; and (4) writing a method of fitting the Hilbert curve by using cubic B spline interpolation into 3D printing
slicing software silicc3r, performing path filling and
slicing processing on the model by using the silicc3r, finally exporting the model as a G-code code, and performing printing by using a 3D printer. According to theinvention, the condition of right-angle turning is reduced, and the starting and stopping times of the motor are reduced, so that an efficient 3D printing forming path is obtained.