Three-dimensional model printing processing method, device, equipment and storage medium
By spreading the outer surface of the three-dimensional model into a two-dimensional image for screening processing, and combining the slice processing of the three-dimensional model, the problem of three-dimensional product difficult to create multiple colors in the prior art is solved, and efficient three-dimensional printing processing is achieved, ensuring high quality and consistency of the product.
Patent Information
- Application Number
- CN202011110163.7
- 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
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.
By expanding the outer surface of the three-dimensional model into a two-dimensional image and screening the two-dimensional image, the first image lattice data is obtained. Then, the three-dimensional model is sliced, and the dot data of edge pixels of each layer is determined based on the first image lattice data, and the dot data of other pixels is set, so as to obtain the second image lattice data. This data is used to indicate the ink output amount of each color channel during printing.
It realizes the production of products including multiple colors through three-dimensional printing, improves the efficiency of three-dimensional model processing, ensures high-quality restoration of products and consistency between design and manufacturing, and is suitable for industrial production.
Smart Images

Figure CN114387383B_ABST
Abstract
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: extracting the outer surface of the three-dimensional model and unfolding the outer surface into a two-dimensional image;
[0010] S30: Performing screen processing on the two-dimensional image to obtain first image dot matrix data; wherein the first image dot matrix data includes halftone dot data;
[0011] S40: Slicing the three-dimensional model to obtain a plurality of slices; wherein the slices include a first pixel point and a second pixel point, the first pixel point is a pixel point located at an edge of the slice, and the second pixel point is a pixel point of the slice other than the first pixel point;
[0012] S50: Determine the dot data corresponding to the first pixel point according to the first image dot matrix data;
[0013] S60: Setting the halftone dot data corresponding to the second pixel point;
[0014] S70: merging the dot data corresponding to each pixel point on the layer slice by layer slice respectively to obtain the second image dot matrix data;
[0015] The dot data is used to indicate the amount of ink output of each color channel when printing the corresponding pixel.
[0016] The embodiment of the present invention unfolds the outer surface of the three-dimensional model into a two-dimensional image, and performs screening processing on the two-dimensional image to obtain first image dot matrix data. Then, the three-dimensional model is sliced to obtain multiple layers, so the dot data corresponding to the pixel points at the edge of each layer can be determined by the first image dot matrix data. When performing three-dimensional printing, the color of the outer surface of the three-dimensional object is determined by the dot data corresponding to the pixel points at the edge of each layer. Therefore, when the three-dimensional model includes at least 2 colors, three-dimensional objects of multiple colors can be manufactured. The embodiment of the present invention unfolds the outer surface of the three-dimensional model into a two-dimensional image, thereby converting the screening processing problem of the three-dimensional model into the screening processing problem of the two-dimensional image, and thus applying the screening processing technology of the two-dimensional image to implement the screening processing of the three-dimensional model, 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 used. Therefore, the expanded two-dimensional image can be directly screened without coloring each pixel one by one, which greatly improves the processing efficiency of the three-dimensional model. In addition, the screening process 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, ensuring product consistency during design and manufacturing, and facilitating industrial production.
[0017] Preferably, in S60: setting the dot data corresponding to the second pixel point includes:
[0018] S61: Obtaining dot processing width;
[0019] S62: determining a dot processing region according to the edge of the layer and the dot processing width; wherein the area of the dot processing region is smaller than the area of the layer, and the dot processing region includes the edge of the layer;
[0020] S63: Setting the halftone dot data corresponding to the second pixel in the halftone dot processing area.
[0021] The embodiment of the present invention determines the dot processing area by obtaining the dot processing width and the edge of the layer, so that the area of the dot processing area is smaller than the area of the layer, and determines the dot data corresponding to the pixel points located in the dot processing area. Therefore, only the data corresponding to the dot processing area in the second image dot matrix data finally obtained is used to instruct the printing device to spray ink, thereby reducing the consumption of ink as much as possible, thereby reducing the manufacturing cost of the three-dimensional object.
[0022] Preferably, in S63: setting the halftone dot data corresponding to the second pixel point in the halftone dot processing area, the halftone dot data includes:
[0023] S631: Setting the halftone dot data corresponding to the second pixel in the halftone dot processing area to the halftone dot data corresponding to the first pixel closest thereto.
[0024] 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 setting the dot data corresponding to the second pixel point in the dot processing area to the dot data corresponding to the first pixel point closest to it, when printing, the second pixel point in the entire dot 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 ink material, it is not easy to see visually, and has better quality.
[0025] Preferably, in S60: setting the dot data corresponding to the second pixel point includes:
[0026] S64: determining a filling area, wherein the filling area is an area of the layer except the dot processing area;
[0027] S65: setting the dot data corresponding to the second pixel point in the filling area to be first data, wherein the first data is used to indicate the ink output of a first designated color channel, and the color corresponding to the first designated color channel is printed by the first designated ink.
[0028] The embodiment of the present invention determines the area outside the dot processing area as the filling area, and sets the dot data corresponding to the pixel points of the entire filling area to the first data indicating that the ink output of the first designated color channel is not zero. 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 lower-cost ink (such as white ink) is usually used as the first designated ink to reduce costs.
[0029] Preferably, in S70: merging the dot data corresponding to each pixel point on the layer slices to obtain the second image dot matrix data comprises:
[0030] S71: determining second data in the second image dot matrix data, where the second data is used to indicate that the ink output of each color channel is zero;
[0031] S72: changing the second data in the second image dot matrix data into third data, where the third data is used to indicate the ink output of a third designated color channel, and the color corresponding to the third designated color channel is printed by a third designated ink.
[0032] There may be some pixels in the first pixel and / or the second pixel whose corresponding dot data is the second data for indicating that the ink output of each color channel is zero, that is, instructing the nozzle not to spray ink on the pixel, which has little effect 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 second data in the second image dot matrix data into the third data for indicating that the ink output of the third designated color channel is not zero. When manufacturing three-dimensional objects, the third designated ink will be used for printing to play a supporting role. The third 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.
[0033] In S40: slicing the three-dimensional model to obtain a plurality of slices, including:
[0034] S41: Obtaining a preset layer height;
[0035] S42: 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;
[0036] 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.
[0037] 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.
[0038] Preferably, after S70, the method further includes:
[0039] S80: 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;
[0040] S90: performing feathering processing on the second image dot matrix data according to the first feathering template to obtain third image dot matrix data;
[0041] S100: feathering the second image dot matrix data according to the second feathering template to obtain fourth image dot matrix data.
[0042] The embodiment of the present invention obtains the third image dot matrix data and the fourth 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.
[0043] In a second aspect, an embodiment of the present invention provides a three-dimensional model printing processing device, the device comprising:
[0044] 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;
[0045] A three-dimensional model unfolding module, the three-dimensional model unfolding module is used to extract the outer surface of the three-dimensional model and unfold the outer surface into a two-dimensional image;
[0046] A screen processing module, the screen processing module is used to perform screen processing on the two-dimensional image to obtain first image dot matrix data; wherein the first image dot matrix data includes dot data;
[0047] A slicing processing module, the slicing processing module is used to slice the three-dimensional model to obtain a plurality of slices; wherein the slices include a first pixel point and a second pixel point, the first pixel point is a pixel point located at an edge of the slice, and the second pixel point is a pixel point of the slice other than the first pixel point;
[0048] A first halftone dot data determination module, the first halftone dot data determination module is used to determine the halftone dot data corresponding to the first pixel point according to the first image dot matrix data;
[0049] A second halftone dot data determination module, the second halftone dot data determination module is used to set the halftone dot data corresponding to the second pixel point;
[0050] The dot data merging module is used to merge the dot data corresponding to each pixel point on the layer slice by layer slice to obtain the second image dot matrix data.
[0051] 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.
[0052] 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
[0053] 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.
[0054] 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.
[0055] Figure 2 It is a schematic diagram of a slicing process provided by an embodiment of the present invention.
[0056] Figure 3The present invention is a flowchart of a method for setting network point data provided by an embodiment of the present invention.
[0057] Figure 4 It is a schematic diagram of a layer provided by an embodiment of the present invention.
[0058] Figure 5 It is a flowchart of another method for setting network point data provided by an embodiment of the present invention.
[0059] Figure 6 It is a flowchart of another method for setting network point data provided by an embodiment of the present invention.
[0060] Figure 7 It is a flow chart of a slicing processing method provided by an embodiment of the present invention.
[0061] Figure 8 It is a schematic flow chart of a method for feathering processing of a three-dimensional model provided in an embodiment of the present invention.
[0062] Fig. 9 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.
[0063] Fig.10 It is a structural schematic diagram of a printing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0064] 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.
[0065] 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.
[0066] See also Figure 1 , is a flow chart of a printing method of a three-dimensional model provided by an embodiment of the present invention, comprising the following steps:
[0067] S10: Obtain a three-dimensional model to be printed, where the three-dimensional model includes at least two colors.
[0068] S20: extracting the outer surface of the three-dimensional model and unfolding the outer surface into a two-dimensional image.
[0069] S30: Screening the two-dimensional image to obtain first image dot matrix data; wherein the first image dot matrix data includes dot data.
[0070] S40: Slice the three-dimensional model to obtain a plurality of slices; wherein the slices include first pixel points and second pixel points, the first pixel points are pixel points located at the edge of the slice, and the second pixel points are pixel points of the slice except the first pixel points.
[0071] S50: Determine the dot data corresponding to the first pixel point according to the first image dot matrix data.
[0072] S60: Setting the dot data corresponding to the second pixel.
[0073] S70: Merging the dot data corresponding to each pixel on the layer slices respectively to obtain second image dot matrix data; wherein the dot data is used to indicate the ink output of each color channel when printing the corresponding pixel.
[0074] 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.
[0075] 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.
[0076] In one embodiment, extracting the outer surface of the three-dimensional model can be achieved by extracting the outer contour of the three-dimensional model. After the outer surface of the three-dimensional model is expanded into a two-dimensional image, it can be screened. Screening can use existing screening processing 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 process includes 1-bit screening, and the 1-bit screening process can be used to determine whether the pixel point is ink-jetted. For example, when the dot data is 0, it indicates that the nozzle does not spray ink on the pixel point, and when the dot data is 1, it indicates that the nozzle sprays ink on the pixel point. Screening can also use 2-bit screening, and the 2-bit screening process can be used to determine the amount of ink when each pixel point is ink-jetted. For example, the dot data 00 indicates that the nozzle does not spray ink on the pixel, the dot data 01 indicates that the nozzle sprays a small amount of ink (for example, 25%) on the pixel; the dot data 10 indicates that the nozzle sprays a medium amount of ink (for example, 50%) on the pixel; the dot data 11 indicates that the nozzle sprays a large amount of ink (for example, 100%) on the pixel. It should be particularly 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 (Cyan, cyan), M color (Magenta, magenta), Y color (Yellow, yellow), K color (black, black) can use different screening channels, that is, the first image dot matrix data after screening processing includes multiple color channels, each color channel corresponds to a different color, for example, the dot data 11 in the C color channel indicates that the nozzle sprays a large amount of C color ink (for example, 100%) on the pixel.
[0077] 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. In one embodiment of the present invention, the three-dimensional model referred to in S40 is obtained by restoring the two-dimensional image to a three-dimensional model. In another embodiment of the present invention, the three-dimensional model referred to in S40 is another three-dimensional model that is re-acquired, and it is the same as the three-dimensional model acquired in S10.
[0078] In the embodiment of the present invention, the outer surface of the three-dimensional model is expanded into a two-dimensional image, and the two-dimensional image is screened to obtain the first image dot matrix data. Then, the three-dimensional model is sliced to obtain multiple layers, so the dot data corresponding to the pixel points at the edge of each layer can be determined by the first image dot matrix data.
[0079] The following technical solution may be used to set the dot data corresponding to the second pixel: determine the color information of the second pixel, perform screening processing on the second pixel according to the color information of the second pixel, and obtain the dot data corresponding to the second pixel. Wherein, determining the color information of the second pixel includes: determining the color information of the second pixel according to the color information of the second pixel in the three-dimensional model. In another embodiment of the present invention, the color information of the second pixel may be set one by one by traversing all the second pixels. The color information referred to in the present invention 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, M value, Y value and K value of the pixel.
[0080] Through the above technical scheme, the dot data corresponding to the pixel points of each layer is determined. At this time, the dot data corresponding to each pixel point on the layer are merged into the layer to obtain the second image dot matrix data. Therefore, each layer 20 corresponds to a second image dot matrix data. According to the second image dot matrix data, inkjet printing can be performed. When performing three-dimensional printing, the layer corresponding to the second image dot matrix data is placed at the specific position of the original three-dimensional model, and continuous superposition printing is performed from the bottom to the top to complete the three-dimensional object manufacturing. For some three-dimensional models, supporting ink is also required. Since the use of supporting ink belongs to the existing technology, no further elaboration is required here.
[0081] When performing three-dimensional printing, the color of the outer surface of the three-dimensional object is determined by the dot data corresponding to the pixel points at the edge of each layer. Therefore, when the three-dimensional model includes at least two colors, three-dimensional objects of multiple colors can be manufactured. The embodiment of the present invention expands the outer surface of the three-dimensional model into a two-dimensional image, thereby converting the screening processing problem of the three-dimensional model into the screening processing problem of the two-dimensional image, thereby applying the screening processing technology of the two-dimensional image to implement the screening processing of the three-dimensional model, so as to realize the manufacture 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 used, so the expanded two-dimensional image can be directly screened without coloring each pixel one by one, 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.
[0082] See also Figure 3 , is a flow chart of a method for setting dot data corresponding to a second pixel point provided by an embodiment of the present invention, comprising the following steps:
[0083] S61: Obtaining dot processing width.
[0084] S62: Determine a dot processing region according to the edge of the layer and the dot processing width; wherein the area of the dot processing region is smaller than the area of the layer, and the dot processing region includes the edge of the layer.
[0085] S63: Setting the halftone dot data corresponding to the second pixel point in the halftone dot processing area.
[0086] For easier understanding, see Figure 4 , the dot processing area 22 is determined according to the edge 21 of the layer 20 and the dot processing width D. For example, when the dot 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 dot processing area 22. It should be particularly noted that the dot processing width D can be represented by the number of pixels.
[0087] 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.
[0088] The embodiment of the present invention determines the dot processing area by obtaining the dot processing width and the edge of the layer, so that the area of the dot processing area is smaller than the area of the layer, and determines the dot data corresponding to the pixel points located in the dot processing area. Therefore, only the data corresponding to the dot processing area in the second image dot matrix data finally obtained is used to instruct the printing device to spray ink, thereby reducing the consumption of ink as much as possible, thereby reducing the manufacturing cost of the three-dimensional object.
[0089] An embodiment of the present invention also provides another method for determining the dot data corresponding to the second pixel point, and its technical solution includes: setting the dot data corresponding to the second pixel point in the dot processing area to the dot data corresponding to the first pixel point closest to it.
[0090] For easier understanding, please continue to refer to Figure 4 For example, if it is necessary to determine the halftone dot data corresponding to a second pixel in the halftone dot processing area 22, and the halftone dot data corresponding to the nearest first pixel is A, then the halftone dot data corresponding to the second pixel is also set to A.
[0091] 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 of the tangent line, and the color information of the second pixel points located on the perpendicular line and in the halftone processing area are all set to be the same as the tangent point. Based on this principle, the color information of all the second pixel points in the halftone processing area 22 is determined.
[0092] 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 setting the dot data corresponding to the second pixel point in the dot processing area to the dot data corresponding to the first pixel point closest to it, when printing, the second pixel point in the entire dot 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 ink material, it is not easy to see visually, and has better quality.
[0093] See also Figure 5, is a flow chart of a method for determining dot data corresponding to a second pixel point of a filling area provided by an embodiment of the present invention, comprising the following steps.
[0094] S64: Determine a filling area, where the filling area is an area in the layer except for the dot processing area.
[0095] S65: setting the dot data corresponding to the second pixel point in the filling area to be the first data, where the first data is used to indicate the ink output of the first designated color channel, and the color corresponding to the first designated color channel is formed by printing with the first designated ink.
[0096] Please continue to see Figure 4 , the area on the layer sheet 20 except the dot processing area 22 is recorded as the filling area 23. And the dot data corresponding to all the pixels in the filling area 23 are set to the first data. For example, the dot data corresponding to all the pixels in the filling area 23 are set to the first data for indicating the ink output of the white color channel, and the white color is formed by printing with white ink. The specific ink output of the white color channel indicated by the first data is not specifically limited, for example, it can be 100%, 50%, etc. In one embodiment of the present invention, all the 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, and then the filling area 23 is screened. It is obvious that the first designated color is not limited to white.
[0097] See also Figure 6 , is a flow chart of a method for setting dot data in second image dot matrix data provided by an embodiment of the present invention, comprising the following steps.
[0098] S71: Determine second data in the second image dot matrix data, where the second data is used to indicate that the ink output of each color channel is zero.
[0099] S72: changing the second data in the second image dot matrix data into third data, where the third data is used to indicate the ink output of a third designated color channel, and the color corresponding to the third designated color channel is printed by the third designated ink.
[0100] The second image dot matrix data is a matrix, which is composed of a plurality of dot data, each dot data 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 second data is one of 0 and 00, and the third data is one of 1, 01, 10, and 11.
[0101] In one embodiment of the present invention, all data in the second image dot matrix data are traversed, and when the second data exists, it is modified to the third data, and the third data is set as the dot data corresponding to the third designated color channel corresponding to the third designated color. Therefore, the data can be used to indicate the ink output of the third designated color channel, that is, to instruct the nozzle to spray the third designated ink.
[0102] In one embodiment of the present invention, the first designated color and the third designated color may both be white, and the first designated ink and the third designated ink may both be white ink.
[0103] See also Figure 7 , is a flow chart of a method for slicing provided by an embodiment of the present invention, comprising the following steps.
[0104] S41: Obtaining a preset layer height;
[0105] S42: 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;
[0106] 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.
[0107] 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.
[0108] 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.
[0109] 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 S40 of the above embodiment, it also includes:
[0110] Determining whether the number of colors included in the layer is above a preset value;
[0111] 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.
[0112] Specifically, the more color types 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 S40, 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 color types 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 determination method of the second image dot matrix data corresponding to the second layer is similar to that of the layer, which will not be repeated here.
[0113] In another implementation, in step S40 of the above embodiment, it further includes:
[0114] Determining whether the color change gradient of the layer is above a preset value;
[0115] 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.
[0116] 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.
[0117] 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.
[0118] Therefore, the embodiment of the present invention further provides another slicing method. Specifically, before step S40, it also includes: obtaining the direction with the largest color change gradient in the three-dimensional model, and recording it as the slicing direction.
[0119] In S40, it includes: slicing the three-dimensional model according to the slicing direction to obtain a plurality of slices.
[0120] 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.
[0121] See also Figure 8, 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.
[0122] S80: 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;
[0123] S90: performing feathering processing on the second image dot matrix data according to the first feathering template to obtain third image dot matrix data;
[0124] S100: feathering the second image dot matrix data according to the second feathering template to obtain fourth image dot matrix data.
[0125] 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 obtained first feathering template and the second feathering template have the same matrix size as the second image dot matrix data. The feathering process is a matrix AND operation. For example, the second image dot matrix data is Then the third image dot matrix data obtained by feathering the second image dot matrix data according to the first feathering template is The fourth image dot matrix data obtained by performing feathering processing on the second image dot matrix data according to the second feathering template is:
[0126] When printing, the third image dot matrix data and the fourth image dot matrix data are scanned and printed once respectively, so that the mechanical error of the printing device is diffused into the two printings, 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.
[0127] See also Fig. 9 , is a three-dimensional model printing processing device provided by an embodiment of the present invention, the device comprising:
[0128] 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;
[0129] A three-dimensional model unfolding module, the three-dimensional model unfolding module is used to extract the outer surface of the three-dimensional model and unfold the outer surface into a two-dimensional image;
[0130] A screen processing module, the screen processing module is used to perform screen processing on the two-dimensional image to obtain first image dot matrix data; wherein the first image dot matrix data includes dot data;
[0131] A slicing processing module, the slicing processing module is used to slice the three-dimensional model to obtain a plurality of slices; wherein the slices include a first pixel point and a second pixel point, the first pixel point is a pixel point located at an edge of the slice, and the second pixel point is a pixel point of the slice other than the first pixel point;
[0132] A first halftone dot data determination module, the first halftone dot data determination module is used to determine the halftone dot data corresponding to the first pixel point according to the first image dot matrix data;
[0133] A second halftone dot data determination module, the second halftone dot data determination module is used to set the halftone dot data corresponding to the second pixel point;
[0134] The dot data merging module is used to merge the dot data corresponding to each pixel point on the layer slice by layer slice to obtain the second image dot matrix data.
[0135] In addition, the three-dimensional model printing processing method of the embodiment of the present invention can 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.
[0136] The printing device may include a processor and a memory storing computer program instructions.
[0137] 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.
[0138] 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.
[0139] 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.
[0140] 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.
[0141] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.
[0142] 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.
[0143] 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.
[0144] 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.
[0145] 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.
[0146] 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.
[0147] 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: extracting the outer surface of the three-dimensional model and unfolding the outer surface into a two-dimensional image; S30: Performing screen processing on the two-dimensional image to obtain first image dot matrix data; wherein the first image dot matrix data includes halftone dot data; S40: Slicing the three-dimensional model to obtain a plurality of slices; wherein the slices include a first pixel point and a second pixel point, the first pixel point is a pixel point located at an edge of the slice, and the second pixel point is a pixel point of the slice other than the first pixel point; S50: Determine the dot data corresponding to the first pixel point according to the first image dot matrix data; S60: Setting the halftone dot data corresponding to the second pixel point; S70: merging the dot data corresponding to each pixel point on the layer slice by layer slice respectively to obtain the second image dot matrix data; The dot data is used to indicate the ink output of each color channel when printing the corresponding pixel point; In S60: setting the dot data corresponding to the second pixel point includes: S61: Obtaining dot processing width; S62: determining a dot processing region according to the edge of the layer and the dot processing width; wherein the area of the dot processing region is smaller than the area of the layer, and the dot processing region includes the edge of the layer; S63: Setting the halftone dot data corresponding to the second pixel in the halftone dot processing area.
2. The method according to claim 1, characterized in that In S63: setting the halftone dot data corresponding to the second pixel point in the halftone dot processing area, the method includes: S631: Setting the halftone dot data corresponding to the second pixel in the halftone dot processing area to the halftone dot data corresponding to the first pixel closest thereto.
3. The method according to claim 1 or 2, characterized in that: In S60: setting the dot data corresponding to the second pixel point includes: S64: determining a filling area, wherein the filling area is an area of the layer except the dot processing area; S65: setting the dot data corresponding to the second pixel point in the filling area to be first data, wherein the first data is used to indicate the ink output of a first designated color channel, and the color corresponding to the first designated color channel is printed by the first designated ink.
4. The method according to claim 1, characterized in that: In S70, the dot data corresponding to each pixel point on the layer slices are merged into the layer slices to obtain the second image dot matrix data, including: S71: determining second data in the second image dot matrix data, where the second data is used to indicate that the ink output of each color channel is zero; S72: changing the second data in the second image dot matrix data into third data, where the third data is used to indicate the ink output of a third designated color channel, and the color corresponding to the third designated color channel is printed by a third designated ink.
5. The method according to claim 1, characterized in that In S40: slicing the three-dimensional model to obtain a plurality of slices, including: S41: obtaining a preset layer height; S42: slicing the three-dimensional model according to the preset layer height, so that the layer heights of the obtained slices are not 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.
6. The method according to claim 1, characterized in that After S70, it also includes: S80: 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; S90: performing feathering processing on the second image dot matrix data according to the first feathering template to obtain third image dot matrix data; S100: feathering the second image dot matrix data according to the second feathering template to obtain fourth image dot matrix data.
7. 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 three-dimensional model unfolding module, the three-dimensional model unfolding module is used to extract the outer surface of the three-dimensional model and unfold the outer surface into a two-dimensional image; A screen processing module, the screen processing module is used to perform screen processing on the two-dimensional image to obtain first image dot matrix data; wherein the first image dot matrix data includes dot data; A slicing processing module, the slicing processing module is used to slice the three-dimensional model to obtain a plurality of slices; wherein the slices include a first pixel point and a second pixel point, the first pixel point is a pixel point located at an edge of the slice, and the second pixel point is a pixel point of the slice other than the first pixel point; A first halftone dot data determination module, the first halftone dot data determination module is used to determine the halftone dot data corresponding to the first pixel point according to the first image dot matrix data; A second halftone dot data determination module, the second halftone dot data determination module is used to set the halftone dot data corresponding to the second pixel point, including: obtaining a halftone dot processing width; determining a halftone dot processing area according to the edge of the layer and the halftone dot processing width; wherein the area of the halftone dot processing area is smaller than the area of the layer, and the halftone dot processing area includes the edge of the layer; and setting the halftone dot data corresponding to the second pixel point in the halftone dot processing area; The dot data merging module is used to merge the dot data corresponding to each pixel point on the layer slice by layer slice to obtain the second image dot matrix data.
8. 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 6.
9. 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 6 is implemented.
Citation Information
Patent Citations
Three-dimensional model printing system and forming method of three-dimensional model
CN105856562A
Color 3D printing method and device and terminal equipment
CN109334011A