Three-dimensional model printing processing method, device, equipment and storage medium

By slicing and screening the three-dimensional model, the problem of difficulty in manufacturing multi-color three-dimensional products in the existing technology is solved, efficient and low-cost multi-color three-dimensional printing is achieved, and product quality and industrial applicability are improved.

CN114387384BActive Publication Date: 2025-04-22SHENZHEN HOSONSOFT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011111610.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-16
Publication Date
2025-04-22
Estimated Expiration
2040-10-16

AI Technical Summary

Technical Problem

The prior art is difficult to produce products including multiple colors through three-dimensional printing, mainly due to the lack of effective technical solutions for color processing and screening processing for three-dimensional models.

Method used

By slicing a three-dimensional model including at least 2 colors, the color information of the layer is determined, and the networking process is performed based on this information to obtain image dot matrix data to realize multi-color printing of three-dimensional objects.

Benefits of technology

It realizes the production of products including multiple colors through three-dimensional printing, which improves the color display effect and quality of the products, reduces ink consumption, compresses manufacturing costs, and is suitable for industrial production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114387384B_ABST
    Figure CN114387384B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of three-dimensional printing, and specifically discloses a printing processing method, device, equipment and storage medium for a three-dimensional model. The method comprises: obtaining a three-dimensional model; slicing the three-dimensional model to obtain multiple layers; determining the color information of the layers; and performing screening processing on the layers. The device comprises: a three-dimensional model acquisition module; a slicing processing module; a color information determination module; and a screening processing module. The embodiment of the present invention converts the technical problem of screening processing of a three-dimensional model into the technical problem of screening processing of multiple layers through slicing processing, thereby realizing screening processing of the three-dimensional model by using the screening processing technology applied to two-dimensional images, so as to realize the manufacture of products including multiple colors through three-dimensional printing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional printing technology, and in particular to a printing processing method, device, equipment and storage medium for a three-dimensional model. Background Art

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

[0003] 3D printing mainly includes the following steps: first, use 3D design software to model the 3D object to be printed; second, based on specific printing equipment, use relevant materials to implement printing, and then manufacture the corresponding 3D object.

[0004] As 3D printing technology becomes more mature, people have higher and higher requirements for 3D objects produced by 3D printing. They not only hope to produce solid-color products through 3D printing, but also hope to produce products with multiple colors through 3D printing.

[0005] However, it is usually difficult to use different inks for 3D printing at the same time in the prior art. Therefore, using the technical solutions in the prior art, only solid-color products can be manufactured through 3D printing. It is precisely because the prior art lacks an effective technical solution for color processing and screening processing for 3D models that it is difficult to manufacture products with multiple colors through 3D printing. Summary of the invention

[0006] In view of this, embodiments of the present invention provide a printing processing method, device, equipment and storage medium for a three-dimensional model to solve the technical problem in the prior art that it is difficult to manufacture products including multiple colors through three-dimensional printing.

[0007] In a first aspect, an embodiment of the present invention provides a printing processing method for a three-dimensional model, the method comprising:

[0008] S10: Acquire a three-dimensional model to be printed, wherein the three-dimensional model includes at least two colors;

[0009] S20: Slicing the three-dimensional model to obtain a plurality of slices;

[0010] S30: Determine the color information of the layer;

[0011] S40: Screening the layer slice according to the color information of the layer slice to obtain image dot matrix data.

[0012] The embodiment of the present invention obtains a plurality of layers by slicing a three-dimensional model including at least two colors, and performs screening processing based on the color information of the layers to obtain corresponding image dot matrix data. Therefore, a three-dimensional object including at least two colors can be printed according to the image dot matrix data. The embodiment of the present invention converts the technical problem of screening processing of the three-dimensional model into the technical problem of screening processing of multiple layers through slicing processing, so that the screening processing of the three-dimensional model can be realized by the screening processing technology applied to two-dimensional images, so as to realize the manufacturing of products including multiple colors through three-dimensional printing. In addition, the three-dimensional model used in the embodiment of the present invention includes at least two colors, that is, a three-dimensional model format that can describe colors is adopted, and it is not necessary to color each pixel one by one after slicing processing, which greatly improves the processing efficiency of the three-dimensional model, and the screening processing is performed based on the color of the three-dimensional model itself, so that the three-dimensional object manufactured by three-dimensional printing can restore the three-dimensional model in the three-dimensional design software with high quality, ensure the consistency of the product during design and manufacturing, and facilitate industrial production.

[0013] Preferably, in S30: determining the color information of the layer, the method includes:

[0014] S31: Get color processing width;

[0015] S32: determining a color processing region according to the edge of the layer and the color processing width; wherein the area of ​​the color processing region is smaller than the area of ​​the layer, and the color processing region includes the edge of the layer;

[0016] S33: Determine color information of pixels within the color processing area.

[0017] The embodiment of the present invention determines the color processing area by obtaining the color processing width and the edge of the layer, so that the area of ​​the color processing area is smaller than the area of ​​the layer, and the color information of the pixel points located in the color processing area is determined. Therefore, only the data corresponding to the color processing area in the image dot matrix data obtained by the subsequent screening process is used to instruct the printing device to spray ink, thereby reducing the ink consumption as much as possible, thereby reducing the manufacturing cost of the three-dimensional object. Since the edge of the layer is located in the color processing area, the pixel points at the edge of the layer are processed during the screening process to reduce the ink consumption while ensuring that the surface of the three-dimensional object manufactured during three-dimensional printing still has multiple colors. In addition, when the side wall of the three-dimensional model has a certain thickness, through the technical solution of this embodiment, when performing three-dimensional printing, the ink corresponding to its color can be used for printing, not only can the ink color of the outer surface of the three-dimensional object be superimposed to enhance the color effect of the outer surface of the three-dimensional object, but also different colors (such as gradient colors) can be used in one scanning print to achieve the technical effect of different colors in the inner and outer layers of the three-dimensional object.

[0018] Preferably, in S33: determining the color information of the pixel points located in the color processing area, the method includes:

[0019] S331: Determine color information of a first pixel point, where the first pixel point is a pixel point located at an edge of the layer;

[0020] S332: Setting the color information of a second pixel point to the color information of a first pixel point closest to the second pixel point, wherein the second pixel point is a pixel point located in the color processing area except the first pixel point.

[0021] In order to improve the modeling efficiency of three-dimensional models, the prior art often only colors the outer surface of the three-dimensional model during modeling. However, when three-dimensional objects are manufactured using three-dimensional printing technology, if only the corresponding ink is used to inkjet the outer surface of the three-dimensional object, it is easy to cause color shedding, and the color effect of the printed three-dimensional object is not good, the product quality is poor and it is not wear-resistant. At the same time, only the outer surface of the three-dimensional object is colored and inkjetted, which is easy to cause printing failure due to printing equipment errors, lack of ink support and other reasons. In the embodiment of the present invention, by determining the color information of the second pixel point as the information of the first pixel point closest to it, when printing, the second pixel point in the entire color processing area of ​​the layer is printed with the same color as the corresponding first pixel point, so as to achieve the superposition of the color of the outer surface of the three-dimensional object to improve the color display effect. Even if the color of the outer surface falls off due to friction, impact, etc., because the color of the ink material closest to it is the same as that of the first pixel point, it is not easy to see visually, and has better quality.

[0022] Preferably, in S30: determining the color information of the layer, the method includes:

[0023] S34: determining a filling area, wherein the filling area is an area of ​​the layer except the color processing area;

[0024] S35: setting the color information of all pixels in the filling area to include only the first designated color, where the first designated color is formed by printing with the first designated ink.

[0025] The embodiment of the present invention determines the area outside the color processing area as the filling area, and sets the color of all pixels in the entire filling area to the first designated color. Therefore, when manufacturing a three-dimensional object, the position corresponding to the filling area will be manufactured by the first designated ink to play a better supporting role and ensure the quality of three-dimensional printing. In addition, since the position corresponding to the filling area mainly plays a supporting role, a low-cost ink (such as white ink) is usually used as the first designated ink to reduce costs.

[0026] Preferably, in S40: performing screening processing on the layer slice according to the color information of the layer slice to obtain image dot matrix data, the method includes:

[0027] S41: determining first data in the image dot matrix data, where the first data is used to indicate that the ink output of each color channel is zero;

[0028] S42: changing the first data in the image dot matrix data into second data, where the second data is used to indicate the ink output of a second designated color channel, and the color corresponding to the second designated color channel is printed by the second designated ink.

[0029] When performing screening according to the color information of the pixel points, there will usually be some pixels in the image dot matrix data corresponding to the first data, that is, the data instructing the nozzle not to spray ink on the pixel point, which has little impact on the quality of the two-dimensional printed product. However, for three-dimensional objects, due to the use of additive manufacturing and layer-by-layer stacking for printing, if some pixels in the bottom layer do not have corresponding ink as support for the upper layer, it is easy to cause the upper layer material to fall off, resulting in printing failure or poor quality of the three-dimensional object. Therefore, the embodiment of the present invention changes the first data in the image dot matrix data into the second data for indicating that the ink output of the second designated color channel is not zero. When manufacturing three-dimensional objects, the second designated ink will be used for printing to play a supporting role. The second designated ink usually uses a lower-cost ink (such as white ink) to improve the quality of the three-dimensional object while better controlling the cost.

[0030] Preferably, in S20: slicing the three-dimensional model to obtain a plurality of slices, the method comprises:

[0031] S21: Obtaining the preset layer height;

[0032] S22: Slicing the three-dimensional model according to the preset layer height, so that the layer height of each obtained slice is no greater than the preset layer height;

[0033] The preset layer height is less than or equal to the maximum ink layer height that can be stacked in one scanning and printing operation.

[0034] The embodiment of the present invention slices the three-dimensional model by setting a preset layer height, thereby ensuring that the layer height of each layer is no greater than the preset layer height, and the preset layer height is no greater than the maximum ink layer height that can be stacked when the printing device performs one scan and print. When the maximum ink layer height that can be stacked when the printing device performs one scan and print is used as the preset layer height for slicing, so that the layer height of the layer is equal to the maximum ink layer height that can be stacked when the printing device performs one scan and print, the printing efficiency can be maximized. When the layer height of the layer is controlled to be smaller with a smaller preset layer height, the three-dimensional object can be made more delicate. In summary, the efficiency and quality of three-dimensional printing can be balanced by the preset layer height, so that the printing device can print according to different needs and improve the adaptability to different working conditions.

[0035] Preferably, after S40, the method further includes:

[0036] S50: Acquire a first feathering template and a second feathering template, wherein the sum of the first feathering template and the second feathering template is an all-1 matrix;

[0037] S60: performing feathering processing on the image dot matrix data according to the first feathering template to obtain first image dot matrix data;

[0038] S70: feathering the image dot matrix data according to the second feathering template to obtain second image dot matrix data.

[0039] The embodiment of the present invention obtains the first image dot matrix data and the second image dot matrix data through feathering processing. When manufacturing a three-dimensional object, the same layer is covered multiple times, so that the three-dimensional object is more delicate and the printing quality is better.

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

[0041] A three-dimensional model acquisition module, the three-dimensional model acquisition module is used to acquire a three-dimensional model to be printed, the three-dimensional model includes at least two colors;

[0042] A slicing processing module, the slicing processing module is used to slice the three-dimensional model to obtain a plurality of slices;

[0043] A color information determination module, the color information determination module is used to determine the color information of the layer;

[0044] A screening processing module is used to perform screening processing on the layer slice according to the color information of the layer slice to obtain image dot matrix data.

[0045] 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, any one of the three-dimensional model printing processing methods described in the first aspect is implemented.

[0046] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implements any one of the three-dimensional model printing processing methods described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] 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.

[0048] Figure 1 It is a flow chart of a printing processing method of a three-dimensional model provided by an embodiment of the present invention.

[0049] Figure 2 It is a schematic diagram of a slicing process provided by an embodiment of the present invention.

[0050] Figure 3 The present invention is a flowchart of a method for determining color information of a layer provided by an embodiment of the present invention.

[0051] Figure 4 It is a schematic diagram of a layer provided by an embodiment of the present invention.

[0052] Figure 5 It is a flowchart of another method for determining color information of a layer provided by an embodiment of the present invention.

[0053] Figure 6 It is a flowchart of another method for determining color information of a layer provided by an embodiment of the present invention.

[0054] Figure 7 It is a flowchart of a method for setting image dot matrix data provided by an embodiment of the present invention.

[0055] Figure 8 It is a schematic flow chart of a method for slicing provided in an embodiment of the present invention.

[0056] Fig. 9 It is a schematic flow chart of a method for feathering treatment provided by an embodiment of the present invention.

[0057] Fig.10 It is a schematic diagram of the structure of a three-dimensional model printing and processing device provided by an embodiment of the present invention.

[0058] Fig.11 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] See also Figure 1 , is a flow chart of a printing processing method for a three-dimensional model provided in an embodiment of the present invention, which includes the following steps.

[0062] S10: Obtain a three-dimensional model to be printed, where the three-dimensional model includes at least two colors.

[0063] S20: Slice the three-dimensional model to obtain a plurality of slices.

[0064] S30: Determine the color information of the layer.

[0065] S40: Screening the layer according to the color information of the layer to obtain image dot matrix data.

[0066] It should be noted that the embodiment of the present invention does not specifically limit the shape of the three-dimensional model, for example, it can be a cylinder, a column, a sphere or other irregular three-dimensional models. The three-dimensional model is usually established based on three-dimensional design software. At present, the data formats of the three-dimensional model mainly include OSGB, OBJ, FBX, 3ds, STL, DAE and DGN.

[0067] The 3D model obtained by the embodiment of the present invention includes at least 2 colors, that is, the embodiment of the present invention adopts a data format that can describe the color information of the 3D model, rather than a data format that cannot describe the color information of the 3D model (such as STL). In another embodiment of the present invention, the outer surface of the 3D model includes at least 2 colors.

[0068] like Figure 2 As shown, the slicing process of the three-dimensional model refers to discretizing the three-dimensional model 10 into a series of slices 20 .

[0069] The color information of the layer 20 obtained by the slicing process is determined. The color information refers to the color value information of the pixel. For example, in a CMYK printing system, determining the color information of a pixel means determining the C value (Cyan), M value (Magenta), Y value (Yellow) and K value (black) of the pixel.

[0070] After determining the color information of each layer 20, it can be screened. Screening can use existing screening technologies such as amplitude modulation screening (SAM), frequency modulation screening (SFM), and high-fidelity true color screening technology. The present invention does not specifically limit the scheme of screening. Among them, the screening includes 1-bit screening, and the 1-bit screening can determine whether the pixel is to be inkjetted. For example, when the data is 0, it indicates that the nozzle does not spray ink on the pixel, and when the data is 1, it indicates that the nozzle sprays ink on the pixel. Screening can also use 2-bit screening, and the 2-bit screening can determine the amount of ink when each pixel is inkjetted. For example, data 00 indicates that the nozzle does not spray ink on the pixel, and data 01 indicates that the nozzle sprays a small amount of ink (for example, 25%) on the pixel; data 10 indicates that the nozzle sprays a medium amount of ink (for example, 50%) on the pixel; data 11 indicates that the nozzle sprays a large amount of ink (for example, 100%) on the pixel. It should be noted that the above screening processing method is only an example, and the embodiment of the present invention does not specifically limit the screening processing method. In addition, taking the CMYK printing system as an example, when performing screening processing, each color channel such as C color, M color, Y color, and K color can use a different screening channel, that is, the image dot matrix data after screening processing includes multiple color channels, each color channel corresponds to a different color, for example, the data 11 in the C color channel instructs the nozzle to spray a large amount of C color ink (for example, 100%) to the pixel point.

[0071] Therefore, inkjet printing can be performed based on the image dot data obtained after the screening process. When performing three-dimensional printing, the layers corresponding to the image dot data are continuously superimposed and printed from the bottom to the top at the specific positions of the original three-dimensional model to complete the manufacturing of the three-dimensional object. For some three-dimensional models, support ink is also required. Since the use of support ink belongs to the existing technology, no further explanation is given here.

[0072] The embodiment of the present invention obtains a plurality of layers by slicing a three-dimensional model including at least two colors, and performs screening processing based on the color information of the layers to obtain corresponding image dot matrix data. Therefore, a three-dimensional object including at least two colors can be printed according to the image dot matrix data. The embodiment of the present invention converts the technical problem of screening processing of the three-dimensional model into the technical problem of screening processing of multiple layers through slicing processing, so that the screening processing of the three-dimensional model can be realized by the screening processing technology applied to two-dimensional images, so as to realize the manufacturing of products including multiple colors through three-dimensional printing. In addition, the three-dimensional model used in the embodiment of the present invention includes at least two colors, that is, a three-dimensional model format that can describe colors is adopted, and it is not necessary to color each pixel one by one after slicing processing, which greatly improves the processing efficiency of the three-dimensional model, and the screening processing is performed based on the color of the three-dimensional model itself, so that the three-dimensional object manufactured by three-dimensional printing can restore the three-dimensional model in the three-dimensional design software with high quality, ensure the consistency of the product during design and manufacturing, and facilitate industrial production.

[0073] See also Figure 3 , is a flow chart of a method for determining layer color information provided by an embodiment of the present invention, comprising the following steps.

[0074] S31: Acquire color processing width.

[0075] S32: determining a color processing region according to the edge of the layer and the color processing width; wherein the area of ​​the color processing region is smaller than the area of ​​the layer, and the color processing region includes the edge of the layer.

[0076] S33: Determine the color information of the pixel points located in the color processing area.

[0077] For easier understanding, see Figure 4 , the color processing area 22 is determined according to the edge 21 of the layer 20 and the color processing width D. For example, when the color processing width is D, the edge 24 is determined according to the edge 21 of the layer 20, and the area surrounded by the edge 21 and the edge 24 is the color processing area 22. It should be particularly noted that the color processing width D can be represented by the number of pixels.

[0078] In one embodiment of the present invention, a pixel point located at the edge 21 is used as a tangent point, and the tangent line of the edge 21 is determined by the tangent point, and then the perpendicular line of the tangent line is determined by the tangent point. In the direction of the perpendicular line, the position of the pixel point at a distance D from the pixel point is a pixel point of the edge 24. Based on this method, each pixel point of the edge 24 can be determined.

[0079] The area on the layer sheet 20 other than the color processing area 22 is the filling area 23. In some embodiments of the present invention, the data in the image dot matrix data corresponding to the filling area 23 is determined as the first data when performing the screening process, and the first data is used to instruct the nozzle not to perform inkjet. Therefore, the image dot matrix data finally obtained based on the technical solution only performs inkjet on the color processing area 22, that is, the three-dimensional object obtained by printing is in a hollow state, so as to save ink consumption, thereby reducing the manufacturing cost of the three-dimensional object. Since the edge of the layer sheet is located in the color processing area, the pixel points at the edge of the layer sheet are processed when performing the screening process, so as to reduce ink consumption while ensuring that the surface of the three-dimensional object manufactured during three-dimensional printing still has multiple colors. In addition, when the side wall of the three-dimensional model has a certain thickness, through the technical solution of this embodiment, when performing three-dimensional printing, the ink corresponding to its color can be used for printing, not only can the ink color of the outer surface of the three-dimensional object be superimposed to enhance the color effect of the outer surface of the three-dimensional object, but also different colors (such as gradient colors) can be used in one scanning print to achieve the technical effect that the inner and outer layers of the three-dimensional object have different colors.

[0080] See also Figure 5 , is a flow chart of another method for determining layer color information provided by an embodiment of the present invention, which includes the following steps.

[0081] S331: Determine color information of a first pixel point, where the first pixel point is a pixel point located at an edge of a layer.

[0082] S332: Setting the color information of the second pixel point to the color information of the first pixel point closest to it, the second pixel point being a pixel point located in the color processing area except the first pixel point.

[0083] Please continue to see Figure 4 , the pixel located at the edge 21 is recorded as the first pixel, and the pixel located in the color processing area 22 and other than the first pixel is recorded as the second pixel. For example, if the color information of a second pixel is C=50%, M=30%, Y=50%, K=0%, and the color information of the first pixel closest to it is C=0%, M=80%, Y=40%, K=0%, then the color information of the second pixel is set to C=0%, M=80%, Y=40%, K=0%.

[0084] In one embodiment of the present invention, the first pixel point can be used as a tangent point to draw a tangent line of the edge 21, and then the tangent point is used as a perpendicular line to the tangent line, and the color information of the second pixel points located on the perpendicular line is set to be the same as the tangent point. Based on this principle, the color information of all the second pixel points is determined.

[0085] In order to improve the modeling efficiency of the three-dimensional model, the prior art often only colors the outer surface of the three-dimensional model during modeling. Therefore, for the layer 20, only the pixel points located at the edge 21 include color information. If the image dot matrix data corresponding to this layer is used for printing, only the corresponding ink is used to color the outer surface of the three-dimensional object, which is easy to cause color shedding, and the color effect of the printed three-dimensional object is not good, the product quality is poor and it is not wear-resistant. At the same time, only the outer surface of the three-dimensional object is colored and ink-jetted, which is easy to cause printing failure due to printing equipment errors, lack of ink support and other reasons. In the embodiment of the present invention, by determining the color information of the second pixel point as the information of the first pixel point closest to it, when printing, the second pixel point in the entire color processing area of ​​the layer is printed with the same color as the corresponding first pixel point, so as to achieve the color superposition of the outer surface of the three-dimensional object to improve the color display effect. Even if the color of the outer surface falls off due to friction, impact, etc., because the color of the ink material closest to it is the same as that of the first pixel point, it is not easy to see visually, and has better quality.

[0086] See also Figure 6 , is a flow chart of another method for determining color information of a layer provided by an embodiment of the present invention, comprising the following steps.

[0087] S34: Determine a filling area, where the filling area is an area in the layer except the color processing area.

[0088] S35: setting the color information of all pixels in the filling area to include only the first designated color, where the first designated color is formed by printing with the first designated ink.

[0089] As mentioned above, the area other than the color processing area 22 on the layer recording sheet 20 is the filling area 23. And the color information of all pixels in the filling area 23 is set to include only the first specified color information, for example, the color information of all pixels in the filling area 23 is set to white, and the white is formed by printing with white ink. The color concentration of all pixels in the filling area 23 is not specifically limited, for example, it can be 100%, 50%, etc. When the concentration of white of all pixels in the filling area 23 is 100%, the color information of all pixels in the filling area 23 is W=100%, and W represents the color concentration of white. In one embodiment of the present invention, all pixels in the filling area 23 are read one by one, and their color information is modified to W=n%, where n is an integer. It is obvious that the first specified color is not limited to white.

[0090] See also Figure 7 , is a flow chart of a method for determining image dot matrix data provided by an embodiment of the present invention, comprising the following steps.

[0091] S41: determining first data in the image dot matrix data, the first data being used to indicate that the ink output of each color channel is zero;

[0092] S42: changing the first data in the image dot matrix data into second data, where the second data is used to indicate the ink output of a second designated color channel, and the color corresponding to the second designated color channel is printed by the second designated ink.

[0093] The image dot matrix data is a matrix, which is composed of multiple data, each of which is used to indicate whether the nozzle is to spray ink. For example, 0 or 00 indicates that the nozzle is not to spray ink, and 1, 01, 10, 11 indicates that the nozzle is to spray ink. In this case, the first data is one of 0 and 00, and the second data is one of 1, 01, 10, and 11.

[0094] In one embodiment of the present invention, all data in the image dot matrix data are traversed, and when the first data exists, it is modified to the second data, and the second data is set as the data corresponding to the second designated color channel corresponding to the second designated color. Therefore, the data can be used to indicate the ink output of the second designated color channel, that is, to instruct the nozzle to spray the second designated ink.

[0095] In one embodiment of the present invention, the first designated color and the second designated color may both be white, and the first designated ink and the second designated ink may both be white ink.

[0096] See also Figure 8 , is a flow chart of a method for slicing provided by an embodiment of the present invention, comprising the following steps.

[0097] S21: Obtaining a preset layer height; wherein the preset layer height is less than or equal to a maximum ink layer height that can be stacked during one scan and print.

[0098] S22: Slicing the three-dimensional model according to a preset layer height, so that the layer height of each obtained layer is not greater than the preset layer height.

[0099] Specifically, in one embodiment of the present invention, when all nozzles of the printing device are spraying ink according to the maximum ink output, the maximum ink layer height that can be stacked in one scan printing is used as the preset layer height. This technical solution can maximize the printing efficiency.

[0100] In another embodiment of the present invention, the preset layer height may be set smaller, for example, 10% of the maximum ink layer height that can be stacked for one scan print, so that the printed three-dimensional object is more delicate.

[0101] In order to take into account both the quality and efficiency of printing, the present invention also provides another method for performing slicing. Specifically, in step S20 of the above embodiment, it also includes:

[0102] Determining whether the number of colors included in the layer is above a preset value;

[0103] If so, the layer slice is sliced ​​to obtain a plurality of secondary layer slices, and the height of the secondary layer slice is smaller than that of the layer slice.

[0104] Specifically, the more types of colors a layer has, the more complex its color information is. Therefore, it can be sliced ​​twice, and the three-dimensional model can be superimposed with more scans and prints, so that the printed model is more delicate and the effect is better. For example, the preset value is 5. When slicing is performed in S20, the preset layer height is the maximum ink layer height that can be stacked by performing one scan and print. If it is detected that the number of colors of a layer is greater than or greater than 5, the layer is sliced ​​twice to obtain multiple secondary layers, and the layer height of the secondary layer is less than the preset layer height, for example, 10% of the maximum ink layer height that can be stacked by performing one scan and print. Among them, the method of determining the image dot matrix data corresponding to the second layer is similar to that of the layer, which will not be repeated here.

[0105] In another implementation, in step S20 of the aforementioned embodiment, the method further includes:

[0106] Determining whether the color change gradient of the layer is above a preset value;

[0107] If so, the layer slice is sliced ​​to obtain a plurality of secondary layer slices, and the height of the secondary layer slice is smaller than that of the layer slice.

[0108] Specifically, the greater the color change gradient of the layer, the more complex its color information is. Therefore, it can be sliced ​​twice, and the three-dimensional model can be superimposed by more scanning and printing, so that the printed model is more delicate and has better effect. The calculation method of the color change gradient can adopt different algorithms, and the present invention is not specifically limited.

[0109] In many application scenarios, the color distribution of 3D models is not uniform. For example, the color information on the front of a 3D model is very rich, while the color information on the back is relatively monotonous. If such a 3D model is sliced ​​at the same layer height, it is likely that the front side will not be finely restored due to thicker slices, while the efficiency will be low for the back side which does not require high color quality.

[0110] Therefore, the embodiment of the present invention further provides another slicing method. Specifically, before step S20, it also includes: obtaining the direction with the largest color change gradient in the three-dimensional model, and recording it as the slicing direction.

[0111] In S20, it includes: slicing the three-dimensional model according to the slicing direction to obtain a plurality of slices.

[0112] The slicing of the three-dimensional model according to the slicing direction to obtain a plurality of slices means that the normal vectors of the slices obtained after the slicing process are parallel to the slicing direction.

[0113] See also Fig. 9 , is a flow chart of a feathering processing method for a three-dimensional model provided in an embodiment of the present invention, which includes the following steps.

[0114] S50: Acquire a first feathering template and a second feathering template, wherein the sum of the first feathering template and the second feathering template is an all-1 matrix.

[0115] S60: feathering the image dot matrix data according to the first feathering template to obtain first image dot matrix data.

[0116] S70: feathering the image dot matrix data according to the second feathering template to obtain second image dot matrix data.

[0117] Specifically, the first feathering template and the second feathering template are both matrices, and the matrix sizes (ie, the number of rows and columns) are equal, and the sum of the first feathering template and the second feathering template is an all-1 matrix. For example, the first feathering template is The second feathering template is Generally speaking, the first feathering template and the second feathering template obtained are equal to the matrix size of the image dot matrix data. Wherein, the feathering process is a matrix AND operation. For example, the image dot matrix data is Then the first image dot matrix data obtained by feathering the image dot matrix data according to the first feathering template is The second image dot matrix data obtained by feathering the image dot matrix data according to the second feathering template is:

[0118] When printing, the first image dot matrix data and the second image dot matrix data are scanned and printed once respectively, so that the mechanical error of the printing device is diffused into the two prints, so that the printed three-dimensional object is more delicate and has a better effect. It should be particularly noted that the embodiment of the present invention can perform feathering processing on multiple color channels in the image dot matrix data respectively.

[0119] See also Fig.10 , is a three-dimensional model printing processing device provided by an embodiment of the present invention, the device comprising:

[0120] The three-dimensional model acquisition module is used to acquire the three-dimensional model to be printed, and the three-dimensional model includes at least two colors.

[0121] The slicing processing module is used to slice the three-dimensional model to obtain multiple layers.

[0122] The color information determination module is used to determine the color information of the layer.

[0123] The screening processing module is used to perform screening processing on the layer slice according to the color information of the layer slice to obtain image dot matrix data.

[0124] In another embodiment of the present invention, the device further comprises:

[0125] A width acquisition module is used to acquire a color processing width.

[0126] A color processing region determination module is used to determine a color processing region according to the edge of the layer and the color processing width; wherein the area of ​​the color processing region is smaller than the area of ​​the layer, and the color processing region includes the edge of the layer.

[0127] The color information determination module is also used to determine the color information of the pixel points located in the color processing area.

[0128] In another embodiment of the present invention, the color information determination module is further used to determine the color information of a first pixel point, where the first pixel point is a pixel point located at the edge of the layer.

[0129] The color information determination module is further used to set the color information of a second pixel point as the color information of a first pixel point closest to the second pixel point, wherein the second pixel point is a pixel point located in the color processing area except the first pixel point.

[0130] In addition, the three-dimensional model printing processing method of the embodiment of the present invention can be implemented by a printing device. Fig.11 A schematic diagram of the hardware structure of a printing device provided by an embodiment of the present invention is shown.

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

[0132] 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.

[0133] 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.

[0134] The processor implements any one of the three-dimensional model printing processing methods in the above embodiments by reading and executing computer program instructions stored in the memory.

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

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

[0137] 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.

[0138] In addition, in combination with the three-dimensional model printing processing method in the above embodiment, the embodiment of the present invention can 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 one of the three-dimensional model printing processing methods in the above embodiment is implemented.

[0139] 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.

[0140] 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.

[0141] 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.

[0142] 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 printing method for a three-dimensional model, characterized in that: The method comprises: S10: Acquire a three-dimensional model to be printed, wherein the three-dimensional model includes at least two colors; S20: Slicing the three-dimensional model to obtain a plurality of slices; S30: Determine the color information of the layer; S40: Screening the layer according to the color information of the layer to obtain image dot matrix data; In S30: determining the color information of the layer, the following steps are included: S31: Get color processing width; S32: determining a color processing region according to the edge of the layer and the color processing width; wherein the area of ​​the color processing region is smaller than the area of ​​the layer, and the color processing region includes the edge of the layer; S33: Determine color information of pixels located in the color processing area; S34: determining a filling area, wherein the filling area is an area of ​​the layer except the color processing area; S35: setting the color information of all pixels in the filling area to include only a first designated color, where the first designated color is formed by printing with a first designated ink; In S40: performing screening processing on the layer according to the color information of the layer to obtain image dot matrix data, the method includes: S41: determining first data in the image dot matrix data, where the first data is used to indicate that the ink output of each color channel is zero; S42: changing the first data in the image dot matrix data into second data, where the second data is used to indicate the ink output of a second designated color channel, and the color corresponding to the second designated color channel is printed by the second designated ink.

2. The method according to claim 1, characterized in that In S33: determining the color information of the pixel points located in the color processing area, including: S331: Determine color information of a first pixel point, where the first pixel point is a pixel point located at an edge of the layer; S332: Setting the color information of a second pixel point to the color information of a first pixel point closest to the second pixel point, wherein the second pixel point is a pixel point located in the color processing area except the first pixel point.

3. The method according to claim 1 or 2, characterized in that: In S20: slicing the three-dimensional model to obtain a plurality of slices, including: S21: Obtaining the preset layer height; S22: Slicing the three-dimensional model according to the preset layer height, so that the layer height of each obtained slice is no greater than the preset layer height; The preset layer height is less than or equal to the maximum ink layer height that can be stacked in one scanning and printing operation.

4. The method according to claim 1 or 2, characterized in that: After S40, it also includes: S50: Acquire a first feathering template and a second feathering template, wherein the sum of the first feathering template and the second feathering template is an all-1 matrix; S60: performing feathering processing on the image dot matrix data according to the first feathering template to obtain first image dot matrix data; S70: feathering the image dot matrix data according to the second feathering template to obtain second image dot matrix data.

5. A three-dimensional model printing and processing device, characterized in that: The device comprises: A three-dimensional model acquisition module, the three-dimensional model acquisition module is used to acquire a three-dimensional model to be printed, the three-dimensional model includes at least two colors; A slicing processing module, the slicing processing module is used to slice the three-dimensional model to obtain a plurality of slices; A color information determination module, the color information determination module is used to determine the color information of the layer, including: obtaining a color processing width; determining a color processing area according to the edge of the layer and the color processing width; wherein the area of ​​the color processing area is smaller than the area of ​​the layer, and the color processing area includes the edge of the layer; determining the color information of the pixels located in the color processing area; determining a filling area, the filling area is the area of ​​the layer except the color processing area; setting the color information of all the pixels in the filling area to include only a first specified color, the first specified color is formed by printing with a first specified ink; A screening processing module, the screening processing module is used to perform screening processing on the layer according to the color information of the layer to obtain image dot matrix data, including determining the first data in the image dot matrix data, the first data is used to indicate that the ink output of each color channel is zero; changing the first data in the image dot matrix data into second data, the second data is used to indicate the ink output of a second specified color channel, and the color corresponding to the second specified color channel is printed by the second specified ink.

6. A printing device, 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 4.

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

Citation Information

Patent Citations

  • Color 3D printing method and device and terminal equipment

    CN109334011A