3D printing file generation method and device, computer equipment and storage medium

文档序号:1869769 发布日期:2021-11-23 浏览:7次 中文

阅读说明:本技术 一种3d打印文件生成方法、装置、计算机设备及存储介质 (3D printing file generation method and device, computer equipment and storage medium ) 是由 敖丹军 唐京科 王文彬 于 2021-08-25 设计创作,主要内容包括:本发明实施例公开了一种3D打印文件生成方法、装置、计算机设备及存储介质。该方法包括:对待打印的三维模型进行分层切片,并获取每层切片中的打印路径及空走路径;根据打印机的喷嘴孔径确定喷嘴尖部可残留的耗材体积;根据耗材体积确定空走路径的前一打印路径中的末端滑行路径,并将末端滑行路径中的挤出流量设置为零;根据设置挤出流量后的打印路径和空走路径生成3D打印文件。通过将空走路径的前一打印路径的最后一段变成空走的末端滑行路径,使得前一打印路径打印完成后刚好不会继续出料,从而在保证打印三维模型的完整性的基础上,解决了应用FDM工艺在进行3D打印过程中存在的拉丝问题,提高了三维模型外观的打印效果。(The embodiment of the invention discloses a method and a device for generating a 3D printing file, computer equipment and a storage medium. The method comprises the following steps: the method comprises the steps of slicing a three-dimensional model to be printed in a layering mode, and obtaining a printing path and an idle path in each layer of slice; determining the volume of consumable materials which can be remained at the tip of the nozzle according to the aperture of the nozzle of the printer; determining a tail end sliding path in a previous printing path of the idle path according to the volume of the consumable materials, and setting the extrusion flow in the tail end sliding path to be zero; and generating a 3D printing file according to the printing path and the idle-walking path after the extrusion flow is set. The last section of the previous printing path of the idle path is changed into the idle tail end sliding path, so that the previous printing path can not continue to discharge materials after printing is completed, the problem of wire drawing in the 3D printing process by applying an FDM process is solved on the basis of ensuring the integrity of the printed three-dimensional model, and the printing effect of the appearance of the three-dimensional model is improved.)

1. A3D printing file generation method is characterized by comprising the following steps:

the method comprises the steps of slicing a three-dimensional model to be printed in a layering mode, and obtaining a printing path and an idle path in each layer of slice;

determining the volume of consumable materials which can be remained at the tip of the nozzle according to the aperture of the nozzle of the printer;

determining a tail end sliding path in a previous printing path of the idle running path according to the volume of the consumable materials, and setting the extrusion flow in the tail end sliding path to be zero;

and generating a 3D printing file according to the printing path and the idle running path after the extrusion flow is set.

2. The 3D print file generation method according to claim 1, further comprising, before generating the 3D print file according to the print path after setting the extrusion flow rate and the idle-run path:

determining a terminal pre-printing path in the idle walking path;

and setting the extrusion flow in the tail end pre-printing path according to the length of the tail end pre-printing path and the length of the tail end sliding path.

3. The 3D print file generation method according to claim 2, wherein the determining of the end pre-print path in the idle-walking path includes:

if the length of the idle walking path is smaller than or equal to a preset length, determining the whole idle walking path as the tail end pre-printing path;

and if the length of the idle walking path is greater than the preset length, determining the path with the preset length at the tail end of the idle walking path as the tail end pre-printing path.

4. The 3D print file generation method according to claim 3, wherein the setting of the extrusion flow rate in the tip pre-print path according to the length of the tip pre-print path and the length of the tip glide path includes:

when the length of the idle running path is less than or equal to the preset length, setting the extrusion flow in the tail end pre-printing path as follows:

when the length of the idle running path is greater than the preset length, setting the extrusion flow in the tail end pre-printing path as:

wherein Flow represents an extrusion Flow rate in the tip pre-print path, L1 represents a length of the tip glide path, L2 represents a length of the idle walk path, and L3 represents the preset length.

5. The 3D print file generation method according to claim 3 or 4, wherein the preset length is 3 mm.

6. The 3D print file generation method according to claim 1, wherein the determining of the tip slip path in the previous print path of the idle path according to the volume of the consumable material includes:

where L1 represents the length of the tip glide path, V represents the consumable volume, pi represents the circumference ratio, and W represents half the line width of the printed three-dimensional model.

7. The 3D print file generation method according to claim 1, wherein the determining a consumable volume that a nozzle tip can remain according to a nozzle aperture of a printer includes:

V=πr2*2r

wherein V represents the consumable volume, pi represents the circumferential ratio, and r represents half of the nozzle aperture.

8. A 3D print file generating apparatus, comprising:

the path acquisition module is used for slicing the three-dimensional model to be printed in a layering manner and acquiring a printing path and an idle path in each layer of slice;

the consumable volume determining module is used for determining the residual consumable volume of the nozzle tip according to the nozzle aperture of the printer;

the tail end sliding path determining module is used for determining a tail end sliding path in a previous printing path of the idle path according to the volume of the consumable materials and setting the extrusion flow in the tail end sliding path to be zero;

and the file generation module is used for generating a 3D printing file according to the printing path and the idle running path after the extrusion flow is set.

9. A computer device, comprising:

one or more processors;

a memory for storing one or more programs;

when executed by the one or more processors, cause the one or more processors to implement the 3D print file generation method as recited in any one of claims 1-7.

10. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the 3D print file generating method according to any one of claims 1 to 7.

Technical Field

The embodiment of the invention relates to the technical field of 3D printing file generation, in particular to a 3D printing file generation method and device, computer equipment and a storage medium.

Background

For the existing Fused Deposition Modeling (FDM) printing method, when a printer completes a current printing path and moves to a next printing path, consumables in nozzles in an empty path overflow due to the action of gravity, so that wire drawing is caused.

The current FDM slicing software algorithm mainly depends on a drawing back function, namely, the consumable is drawn back immediately after the current printing path is printed, and the length of the consumable which is drawn back before the consumable is extruded again after the empty driving is finished and before the consumable moves to the next printing path. But because the consumptive material in the nozzle is in the molten state, can cause the pumpback incomplete usually, especially to innovative granulation machine, it does not use the linear consumptive material that FDM is used often, but uses the granule consumptive material, and the nozzle aperture of printer is bigger simultaneously, consequently leads to the effect of pumpback very not good to seriously influence the printing effect.

Disclosure of Invention

The embodiment of the invention provides a method and a device for generating a 3D printing file, computer equipment and a storage medium, and aims to solve the problem of wire drawing in the printing process of an innovative granulator.

In a first aspect, an embodiment of the present invention provides a 3D print file generating method, where the method includes:

the method comprises the steps of slicing a three-dimensional model to be printed in a layering mode, and obtaining a printing path and an idle path in each layer of slice;

determining the volume of consumable materials which can be remained at the tip of the nozzle according to the aperture of the nozzle of the printer;

determining a tail end sliding path in a previous printing path of the idle running path according to the volume of the consumable materials, and setting the extrusion flow in the tail end sliding path to be zero;

and generating a 3D printing file according to the printing path and the idle running path after the extrusion flow is set.

Optionally, before generating the 3D print file according to the print path after setting the extrusion flow and the idle travel path, the method further includes:

determining a terminal pre-printing path in the idle walking path;

and setting the extrusion flow in the tail end pre-printing path according to the length of the tail end pre-printing path and the length of the tail end sliding path.

Optionally, the determining a terminal pre-printing path in the idle walking path includes:

if the length of the idle walking path is smaller than or equal to a preset length, determining the whole idle walking path as the tail end pre-printing path;

and if the length of the idle walking path is greater than the preset length, determining the path with the preset length at the tail end of the idle walking path as the tail end pre-printing path.

Optionally, the setting the extrusion flow rate in the end pre-printing path according to the length of the end pre-printing path and the length of the end sliding path includes:

when the length of the idle running path is less than or equal to the preset length, setting the extrusion flow in the tail end pre-printing path as follows:

when the length of the idle running path is greater than the preset length, setting the extrusion flow in the tail end pre-printing path as:

wherein Flow represents an extrusion Flow rate in the tip pre-print path, L1 represents a length of the tip glide path, L2 represents a length of the idle walk path, and L3 represents the preset length.

Optionally, the preset length is 3 mm.

Optionally, the determining a tip sliding path in a previous printing path of the idle running path according to the volume of the consumable part includes:

where L1 represents the length of the tip glide path, V represents the consumable volume, pi represents the circumference ratio, and W represents half the line width of the printed three-dimensional model.

Optionally, the determining a consumable volume that the nozzle tip can remain according to the nozzle aperture of the printer includes:

V=πr2*2r

wherein V represents the consumable volume, pi represents the circumferential ratio, and r represents half of the nozzle aperture.

In a second aspect, an embodiment of the present invention further provides a 3D print file generating apparatus, where the apparatus includes:

the path acquisition module is used for slicing the three-dimensional model to be printed in a layering manner and acquiring a printing path and an idle path in each layer of slice;

the consumable volume determining module is used for determining the residual consumable volume of the nozzle tip according to the nozzle aperture of the printer;

the tail end sliding path determining module is used for determining a tail end sliding path in a previous printing path of the idle path according to the volume of the consumable materials and setting the extrusion flow in the tail end sliding path to be zero;

and the file generation module is used for generating a 3D printing file according to the printing path and the idle running path after the extrusion flow is set.

In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:

one or more processors;

a memory for storing one or more programs;

when the one or more programs are executed by the one or more processors, the one or more processors implement the 3D print file generation method provided by any embodiment of the present invention.

In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the 3D print file generation method provided in any embodiment of the present invention.

The embodiment of the invention provides a 3D printing file generation method, which comprises the steps of firstly slicing a three-dimensional model to be printed in layers, obtaining a printing path and an idle path in each layer of slice, then determining the volume of consumable materials which can be remained at the tip part of a nozzle according to the aperture of the nozzle of a printer, then determining a tail end sliding path in the previous printing path of the idle path according to the volume of the consumable materials, setting the extrusion flow in the tail end sliding path to be zero, and finally generating a 3D printing file according to the printing path and the idle path after the setting is completed. According to the 3D printing file generation method provided by the embodiment of the invention, the last section of the previous printing path of each idle path is changed into the idle tail end sliding path, so that the melted consumables remained in the nozzle are consumed for printing, and the length of the tail end sliding path can be determined according to the volume of the tip part of the nozzle, so that the materials can not be discharged continuously after the previous printing path is printed, the problem of wire drawing in the 3D printing process by applying an FDM (fused deposition modeling) process is solved on the basis of ensuring the integrity of the printed three-dimensional model, and the printing effect of the appearance of the three-dimensional model is improved.

Drawings

Fig. 1 is a flowchart of a 3D print file generation method according to an embodiment of the present invention;

fig. 2 is a schematic diagram of each path structure according to a first embodiment of the present invention;

fig. 3 is a schematic structural diagram of a 3D print file generating apparatus according to a second embodiment of the present invention;

fig. 4 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.

Example one

Fig. 1 is a flowchart of a 3D print file generation method according to an embodiment of the present invention. The embodiment is applicable to the case of removing the drawn wires in the three-dimensional printing process, and the method can be executed by the 3D printing file generation device provided by the embodiment of the invention, and the device can be implemented by hardware and/or software, and can be generally integrated in a computer device. As shown in fig. 1, the method specifically comprises the following steps:

and S11, layering and slicing the three-dimensional model to be printed, and acquiring a printing path and an idle path in each layer of slice.

Specifically, the three-dimensional model to be printed may be sliced hierarchically by using an existing slicing method, and the slicing method used in this embodiment is not particularly limited. Specifically, after a three-dimensional model is imported by a user, a human-computer interaction interface for configuring slicing parameters is provided for the user, when the user completes configuration and submits slicing, the three-dimensional model can be automatically sliced according to the configured slicing parameters, print data in each layer of slices can be obtained after slicing is completed, the print data can comprise a print path and an idle path in each layer of slices, particularly, the idle path may not exist in some layers of slices, namely, the number of the acquired idle paths is 0, in this case, subsequent processing can not be performed on the slices of the layers, the print data of the layers can be directly used when a 3D print file is generated subsequently, and in addition, the print data can also comprise extrusion flow of each path and the like. The idle-run path may be understood as a path between an end point of a previous printing path and a start point of a next printing path in every two successively printed printing paths, that is, a path between the two printing paths where discharging is not required, and is generally a straight path between the end point of the previous printing path and the start point of the next printing path. The print paths may include contour paths and interior fill paths, etc., and the idle-walking paths may include paths between two contour paths, paths between two interior fill paths, and paths between one interior fill path and one contour path, etc.

And S12, determining the consumable volume which can be remained at the nozzle tip according to the nozzle aperture of the printer.

Specifically, a common 3D printer can use nozzles of various sizes in a matched manner, and after the nozzles of a certain size are installed, a user can enter the aperture of the nozzle through a provided human-computer interaction interface for configuring printer parameters, so that the currently used aperture of the nozzle can be obtained. After obtaining the nozzle aperture, can confirm the consumptive material volume that nozzle tip can remain according to the nozzle aperture to confirm the consumptive material volume that probably overflows because of the action of gravity in the route is walked to the sky, so that follow-up is handled this part consumptive material, in order to avoid the sky to walk the route and appear the wire drawing. Optionally, the determining a consumable volume that the nozzle tip can remain according to the nozzle aperture of the printer includes:

V=πr2*2r

wherein V represents the consumable volume, pi represents the circumferential ratio, and r represents half of the nozzle aperture. The consumable volume that general nozzle tip can remain is not less than the result that obtains according to this formula calculation, and is more close, consequently, confirms the consumable volume that can remain through this formula and when avoiding the wire drawing problem, can also guarantee the integrality that every preceding printing route printed to do not exert an influence to the printing of three-dimensional model itself.

And S13, determining a tail end sliding path in the previous printing path of the idle running path according to the consumable volume, and setting the extrusion flow in the tail end sliding path to be zero.

Specifically, after the volume of the consumable part which can be remained is determined, the terminal sliding path in the previous printing path of each idle running path can be further determined according to the volume of the consumable part. The tail end sliding path is a path with a certain length cut out at the last of the previous printing path, the path is changed to be empty, the extrusion flow of the path is set to be zero, the path is only slid, and then the path can be printed by consuming the melted consumable materials remained in the nozzle. Meanwhile, the length of each tail end sliding path can be accurately determined according to the determined volume of the consumable, so that discharging can not be continued after printing of each previous printing path is completed, and wire drawing is avoided.

Optionally, the determining a tip sliding path in a previous printing path of the idle running path according to the volume of the consumable part includes:

where L1 represents the length of the tip glide path, V represents the consumable volume, pi represents the circumference ratio, and W represents half the line width of the printed three-dimensional model. Specifically, since the remaining consumable is freely extruded by gravity in the tip sliding path, the extrusion flow rate in the tip sliding path may be a default value of 1.0 mm per second, which does not affect the calculation of the length of the tip sliding path. Wherein, the half-line width can be obtained according to the configuration of the user. After the length L1 of the tip end slide path is calculated according to the formula, the last segment of the previous print path with the length L1 can be determined as the tip end slide path, and the extrusion flow rate in the segment of the tip end slide path is set to be zero.

And S14, generating a 3D printing file according to the printing path and the idle running path after the extrusion flow is set.

Wherein, optionally, the 3D printing file may be a G code file, and a G code (G-code) is the most widely used numerical control programming language, is mainly used in computer aided manufacturing for controlling an automatic machine tool, and is an instruction in a numerical control program. The G code file is a file containing G codes, and the 3D printer can print the three-dimensional model based on the corresponding G code file. Specifically, after slicing is automatically performed and print data is acquired, the print data (i.e., extrusion flow of some paths and the like) can be adjusted layer by layer according to the above process, and then a corresponding G code file is automatically generated, so that the G code file can be exported to a 3D printer to print a required three-dimensional model.

On the basis of the above technical solution, optionally, before generating the 3D print file according to the print path after setting the extrusion flow and the idle travel path, the method further includes: determining a terminal pre-printing path in the idle walking path; and setting the extrusion flow in the tail end pre-printing path according to the length of the tail end pre-printing path and the length of the tail end sliding path. Illustratively, as shown in fig. 2, an idle-run path 13 may exist between the first contour path 11 (i.e., the previous print path) and the second contour path 12, the first contour path 11 includes a terminal slide path 111 (a portion cut out on the first contour path 11 inside the left triangle dashed box in fig. 2), the terminal slide path 111 is connected to the idle-run path 13, the idle-run path 13 includes a terminal pre-print path 131 (a portion cut out on the idle-run path 13 inside the right triangle dashed box in fig. 2), and the terminal pre-print path 131 is connected to the second contour path 12. Specifically, for each idle running path, because the consumable material remaining in the nozzle is exhausted in the previous printing path, and when the printing is started in the next printing path, the consumable material needs to be extruded again to fill the nozzle, so as to discharge the material timely, and it is necessary to spend a certain time to start normal discharging, therefore, a tail end pre-printing path can be determined in each idle running path, and discharging is started at the start point of each next printing path by adjusting the extrusion flow rate in the tail end pre-printing path. The tail end pre-printing path is a path with a certain length cut at the end of the idle running path, and the extrusion flow in the tail end pre-printing path can be determined according to the length of the path and the length of a tail end sliding path in the previous printing path. The tail end preprinting path is used for filling the nozzle tip part in advance, so that the problem that a gap appears in a subsequent printing path due to delay of extrusion of consumables is avoided, and the printing integrity of the subsequent printing path is ensured. That is, the extrusion amount in the end preprinting path is the same as the amount of the consumable material required to freely overflow in the end sliding path, and the extrusion flow amount in the end sliding path can be a default value of 1.0 mm/s, so that the extrusion flow amount in the end preprinting path can be determined only according to the relationship between the length of the end preprinting path and the length of the end sliding path, and the shorter the length of the end preprinting path is, the higher the extrusion flow amount is required to fill the nozzle tip portion in time. Optionally, the length of the end pre-print path may be the same as the length of the end slide path, and the extrusion flow rate in the end slide path is used as the extrusion flow rate in the end pre-print path, so that the length of the end pre-print path does not need to be determined again, which reduces the calculation time, but there may be a case where the length of the idle running path is smaller than the length of the end slide path, in which case, all the idle running paths may be used as the end pre-print paths, and the extrusion flow rate in the end pre-print path is determined according to a proportional relationship between the length of the idle running path and the length of the end slide path.

Further optionally, the determining a terminal pre-printing path in the idle-walking path includes: if the length of the idle walking path is smaller than or equal to a preset length, determining the whole idle walking path as the tail end pre-printing path; and if the length of the idle walking path is greater than the preset length, determining the path with the preset length at the tail end of the idle walking path as the tail end pre-printing path. Wherein, optionally, the preset length is 3 mm. Specifically, a preset length may be set, and the preset length is used as the length of a general terminal pre-printing path, that is, a path, in which the last section of the idle running path is long as the preset length, is determined as the terminal pre-printing path, so as to determine a more suitable terminal pre-printing path, and the nozzle tip portion may be filled at a more suitable speed, thereby ensuring that the nozzle tip portion is not extruded in advance or at a later time. Particularly, the extrusion can be carried out at a lower extrusion flow rate in the tail end pre-printing path, for example, the extrusion flow rate is lower than that in the subsequent printing path, so that the condition of accumulation caused by excessive extrusion at the starting position of the subsequent printing path is avoided, and the printing quality is ensured. The path length between two internal filling paths in the general idle running path is within 3 millimeters, and the idle running paths of other types are generally larger than 3 millimeters, so that the preset length can be set to be 3 millimeters to distinguish different types of idle running paths, specifically, the idle running path between the two internal filling paths can be directly used as a printing path and extruded according to the determined extrusion flow, and the idle running path of other types can be divided into two sections, the idle running is firstly performed in the first section of path, then the second section of path is directly used as the printing path and extruded according to the determined extrusion flow.

Further optionally, the setting the extrusion flow rate in the terminal pre-printing path according to the length of the terminal pre-printing path and the length of the terminal sliding path includes: when the length of the idle running path is less than or equal to the preset length, setting the extrusion flow in the tail end pre-printing path as follows:

when the length of the idle running path is greater than the preset length, setting the extrusion flow in the tail end pre-printing path as:

wherein Flow represents an extrusion Flow rate in the tip pre-print path, L1 represents a length of the tip glide path, L2 represents a length of the idle walk path, and L3 represents the preset length. Specifically, when the length of the idle running path is less than or equal to the preset length, the terminal pre-printing path is the idle running path, and the extrusion flow rate in the terminal sliding path may be a default value of 1.0 mm per second, and the extrusion flow rate and the path length are in an inverse correlation relationship, so that the extrusion flow rate in the terminal pre-printing path may be a ratio of L1 to L2. When the length of the idle-run path is greater than the preset length, the length of the end pre-print path is a fixed value, that is, the preset length, and therefore, the extrusion flow rate in the end pre-print path at this time may be a ratio of L1 to L3. The extrusion flow rate required by the length of the corresponding tail end pre-printing path can be determined through the two formulas, so that the discharging can be completed at the position of the starting point of the next printing path, and the printing integrity of the next printing path is ensured.

According to the technical scheme provided by the embodiment of the invention, the three-dimensional model to be printed is sliced layer by layer, the printing path and the idle path in each layer of slice are obtained, the volume of consumable materials which can be remained at the tip part of a nozzle is determined according to the aperture of the nozzle of the printer, the tail end sliding path in the previous printing path of the idle path is determined according to the volume of the consumable materials, the extrusion flow in the tail end sliding path is set to be zero, and finally, the 3D printing file can be generated according to the printing path and the idle path after the setting is finished. The last section of the previous printing path of each idle path is changed into the idle tail end sliding path, so that the residual melted consumable materials in the nozzle are consumed for printing, the length of the tail end sliding path can be determined according to the volume which can be remained at the tip part of the nozzle, the previous printing path can not continue to discharge materials after printing is completed, the problem of wire drawing in the 3D printing process by applying an FDM process is solved on the basis of ensuring the integrity of the printed three-dimensional model, and the printing effect of the appearance of the three-dimensional model is improved.

Example two

Fig. 3 is a schematic structural diagram of a 3D print file generating apparatus according to a second embodiment of the present invention, where the apparatus may be implemented by hardware and/or software, and may be generally integrated in a computer device. As shown in fig. 3, the apparatus includes:

the path obtaining module 21 is configured to slice the three-dimensional model to be printed in layers, and obtain a print path and an idle path in each layer of slice;

a consumable volume determination module 22 for determining the consumable volume which can be remained at the nozzle tip according to the nozzle aperture of the printer;

a tail end sliding path determining module 23, configured to determine a tail end sliding path in a previous printing path of the idle path according to the consumable volume, and set an extrusion flow rate in the tail end sliding path to zero;

and the file generation module 24 is configured to generate a 3D print file according to the print path and the idle travel path after the extrusion flow is set.

According to the technical scheme provided by the embodiment of the invention, the three-dimensional model to be printed is sliced layer by layer, the printing path and the idle path in each layer of slice are obtained, the volume of consumable materials which can be remained at the tip part of a nozzle is determined according to the aperture of the nozzle of the printer, the tail end sliding path in the previous printing path of the idle path is determined according to the volume of the consumable materials, the extrusion flow in the tail end sliding path is set to be zero, and finally, the 3D printing file can be generated according to the printing path and the idle path after the setting is finished. The last section of the previous printing path of each idle path is changed into the idle tail end sliding path, so that the residual melted consumable materials in the nozzle are consumed for printing, the length of the tail end sliding path can be determined according to the volume which can be remained at the tip part of the nozzle, the previous printing path can not continue to discharge materials after printing is completed, the problem of wire drawing in the 3D printing process by applying an FDM process is solved on the basis of ensuring the integrity of the printed three-dimensional model, and the printing effect of the appearance of the three-dimensional model is improved.

On the basis of the foregoing technical solution, optionally, the 3D print file generating apparatus further includes:

a terminal pre-printing path determining module, configured to determine a terminal pre-printing path in the idle travel path before generating the 3D print file according to the printing path and the idle travel path after the extrusion flow is set;

and the extrusion flow setting module is used for setting the extrusion flow in the tail end preprinting path according to the length of the tail end preprinting path and the length of the tail end sliding path.

On the basis of the above technical solution, optionally, the terminal pre-printing path determining module includes:

the first determining unit is used for determining the whole idle walking path as the tail end pre-printing path if the length of the idle walking path is less than or equal to a preset length;

and the second determining unit is used for determining the path with the preset length at the tail end of the idle walking path as the tail end pre-printing path if the length of the idle walking path is greater than the preset length.

On the basis of the above technical solution, optionally, the extrusion flow rate setting module includes:

a first setting unit, configured to set, when the length of the idle running path is less than or equal to the preset length, an extrusion flow rate in the terminal pre-printing path as:

a second setting unit, configured to set, when the length of the idle running path is greater than the preset length, the extrusion flow rate in the end pre-printing path to:

wherein Flow represents an extrusion Flow rate in the tip pre-print path, L1 represents a length of the tip glide path, L2 represents a length of the idle walk path, and L3 represents the preset length.

On the basis of the above technical solution, optionally, the preset length is 3 mm.

On the basis of the above technical solution, optionally, the terminal sliding path determining module 23 is specifically configured to:

where L1 represents the length of the tip glide path, V represents the consumable volume, pi represents the circumference ratio, and W represents half the line width of the printed three-dimensional model.

On the basis of the above technical solution, optionally, the consumable volume determining module 22 is specifically configured to:

V=πr2*2r

wherein V represents the consumable volume, pi represents the circumferential ratio, and r represents half of the nozzle aperture.

The 3D printing file generation device provided by the embodiment of the invention can execute the 3D printing file generation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.

It should be noted that, in the embodiment of the 3D print file generating apparatus, the included units and modules are only divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.

EXAMPLE III

Fig. 4 is a schematic structural diagram of a computer device provided in the third embodiment of the present invention, and shows a block diagram of an exemplary computer device suitable for implementing the embodiment of the present invention. The computer device shown in fig. 4 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present invention. As shown in fig. 4, the computer apparatus includes a processor 31, a memory 32, an input device 33, and an output device 34; the number of the processors 31 in the computer device may be one or more, one processor 31 is taken as an example in fig. 4, the processor 31, the memory 32, the input device 33 and the output device 34 in the computer device may be connected by a bus or in other ways, and the connection by the bus is taken as an example in fig. 4.

The memory 32 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the 3D print file generation method in the embodiment of the present invention (for example, the path acquisition module 21, the consumable volume determination module 22, the tip sliding path determination module 23, and the file generation module 24 in the 3D print file generation apparatus). The processor 31 executes various functional applications and data processing of the computer device by running software programs, instructions, and modules stored in the memory 32, that is, implements the 3D print file generation method described above.

The memory 32 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 32 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 32 may further include memory located remotely from the processor 31, which may be connected to a computer device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The input device 33 may be used to acquire a three-dimensional model to be printed and to generate key signal inputs and the like relating to user settings and function control of the computer apparatus. The output device 34 may be used to generate G code files for use by a 3D printer, and so on.

Example four

An embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a 3D print file generation method, including:

the method comprises the steps of slicing a three-dimensional model to be printed in a layering mode, and obtaining a printing path and an idle path in each layer of slice;

determining the volume of consumable materials which can be remained at the tip of the nozzle according to the aperture of the nozzle of the printer;

determining a tail end sliding path in a previous printing path of the idle running path according to the volume of the consumable materials, and setting the extrusion flow in the tail end sliding path to be zero;

and generating a 3D printing file according to the printing path and the idle running path after the extrusion flow is set.

The storage medium may be any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lambda (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.

Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the 3D print file generation method provided by any embodiment of the present invention.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于3D打印技术的个性化汽车格栅定制系统与设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!