The invention relates to a printing file generation method and device,
computer equipment and a storage medium, and the method comprises the steps: carrying out the
slicing of a to-be-printed model, obtaining the contour of each layer of slice, determining a target point on the contour of each layer of slice, dividing the contour of each layer of slice into a plurality of sections of curves, for each section of curve, selecting points from target points on the current curve, adding the points into a first
queue or a second
queue, generating gcode instructions of the points according to the points of the first
queue, generating gcode instructions of a Bezier curve according to the points of the second queue, and synthesizing the gcode instructions to obtain a gcode
instruction set of the current curve; and combining the gcode instructions of all the curves into the generated printing file, when the target points are not added into the queue, reducing the number of the gcode instructions, wherein when the target points are added into the second queue, the points in the second queue are the gcode instructions for generating the Bezier curve, and reducing the number of the gcode instructions. A printer can directly execute the Bezier curve, the gcode instruction
processing efficiency of the printer is improved, and the probability of jamming during printing can be reduced.