WO2023098490A1 - 3d printed file generation method and apparatus, and terminal and storage medium - Google Patents

3d printed file generation method and apparatus, and terminal and storage medium Download PDF

Info

Publication number
WO2023098490A1
WO2023098490A1 PCT/CN2022/132817 CN2022132817W WO2023098490A1 WO 2023098490 A1 WO2023098490 A1 WO 2023098490A1 CN 2022132817 W CN2022132817 W CN 2022132817W WO 2023098490 A1 WO2023098490 A1 WO 2023098490A1
Authority
WO
WIPO (PCT)
Prior art keywords
slice
material extrusion
target
printing
trace
Prior art date
Application number
PCT/CN2022/132817
Other languages
French (fr)
Chinese (zh)
Inventor
敖丹军
唐京科
刘洪�
Original Assignee
深圳市创想三维科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市创想三维科技股份有限公司 filed Critical 深圳市创想三维科技股份有限公司
Publication of WO2023098490A1 publication Critical patent/WO2023098490A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/10Processes of additive manufacturing
    • B29C64/106Processes of additive manufacturing using only liquids or viscous materials, e.g. depositing a continuous bead of viscous material
    • B29C64/118Processes of additive manufacturing using only liquids or viscous materials, e.g. depositing a continuous bead of viscous material using filamentary material being melted, e.g. fused deposition modelling [FDM]
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/20Apparatus for additive manufacturing; Details thereof or accessories therefor
    • B29C64/205Means for applying layers
    • B29C64/209Heads; Nozzles
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/30Auxiliary operations or equipment
    • B29C64/386Data acquisition or data processing for additive manufacturing
    • B29C64/393Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y10/00Processes of additive manufacturing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y30/00Apparatus for additive manufacturing; Details thereof or accessories therefor
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y50/00Data acquisition or data processing for additive manufacturing
    • B33Y50/02Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes

Definitions

  • the present application relates to the technical field of 3D printing, in particular to a method, device, terminal and storage medium for generating 3D printing files.
  • FDM printing technology In the field of 3D printing technology, the commonly used 3D printing technology is Fused Deposition Modeling (FDM) printing technology. This FDM printing technology is based on each slice, after the thermoplastic material is heated and melted by the printing nozzle, along each The outline and filling track of a layer of slices eject the melted material to complete the printing of each layer of slices, that is, FDM printing technology is a 3D three-dimensional model formed by layer-by-layer printing accumulation.
  • FDM printing technology is a 3D three-dimensional model formed by layer-by-layer printing accumulation.
  • the contour edges formed by the material ejected from the printing nozzles are vertical, as shown in FIG. 1( a ) and FIG. 1( b ), for example.
  • a method for generating a 3D printing file comprising:
  • the line width of the first slice relative to the second slice is determined Whether there is a gap in the direction; wherein, the first slice and the second slice are adjacent upper and lower slices;
  • the target material extrusion amount of the printing nozzle when printing the target slice determines the target material extrusion amount of the printing nozzle when printing the target slice; Wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
  • the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice it is determined that after the first slice and the second slice are printed, the first slice is relative to Whether there is a gap in the second slice in the width direction of the trace, including:
  • the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice determine the inclination angle of the first slice and the second slice in the line height direction;
  • the inclination angle it is determined whether there is a gap between the first slice and the second slice in the width direction of the trace.
  • determining whether there is a gap between the first slice and the second slice in the width direction of the trace according to the inclination angle includes:
  • the preset angle threshold is determined according to the trace width and the trace height .
  • the method further includes: according to the inclusion The relational expression to determine the line width; where, E is the actual material extrusion amount of the first slice or the second slice, the actual material extrusion amount is the preset material extrusion amount or the target material extrusion amount, and S is The unit material length, H is the trace height.
  • the method also includes:
  • the offset of the first slice relative to the second slice in the width direction of the trace is determined; wherein, H is the height of the trace, and ⁇ is the inclination angle.
  • the target material extrusion amount of the printing nozzle when printing the target slice is determined include:
  • the target material extrusion volume of the printing nozzle when printing the target slice is determined, including:
  • a device for generating a 3D printing file comprising:
  • the first determination module is used to determine, according to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, after the first slice and the second slice are printed, the first slice is relative to the Whether there is a gap in the width direction of the second slice; wherein, the first slice and the second slice are adjacent upper and lower slices;
  • the second determining module is used to determine the printing nozzle when printing the target slice according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length in the case of a gap
  • the target material extrusion volume wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
  • the generation module is used to replace the preset material extrusion amount with the target material extrusion amount and generate a print file.
  • a terminal including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
  • the line width of the first slice relative to the second slice is determined Whether there is a gap in the direction; wherein, the first slice and the second slice are adjacent upper and lower slices;
  • the target material extrusion amount of the printing nozzle when printing the target slice determines the target material extrusion amount of the printing nozzle when printing the target slice; Wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
  • the line width of the first slice relative to the second slice is determined Whether there is a gap in the direction; wherein, the first slice and the second slice are adjacent upper and lower slices;
  • the target material extrusion amount of the printing nozzle when printing the target slice determines the target material extrusion amount of the printing nozzle when printing the target slice; Wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
  • the above method, device, terminal and storage medium for generating a 3D printing file determine that the first slice and the second slice are printed according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed After that, whether there is a gap between the first slice and the second slice in the width direction of the trace; and in the case of determining that there is a gap between the first slice and the second slice, according to The offset in the line width direction, the line height and the unit material length determine the target material extrusion volume of the printing nozzle when printing the target slice, and replace the preset material extrusion volume corresponding to the target slice with the target material extrusion volume.
  • the target material extrusion amount is greater than the preset material extrusion amount of the target slice, and the target slice includes the first slice or the second slice; that is to say, in the embodiment of the present application , for the slice information of each layer of the initially generated 3D printing model, it is pre-determined whether there is a gap between two adjacent layers of slices after each slice is printed, and if there is a gap, the preset material extrusion amount of the slice is corrected , and modify it to the target material extrusion amount to generate a print file, so that when the printer performs slice printing based on the print file, it can print the target slice according to the corrected target material extrusion amount, while according to the target material extrusion amount
  • the actual trace width of the printed target slice will be wider than the trace width before correction, therefore, the gap between the printed upper and lower slices will gradually become smaller, or even seamless; that is, in this embodiment, by increasing When printing slices, the amount of material extruded from the printing nozzle can increase the actual
  • Fig. 1 (a) is a schematic diagram of the front view structure of the inclined surface part in the 3D printing model in one embodiment
  • Fig. 1 (b) is a top view structure schematic diagram of the upper and lower layers of the inclined surface in the 3D printing model in one embodiment
  • Fig. 2 is an application environment diagram of a method for generating a 3D printing file in an embodiment
  • Fig. 3 is a schematic flow chart of a method for generating a 3D printing file in an embodiment
  • Fig. 4 is a top view structural schematic diagram of the corrected upper and lower slices in one embodiment
  • Fig. 5 (a) is a top view structure schematic diagram of the corrected upper and lower slices in another embodiment
  • Fig. 5 (b) is the schematic diagram of the front view structure of the inclined surface part in the corrected model in another embodiment
  • Fig. 6 is a schematic flow chart of a method for generating a 3D printing file in another embodiment
  • Fig. 7 is a structural block diagram of a device for generating a 3D printing file in an embodiment
  • Fig. 8 is an internal structure diagram of a terminal in an embodiment.
  • the method for generating a 3D printing file provided in this application can be applied to the application environment shown in FIG. 2 .
  • the terminal 101 communicates with the 3D printer 102 in a wired or wireless manner.
  • the terminal 101 can be installed with 3D model print file generation software, the print file generation software can generate a 3D print model including multi-layer slicing information, and send each layer slice information of the 3D print model to the 3D printer, so that 3D
  • the printer can perform printing operations on each layer of slices according to the slice information of each layer, and obtain a 3D object stacked by multiple layers of slices with a certain line width and line height; wherein, the terminal 101 can be, but not limited to, various personal
  • the 3D printer 102 may be, but not limited to, various types of 3D printers using FDM printing technology such as computers, notebook computers, smart phones, and tablet computers.
  • the method for generating a 3D printing file in the embodiment of the present application can be applied to a terminal or a 3D printer.
  • the terminal can generate the 3D printing file according to the The method judges and modifies the slicing information of each layer, and generates a print file, so that the printer can print the model according to the print file;
  • the method for generating the 3D print file is applied to a 3D printer, the 3D printer can print the model according to the 3D print file.
  • the file generation method judges and corrects adjacent two-layer slices in the print file of the 3D model to be printed sent by the terminal to generate a corrected print file, and prints slices of each layer according to the corrected print file .
  • a method for generating a 3D printing file is provided.
  • the method is applied to the terminal in FIG. 2 as an example for illustration, including the following steps:
  • Step 301 according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed, after the first slice and the second slice are printed, the first slice is relative to the second slice at Whether there is a gap in the trace width direction.
  • first slice and the second slice are adjacent upper and lower layers of slices.
  • the first contour coordinates of the first slice and the second contour coordinates of the second slice are two opposite contour coordinates in the vertical direction (Z-axis direction), and these two contour coordinates need to be the first slice and the second contour coordinates.
  • the same side coordinates on the two slices for example: the two contour coordinates are the outermost contour coordinates of the slice, or both are the innermost contour coordinates of the slice, etc.; optionally, the first slice and the second slice can be selected Any two contour coordinates on the top and bottom that meet the above conditions are not limited in this embodiment of the present application.
  • the trace width direction may be the direction perpendicular to the Z-axis in FIG. 1 , that is, the direction in which slices of each layer are tiled.
  • the offset of the first slice relative to the second slice after the first slice and the second slice are printed can be calculated according to the first contour coordinates of the first slice and the second contour coordinates of the second slice amount, and judge whether there is a gap between the first slice and the second slice according to the offset and the trace width of the second slice; optionally, when the offset is larger than the trace of the second slice In the case of width, it can be determined that there is a gap between the first slice and the second slice; in addition, the trace width of the second slice can be the actual trace width of the second slice after printing.
  • Step 302 if there is a gap, determine the target material extrusion of the printing nozzle when printing the target slice according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length. output.
  • the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice.
  • the amount of material extruded is the volume of extruded material per unit time
  • the line height is the thickness of the slice after printing
  • the unit material length is the distance between the printing nozzle moving from one point to another in unit time
  • the moving distance that is, the length of the material extruded by the printing nozzle per unit time; optionally, the line height and unit material length can be preset fixed values, or can be flexibly set according to actual printing requirements.
  • the corresponding relationship between different offsets, different trace heights, and different unit material lengths can be preset.
  • the preset material extrusion volume of the first slice can be corrected to obtain the target material extrusion volume of the first slice;
  • the preset material extrusion volume of the second slice can be corrected to obtain the target material extrusion volume of the second slice; since the target material extrusion volume is greater than the preset material extrusion volume, it is printed out according to the target material extrusion volume
  • the target trace width will be greater than the trace width printed according to the preset material extrusion amount.
  • the target material extrusion amount of the printing nozzle can be determined when printing the first slice, that is, the gap between the first slice and the second slice can be made up by increasing the line width of the first slice.
  • the material length can determine the target material extrusion volume of the printing nozzle when printing the second slice, that is, the gap between the first slice and the second slice can be made up by increasing the line width of the second slice.
  • the obtained corrected model can not only maintain the same inclination angle as the original model, but also can make up the gap between two adjacent layers, and the obtained printed model is consistent with the original model
  • the matching degree is higher, the model is more perfect, and the printing effect is better.
  • Step 303 replacing the preset material extrusion amount with the target material extrusion amount, and generating a print file.
  • the preset material extrusion volume in the print command (Gcode) corresponding to the target slice can be replaced with the current target material extrusion volume, and according to the modified
  • the final Gcode command generates a print file, so that after the print file is sent to the printer, the printer can control the print nozzle to print the target slice according to the extrusion amount of the target material in the Gcode command after parsing the Gcode command.
  • the first slice Whether there is a gap in the line width direction relative to the second slice; and in the case of determining that there is a gap between the first slice and the second slice, according to the line width direction of the first slice relative to the second slice.
  • the offset, line height and unit material length determine the target material extrusion volume of the print nozzle when printing the target slice, replace the preset material extrusion volume corresponding to the target slice with the target material extrusion volume, and generate a print file; wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice, and the target slice includes the first slice or the second slice; that is, in the embodiment of the present application, for the initially generated 3D Print the slice information of each layer of the model, and judge in advance whether there is a gap between two
  • the target slice can be printed according to the corrected target material extrusion amount, and the target slice printed out according to the target material extrusion amount
  • the actual line width will be wider than the line width before correction, therefore, the gap between the upper and lower layers of slices after printing will gradually become smaller, or even seamless;
  • the amount of material extrusion is used to increase the actual line width of the printed slice, to make up for the gap between the upper and lower slices, to make the inclined part of the printed model more perfect, and to improve the printing effect of the model.
  • Fig. 6 is a schematic flowchart of a method for generating a 3D printing file in an embodiment. This embodiment relates to determining, according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed, after the first slice and the second slice are printed, the first slice is relative to the second slice.
  • An optional implementation process of whether there is a gap in the width direction of the two slices, on the basis of the above embodiment, as shown in FIG. 6, the above step 301 includes:
  • Step 601 according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed, determine the inclination angles of the first slice and the second slice in the line height direction.
  • the Pythagorean theorem can be used to calculate the height direction of the first slice and the second slice in the direction of the trace height (that is, the Z axis) according to the first contour coordinates of the first slice and the second contour coordinates of the second slice. direction) inclination angle.
  • Step 602 according to the inclination angle, it is determined whether there is a gap between the first slice and the second slice in the width direction of the trace.
  • the trace width can be the actual trace width after the lower slice is printed, and the trace height It can be the trace height of the upper slice; in the case that the upper slice is a slice formed by offsetting the lower slice outward (that is, the outline area of the upper slice is larger than the outline area of the lower slice), the trace width can be the upper slice after printing
  • the actual trace width, the trace height can be the trace
  • each layer of slices may be printed according to the corrected target material extrusion volume, when correcting the material extrusion volume for every two layers, it must be based on the actual
  • the printed actual trace width is used to calculate the preset angle threshold to ensure the accuracy of gap judgment.
  • the actual line width can be the line width after printing according to the target material extrusion amount, or the line width after printing according to the preset material extrusion amount; for example: based on the printing shown in Figure 1(a) above Model, from the bottom to the top to correct the extrusion volume of sliced materials, assuming that the order from bottom to top is the first slice, the second slice, the third slice, the fourth slice, etc.
  • the first preset angle threshold is calculated according to the trace width of the first slice and the trace height of the second slice, and determined in the trace height direction according to the contour coordinates of the first slice and the contour coordinates of the second slice If the first tilt angle is greater than the first preset angle threshold, it means that there will be a gap between the first slice and the second slice after printing, and the printing of the second slice can be corrected
  • the material extrusion amount of the nozzle is the target material extrusion amount.
  • the second preset angle threshold can be calculated according to the trace width of the second slice and the trace height of the third slice, and according to the contour coordinates of the second slice and The contour coordinates of the third slice determine the second inclination angle in the direction of the line height; since the second slice will be printed according to the corrected target material extrusion volume, the material will overflow to both sides on the original printing path, therefore, after printing
  • the trace width of the second slice is widened, and it is possible to bridge the gap between the second slice and the third slice while making up the gap between the second slice and the first slice; that is, the second slice
  • the tilt angle may be smaller than the second preset angle threshold calculated according to the actual trace width of the second slice and the trace height of the third slice, that is, it is determined that there is no gap between the second slice and the third slice, and there is no need to modify the second slice.
  • the preset material extrusion volume corresponding to the three slices is corrected.
  • the third slice maintains the preset material extrusion volume and no correction is made, there may be a gap between the third slice and the fourth slice, then it can be Correct the material extrusion amount of the printing nozzle corresponding to the fourth slice; and so on, until the uppermost slice of the model to be printed is judged, and finally, generate the print of the model to be printed according to the material extrusion amount corresponding to each slice document.
  • E is the actual material extrusion amount of the first slice or the second slice
  • the actual material extrusion amount can be the preset material extrusion amount or the target material extrusion amount
  • S is the unit material length
  • H is the trace height
  • the inclination angle of the first slice and the second slice in the vertical direction is determined, and the second slice is determined according to the inclination angle. Whether there is a gap in the trace width direction between the first slice and the second slice can improve the accuracy of gap judgment.
  • step 302 "according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length, determine the print target
  • the target material extrusion volume of the printing nozzle when slicing" can include: according to the relational expression including (S ⁇ H ⁇ X), determine the target material extrusion volume of the printing nozzle when printing the target slice; wherein, S is the unit material length, H is the trace height, and X is the offset of the first slice relative to the second slice in the trace width direction.
  • the offset X of the first slice relative to the second slice in the trace width direction can be calculated according to a relational expression including (H ⁇ tan ⁇ ), where H is the trace height (which can be fixed value), ⁇ is the inclination angle determined in step 601 above.
  • the target material extrusion volume of the printing nozzle when printing the target slice can also be determined according to a relational expression including (n ⁇ S ⁇ H ⁇ X), wherein, n is greater than 1; optionally, the value range of n is also Can be [1.5,3].
  • the target material extrusion amount calculated by this relational formula, and the actual line width of the slices printed according to the target material extrusion amount will be wider, and the gap filling effect will be better.
  • a device for generating a 3D printing file including: a first determination module 701, a second determination module 702, and a generation module 703, wherein:
  • the first determining module 701 is configured to determine, according to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, after the first slice and the second slice are printed, the relative position of the first slice Whether there is a gap in the line width direction of the second slice; wherein, the first slice and the second slice are adjacent upper and lower slices;
  • the second determining module 702 is configured to determine the print target slice according to the offset of the first slice relative to the second slice in the line width direction, the line height, and the length of the unit material when there is a gap.
  • the target material extrusion volume of the nozzle wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
  • a generation module 703 configured to replace the preset material extrusion amount with the target material extrusion amount, and generate a print file.
  • the above-mentioned first determination module 701 is specifically configured to determine the first slice and the second slice according to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice an inclination angle in the direction of the trace height; and determining whether there is a gap in the trace width direction between the first slice and the second slice according to the inclination angle.
  • the above-mentioned first determination module 701 is specifically configured to determine that there is a gap between the first slice and the second slice in the trace width direction when the inclination angle is greater than a preset angle threshold; wherein , the preset angle threshold is determined according to the trace width and trace height.
  • the device further includes a third determination module; the third determination module is configured to include The relational expression to determine the line width; where, E is the actual material extrusion amount of the first slice or the second slice, the actual material extrusion amount is the preset material extrusion amount or the target material extrusion amount, and S is The unit material length, H is the trace height.
  • the device further includes a fourth determination module; the fourth determination module is used to calculate the offset of the first slice relative to the second slice in the trace width direction, the trace height and Unit material length, before determining the target material extrusion volume of the printing nozzle when printing the target slice, according to the relational expression including (H ⁇ tan ⁇ ), determine the offset of the first slice relative to the second slice in the line width direction ;
  • H is the height of the trace
  • is the tilt angle.
  • the above-mentioned second determination module 702 is specifically used to determine the target material extrusion volume of the printing nozzle when printing the target slice according to the relational expression including (S ⁇ H ⁇ X); wherein, S is the unit material length, H is the height of the trace, and X is the offset of the first slice relative to the second slice in the trace width direction.
  • the second determining module 702 is specifically configured to determine the target material extrusion volume of the printing nozzle when printing the target slice according to the relational expression including (n ⁇ S ⁇ H ⁇ X), where n is greater than 1.
  • Each module in the above-mentioned 3D printing file generating device can be fully or partially realized by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
  • a terminal is provided, and its internal structure diagram may be as shown in FIG. 8 .
  • the terminal includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Wherein, the processor of the terminal is used to provide calculation and control capabilities.
  • the memory of the terminal includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and computer programs.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the communication interface of the terminal is used for wired or wireless communication with the external 3D printer, and the wireless mode can be realized through WIFI, operator network, NFC (Near Field Communication) or other technologies.
  • the display screen of the terminal may be a liquid crystal display screen or an electronic ink display screen
  • the input device of the terminal may be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on a computer equipment shell, or It can be an external keyboard, touchpad or mouse.
  • FIG. 8 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the computer equipment to which the solution of this application is applied.
  • the specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
  • a terminal including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
  • the line width of the first slice relative to the second slice is determined Whether there is a gap in the direction; wherein, the first slice and the second slice are adjacent upper and lower slices;
  • the target material extrusion amount of the printing nozzle when printing the target slice determines the target material extrusion amount of the printing nozzle when printing the target slice; Wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
  • the processor when the processor executes the computer program, the following steps are also implemented: according to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, determine the first slice and the second slice an inclination angle in the direction of the trace height; and determining whether there is a gap in the trace width direction between the first slice and the second slice according to the inclination angle.
  • the processor executes the computer program, the following steps are further implemented: when the inclination angle is greater than a preset angle threshold, it is determined that there is a gap between the first slice and the second slice in the line width direction; wherein , the preset angle threshold is determined according to the trace width and trace height.
  • the processor executes the computer program
  • the following steps are also implemented: according to the The relational expression to determine the line width; where, E is the actual material extrusion amount of the first slice or the second slice, the actual material extrusion amount is the preset material extrusion amount or the target material extrusion amount, and S is The unit material length, H is the trace height.
  • the processor executes the computer program, the following steps are further implemented: determining the printing target according to the offset of the first slice relative to the second slice in the line width direction, the line height and the length of the unit material Before slicing the target material extrusion volume of the printing nozzle, according to the relational expression including (H ⁇ tan ⁇ ), determine the offset of the first slice relative to the second slice in the line width direction; where, H is the line Height, ⁇ is the tilt angle.
  • the processor when the processor executes the computer program, the following steps are also implemented: according to the relational expression including (S ⁇ H ⁇ X), determine the target material extrusion volume of the printing nozzle when printing the target slice; wherein, S is the unit material length, H is the height of the trace, and X is the offset of the first slice relative to the second slice in the trace width direction.
  • the processor when the processor executes the computer program, the following steps are also implemented: according to the relational expression including (n ⁇ S ⁇ H ⁇ X), determine the target material extrusion volume of the printing nozzle when printing the target slice, wherein, n is greater than 1.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
  • the line width of the first slice relative to the second slice is determined Whether there is a gap in the direction; wherein, the first slice and the second slice are adjacent upper and lower slices;
  • the target material extrusion amount of the printing nozzle when printing the target slice determines the target material extrusion amount of the printing nozzle when printing the target slice; Wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
  • the following steps are further implemented: according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed, determine the first slice and the second slice. an inclination angle of the slice in the track height direction; and determining whether there is a gap in the track width direction between the first slice and the second slice according to the inclination angle.
  • the following steps are further implemented: when the inclination angle is greater than a preset angle threshold, determine that there is a gap in the line width direction between the first slice and the second slice; Wherein, the preset angle threshold is determined according to the trace width and trace height.
  • the following steps are also implemented: according to the The relational expression to determine the line width; where, E is the actual material extrusion amount of the first slice or the second slice, the actual material extrusion amount is the preset material extrusion amount or the target material extrusion amount, and S is The unit material length, H is the trace height.
  • the following steps are further implemented: determining the printing Before the target material extrusion volume of the printing nozzle in the target slice, determine the offset of the first slice relative to the second slice in the line width direction according to the relational expression including (H ⁇ tan ⁇ ); where, H is the line height, ⁇ is the inclination angle.
  • the following steps are also implemented: according to the relational expression including (S ⁇ H ⁇ X), determine the target material extrusion volume of the printing nozzle when printing the target slice; wherein, S is the unit Material length, H is the trace height, X is the offset of the first slice relative to the second slice in the trace width direction.
  • the following steps are also implemented: according to the relational expression including (n ⁇ S ⁇ H ⁇ X), determine the target material extrusion volume of the printing nozzle when printing the target slice, wherein, n Greater than 1.
  • any references to memory, storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile memory and volatile memory.
  • Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory or optical memory, etc.
  • Volatile memory can include Random Access Memory (RAM) or external cache memory.
  • RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

Abstract

The present application relates to a 3D printed file generation method and apparatus, and a terminal and a storage medium. The method comprises: according to first contour coordinates of a first slice of a model to be printed and second contour coordinates of a second slice of same, determining whether there is a gap, in the width direction of a line, between the first slice and the second slice after the first slice and the second slice are printed; when there is a gap, according to the offset, in the width direction of the line, of the first slice relative to the second slice, the height of the line and a unit material length, determining a target material extrusion amount for a printing nozzle when a target slice is printed; and replacing a preset material extrusion amount corresponding to the target slice with the target material extrusion amount, and generating a printed file, wherein the target material extrusion amount is greater than the preset material extrusion amount of the target slice, and the target slice is the first slice or the second slice. Therefore, the line of a slice that is printed according to the target material extrusion amount is wider, such that the gap between two adjacent layers can be closed, thereby improving the printing effect.

Description

3D打印文件的生成方法、装置、终端和存储介质3D printing file generation method, device, terminal and storage medium 技术领域technical field
本申请涉及3D打印技术领域,特别是涉及一种3D打印文件的生成方法、装置、终端和存储介质。The present application relates to the technical field of 3D printing, in particular to a method, device, terminal and storage medium for generating 3D printing files.
背景技术Background technique
在3D打印技术领域,常用的3D打印技术为熔融沉积成型(Fused Deposition Modeling,简称FDM)打印技术,该FDM打印技术是根据每一层切片,由打印喷嘴将热塑性材料加热熔化后,沿着每一层切片的轮廓和填充轨迹喷出熔化后的材料,完成每一层切片的打印,即FDM打印技术是通过逐层打印堆积形成的3D立体模型。In the field of 3D printing technology, the commonly used 3D printing technology is Fused Deposition Modeling (FDM) printing technology. This FDM printing technology is based on each slice, after the thermoplastic material is heated and melted by the printing nozzle, along each The outline and filling track of a layer of slices eject the melted material to complete the printing of each layer of slices, that is, FDM printing technology is a 3D three-dimensional model formed by layer-by-layer printing accumulation.
对于每一层切片来说,打印喷嘴喷出材料所形成的轮廓边缘均是竖直的,例如可以参见图1(a)和图1(b)所示。For each layer of slices, the contour edges formed by the material ejected from the printing nozzles are vertical, as shown in FIG. 1( a ) and FIG. 1( b ), for example.
对于3D立体模型中的倾斜部分对应的每一层切片来说,打印后的上下两层轮廓之间将存在一定的偏移,而在该倾斜部分的倾斜角度较大时,上下两层轮廓之间的偏移量将大于单层轮廓的走线宽度,导致上下两层轮廓之间存在缝隙(参见图1(b)中标出的偏移量X和走线宽度L),造成模型缺陷,因此,打印效果较差。For each layer slice corresponding to the inclined part in the 3D three-dimensional model, there will be a certain offset between the upper and lower contours after printing. The offset between them will be greater than the trace width of the single-layer outline, resulting in a gap between the upper and lower two-layer outlines (see the offset X and trace width L marked in Figure 1(b)), resulting in model defects, so , the printing effect is poor.
发明内容Contents of the invention
基于此,有必要针对上述技术问题,提供一种能够减小倾斜表面的上下两层轮廓间的缝隙,进而提高打印效果的3D打印文件的生成方法、装置、终端和存储介质。Based on this, it is necessary to address the above technical problems and provide a 3D printing file generation method, device, terminal and storage medium that can reduce the gap between the upper and lower contours of the inclined surface, thereby improving the printing effect.
第一方面,提供了一种3D打印文件的生成方法,该方法包括:In the first aspect, a method for generating a 3D printing file is provided, the method comprising:
根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方向上是否存在缝隙;其中,第一切片与第二切片为相邻的上下两层切片;According to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, after the first slice and the second slice are printed, the line width of the first slice relative to the second slice is determined Whether there is a gap in the direction; wherein, the first slice and the second slice are adjacent upper and lower slices;
在存在缝隙的情况下,根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量;其中,目标物料挤出量大于该目标切片的预设物料挤出量;该目标切片包括第一切片或第二切片;In the case of a gap, according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length, determine the target material extrusion amount of the printing nozzle when printing the target slice; Wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
将预设物料挤出量替换为目标物料挤出量,并生成打印文件。Replace the preset material extrusion amount with the target material extrusion amount, and generate a print file.
在其中一个实施例中,根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方向上是否存在缝隙,包括:In one of the embodiments, according to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, it is determined that after the first slice and the second slice are printed, the first slice is relative to Whether there is a gap in the second slice in the width direction of the trace, including:
根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片和第二切片在走线高度方向上的倾斜角度;According to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, determine the inclination angle of the first slice and the second slice in the line height direction;
根据该倾斜角度确定第一切片相对于第二切片在走线宽度方向上是否存在缝隙。According to the inclination angle, it is determined whether there is a gap between the first slice and the second slice in the width direction of the trace.
在其中一个实施例中,根据该倾斜角度确定第一切片相对于第二切片在走线宽度方向上是否存在缝隙,包括:In one embodiment, determining whether there is a gap between the first slice and the second slice in the width direction of the trace according to the inclination angle includes:
在该倾斜角度大于预设角度阈值的情况下,确定第一切片相对于第二切片在走线宽度方向上存在缝隙;其中,该预设角度阈值为根据走线宽度和走线高度确定的。In the case where the inclination angle is greater than the preset angle threshold, it is determined that there is a gap in the trace width direction between the first slice and the second slice; wherein, the preset angle threshold is determined according to the trace width and the trace height .
在其中一个实施例中,该方法还包括:根据包含
Figure PCTCN2022132817-appb-000001
的关系式,确定走线宽度;其中,E为第一切片或第二切片的实际物料挤出量,该实际物料挤出量为预设物料挤出量或目标物料挤出量,S为单位物料长度,H为走线高度。
In one of the embodiments, the method further includes: according to the inclusion
Figure PCTCN2022132817-appb-000001
The relational expression to determine the line width; where, E is the actual material extrusion amount of the first slice or the second slice, the actual material extrusion amount is the preset material extrusion amount or the target material extrusion amount, and S is The unit material length, H is the trace height.
在其中一个实施例中,根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量之前,该方法还包括:In one of the embodiments, according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length, the target material extrusion amount of the printing nozzle when printing the target slice is determined. , the method also includes:
根据包含(H×tanθ)的关系式,确定第一切片相对于第二切片在走线宽度方向上的偏移量;其中,H为走线高度,θ为倾斜角度。According to a relational expression including (H×tanθ), the offset of the first slice relative to the second slice in the width direction of the trace is determined; wherein, H is the height of the trace, and θ is the inclination angle.
在其中一个实施例中,根据第一切片相对于第二切片在走线宽度方向上的 偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量,包括:In one of the embodiments, according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length, the target material extrusion amount of the printing nozzle when printing the target slice is determined, include:
根据包含(S×H×X)的关系式,确定打印目标切片时打印喷嘴的目标物料挤出量;其中,S为单位物料长度,H为走线高度,X为第一切片相对于第二切片在走线宽度方向上的偏移量。According to the relational expression including (S×H×X), determine the target material extrusion volume of the printing nozzle when printing the target slice; where, S is the unit material length, H is the line height, and X is the first slice relative to the second The offset of the second slice in the direction of the trace width.
在其中一个实施例中,根据包含(S×H×X)的关系式,确定打印目标切片时打印喷嘴的目标物料挤出量,包括:In one of the embodiments, according to the relational expression including (S×H×X), the target material extrusion volume of the printing nozzle when printing the target slice is determined, including:
根据包含(n×S×H×X)的关系式,确定打印目标切片时打印喷嘴的目标物料挤出量,其中,n大于1。According to a relational expression including (n×S×H×X), determine the target material extrusion volume of the printing nozzle when printing the target slice, wherein n is greater than 1.
第二方面,提供了一种3D打印文件的生成装置,该装置包括:In a second aspect, a device for generating a 3D printing file is provided, the device comprising:
第一确定模块,用于根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方向上是否存在缝隙;其中,第一切片与第二切片为相邻的上下两层切片;The first determination module is used to determine, according to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, after the first slice and the second slice are printed, the first slice is relative to the Whether there is a gap in the width direction of the second slice; wherein, the first slice and the second slice are adjacent upper and lower slices;
第二确定模块,用于在存在缝隙的情况下,根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量;其中,目标物料挤出量大于该目标切片的预设物料挤出量;该目标切片包括第一切片或第二切片;The second determining module is used to determine the printing nozzle when printing the target slice according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length in the case of a gap The target material extrusion volume; wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
生成模块,用于将预设物料挤出量替换为目标物料挤出量,并生成打印文件。The generation module is used to replace the preset material extrusion amount with the target material extrusion amount and generate a print file.
第三方面,提供了一种终端,包括存储器和处理器,该存储器存储有计算机程序,该处理器执行该计算机程序时实现以下步骤:In a third aspect, a terminal is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方向上是否存在缝隙;其中,第一切片与第二切片为相邻的上下两层切片;According to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, after the first slice and the second slice are printed, the line width of the first slice relative to the second slice is determined Whether there is a gap in the direction; wherein, the first slice and the second slice are adjacent upper and lower slices;
在存在缝隙的情况下,根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量;其中,目标物料挤出量大于该目标切片的预设物料挤出量;该目标 切片包括第一切片或第二切片;In the case of a gap, according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length, determine the target material extrusion amount of the printing nozzle when printing the target slice; Wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
将预设物料挤出量替换为目标物料挤出量,并生成打印文件。Replace the preset material extrusion amount with the target material extrusion amount, and generate a print file.
第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以下步骤:In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方向上是否存在缝隙;其中,第一切片与第二切片为相邻的上下两层切片;According to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, after the first slice and the second slice are printed, the line width of the first slice relative to the second slice is determined Whether there is a gap in the direction; wherein, the first slice and the second slice are adjacent upper and lower slices;
在存在缝隙的情况下,根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量;其中,目标物料挤出量大于该目标切片的预设物料挤出量;该目标切片包括第一切片或第二切片;In the case of a gap, according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length, determine the target material extrusion amount of the printing nozzle when printing the target slice; Wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
将预设物料挤出量替换为目标物料挤出量,并生成打印文件。Replace the preset material extrusion amount with the target material extrusion amount, and generate a print file.
上述3D打印文件的生成方法、装置、终端和存储介质,根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方向上是否存在缝隙;并在确定第一切片和第二切片之间存在缝隙的情况下,根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量,将该目标切片对应的预设物料挤出量替换为目标物料挤出量,并生成打印文件;其中,该目标物料挤出量大于该目标切片的预设物料挤出量,该目标切片包括第一切片或第二切片;也就是说,本申请实施例中,对于初始生成的3D打印模型的各层切片信息,预先判断每层切片在打印后,相邻两层切片之间是否存在缝隙,如果存在缝隙,则对切片的预设物料挤出量进行校正,并修改为目标物料挤出量,生成打印文件,以便打印机在根据该打印文件进行切片打印时,可以根据校正后的目标物料挤出量进行目标切片的打印,而在根据目标物料挤出量打印出的目标切片的实际走线宽度将比校正之前的走线宽度要宽,因此,打印后的上下两层切片之间的缝隙将逐渐变小,甚至无缝隙;即本实施例中通过增加打印切片时打印喷嘴的物料挤出量,来增加打印后的切片的实际走线宽度,来弥补上下两层切片之间存在的缝隙, 使得打印出的模型的倾斜部分更加完美,提高了模型的打印效果。The above method, device, terminal and storage medium for generating a 3D printing file determine that the first slice and the second slice are printed according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed After that, whether there is a gap between the first slice and the second slice in the width direction of the trace; and in the case of determining that there is a gap between the first slice and the second slice, according to The offset in the line width direction, the line height and the unit material length determine the target material extrusion volume of the printing nozzle when printing the target slice, and replace the preset material extrusion volume corresponding to the target slice with the target material extrusion volume. output, and generate a print file; wherein, the target material extrusion amount is greater than the preset material extrusion amount of the target slice, and the target slice includes the first slice or the second slice; that is to say, in the embodiment of the present application , for the slice information of each layer of the initially generated 3D printing model, it is pre-determined whether there is a gap between two adjacent layers of slices after each slice is printed, and if there is a gap, the preset material extrusion amount of the slice is corrected , and modify it to the target material extrusion amount to generate a print file, so that when the printer performs slice printing based on the print file, it can print the target slice according to the corrected target material extrusion amount, while according to the target material extrusion amount The actual trace width of the printed target slice will be wider than the trace width before correction, therefore, the gap between the printed upper and lower slices will gradually become smaller, or even seamless; that is, in this embodiment, by increasing When printing slices, the amount of material extruded from the printing nozzle can increase the actual line width of the printed slices to make up for the gap between the upper and lower layers of slices, making the inclined part of the printed model more perfect and improving the accuracy of the model. print effect.
附图说明Description of drawings
图1(a)为一个实施例中3D打印模型中倾斜表面部分的主视结构示意图;Fig. 1 (a) is a schematic diagram of the front view structure of the inclined surface part in the 3D printing model in one embodiment;
图1(b)为一个实施例中3D打印模型中倾斜表面的上下两层的俯视结构示意图;Fig. 1 (b) is a top view structure schematic diagram of the upper and lower layers of the inclined surface in the 3D printing model in one embodiment;
图2为一个实施例中3D打印文件的生成方法的应用环境图;Fig. 2 is an application environment diagram of a method for generating a 3D printing file in an embodiment;
图3为一个实施例中3D打印文件的生成方法的流程示意图;Fig. 3 is a schematic flow chart of a method for generating a 3D printing file in an embodiment;
图4为一个实施例中校正后的上下两层切片的俯视结构示意图;Fig. 4 is a top view structural schematic diagram of the corrected upper and lower slices in one embodiment;
图5(a)为另一个实施例中校正后的上下两层切片的俯视结构示意图;Fig. 5 (a) is a top view structure schematic diagram of the corrected upper and lower slices in another embodiment;
图5(b)为另一个实施例中校正后的模型中倾斜表面部分的主视结构示意图;Fig. 5 (b) is the schematic diagram of the front view structure of the inclined surface part in the corrected model in another embodiment;
图6为另一个实施例中3D打印文件的生成方法的流程示意图;Fig. 6 is a schematic flow chart of a method for generating a 3D printing file in another embodiment;
图7为一个实施例中3D打印文件的生成装置的结构框图;Fig. 7 is a structural block diagram of a device for generating a 3D printing file in an embodiment;
图8为一个实施例中终端的内部结构图。Fig. 8 is an internal structure diagram of a terminal in an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
本申请提供的3D打印文件的生成方法,可以应用于如图2所示的应用环境中。其中,终端101通过有线或者无线方式与3D打印机102进行通信。该终端101中可以安装有3D模型的打印文件生成软件,该打印文件生成软件可以生成包括多层切片信息的3D打印模型,将该3D打印模型的每层切片信息发送至3D打印机中,以便3D打印机能够根据每层切片信息对每层切片执行打印操作,得到具有一定走线宽度和走线高度的由多层切片所堆叠而成的3D物体;其中,终端101可以但不限于是各种个人计算机、笔记本电脑、智能手机和平板电脑等,3D打印机102可以但不限于是各种类型的采用FDM打印技术的3D打印机。The method for generating a 3D printing file provided in this application can be applied to the application environment shown in FIG. 2 . Wherein, the terminal 101 communicates with the 3D printer 102 in a wired or wireless manner. The terminal 101 can be installed with 3D model print file generation software, the print file generation software can generate a 3D print model including multi-layer slicing information, and send each layer slice information of the 3D print model to the 3D printer, so that 3D The printer can perform printing operations on each layer of slices according to the slice information of each layer, and obtain a 3D object stacked by multiple layers of slices with a certain line width and line height; wherein, the terminal 101 can be, but not limited to, various personal The 3D printer 102 may be, but not limited to, various types of 3D printers using FDM printing technology such as computers, notebook computers, smart phones, and tablet computers.
需要说明的是,本申请实施例中的3D打印文件的生成方法可以应用于终 端,也可以应用于3D打印机,在该3D打印方法应用于终端的情况下,终端可以根据该3D打印文件的生成方法对各层切片信息进行判断和修改,生成打印文件,以便打印机能够根据该打印文件进行模型的打印;在该3D打印文件的生成方法应用于3D打印机的情况下,3D打印机可以根据该3D打印文件的生成方法对终端发送的待打印的3D模型的打印文件中的相邻两层切片进行判断和校正,以生成校正后的打印文件,并根据该校正后的打印文件进行各层切片的打印。It should be noted that the method for generating a 3D printing file in the embodiment of the present application can be applied to a terminal or a 3D printer. When the 3D printing method is applied to a terminal, the terminal can generate the 3D printing file according to the The method judges and modifies the slicing information of each layer, and generates a print file, so that the printer can print the model according to the print file; when the method for generating the 3D print file is applied to a 3D printer, the 3D printer can print the model according to the 3D print file. The file generation method judges and corrects adjacent two-layer slices in the print file of the 3D model to be printed sent by the terminal to generate a corrected print file, and prints slices of each layer according to the corrected print file .
在一个实施例中,如图3所示,提供了一种3D打印文件的生成方法,以该方法应用于图2中的终端为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 3, a method for generating a 3D printing file is provided. The method is applied to the terminal in FIG. 2 as an example for illustration, including the following steps:
步骤301,根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方向上是否存在缝隙。 Step 301, according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed, after the first slice and the second slice are printed, the first slice is relative to the second slice at Whether there is a gap in the trace width direction.
其中,第一切片与第二切片为相邻的上下两层切片。第一切片的第一轮廓坐标和第二切片的第二轮廓坐标为竖直方向(Z轴方向)上上下相对的两个轮廓坐标,且这两个轮廓坐标需为第一切片和第二切片上的同一侧坐标,例如:这两个轮廓坐标均为切片的最外侧轮廓坐标,或者,均为切片的最内侧轮廓坐标等;可选地,可以选取第一切片和第二切片上的任一上下相对,且满足上述条件的两个轮廓坐标,本申请实施例对此并不做限定。另外,走线宽度方向可以为图1中垂直于Z轴的方向,即每一层切片平铺的方向。Wherein, the first slice and the second slice are adjacent upper and lower layers of slices. The first contour coordinates of the first slice and the second contour coordinates of the second slice are two opposite contour coordinates in the vertical direction (Z-axis direction), and these two contour coordinates need to be the first slice and the second contour coordinates. The same side coordinates on the two slices, for example: the two contour coordinates are the outermost contour coordinates of the slice, or both are the innermost contour coordinates of the slice, etc.; optionally, the first slice and the second slice can be selected Any two contour coordinates on the top and bottom that meet the above conditions are not limited in this embodiment of the present application. In addition, the trace width direction may be the direction perpendicular to the Z-axis in FIG. 1 , that is, the direction in which slices of each layer are tiled.
可选地,可以根据第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,计算第一切片与第二切片被打印之后,第一切片相对于第二切片的偏移量,并根据该偏移量和第二切片的走线宽度,来判断第一切片和第二切片之间是否存在缝隙;可选地,在该偏移量大于该第二切片的走线宽度的情况下,可以确定第一切片和第二切片之间存在缝隙;另外,该第二切片的走线宽度可以为该第二切片打印后的实际走线宽度。Optionally, the offset of the first slice relative to the second slice after the first slice and the second slice are printed can be calculated according to the first contour coordinates of the first slice and the second contour coordinates of the second slice amount, and judge whether there is a gap between the first slice and the second slice according to the offset and the trace width of the second slice; optionally, when the offset is larger than the trace of the second slice In the case of width, it can be determined that there is a gap between the first slice and the second slice; in addition, the trace width of the second slice can be the actual trace width of the second slice after printing.
步骤302,在存在缝隙的情况下,根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量。 Step 302, if there is a gap, determine the target material extrusion of the printing nozzle when printing the target slice according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length. output.
其中,目标物料挤出量大于该目标切片的预设物料挤出量;该目标切片包 括第一切片或第二切片。需要说明的是,物料挤出量为单位时间内挤出物料的体积,走线高度为切片打印后的切片厚度,单位物料长度为打印喷嘴在单位时间内从一个点移动到另一个点之间的移动距离,即单位时间内打印喷嘴挤出物料的长度;可选地,该走线高度和单位物料长度可以为预设固定值,也可以是根据实际打印需求灵活设置。Wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice. It should be noted that the amount of material extruded is the volume of extruded material per unit time, the line height is the thickness of the slice after printing, and the unit material length is the distance between the printing nozzle moving from one point to another in unit time The moving distance, that is, the length of the material extruded by the printing nozzle per unit time; optionally, the line height and unit material length can be preset fixed values, or can be flexibly set according to actual printing requirements.
可选地,可以根据实验验证和经验积累,预先设置不同偏移量、不同走线高度以及不同单位物料长度之间的对应关系。Optionally, according to experimental verification and experience accumulation, the corresponding relationship between different offsets, different trace heights, and different unit material lengths can be preset.
在确定出第一切片和第二切片之间存在缝隙的情况下,可以根据该对应关系和第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量;可选地,可以对第一切片的预设物料挤出量进行校正,得到第一切片的目标物料挤出量;也可以对第二切片的预设物料挤出量进行校正,得到第二切片的目标物料挤出量;由于目标物料挤出量大于预设物料挤出量,因此,根据目标物料挤出量打印出的目标走线宽度将大于根据预设物料挤出量打印出的走线宽度,在走线宽度增加的情况下,第一切片和第二切片之间的缝隙将会减小,甚至被填满,即通过增加走线宽度能够弥补第一切片和第二切片之间的缝隙,使打印效果更佳完美。When it is determined that there is a gap between the first slice and the second slice, according to the corresponding relationship and the offset of the first slice relative to the second slice in the direction of the trace width, the height of the trace, and the unit Material length, to determine the target material extrusion volume of the printing nozzle when printing the target slice; optionally, the preset material extrusion volume of the first slice can be corrected to obtain the target material extrusion volume of the first slice; The preset material extrusion volume of the second slice can be corrected to obtain the target material extrusion volume of the second slice; since the target material extrusion volume is greater than the preset material extrusion volume, it is printed out according to the target material extrusion volume The target trace width will be greater than the trace width printed according to the preset material extrusion amount. When the trace width increases, the gap between the first slice and the second slice will be reduced or even filled. Full, that is, the gap between the first slice and the second slice can be made up by increasing the width of the trace, so that the printing effect is better and more perfect.
可选地,如图4所示,在根据第一切片(上层走线)相对于第二切片(下层走线)在走线宽度方向上的偏移量、走线高度以及单位物料长度,可以确定打印第一切片时打印喷嘴的目标物料挤出量,即可以通过增加第一切片的走线宽度来弥补第一切片和第二切片之间的缝隙。Optionally, as shown in FIG. 4, according to the offset of the first slice (upper-layer trace) relative to the second slice (lower-layer trace) in the trace width direction, trace height and unit material length, The target material extrusion amount of the printing nozzle can be determined when printing the first slice, that is, the gap between the first slice and the second slice can be made up by increasing the line width of the first slice.
可选地,如图5(a)所示,在根据第一切片(上层走线)相对于第二切片(下层走线)在走线宽度方向上的偏移量、走线高度以及单位物料长度,可以确定打印第二切片时打印喷嘴的目标物料挤出量,即可以通过增加第二切片的走线宽度来弥补第一切片和第二切片之间的缝隙。需要说明的是,在通过增加下层走线的物料挤出量以弥补下层走线和上层走线之间的缝隙时,该模型的整体倾斜角度将与校正之前的模型的倾斜角度保持一致,如图5(b)所示,基于此,所得到的校正后的模型既可以保持与原模型相同的倾斜角度,也可以弥补相邻两层之间的缝隙,得到的打印后的模型与原模型的匹配度更高,模型更完美,打印 效果更好。Optionally, as shown in FIG. 5(a), according to the offset of the first slice (upper-layer trace) relative to the second slice (lower-layer trace) in the trace width direction, trace height and unit The material length can determine the target material extrusion volume of the printing nozzle when printing the second slice, that is, the gap between the first slice and the second slice can be made up by increasing the line width of the second slice. It should be noted that when the gap between the lower layer and the upper layer is compensated by increasing the material extrusion of the lower layer, the overall inclination angle of the model will be consistent with the inclination angle of the model before correction, as shown in As shown in Figure 5(b), based on this, the obtained corrected model can not only maintain the same inclination angle as the original model, but also can make up the gap between two adjacent layers, and the obtained printed model is consistent with the original model The matching degree is higher, the model is more perfect, and the printing effect is better.
步骤303,将预设物料挤出量替换为目标物料挤出量,并生成打印文件。 Step 303, replacing the preset material extrusion amount with the target material extrusion amount, and generating a print file.
可选地,在确定出目标切片的目标物料挤出量之后,可以将该目标切片对应的打印指令(Gcode)中的预设物料挤出量替换为当前的目标物料挤出量,并根据修改后的Gcode指令生成打印文件,以便将该打印文件发送至打印机后,打印机能够在解析该Gcode指令后,根据该Gcode指令中的目标物料挤出量,控制打印喷嘴打印该目标切片。Optionally, after determining the target material extrusion volume of the target slice, the preset material extrusion volume in the print command (Gcode) corresponding to the target slice can be replaced with the current target material extrusion volume, and according to the modified The final Gcode command generates a print file, so that after the print file is sent to the printer, the printer can control the print nozzle to print the target slice according to the extrusion amount of the target material in the Gcode command after parsing the Gcode command.
上述3D打印文件的生成方法中,根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方向上是否存在缝隙;并在确定第一切片和第二切片之间存在缝隙的情况下,根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量,将该目标切片对应的预设物料挤出量替换为目标物料挤出量,并生成打印文件;其中,该目标物料挤出量大于该目标切片的预设物料挤出量,该目标切片包括第一切片或第二切片;也就是说,本申请实施例中,对于初始生成的3D打印模型的各层切片信息,预先判断每层切片在打印后,相邻两层切片之间是否存在缝隙,如果存在缝隙,则对切片的预设物料挤出量进行校正,并修改为目标物料挤出量,生成打印文件,以便打印机在根据该打印文件进行切片打印时,可以根据校正后的目标物料挤出量进行目标切片的打印,而在根据目标物料挤出量打印出的目标切片的实际走线宽度将比校正之前的走线宽度要宽,因此,打印后的上下两层切片之间的缝隙将逐渐变小,甚至无缝隙;即本实施例中通过增加打印切片时打印喷嘴的物料挤出量,来增加打印后的切片的实际走线宽度,来弥补上下两层切片之间存在的缝隙,使得打印出的模型的倾斜部分更加完美,提高了模型的打印效果。In the above-mentioned method for generating a 3D printing file, according to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, after the first slice and the second slice are printed, the first slice Whether there is a gap in the line width direction relative to the second slice; and in the case of determining that there is a gap between the first slice and the second slice, according to the line width direction of the first slice relative to the second slice The offset, line height and unit material length, determine the target material extrusion volume of the print nozzle when printing the target slice, replace the preset material extrusion volume corresponding to the target slice with the target material extrusion volume, and generate a print file; wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice, and the target slice includes the first slice or the second slice; that is, in the embodiment of the present application, for the initially generated 3D Print the slice information of each layer of the model, and judge in advance whether there is a gap between two adjacent layers of slices after each slice is printed. If there is a gap, correct the preset material extrusion amount of the slice and modify it to the target material Extrusion amount, to generate a print file, so that when the printer performs slice printing according to the print file, the target slice can be printed according to the corrected target material extrusion amount, and the target slice printed out according to the target material extrusion amount The actual line width will be wider than the line width before correction, therefore, the gap between the upper and lower layers of slices after printing will gradually become smaller, or even seamless; The amount of material extrusion is used to increase the actual line width of the printed slice, to make up for the gap between the upper and lower slices, to make the inclined part of the printed model more perfect, and to improve the printing effect of the model.
图6为一个实施例中3D打印文件的生成方法的流程示意图。本实施例涉及的是根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方 向上是否存在缝隙的一种可选的实现过程,在上述实施例的基础上,如图6所示,上述步骤301包括:Fig. 6 is a schematic flowchart of a method for generating a 3D printing file in an embodiment. This embodiment relates to determining, according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed, after the first slice and the second slice are printed, the first slice is relative to the second slice. An optional implementation process of whether there is a gap in the width direction of the two slices, on the basis of the above embodiment, as shown in FIG. 6, the above step 301 includes:
步骤601,根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片和第二切片在走线高度方向上的倾斜角度。 Step 601 , according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed, determine the inclination angles of the first slice and the second slice in the line height direction.
可选地,可以采用勾股定理,根据第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,来计算第一切片和第二切片在走线高度方向(也就是Z轴方向)上的倾斜角度。Optionally, the Pythagorean theorem can be used to calculate the height direction of the first slice and the second slice in the direction of the trace height (that is, the Z axis) according to the first contour coordinates of the first slice and the second contour coordinates of the second slice. direction) inclination angle.
步骤602,根据该倾斜角度确定第一切片相对于第二切片在走线宽度方向上是否存在缝隙。 Step 602 , according to the inclination angle, it is determined whether there is a gap between the first slice and the second slice in the width direction of the trace.
可选地,可以根据该倾斜角度和预设角度阈值的大小关系,来确定第一切片相对于第二切片在走线宽度方向上是否存在缝隙;可选地,在该倾斜角度大于预设角度阈值的情况下,可以确定第一切片相对于第二切片在走线宽度方向上存在缝隙;其中,该预设角度阈值为根据走线宽度和走线高度确定的,可选地,在上层切片为下层切片向内偏移形成的切片(即上层切片的轮廓面积小于下层切片的轮廓面积)的情况下,该走线宽度可以为下层切片打印后的实际走线宽度,该走线高度可以为上层切片的走线高度;在上层切片为下层切片向外偏移形成的切片(即上层切片的轮廓面积大于下层切片的轮廓面积)的情况下,该走线宽度可以为上层切片打印后的实际走线宽度,该走线高度可以为下层切片的走线高度。Optionally, it may be determined whether there is a gap in the trace width direction between the first slice and the second slice according to the size relationship between the inclination angle and the preset angle threshold; optionally, when the inclination angle is greater than the preset In the case of an angle threshold, it can be determined that there is a gap between the first slice and the second slice in the direction of the trace width; wherein, the preset angle threshold is determined according to the trace width and trace height, optionally, in When the upper layer slice is a slice formed by the inward offset of the lower layer slice (that is, the outline area of the upper layer slice is smaller than the outline area of the lower layer slice), the trace width can be the actual trace width after the lower slice is printed, and the trace height It can be the trace height of the upper slice; in the case that the upper slice is a slice formed by offsetting the lower slice outward (that is, the outline area of the upper slice is larger than the outline area of the lower slice), the trace width can be the upper slice after printing The actual trace width, the trace height can be the trace height of the lower layer slice.
需要说明的是,由于每一层切片都有可能是根据校正后的目标物料挤出量进行的打印,因此,每两层在进行物料挤出量的校正时,需根据其中一层校正后实际打印出的实际走线宽度来计算预设角度阈值,以确保缝隙判断的准确性。该实际走线宽度可以为根据目标物料挤出量打印后的走线宽度,也可以为根据预设物料挤出量打印后的走线宽度;例如:基于上述图1(a)所示的打印模型,从下至上依次进行切片物料挤出量的校正,假设从下至上依次为第一切片、第二切片、第三切片、第四切片等。It should be noted that since each layer of slices may be printed according to the corrected target material extrusion volume, when correcting the material extrusion volume for every two layers, it must be based on the actual The printed actual trace width is used to calculate the preset angle threshold to ensure the accuracy of gap judgment. The actual line width can be the line width after printing according to the target material extrusion amount, or the line width after printing according to the preset material extrusion amount; for example: based on the printing shown in Figure 1(a) above Model, from the bottom to the top to correct the extrusion volume of sliced materials, assuming that the order from bottom to top is the first slice, the second slice, the third slice, the fourth slice, etc.
首先,根据第一切片的走线宽度和第二切片的走线高度计算第一预设角度阈值,以及根据第一切片的轮廓坐标和第二切片的轮廓坐标确定在走线高度方 向上的第一倾斜角度,如果该第一倾斜角度大于该第一预设角度阈值,则说明第一切片和第二切片在打印后两者之间将存在缝隙,则可以校正第二切片的打印喷嘴的物料挤出量为目标物料挤出量。Firstly, the first preset angle threshold is calculated according to the trace width of the first slice and the trace height of the second slice, and determined in the trace height direction according to the contour coordinates of the first slice and the contour coordinates of the second slice If the first tilt angle is greater than the first preset angle threshold, it means that there will be a gap between the first slice and the second slice after printing, and the printing of the second slice can be corrected The material extrusion amount of the nozzle is the target material extrusion amount.
接着,判断第二切片和第三切片之间是否存在缝隙,可以根据第二切片的走线宽度和第三切片的走线高度计算第二预设角度阈值,以及根据第二切片的轮廓坐标和第三切片的轮廓坐标确定在走线高度方向上的第二倾斜角度;由于第二切片将根据校正后的目标物料挤出量进行打印,在原打印路径上物料会向两边溢出,因此,打印后的第二切片的走线宽度变宽,在弥补第二切片和第一切片之间的缝隙的同时,也有可能弥补第二切片和第三切片之间的缝隙;也就是说,该第二倾斜角度有可能小于根据第二切片的实际走线宽度和第三切片的走线高度计算出的第二预设角度阈值,即确定第二切片和第三切片之间不存在缝隙,无需对第三切片对应的预设物料挤出量进行校正。Next, to determine whether there is a gap between the second slice and the third slice, the second preset angle threshold can be calculated according to the trace width of the second slice and the trace height of the third slice, and according to the contour coordinates of the second slice and The contour coordinates of the third slice determine the second inclination angle in the direction of the line height; since the second slice will be printed according to the corrected target material extrusion volume, the material will overflow to both sides on the original printing path, therefore, after printing The trace width of the second slice is widened, and it is possible to bridge the gap between the second slice and the third slice while making up the gap between the second slice and the first slice; that is, the second slice The tilt angle may be smaller than the second preset angle threshold calculated according to the actual trace width of the second slice and the trace height of the third slice, that is, it is determined that there is no gap between the second slice and the third slice, and there is no need to modify the second slice. The preset material extrusion volume corresponding to the three slices is corrected.
然后,判断第三切片和第四切片之间是否存在缝隙,由于第三切片保持预设物料挤出量,没有进行校正,因此,第三切片和第四切片之间有可能存在缝隙,则可以校正第四切片对应的打印喷嘴的物料挤出量;以此类推,直至判断完该待打印模型的最上层切片为止,最后,根据每层切片对应的物料挤出量生成该待打印模型的打印文件。Then, it is judged whether there is a gap between the third slice and the fourth slice. Since the third slice maintains the preset material extrusion volume and no correction is made, there may be a gap between the third slice and the fourth slice, then it can be Correct the material extrusion amount of the printing nozzle corresponding to the fourth slice; and so on, until the uppermost slice of the model to be printed is judged, and finally, generate the print of the model to be printed according to the material extrusion amount corresponding to each slice document.
可选地,可以根据包含
Figure PCTCN2022132817-appb-000002
的关系式,确定走线宽度;其中,E为第一切片或第二切片的实际物料挤出量,该实际物料挤出量可以为预设物料挤出量或目标物料挤出量,S为单位物料长度,H为走线高度。
Optionally, can be based on the inclusion of
Figure PCTCN2022132817-appb-000002
The relational expression to determine the line width; where, E is the actual material extrusion amount of the first slice or the second slice, the actual material extrusion amount can be the preset material extrusion amount or the target material extrusion amount, S is the unit material length, H is the trace height.
本实施例中,根据第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片和第二切片在竖直方向上的倾斜角度,并根据该倾斜角度确定第一切片相对于第二切片在走线宽度方向上是否存在缝隙,能够提高缝隙判断的准确性。In this embodiment, according to the first contour coordinates of the first slice and the second contour coordinates of the second slice, the inclination angle of the first slice and the second slice in the vertical direction is determined, and the second slice is determined according to the inclination angle. Whether there is a gap in the trace width direction between the first slice and the second slice can improve the accuracy of gap judgment.
在本申请的一种可选的实施例中,上述步骤302中“根据第一切片相对于 第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量”可以包括:根据包含(S×H×X)的关系式,确定打印目标切片时打印喷嘴的目标物料挤出量;其中,S为单位物料长度,H为走线高度,X为第一切片相对于第二切片在走线宽度方向上的偏移量。可选地,可以根据包含(H×tanθ)的关系式,来计算第一切片相对于第二切片在走线宽度方向上的偏移量X,其中,H为走线高度(可以为固定值),θ为上述步骤601确定出的倾斜角度。In an optional embodiment of the present application, in the above step 302, "according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length, determine the print target The target material extrusion volume of the printing nozzle when slicing" can include: according to the relational expression including (S×H×X), determine the target material extrusion volume of the printing nozzle when printing the target slice; wherein, S is the unit material length, H is the trace height, and X is the offset of the first slice relative to the second slice in the trace width direction. Optionally, the offset X of the first slice relative to the second slice in the trace width direction can be calculated according to a relational expression including (H×tanθ), where H is the trace height (which can be fixed value), θ is the inclination angle determined in step 601 above.
优选地,还可以根据包含(n×S×H×X)的关系式,确定打印目标切片时打印喷嘴的目标物料挤出量,其中,n大于1;可选地,n的取值范围也可以为[1.5,3]。通过该关系式计算的目标物料挤出量,以及根据该目标物料挤出量打印出的切片的实际走线宽度会更宽,缝隙弥补的效果会更好。Preferably, the target material extrusion volume of the printing nozzle when printing the target slice can also be determined according to a relational expression including (n×S×H×X), wherein, n is greater than 1; optionally, the value range of n is also Can be [1.5,3]. The target material extrusion amount calculated by this relational formula, and the actual line width of the slices printed according to the target material extrusion amount will be wider, and the gap filling effect will be better.
应该理解的是,虽然图3-6的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图3-6中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow charts in FIGS. 3-6 are shown sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 3-6 may include multiple steps or stages, these steps or stages are not necessarily executed at the same moment, but may be executed at different moments, the execution of these steps or stages The sequence is not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a part of steps or stages in other steps.
在一个实施例中,如图7所示,提供了一种3D打印文件的生成装置,包括:第一确定模块701、第二确定模块702和生成模块703,其中:In one embodiment, as shown in FIG. 7, a device for generating a 3D printing file is provided, including: a first determination module 701, a second determination module 702, and a generation module 703, wherein:
第一确定模块701,用于根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方向上是否存在缝隙;其中,第一切片与第二切片为相邻的上下两层切片;The first determining module 701 is configured to determine, according to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, after the first slice and the second slice are printed, the relative position of the first slice Whether there is a gap in the line width direction of the second slice; wherein, the first slice and the second slice are adjacent upper and lower slices;
第二确定模块702,用于在存在缝隙的情况下,根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切 片时打印喷嘴的目标物料挤出量;其中,目标物料挤出量大于该目标切片的预设物料挤出量;该目标切片包括第一切片或第二切片;The second determining module 702 is configured to determine the print target slice according to the offset of the first slice relative to the second slice in the line width direction, the line height, and the length of the unit material when there is a gap. The target material extrusion volume of the nozzle; wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
生成模块703,用于将预设物料挤出量替换为目标物料挤出量,并生成打印文件。A generation module 703, configured to replace the preset material extrusion amount with the target material extrusion amount, and generate a print file.
在其中一个实施例中,上述第一确定模块701,具体用于根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片和第二切片在走线高度方向上的倾斜角度;并根据该倾斜角度确定第一切片相对于第二切片在走线宽度方向上是否存在缝隙。In one of the embodiments, the above-mentioned first determination module 701 is specifically configured to determine the first slice and the second slice according to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice an inclination angle in the direction of the trace height; and determining whether there is a gap in the trace width direction between the first slice and the second slice according to the inclination angle.
在其中一个实施例中,上述第一确定模块701,具体用于在该倾斜角度大于预设角度阈值的情况下,确定第一切片相对于第二切片在走线宽度方向上存在缝隙;其中,该预设角度阈值为根据走线宽度和走线高度确定的。In one of the embodiments, the above-mentioned first determination module 701 is specifically configured to determine that there is a gap between the first slice and the second slice in the trace width direction when the inclination angle is greater than a preset angle threshold; wherein , the preset angle threshold is determined according to the trace width and trace height.
在其中一个实施例中,该装置还包括第三确定模块;该第三确定模块,用于根据包含
Figure PCTCN2022132817-appb-000003
的关系式,确定走线宽度;其中,E为第一切片或第二切片的实际物料挤出量,该实际物料挤出量为预设物料挤出量或目标物料挤出量,S为单位物料长度,H为走线高度。
In one of the embodiments, the device further includes a third determination module; the third determination module is configured to include
Figure PCTCN2022132817-appb-000003
The relational expression to determine the line width; where, E is the actual material extrusion amount of the first slice or the second slice, the actual material extrusion amount is the preset material extrusion amount or the target material extrusion amount, and S is The unit material length, H is the trace height.
在其中一个实施例中,该装置还包括第四确定模块;该第四确定模块,用于在根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量之前,根据包含(H×tanθ)的关系式,确定第一切片相对于第二切片在走线宽度方向上的偏移量;其中,H为走线高度,θ为倾斜角度。In one of the embodiments, the device further includes a fourth determination module; the fourth determination module is used to calculate the offset of the first slice relative to the second slice in the trace width direction, the trace height and Unit material length, before determining the target material extrusion volume of the printing nozzle when printing the target slice, according to the relational expression including (H×tanθ), determine the offset of the first slice relative to the second slice in the line width direction ; Among them, H is the height of the trace, and θ is the tilt angle.
在其中一个实施例中,上述第二确定模块702,具体用于根据包含(S×H×X)的关系式,确定打印目标切片时打印喷嘴的目标物料挤出量;其中,S为单位物料长度,H为走线高度,X为第一切片相对于第二切片在走线宽度方向上的偏移量。In one of the embodiments, the above-mentioned second determination module 702 is specifically used to determine the target material extrusion volume of the printing nozzle when printing the target slice according to the relational expression including (S×H×X); wherein, S is the unit material length, H is the height of the trace, and X is the offset of the first slice relative to the second slice in the trace width direction.
在其中一个实施例中,上述第二确定模块702,具体用于根据包含(n×S×H×X)的关系式,确定打印目标切片时打印喷嘴的目标物料挤出量,n大 于1。In one of the embodiments, the second determining module 702 is specifically configured to determine the target material extrusion volume of the printing nozzle when printing the target slice according to the relational expression including (n×S×H×X), where n is greater than 1.
关于3D打印文件的生成装置的具体限定可以参见上文中对于3D打印文件的生成方法的限定,在此不再赘述。上述3D打印文件的生成装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For specific limitations on the device for generating 3D printing files, please refer to the above-mentioned limitations on the method for generating 3D printing files, which will not be repeated here. Each module in the above-mentioned 3D printing file generating device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
在一个实施例中,提供了一种终端,其内部结构图可以如图8所示。该终端包括通过***总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该终端的处理器用于提供计算和控制能力。该终端的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作***和计算机程序。该内存储器为非易失性存储介质中的操作***和计算机程序的运行提供环境。该终端的通信接口用于与外部的3D打印机进行有线或无线方式的通信,无线方式可通过WIFI、运营商网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种3D打印文件的生成方法。该终端的显示屏可以是液晶显示屏或者电子墨水显示屏,该终端的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a terminal is provided, and its internal structure diagram may be as shown in FIG. 8 . The terminal includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Wherein, the processor of the terminal is used to provide calculation and control capabilities. The memory of the terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the terminal is used for wired or wireless communication with the external 3D printer, and the wireless mode can be realized through WIFI, operator network, NFC (Near Field Communication) or other technologies. When the computer program is executed by the processor, a method for generating a 3D printing file is realized. The display screen of the terminal may be a liquid crystal display screen or an electronic ink display screen, and the input device of the terminal may be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on a computer equipment shell, or It can be an external keyboard, touchpad or mouse.
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 8 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the computer equipment to which the solution of this application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
在一个实施例中,提供了一种终端,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a terminal is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方向上是否存在缝隙;其中,第一切片与第二切片为相邻的上下两层切片;According to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, after the first slice and the second slice are printed, the line width of the first slice relative to the second slice is determined Whether there is a gap in the direction; wherein, the first slice and the second slice are adjacent upper and lower slices;
在存在缝隙的情况下,根据第一切片相对于第二切片在走线宽度方向上的 偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量;其中,目标物料挤出量大于该目标切片的预设物料挤出量;该目标切片包括第一切片或第二切片;In the case of a gap, according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length, determine the target material extrusion amount of the printing nozzle when printing the target slice; Wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
将预设物料挤出量替换为目标物料挤出量,并生成打印文件。Replace the preset material extrusion amount with the target material extrusion amount, and generate a print file.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片和第二切片在走线高度方向上的倾斜角度;并根据该倾斜角度确定第一切片相对于第二切片在走线宽度方向上是否存在缝隙。In one embodiment, when the processor executes the computer program, the following steps are also implemented: according to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, determine the first slice and the second slice an inclination angle in the direction of the trace height; and determining whether there is a gap in the trace width direction between the first slice and the second slice according to the inclination angle.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:在该倾斜角度大于预设角度阈值的情况下,确定第一切片相对于第二切片在走线宽度方向上存在缝隙;其中,该预设角度阈值为根据走线宽度和走线高度确定的。In one embodiment, when the processor executes the computer program, the following steps are further implemented: when the inclination angle is greater than a preset angle threshold, it is determined that there is a gap between the first slice and the second slice in the line width direction; wherein , the preset angle threshold is determined according to the trace width and trace height.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:根据包含
Figure PCTCN2022132817-appb-000004
的关系式,确定走线宽度;其中,E为第一切片或第二切片的实际物料挤出量,该实际物料挤出量为预设物料挤出量或目标物料挤出量,S为单位物料长度,H为走线高度。
In one embodiment, when the processor executes the computer program, the following steps are also implemented: according to the
Figure PCTCN2022132817-appb-000004
The relational expression to determine the line width; where, E is the actual material extrusion amount of the first slice or the second slice, the actual material extrusion amount is the preset material extrusion amount or the target material extrusion amount, and S is The unit material length, H is the trace height.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:在根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量之前,根据包含(H×tanθ)的关系式,确定第一切片相对于第二切片在走线宽度方向上的偏移量;其中,H为走线高度,θ为倾斜角度。In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining the printing target according to the offset of the first slice relative to the second slice in the line width direction, the line height and the length of the unit material Before slicing the target material extrusion volume of the printing nozzle, according to the relational expression including (H×tanθ), determine the offset of the first slice relative to the second slice in the line width direction; where, H is the line Height, θ is the tilt angle.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:根据包含(S×H×X)的关系式,确定打印目标切片时打印喷嘴的目标物料挤出量;其中,S为单位物料长度,H为走线高度,X为第一切片相对于第二切片在走线宽度方向上的偏移量。In one embodiment, when the processor executes the computer program, the following steps are also implemented: according to the relational expression including (S×H×X), determine the target material extrusion volume of the printing nozzle when printing the target slice; wherein, S is the unit material length, H is the height of the trace, and X is the offset of the first slice relative to the second slice in the trace width direction.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:根据包含(n×S×H×X)的关系式,确定打印目标切片时打印喷嘴的目标物料挤出量,其中, n大于1。In one embodiment, when the processor executes the computer program, the following steps are also implemented: according to the relational expression including (n×S×H×X), determine the target material extrusion volume of the printing nozzle when printing the target slice, wherein, n is greater than 1.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片与第二切片被打印之后,第一切片相对于第二切片在走线宽度方向上是否存在缝隙;其中,第一切片与第二切片为相邻的上下两层切片;According to the first contour coordinates of the first slice of the model to be printed and the second contour coordinates of the second slice, after the first slice and the second slice are printed, the line width of the first slice relative to the second slice is determined Whether there is a gap in the direction; wherein, the first slice and the second slice are adjacent upper and lower slices;
在存在缝隙的情况下,根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量;其中,目标物料挤出量大于该目标切片的预设物料挤出量;该目标切片包括第一切片或第二切片;In the case of a gap, according to the offset of the first slice relative to the second slice in the line width direction, the line height and the unit material length, determine the target material extrusion amount of the printing nozzle when printing the target slice; Wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
将预设物料挤出量替换为目标物料挤出量,并生成打印文件。Replace the preset material extrusion amount with the target material extrusion amount, and generate a print file.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定第一切片和第二切片在走线高度方向上的倾斜角度;并根据该倾斜角度确定第一切片相对于第二切片在走线宽度方向上是否存在缝隙。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed, determine the first slice and the second slice. an inclination angle of the slice in the track height direction; and determining whether there is a gap in the track width direction between the first slice and the second slice according to the inclination angle.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:在该倾斜角度大于预设角度阈值的情况下,确定第一切片相对于第二切片在走线宽度方向上存在缝隙;其中,该预设角度阈值为根据走线宽度和走线高度确定的。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when the inclination angle is greater than a preset angle threshold, determine that there is a gap in the line width direction between the first slice and the second slice; Wherein, the preset angle threshold is determined according to the trace width and trace height.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:根据包含
Figure PCTCN2022132817-appb-000005
的关系式,确定走线宽度;其中,E为第一切片或第二切片的实际物料挤出量,该实际物料挤出量为预设物料挤出量或目标物料挤出量,S为单位物料长度,H为走线高度。
In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: according to the
Figure PCTCN2022132817-appb-000005
The relational expression to determine the line width; where, E is the actual material extrusion amount of the first slice or the second slice, the actual material extrusion amount is the preset material extrusion amount or the target material extrusion amount, and S is The unit material length, H is the trace height.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:在根据第一切片相对于第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印目标切片时打印喷嘴的目标物料挤出量之前,根据包含(H×tanθ)的 关系式,确定第一切片相对于第二切片在走线宽度方向上的偏移量;其中,H为走线高度,θ为倾斜角度。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the printing Before the target material extrusion volume of the printing nozzle in the target slice, determine the offset of the first slice relative to the second slice in the line width direction according to the relational expression including (H×tanθ); where, H is the line height, θ is the inclination angle.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:根据包含(S×H×X)的关系式,确定打印目标切片时打印喷嘴的目标物料挤出量;其中,S为单位物料长度,H为走线高度,X为第一切片相对于第二切片在走线宽度方向上的偏移量。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: according to the relational expression including (S×H×X), determine the target material extrusion volume of the printing nozzle when printing the target slice; wherein, S is the unit Material length, H is the trace height, X is the offset of the first slice relative to the second slice in the trace width direction.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:根据包含(n×S×H×X)的关系式,确定打印目标切片时打印喷嘴的目标物料挤出量,其中,n大于1。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: according to the relational expression including (n×S×H×X), determine the target material extrusion volume of the printing nozzle when printing the target slice, wherein, n Greater than 1.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above-mentioned embodiments can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile memory and volatile memory. Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several implementation modes of the present application, and the description thereof is relatively specific and detailed, but it should not be construed as limiting the scope of the patent for the invention. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (10)

  1. 一种3D打印文件的生成方法,其特征在于,所述方法包括:A method for generating a 3D printing file, characterized in that the method comprises:
    根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定所述第一切片与所述第二切片被打印之后,所述第一切片相对于所述第二切片在走线宽度方向上是否存在缝隙;其中,所述第一切片与所述第二切片为相邻的上下两层切片;According to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed, after the first slice and the second slice are printed, the first slice relative to the Whether there is a gap in the second slice in the width direction of the trace; wherein, the first slice and the second slice are adjacent upper and lower slices;
    若存在缝隙,则根据所述第一切片相对于所述第二切片在所述走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印所述目标切片时打印喷嘴的目标物料挤出量;其中,所述目标物料挤出量大于所述目标切片的预设物料挤出量;所述目标切片包括所述第一切片或所述第二切片;If there is a gap, according to the offset of the first slice relative to the second slice in the line width direction, the line height, and the unit material length, determine the print nozzle position when printing the target slice Target material extrusion volume; wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the second slice;
    将所述预设物料挤出量替换为所述目标物料挤出量,并生成打印文件。The preset material extrusion amount is replaced with the target material extrusion amount, and a print file is generated.
  2. 根据权利要求1所述的方法,其特征在于,所述根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定所述第一切片与所述第二切片被打印之后,所述第一切片相对于所述第二切片在走线宽度方向上是否存在缝隙,包括:The method according to claim 1, wherein, according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed, the first slice and the second slice are determined. After the two slices are printed, whether there is a gap in the line width direction between the first slice and the second slice, including:
    根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定所述第一切片和所述第二切片在所述走线高度方向上的倾斜角度;determining an inclination angle of the first slice and the second slice in the line height direction according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed;
    根据所述倾斜角度确定所述第一切片相对于所述第二切片在所述走线宽度方向上是否存在缝隙。It is determined according to the inclination angle whether there is a gap between the first slice and the second slice in the width direction of the trace.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述倾斜角度确定所述第一切片相对于所述第二切片在走线宽度方向上是否存在缝隙,包括:The method according to claim 2, wherein the determining whether there is a gap in the trace width direction between the first slice and the second slice according to the inclination angle comprises:
    若所述倾斜角度大于预设角度阈值,则确定所述第一切片相对于所述第二切片在走线宽度方向上存在缝隙;其中,所述预设角度阈值为根据走线宽度和所述走线高度确定的。If the inclination angle is greater than the preset angle threshold, it is determined that there is a gap in the trace width direction between the first slice and the second slice; wherein, the preset angle threshold is based on the trace width and the The above trace height is determined.
  4. 根据权利要求3所述的方法,其特征在于,该方法还包括:The method according to claim 3, characterized in that the method further comprises:
    根据包含
    Figure PCTCN2022132817-appb-100001
    的关系式,确定所述走线宽度;其中,E为所述第一切片或所述第二切片的实际物料挤出量,所述实际物料挤出量为所述预设物料挤出量或所述目标物料挤出量,S为所述单位物料长度,H为所述走线高度。
    According to contain
    Figure PCTCN2022132817-appb-100001
    The relational expression to determine the line width; wherein, E is the actual material extrusion amount of the first slice or the second slice, and the actual material extrusion amount is the preset material extrusion amount Or the target material extrusion amount, S is the unit material length, and H is the line height.
  5. 根据权利要求2所述的方法,其特征在于,所述根据所述第一切片相对于所述第二切片在所述走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印所述目标切片时打印喷嘴的目标物料挤出量之前,所述方法还包括:The method according to claim 2, wherein, according to the offset of the first slice relative to the second slice in the trace width direction, trace height and unit material length, Before determining the target material extrusion volume of the printing nozzle when printing the target slice, the method further includes:
    根据包含(H×tanθ)的关系式,确定所述第一切片相对于所述第二切片在所述走线宽度方向上的偏移量;其中,H为所述走线高度,θ为所述倾斜角度。According to a relational expression including (H×tanθ), determine the offset of the first slice relative to the second slice in the width direction of the trace; wherein, H is the height of the trace, and θ is the angle of inclination.
  6. 根据权利要求1至5任意一项所述的方法,其特征在于,所述根据所述第一切片相对于所述第二切片在走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印所述目标切片时打印喷嘴的目标物料挤出量,包括:The method according to any one of claims 1 to 5, wherein, according to the offset of the first slice relative to the second slice in the trace width direction, the trace height and the unit Material length, which determines the target material extrusion volume of the printing nozzle when printing the target slice, including:
    根据包含(S×H×X)的关系式,确定打印所述目标切片时打印喷嘴的目标物料挤出量;其中,S为所述单位物料长度,H为所述走线高度,X为所述第一切片相对于所述第二切片在走线宽度方向上的偏移量。According to the relational expression including (S×H×X), determine the target material extrusion volume of the printing nozzle when printing the target slice; wherein, S is the unit material length, H is the line height, and X is the The offset of the first slice relative to the second slice in the direction of the line width.
  7. 根据权利要求6所述的方法,其特征在于,所述根据包含(S×H×X)的关系式,确定打印所述目标切片时打印喷嘴的目标物料挤出量,包括:The method according to claim 6, characterized in that, according to the relational expression including (S×H×X), determining the target material extrusion volume of the printing nozzle when printing the target slice includes:
    根据包含(n×S×H×X)的关系式,确定打印所述目标切片时打印喷嘴的目标物料挤出量,所述n大于1。According to a relational expression including (n×S×H×X), the target material extrusion amount of the printing nozzle when printing the target slice is determined, and the n is greater than 1.
  8. 一种3D打印文件的生成装置,其特征在于,所述装置包括:A generating device for 3D printing files, characterized in that the device comprises:
    第一确定模块,用于根据待打印模型的第一切片的第一轮廓坐标和第二切片的第二轮廓坐标,确定所述第一切片与所述第二切片被打印之后,所述第一切片相对于所述第二切片在走线宽度方向上是否存在缝隙;其中,所述第一切片与所述第二切片为相邻的上下两层切片;The first determining module is configured to determine, according to the first contour coordinates of the first slice and the second contour coordinates of the second slice of the model to be printed, after the first slice and the second slice are printed, the Whether there is a gap between the first slice and the second slice in the width direction of the trace; wherein, the first slice and the second slice are adjacent upper and lower two-layer slices;
    第二确定模块,用于在存在缝隙的情况下,根据所述第一切片相对于所述第二切片在所述走线宽度方向上的偏移量、走线高度以及单位物料长度,确定打印所述目标切片时打印喷嘴的目标物料挤出量;其中,所述目标物料挤出量大于所述目标切片的预设物料挤出量;所述目标切片包括所述第一切片或所述第二切片;The second determination module is configured to determine according to the offset of the first slice relative to the second slice in the trace width direction, the trace height, and the unit material length in the case of a gap The target material extrusion volume of the printing nozzle when printing the target slice; wherein, the target material extrusion volume is greater than the preset material extrusion volume of the target slice; the target slice includes the first slice or the the second slice;
    生成模块,用于将所述预设物料挤出量替换为所述目标物料挤出量,并生 成打印文件。A generating module, configured to replace the preset material extrusion amount with the target material extrusion amount, and generate a print file.
  9. 一种终端,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述的方法的步骤。A terminal, comprising a memory and a processor, the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法的步骤。A computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are realized.
PCT/CN2022/132817 2021-12-01 2022-11-18 3d printed file generation method and apparatus, and terminal and storage medium WO2023098490A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111457100.3A CN114311653A (en) 2021-12-01 2021-12-01 3D printing file generation method and device, terminal and storage medium
CN202111457100.3 2021-12-01

Publications (1)

Publication Number Publication Date
WO2023098490A1 true WO2023098490A1 (en) 2023-06-08

Family

ID=81048243

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/132817 WO2023098490A1 (en) 2021-12-01 2022-11-18 3d printed file generation method and apparatus, and terminal and storage medium

Country Status (2)

Country Link
CN (1) CN114311653A (en)
WO (1) WO2023098490A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114311653A (en) * 2021-12-01 2022-04-12 深圳市创想三维科技股份有限公司 3D printing file generation method and device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180297272A1 (en) * 2017-04-14 2018-10-18 Desktop Metal, Inc. High density 3d printing
US10821633B1 (en) * 2016-11-14 2020-11-03 Kemeera Inc. 3D printed airtight insulated objects using fused deposition modeling
CN113021873A (en) * 2021-03-23 2021-06-25 深圳市创想三维科技有限公司 Three-dimensional printing method and device, computer equipment and storage medium
CN113681899A (en) * 2021-08-25 2021-11-23 深圳市创想三维科技股份有限公司 3D printing file generation method and device, computer equipment and storage medium
CN114311653A (en) * 2021-12-01 2022-04-12 深圳市创想三维科技股份有限公司 3D printing file generation method and device, terminal and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5876550A (en) * 1988-10-05 1999-03-02 Helisys, Inc. Laminated object manufacturing apparatus and method
JP2018105740A (en) * 2016-12-27 2018-07-05 株式会社フジキン Scattering x-ray removal-purpose grid manufacturing method, and scattering x-ray removal-purpose grid manufacturing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10821633B1 (en) * 2016-11-14 2020-11-03 Kemeera Inc. 3D printed airtight insulated objects using fused deposition modeling
US20180297272A1 (en) * 2017-04-14 2018-10-18 Desktop Metal, Inc. High density 3d printing
CN113021873A (en) * 2021-03-23 2021-06-25 深圳市创想三维科技有限公司 Three-dimensional printing method and device, computer equipment and storage medium
CN113681899A (en) * 2021-08-25 2021-11-23 深圳市创想三维科技股份有限公司 3D printing file generation method and device, computer equipment and storage medium
CN114311653A (en) * 2021-12-01 2022-04-12 深圳市创想三维科技股份有限公司 3D printing file generation method and device, terminal and storage medium

Also Published As

Publication number Publication date
CN114311653A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
WO2023098490A1 (en) 3d printed file generation method and apparatus, and terminal and storage medium
US20170337748A1 (en) Three-dimensional data generation device, three-dimensional shaping device, and non-transitory computer readable medium
US10678215B2 (en) Three dimensional printing method and three dimensional printing apparatus
US20150352792A1 (en) 3D modeling and printing methods based on specification of height and width of each part
CN109226759B (en) Scanning path setting method and device for powder-spreading type laser 3D printing and control equipment
CN112861201B (en) 3D printing support area generation method based on support point expansion fusion
CN114274501B (en) Continuous printing method and device for 3D printer, computer equipment and storage medium
US10571895B2 (en) Three-dimensional printing apparatus and three-dimensional printing method
WO2023005852A1 (en) Method and apparatus for generating 3d printing file, computer device, and storage medium
TW201534483A (en) Three dimensional printing apparatus and method for controlling printing head thereof
WO2023040290A1 (en) Three-dimensional object printing method, data processing apparatus, and computer device
US10710376B2 (en) Inkjet position adjustment method and three-dimensional printing equipment
US20190018908A1 (en) Information processing apparatus, medium, information processing method, and modeling system
US20170069127A1 (en) Techniques for approximating three-dimensional curves using foldable beams
CN113580577B (en) 3D printing file generation method, device, computer equipment and storage medium
US10528308B2 (en) Aided design method of print layers for 3D printing
KR101778721B1 (en) Method for adjusting printing head usage amount of 3D printer and control device
KR101797642B1 (en) Three-dimensioanl printing method and three-dimensional printing apparatus thereof
KR101950104B1 (en) Optimal designing method of 3D products for 3D printing
JP6768588B2 (en) Slice printing method for multicolor 3D objects
CN113752561B (en) Method, device, computer equipment and storage medium for generating 3D printing file
US20210023794A1 (en) Slicing method for horizontal facets of color 3d object
US20160232263A1 (en) Method for creating finite element model for filler-containing rubber
CN113211796B (en) Model printing method, model printing device, computer equipment and storage medium
TWI548537B (en) Three dimensional printer and method for adjusting working coordinate of platform thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22900295

Country of ref document: EP

Kind code of ref document: A1