Compensation printing method, device, equipment and storage medium based on three-dimensional printing

By detecting the difference between the actual consumable quantity and the reference consumable quantity of the three-dimensional printing slices, and adjusting the consumable quantity of the subsequent layer, the problem of slice height error in three-dimensional printing is solved, the printing accuracy and quality are improved, and the fineness and consistency are achieved sex.

CN114536771BActive Publication Date: 2024-12-20SHENZHEN HOSONSOFT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210152812.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-18
Publication Date
2024-12-20
Estimated Expiration
2042-02-18

AI Technical Summary

Technical Problem

In the existing three-dimensional printing technology, due to external factors or poor curing effect, there is an error in the actual height of the slice and the theoretical height, resulting in poor printing quality of three-dimensional objects.

Method used

By detecting the difference between the actual consumable quantity and the reference consumable quantity of each layer, adjusting the reference consumable quantity of the subsequent layer to achieve compensatory printing, eliminating printing errors, and adjusting the outer contour errors when necessary to ensure printing accuracy and quality .

Benefits of technology

It significantly improves the printing fineness and quality of three-dimensional objects, reduces gaps between slices, and improves the flatness and consistency of printing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114536771B_ABST
    Figure CN114536771B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of three-dimensional printing, and specifically provides a compensation printing method, device, equipment and storage medium based on three-dimensional printing. The method includes: printing the nth layer of slices according to the reference consumables amount of the nth layer of slices; obtaining the difference between the actual consumables amount of the nth layer of slices and the reference consumables amount of the nth layer of slices, recorded as the first consumables amount difference; adjusting the reference consumables amount of the n+1th layer of slices according to the first consumables amount difference; printing the n+1th layer of slices according to the reference consumables amount of the n+1th layer of slices. The embodiment of the present invention also provides an apparatus, equipment and storage medium for executing the above method. The embodiment of the present invention adjusts the reference consumables amount of the n+1th layer of slices according to the first consumables amount difference, and realizes compensation printing of the nth layer of slices when printing the n+1th layer of slices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional printing, and in particular to a compensation printing method, device, equipment and storage medium based on three-dimensional printing. Background Art

[0002] Three-dimensional printing is also known as additive manufacturing and 3D printing (3D Printing, 3DP). 3D printing is a rapid prototyping technology. It is a technology that uses a three-dimensional model as the basis and uses specific adhesive consumables to build three-dimensional objects by printing layer by layer.

[0003] The current mainstream 3D printing scheme is as follows: first, the 3D model is sliced ​​to obtain multi-layer slices. During the printing process, the corresponding consumables are output according to each slice for superimposed printing. The 3D object is manufactured by stacking the consumables corresponding to multiple slices.

[0004] However, when each layer of slices is printed, there is a certain error between the actual height and theoretical height of the slices due to a series of reasons such as external factors or poor curing effect. Therefore, the quality of the three-dimensional object finally stacked is poor. Summary of the invention

[0005] In view of this, embodiments of the present invention provide a compensatory printing method, device, equipment and storage medium based on three-dimensional printing, so as to solve the technical problem of poor printing effect of three-dimensional objects in the prior art.

[0006] In a first aspect, an embodiment of the present invention provides a compensation printing method based on three-dimensional printing, the method comprising:

[0007] S10: Printing the nth layer of slices according to the reference consumables amount of the nth layer of slices;

[0008] S20: Obtain a difference between an actual consumable amount of the n-th layer of slices and a reference consumable amount of the n-th layer of slices, and record it as a first consumable amount difference;

[0009] S30: adjusting the reference consumable amount of the (n+1)th slice according to the first consumable amount difference;

[0010] S40: Printing the n+1th layer of slices according to the reference consumables amount of the n+1th layer of slices;

[0011] Wherein, n is a positive integer.

[0012] After the n-th layer of slices is printed, the embodiment of the present invention obtains the difference between the actual amount of consumables of the n-th layer of slices and the reference amount of consumables of the n-th layer of slices, which is equivalent to obtaining the difference between the actual height of the n-th layer of slices and the theoretical height, and adjusts the reference amount of consumables of the n+1-th layer of slices accordingly. Specifically, if the actual amount of consumables of the n-th layer of slices is less than the reference amount of consumables of the n-th layer of slices, it means that the actual height of the n-th layer of slices is less than the theoretical height. Therefore, the reference amount of consumables of the n+1-th layer of slices is increased accordingly, so that when the n+1-th layer of slices is printed, the n-th layer of slices is compensated for printing, and the printing error of the n-th layer of slices is eliminated. Similarly, if the actual amount of consumables of the n-th layer of slices is greater than the reference amount of consumables of the n-th layer of slices, it means that the actual height of the n-th layer of slices is greater than the theoretical height. Therefore, the reference amount of consumables of the n+1-th layer of slices is reduced ... Furthermore, during printing, the actual printing effect of the nth layer of slices is often not smooth. Therefore, when obtaining the difference between the actual amount of consumables of the nth layer of slices and the baseline amount of consumables of the nth layer of slices, the first consumable amount difference can be obtained for each position of the nth layer of slices, and the baseline amount of consumables at each position of the n+1th layer of slices can be adjusted accordingly to achieve more precise compensatory printing, so that the gaps between the slices are as small as possible, which greatly improves the printing precision and printing quality of three-dimensional objects.

[0013] Preferably, the reference consumable amount is determined by the theoretical height of the slice and a mapping relationship between the two. In S20, it includes:

[0014] S21: Detecting the actual height of the n-th slice;

[0015] S22: Calculate the actual consumables amount of the n-th layer of slices according to the mapping relationship based on the actual height of the n-th layer of slices;

[0016] S23: Calculating the first consumable amount difference according to the actual consumable amount of the n-th layer of slices and the reference consumable amount of the n-th layer of slices.

[0017] The embodiment of the present invention detects the actual height of the slice of the nth layer, and calculates the actual consumable amount of the slice of the nth layer according to the mapping relationship, so that the first consumable amount difference can be calculated in combination with the reference consumable amount of the slice of the nth layer. Therefore, it is only necessary to detect the actual height of the slice of the nth layer, which is simple to implement and has a low implementation cost.

[0018] Preferably, the reference consumable amount is determined by the theoretical height of the slice and a mapping relationship between the two. In S20, it includes:

[0019] S24: Detecting the actual height of the n-th slice;

[0020] S25: Calculate the difference between the actual height of the n-th slice and the theoretical height of the n-th slice, and record it as the height difference;

[0021] S26: Calculate the first consumables quantity difference value based on the height difference value according to the mapping relationship.

[0022] The embodiment of the present invention detects the actual height of the slice of the nth layer and calculates the height difference value in combination with the theoretical height of the slice of the nth layer, and then calculates the first consumable amount difference value according to the height difference value. Therefore, it is only necessary to detect the actual height of the slice of the nth layer, which is simple to implement and has a low implementation cost.

[0023] Preferably, the reference consumable amount is determined by the theoretical height of the slice and a mapping relationship between the theoretical height of the slice and the theoretical height of the slice. Between S10 and S30, the method further includes:

[0024] S11: Detecting the actual outer contours of the k+1th slice from the nkth slice to the nth slice;

[0025] S12: respectively calculating the difference between the actual outer contour of the k+1 slice and the corresponding theoretical outer contour, which is recorded as the contour difference;

[0026] S13: Calculate the average value of the contour difference;

[0027] S14: adjusting the mapping relationship according to the average value;

[0028] Here, k is an integer greater than or equal to 0.

[0029] When each slice is printed, in addition to the possible errors in the height of the slice, due to the ductility of the consumables and other reasons, there may also be errors in the outer contour of each layer of slices. Therefore, the embodiment of the present invention detects the outer contour and calculates the average value of the outer contour difference to determine the error of the outer contour of the nth layer of slices to the nth layer of slices relative to the theoretical outer contour of these slices. If the average value is greater than 0, it can be considered that when each layer of slices is printed, the consumable output exceeds the actual demand, causing too much consumables to extend outward. Therefore, when adjusting the mapping relationship, the reference consumable amount corresponding to the unit theoretical height is reduced, so that in the printing of subsequent slices, the use of consumables is reduced to avoid the extension of the slices outward. Similarly, if the average value is less than 0, it can be considered that when each layer of slices is printed, the consumable output is less than the actual demand, causing too little consumables to be difficult to extend outward. Therefore, when adjusting the mapping relationship, the reference consumable amount corresponding to the unit theoretical height is increased, so that in the printing of subsequent slices, the use of consumables is increased, the ability of the slices to extend outward is improved, and the printing quality is guaranteed.

[0030] Preferably, in said S14, it includes:

[0031] Determine whether the absolute value of the average value is greater than or equal to the contour threshold; if so, adjust the mapping relationship according to the average value; if not, do not adjust the mapping relationship.

[0032] The embodiment of the present invention sets a contour threshold to determine whether to adjust the mapping relationship, so as to avoid misadjustment of the mapping relationship due to accidental errors, which may affect the printing quality of subsequent slices. If the absolute value of the average value is greater than or equal to the contour threshold, it can be considered that there is a large difference between the output of consumables and the actual demand when printing each layer of slices. Therefore, timely adjustment of the mapping relationship can also reduce the impact of too much or too little consumables on the actual printing height of the slice.

[0033] Preferably, in said S30, it includes:

[0034] Determine whether the absolute value of the first consumable quantity difference is greater than or equal to the first consumable quantity threshold; if so, adjust the baseline consumable quantity of the n+1th layer slice according to the first consumable quantity difference; if not, do not adjust the baseline consumable quantity of the n+1th layer slice.

[0035] The embodiment of the present invention sets a first consumable amount threshold to determine whether to adjust the reference consumable amount of the n+1th layer. Therefore, when the error is within an allowable range, the processing flow is reduced, so that the embodiment of the present invention has both printing quality and efficiency.

[0036] Preferably, the n+1th slice layer is the last slice layer, and the method further includes:

[0037] S50: Obtain a difference between the actual consumable amount of the n+1th layer of slices and the reference consumable amount of the n+1th layer of slices, and record it as a second consumable amount difference;

[0038] S60: performing compensation printing and / or scraping on the (n+1)th layer of slice according to the second consumable amount difference, so as to adjust the absolute value of the second consumable amount difference to be smaller than a second consumable amount threshold.

[0039] When the n+1th layer of slices is the last layer of slices, it is impossible to achieve compensatory printing by adjusting the baseline consumables amount of the next layer of slices. Therefore, the embodiment of the present invention obtains the difference between the actual consumables amount of the n+1th layer of slices and the baseline consumables amount of the n+1th layer of slices. If it is less than 0, it means that the actual height of the n+1th layer of slices is less than the theoretical height. Therefore, at least one additional print can be added to achieve compensatory printing of the n+1th layer of slices; if it is greater than 0, it means that the actual height of the n+1th layer of slices is greater than the theoretical height, and the part of the n+1th layer of slices that is higher than the theoretical height can be removed. Furthermore, the actual printing effect of the n+1th layer of slices may not be smooth. In this case, both compensatory printing and removal operations can be performed to adjust the absolute value of the second consumables amount difference to be less than the second consumables amount threshold.

[0040] In a second aspect, an embodiment of the present invention further provides a compensating printing device for three-dimensional printing, the device comprising:

[0041] A first printing module, configured to print the nth layer of slices according to a reference consumable amount of the nth layer of slices;

[0042] a consumables quantity detection module, used for obtaining a difference between an actual consumables quantity of the n-th layer of slices and a reference consumables quantity of the n-th layer of slices, recorded as a first consumables quantity difference;

[0043] A consumables quantity adjustment module, used for adjusting the reference consumables quantity of the (n+1)th layer of slices according to the first consumables quantity difference;

[0044] The second printing module is used to print the n+1th layer of slices according to the reference consumables amount of the n+1th layer of slices;

[0045] Wherein, n is a positive integer.

[0046] In a third aspect, an embodiment of the present invention provides a printing device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the method of the first aspect in the above embodiment is implemented.

[0047] In a fourth aspect, an embodiment of the present invention provides a storage medium having computer program instructions stored thereon, which implements the method of the first aspect in the above-mentioned embodiment when the computer program instructions are executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.

[0049] Figure 1 It is a schematic diagram of slicing a three-dimensional model provided by an embodiment of the present invention.

[0050] Figure 2 It is a flow chart of a compensation printing method based on three-dimensional printing provided by an embodiment of the present invention.

[0051] Figure 3 It is a flowchart of a method for determining a first consumable amount difference provided by an embodiment of the present invention.

[0052] Figure 4 It is a flowchart of another method for determining a first consumable amount difference provided by an embodiment of the present invention.

[0053] Figure 5 It is a flow chart of another compensation printing method based on three-dimensional printing provided by an embodiment of the present invention.

[0054] Figure 6 It is a flowchart of a method for adjusting a mapping relationship provided by an embodiment of the present invention.

[0055] Figure 7 It is a flowchart of a method for determining whether to adjust a mapping relationship provided by an embodiment of the present invention.

[0056] Figure 8 It is a flowchart diagram of a method for determining whether to adjust a reference consumable amount provided by an embodiment of the present invention.

[0057] Fig. 9 It is a structural schematic diagram of a compensation printing device based on three-dimensional printing provided by an embodiment of the present invention.

[0058] Fig.10 It is a structural schematic diagram of a printing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.

[0060] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0061] As mentioned above, when printing a three-dimensional object, it is necessary to first slice the three-dimensional model corresponding to the three-dimensional object to obtain multi-layer slices. Figure 1 As shown, the slicing process of the three-dimensional model refers to discretizing the three-dimensional model 10 into a series of slices 20. When slicing, the thickness of the slice can be flexibly set, and the set slice thickness is also called the theoretical height of the slice. The theoretical heights of the slices can be the same or different. Of course, the three-dimensional model of the embodiment of the present invention is not limited to Figure 1 The cylinder shown may be a three-dimensional model of any shape.

[0062] During printing, each slice 20 is superimposed and printed in sequence, and finally a three-dimensional object can be stacked. Among them, the theoretical height of the slice and the amount of consumables output by the printing device (i.e., the reference consumables) are in a certain mapping relationship, and the actual amount of consumables solidified on the three-dimensional object is often different from the reference consumables. The actual amount of consumables solidified on the three-dimensional object is called the actual consumables. Furthermore, during printing, depending on the specific shape of the three-dimensional model, it may be necessary to apply supporting ink or other supporting consumables to ensure that the consumables of each slice can be supported and not left hanging in the air. Among them, the application of supporting ink belongs to the prior art and will not be elaborated here.

[0063] The consumables may be ink, glue, powder, resin, ceramic, paper, etc., which are not specifically limited in the present invention. Due to reasons such as curing effect or external factors, the final molding effect of the slices is often different from the theoretical one, especially the difference in slice height has a particularly obvious impact on the printing quality.

[0064] In view of this, an embodiment of the present invention provides a compensation printing method based on three-dimensional printing to reduce or eliminate the height error of each slice, thereby improving the printing quality.

[0065] See also Figure 2, is a compensation printing method based on three-dimensional printing provided by an embodiment of the present invention, comprising the following steps:

[0066] S10: Printing the nth layer of slices according to the reference consumables amount of the nth layer of slices;

[0067] S20: Obtain a difference between an actual consumable amount of the n-th layer of slices and a reference consumable amount of the n-th layer of slices, and record it as a first consumable amount difference;

[0068] S30: adjusting the reference consumable amount of the (n+1)th slice according to the first consumable amount difference;

[0069] S40: Printing the n+1th layer of slices according to the reference consumables amount of the n+1th layer of slices;

[0070] Wherein, n is a positive integer.

[0071] Specifically, after the 3D model is sliced, at least two layers of slices are obtained. Each slice has a certain theoretical height. According to the theoretical height of the slice, the amount of consumables required to print the slice, i.e., the reference consumables amount, can be determined. In other words, there is a mapping relationship between the theoretical height of the slice and the reference consumables amount. For example, the mapping relationship can be: Q = a × H m . Wherein, Q represents the reference consumables amount, H represents the theoretical height of the slice, a and m are constant terms, and the specific values ​​of a and m can be determined according to the shape of the slice. Of course, the mapping relationship can also adopt other relationship formulas. Since the theoretical height of the slice is known during the slicing process, the reference consumables amount can be determined according to the mapping relationship, so as to output the corresponding amount of consumables to realize the printing of the nth layer of slices.

[0072] After the nth layer of slices is solidified, the difference between the actual amount of consumables of the nth layer of slices and the reference amount of consumables of the nth layer of slices can be obtained, that is, the first consumable amount difference. Specifically, there are many ways to determine the first consumable amount difference. One way is to determine it manually by observing the actual amount of consumables or the actual height of the nth layer of slices with the naked eye to judge the positive or negative of the first consumable amount difference. However, this method can only qualitatively determine the first consumable amount difference, which is not conducive to the subsequent quantitative adjustment of the reference consumable amount of the n+1th layer of slices.

[0073] Therefore, the embodiment of the present invention provides at least two other technical solutions for determining the first consumable amount difference, so as to more accurately determine the first consumable amount difference.

[0074] See also Figure 3 , is a flow chart of a method for determining a first consumable amount difference provided by an embodiment of the present invention, comprising the following steps:

[0075] S21: Detecting the actual height of the n-th slice;

[0076] S22: Calculate the actual consumables amount of the n-th layer of slices according to the mapping relationship based on the actual height of the n-th layer of slices;

[0077] S23: Calculating the first consumable amount difference according to the actual consumable amount of the n-th layer of slices and the reference consumable amount of the n-th layer of slices.

[0078] Specifically, the actual height of the slice can be detected by a variety of implementation schemes. For example, a CCD camera (Charge Coupled Device) is used for detection. Of course, other optical sensors can also achieve similar technical effects. In other embodiments of the present invention, the actual height of the nth layer of slices can also be detected by laser ranging. Alternatively, the detection is achieved by using light curtain technology. The present invention does not specifically limit the specific implementation method of the actual height of the slice.

[0079] After the actual height of the n-th slice is detected, the actual consumables amount of the n-th slice can be calculated according to the above mapping relationship. It should be noted that the mapping relationship is: Q = a × H m It can be used to calculate the actual amount of consumables. Specifically, when the actual height is substituted into H in the mapping relationship, Q represents the actual amount of consumables. Since the baseline amount of consumables of the n-th layer of slices is known, the first consumable amount difference can be calculated. It should be noted that the first consumable amount difference can be equal to the actual amount of consumables of the n-th layer of slices minus the baseline amount of consumables of the n-th layer of slices, or it can be equal to the baseline amount of consumables of the n-th layer of slices minus the actual amount of consumables of the n-th layer of slices. There is no essential difference between the two, and they should be regarded as substantially the same technical solutions. For the convenience of description, unless otherwise specified, the first consumable amount difference referred to in the present invention is equal to the actual amount of consumables of the n-th layer of slices minus the baseline amount of consumables of the n-th layer of slices.

[0080] See also Figure 4 , is a flow chart of another method for determining a first consumable amount difference provided by an embodiment of the present invention, comprising the following steps:

[0081] S24: Detecting the actual height of the n-th slice;

[0082] S25: Calculate the difference between the actual height of the n-th slice and the theoretical height of the n-th slice, and record it as the height difference;

[0083] S26: Calculate the first consumables quantity difference value based on the height difference value according to the mapping relationship.

[0084] As mentioned above, the actual height of the n-th slice can be detected in a variety of ways. Since the theoretical height of the slice is known, after the actual height of the n-th slice is detected, the difference between the actual height of the n-th slice and the theoretical height of the n-th slice, i.e., the height difference, can be calculated. According to the above mapping relationship, the first consumable amount difference can be calculated. It should be noted that the mapping relationship: Q = a × H m It can be used to calculate the first consumables quantity difference. When the height difference is substituted into H in the mapping relationship, Q represents the first consumables quantity difference. It should be noted that the height difference can be equal to the actual height of the n-th slice minus the theoretical height of the n-th slice, or it can be equal to the theoretical height of the n-th slice minus the actual height of the n-th slice. There is no essential difference between the two, and they should be regarded as substantially the same technical solutions. For the convenience of description, unless otherwise specified, the height difference is equal to the actual height of the n-th slice minus the theoretical height of the n-th slice.

[0085] According to the above technical solution, the first consumable amount difference can be determined, and then the reference consumable amount of the n+1th layer of slices can be adjusted. The determination method of the reference consumable amount of the n+1th layer of slices is the same as the determination principle of the nth layer of slices, which will not be repeated here.

[0086] When the first consumable quantity difference is less than 0, the reference consumable quantity of the n+1th slice is increased; when the first consumable quantity difference is greater than 0, the reference consumable quantity of the n+1th slice is reduced. Furthermore, when the first consumable quantity difference is less than 0, the first consumable quantity difference is subtracted from the reference consumable quantity of the n+1th slice; when the first consumable quantity difference is greater than 0, the first consumable quantity difference is subtracted from the reference consumable quantity of the n+1th slice.

[0087] It should be noted that: slices are often not flat, and there may be some positions where the actual height is greater than the theoretical height of the slice, while the actual height of some positions is less than the theoretical height of the slice. Therefore, in a preferred embodiment of the present invention, the reference consumables corresponding to each position can be adjusted separately. In a specific implementation, a coordinate system can be established to determine the coordinate values ​​of each position, and then the difference in the first consumable amount corresponding to each coordinate can be determined. When adjusting the reference consumable amount of the n+1th layer, it is adjusted according to the difference in the first consumable amount corresponding to each coordinate, so that the technical solution of the embodiment of the present invention can be applied not only to application scenarios where the slices are in a flat state, but also to application scenarios where the slices are in an uneven state.

[0088] After adjusting the reference consumables amount of the n+1th layer slice, the n+1th layer slice can be printed according to the adjusted reference consumables amount, thereby eliminating the printing error of the nth layer slice. Similarly, the other layers of slices also adopt this principle, so that the error of the three-dimensional object finally stacked is as small as possible, thereby improving the printing quality.

[0089] For further information, see Figure 5 In another embodiment of the present invention, the method further comprises:

[0090] S50: Obtain a difference between the actual consumable amount of the n+1th layer of slices and the reference consumable amount of the n+1th layer of slices, and record it as a second consumable amount difference;

[0091] S60: performing compensation printing and / or scraping on the (n+1)th layer of slice according to the second consumable amount difference, so as to adjust the absolute value of the second consumable amount difference to be smaller than a second consumable amount threshold.

[0092] When the technical solution of the above-mentioned embodiment is used for printing, it is impossible to perform compensation printing on the last layer of slices. Therefore, when the n+1th layer of slices is the last layer of slices, the difference between the actual amount of consumables of the n+1th layer of slices and the reference amount of consumables of the n+1th layer of slices can be obtained, that is, the second consumables difference. There is no essential difference between the method of obtaining the second consumables difference and the method of obtaining the first consumables difference, which will not be repeated here. It should be noted that the second consumables difference can be equal to the actual amount of consumables of the n+1th layer of slices minus the reference amount of consumables of the n+1th layer of slices, or it can be equal to the reference amount of consumables of the n+1th layer of slices minus the actual amount of consumables of the n+1th layer of slices. There is no essential difference between the two, and they should be regarded as the same technical solution. For the convenience of description, unless otherwise specified, the second consumables difference referred to in the present invention is equal to the actual amount of consumables of the n+1th layer of slices minus the reference amount of consumables of the n+1th layer of slices.

[0093] Therefore, if the second consumable amount difference is less than 0, it can be considered that the actual height of the slice of the n+1th layer is less than the theoretical height, so at least one compensation printing can be performed on the slice of the n+1th layer according to the second consumable amount difference. Specifically, the specific process of the compensation printing is: the absolute value of the second consumable amount difference is used as the reference consumable amount for printing, so that the consumables are superimposed on the slice of the n+1th layer, so as to adjust the absolute value of the second consumable amount difference to be less than the second consumable amount threshold.

[0094] If the second consumable amount difference is greater than 0, it can be considered that the actual height of the n+1th layer of slice is greater than the theoretical height and can be removed. The removal is to remove the part that is higher than the theoretical height by physical cutting.

[0095] Furthermore, when the slice of the n+1th layer is not a flat surface, that is, the actual height of some positions is greater than the theoretical height of the slice, and the actual height of some positions is less than the theoretical height of the slice, these positions can be compensated for by printing or removing according to the actual situation.

[0096] In another embodiment of the present invention, the outer contour error of the slice is also considered. Due to the ductility of the consumables, there may be an error between the actual outer contour of the slice and the theoretical outer contour. For details, please refer to Figure 6 , is a flow chart of a method for reducing outer contour error provided by an embodiment of the present invention, comprising the following steps:

[0097] S11: Detecting the actual outer contours of the k+1th slice from the nkth slice to the nth slice;

[0098] S12: respectively calculating the difference between the actual outer contour of the k+1 slice and the corresponding theoretical outer contour, which is recorded as the contour difference;

[0099] S13: Calculate the average value of the contour difference;

[0100] S14: adjusting the mapping relationship according to the average value;

[0101] Here, k is an integer greater than or equal to 0.

[0102] Specifically, the detection of the actual outer contour of the slice can be carried out by the aforementioned CCD camera, laser detection or light curtain technology. After detecting the actual outer contour of the slice, the difference between the actual outer contour of each slice and the corresponding theoretical outer contour, that is, the contour difference, can be determined. After determining the contour difference of each slice, its average value can be determined. It should be noted that the value of k can be 0, at which time the average value is equal to the contour difference of the nth layer of slices. The contour difference can be equal to the actual outer contour minus the theoretical outer contour, or equal to the theoretical outer contour minus the actual outer contour. There is no essential difference between the two and they should be regarded as the same technical solution. For the convenience of description, unless otherwise specified, the contour difference referred to in the present invention is equal to the actual outer contour minus the theoretical outer contour.

[0103] After determining the average value, the above mapping relationship can be adjusted. If the average value is less than 0, it can be considered that the slicing is not ductile enough, and the amount of consumables corresponding to each unit of theoretical height can be increased accordingly, that is, when the theoretical height of the slice remains unchanged, the use of consumables can be increased so that the slice can be extended to a larger range.

[0104] If the average value is greater than 0, it can be considered that the ductility of the slice is too large, and the amount of consumables corresponding to each unit of theoretical height can be reduced accordingly. That is, when the theoretical height of the slice remains unchanged, the use of consumables is reduced, so that the extension range of the slice is reduced accordingly.

[0105] Furthermore, if the original mapping relationship is Q=f(H), Q represents the reference consumable amount, and H represents the theoretical height of the slice.

[0106] When the average value is less than 0, the mapping relationship may be adjusted to Q=(1-P)*f(H).

[0107] When the average value is greater than 0, the mapping relationship may be adjusted to Q=(1+P)*f(H).

[0108] Among them, P is a negative number. Specifically, P can be calculated according to the formula Calculate, where represents the average value, E is greater than It is obvious that other formulas can also be used to adjust the mapping relationship.

[0109] For further information, see Figure 7 , is a schematic diagram of determining whether to adjust a mapping relationship provided by an embodiment of the present invention, comprising the following steps:

[0110] S142: Determine whether the absolute value of the average value is greater than or equal to a contour threshold;

[0111] S143: If yes, adjust the mapping relationship according to the average value; if no, do not adjust the mapping relationship.

[0112] Specifically, a contour threshold can be preset, and the mapping relationship is adjusted only when the absolute value of the average value is greater than or equal to the contour threshold, so as to avoid the influence of accidental errors on subsequent greater than. If the absolute value of the average value is greater than or equal to the contour threshold, it can be considered that there is a large difference between the reference consumables and the actual required amount when printing each layer of slices. Therefore, timely adjustment of the mapping relationship can also reduce the influence of too much or too little consumables on the actual printing height of the slices. In this embodiment, the aforementioned E is preferably equal to the contour threshold.

[0113] See also Figure 8 , is a flow chart of a method for determining whether to adjust a reference consumable amount provided by an embodiment of the present invention, comprising the following steps:

[0114] S31: Determine whether the absolute value of the first consumables quantity difference is greater than or equal to a first consumables quantity threshold;

[0115] S32: If yes, adjust the reference consumable amount of the n+1th layer of slices according to the first consumable amount difference; if no, do not adjust the reference consumable amount of the n+1th layer of slices.

[0116] Specifically, a first consumable amount threshold may be preset. When the absolute value of the first consumable amount difference is less than the first consumable amount threshold, it may be considered that the error is small and no adjustment is required, thereby avoiding frequent adjustment of the reference consumable amount of the n+1th slice.

[0117] Furthermore, S31 includes:

[0118] S311: Determine whether the absolute value of the height difference is greater than or equal to the height threshold;

[0119] S312: If yes, determine that the absolute value of the first consumable quantity difference is greater than or equal to the first consumable quantity threshold.

[0120] The height threshold is preferably equal to the height of the consumable. Taking the consumable as powder as an example, the height threshold can be preset to the diameter of the powder. Therefore, when the height difference is smaller than the diameter of the powder, even if the compensation printing is performed, the improvement of the effect is not obvious, and even negative optimization occurs. Therefore, this phenomenon can be better avoided by adopting this embodiment.

[0121] See also Fig. 9 , is a schematic structural diagram of a compensation printing device based on three-dimensional printing provided by an embodiment of the present invention, the device comprising:

[0122] A first printing module, configured to print the nth layer of slices according to a reference consumable amount of the nth layer of slices;

[0123] a consumables quantity detection module, used for obtaining a difference between an actual consumables quantity of the n-th layer of slices and a reference consumables quantity of the n-th layer of slices, recorded as a first consumables quantity difference;

[0124] A consumables quantity adjustment module, used for adjusting the reference consumables quantity of the (n+1)th layer of slices according to the first consumables quantity difference;

[0125] The second printing module is used to print the n+1th layer of slices according to the reference consumables amount of the n+1th layer of slices;

[0126] Wherein, n is a positive integer.

[0127] In addition, the compensation printing method based on three-dimensional printing according to the embodiment of the present invention may be implemented by a printing device. Fig.10 A schematic diagram of the hardware structure of a printing device provided by an embodiment of the present invention is shown.

[0128] The printing device may include a processor and a memory storing computer program instructions.

[0129] Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.

[0130] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0131] The processor implements any one of the compensation printing methods based on three-dimensional printing in the above embodiments by reading and executing computer program instructions stored in the memory.

[0132] In one example, the printing device may further include a communication interface and a bus. Fig.10 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.

[0133] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.

[0134] The bus includes hardware, software or both, and the parts of the printing device are coupled to each other. For example, but not limitation, the bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In suitable cases, the bus may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0135] In addition, in combination with the compensation printing method based on three-dimensional printing in the above embodiments, the embodiments of the present invention may provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any compensation printing method based on three-dimensional printing in the above embodiments is implemented.

[0136] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0137] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0138] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0139] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A compensation printing method based on three-dimensional printing, It is characterized in that The method comprises: S10: Printing the nth layer of slices according to the reference consumables amount of the nth layer of slices; S20: Obtain a difference between an actual consumable amount of the n-th layer of slices and a reference consumable amount of the n-th layer of slices, and record it as a first consumable amount difference; The reference consumable amount is determined by the theoretical height of the slice and the mapping relationship between the two. In S20, it includes: S21: Detecting the actual height of the n-th slice; S22: Calculate the actual consumables amount of the n-th layer of slices according to the mapping relationship based on the actual height of the n-th layer of slices; S23: calculating the difference between the first consumable amount and the reference consumable amount of the nth layer of slices according to the actual consumable amount of the nth layer of slices; Or in the S20, including: S24: Detecting the actual height of the n-th slice; S25: Calculate the difference between the actual height of the n-th slice and the theoretical height of the n-th slice, and record it as the height difference; S26: Calculating the first consumables amount difference value based on the height difference value according to the mapping relationship; S30: adjusting the reference consumable amount of the (n+1)th slice according to the first consumable amount difference; Between S20 and S30, the method further includes: S11: Detecting the actual outer contours of the k+1th slice from the nkth slice to the nth slice; S12: respectively calculating the difference between the actual outer contour of the k+1 slice and the corresponding theoretical outer contour, which is recorded as the contour difference; S13: Calculate the average value of the contour difference; S14: adjusting the mapping relationship according to the average value; Wherein, if the average value is less than 0, the amount of consumables corresponding to each unit of theoretical height is increased when the theoretical height of the slice remains unchanged; if the average value is greater than 0, the amount of consumables corresponding to each unit of theoretical height is reduced when the theoretical height of the slice remains unchanged; The S14 further includes: determining whether the absolute value of the average value is greater than or equal to the contour threshold; if so, adjusting the mapping relationship according to the average value; if not, not adjusting the mapping relationship; Wherein, k is an integer greater than 0, and n is a positive integer; S40: Printing the n+1th layer of slices according to the reference consumables amount of the n+1th layer of slices.

2. The method according to claim 1, It is characterized in that In the S30, it includes: Determine whether the absolute value of the first consumable quantity difference is greater than or equal to the first consumable quantity threshold; if so, adjust the baseline consumable quantity of the n+1th layer slice according to the first consumable quantity difference; if not, do not adjust the baseline consumable quantity of the n+1th layer slice.

3. The method according to claim 1, It is characterized in that The n+1th slice layer is the last slice layer, and the method further includes: S50: Obtain a difference between the actual consumable amount of the n+1th layer of slices and the reference consumable amount of the n+1th layer of slices, and record it as a second consumable amount difference; S60: performing compensation printing and / or scraping on the (n+1)th layer of slice according to the second consumable amount difference, so as to adjust the absolute value of the second consumable amount difference to be smaller than a second consumable amount threshold.

4. A compensating printing device based on three-dimensional printing, the device being used to implement the method as claimed in any one of claims 1 to 3, It is characterized in that The device comprises: A first printing module, configured to print the nth layer of slices according to a reference consumable amount of the nth layer of slices; a consumables quantity detection module, used for obtaining a difference between an actual consumables quantity of the n-th layer of slices and a reference consumables quantity of the n-th layer of slices, recorded as a first consumables quantity difference; A consumables quantity adjustment module, used for adjusting the reference consumables quantity of the (n+1)th layer of slices according to the first consumables quantity difference; The second printing module is used to print the n+1th layer of slices according to the reference consumables amount of the n+1th layer of slices; Wherein, n is a positive integer.

5. A printing device, It is characterized in that include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 3.

6. A storage medium having computer program instructions stored thereon, It is characterized in that When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 3 is implemented.