Color 3D printing data processing method and device, equipment, medium and product

By establishing a color mixing model GMap of the transition process of two-color silk material, calculating and mapping the color fill path, the mixed color printing of single-spray dual-color silk material is realized, which solves the problem that existing color FDM printing can only achieve color patchwork printing, and achieves high-quality and efficient mixed color printing effect.

CN119974536APending Publication Date: 2025-05-13ZHENGZHOU UNIV

Patent Information

Application Number
CN202510129063.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-05
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The existing color FDM printing technology can only realize color-mold printing, but cannot realize color-mixed printing, which cannot meet the market's demand for high-quality, high-efficiency, and low-cost color 3D printing.

Method used

By establishing a color mixing model GMap of the two-color silk material transition process, the color filling path and conventional filling path in each slice layer are calculated, and the color mixing path mapping processing of the color filling path and conventional filling path in each layer is completed, so that the mixed color printing of single-spray two-color silk material can be realized.

Benefits of technology

It realizes the mixed color printing effect of color 3D printing, supports mixed color printing in any variety of colors, and the printed color model is highly delicate, the hardware structure is simple, the operation is simple, and it is easier to maintain. It is suitable for a wide range of application scenarios of color FDM technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119974536A_ABST
    Figure CN119974536A_ABST
Patent Text Reader

Abstract

The invention discloses a color 3D printing data processing method and device, equipment, a medium and a product, and the method comprises the steps that according to color features in a color grid model M, a double-color material transition process color mixing model GMap corresponding to different colors is established; establishing a color voxel model A of the color mesh model for the given color mesh model M; according to the color voxel model A and the color grid model M, a color filling path and a conventional filling path in each slice layer are obtained through calculation; according to the established double-color wire transition process color mixing model GMap, color mixing path mapping processing of a color filling path and a conventional filling path in each layer is completed; and the mapped color filling paths in all the layers and the conventional filling paths are converted into a GCode printing instruction file, and single-nozzle double-color wire mixed color printing is completed. By means of the innovative color mixing model and voxelization treatment, high-quality color mixing printing of the single-nozzle 3D printer is achieved, and the printing precision and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of 3D printing technology, and in particular to a color 3D printing data processing method, device, equipment, medium and product. Background Art

[0002] In 3D printing technology, FDM technology has been widely used in many fields, such as automobile manufacturing, design, medical, education and culture, with its relatively simple process principle, low hardware construction cost, convenient equipment operation and easy maintenance. It has become a typical representative of material extrusion technology. Its working process mainly uses polymer thermoplastic filaments such as PLA (Poly Lactic Acid) and ABS (Arcylonitrile Butadiene Styrene) as printing consumables. The filament enters the print head under the action of the wire feeding module, and the heating module inside the print head heats the filament to a molten state, completing the plasticization process from solid to molten state inside the nozzle. Subsequently, the molten material is extruded through the nozzle structure at the end of the nozzle, and quickly changes from molten state to solid state under the cooling effect of the fan. In this process, in conjunction with the motion system of the FDM equipment, according to the pre-planned printing path, layer-by-layer processing and manufacturing from point to line, from line to surface, and then from surface to body are realized, and finally the molding and printing of the 3D digital model is completed.

[0003] However, FDM technology faces many challenges in color 3D printing. Currently, there are several technical means to achieve color FDM printing, but they all have certain limitations:

[0004] 1) Post-printing coloring method: For example, the method using water transfer disclosed by Zhejiang University (YZ, YT, KZ Coloring 3D Printed Surfaces by Thermoforming. IEEE Transactions on Visualization and Computer Graphics, 2017, 23(8): 1924-1935.) is to perform post-processing coloring after printing a 3D model with a single color. Its limitation is that it can only achieve a good coloring effect on G-0 surface models. For 3D models with self-contained structural features or opening features with holes, it cannot effectively solve their coloring problems, which greatly limits its application in color printing of complex models.

[0005] 2) Multi-nozzle structure printing method: such as the multi-nozzle switching 3D printer, nozzle grabbing docking and separation method and control method disclosed in patent 202410477504.6, the multi-nozzle fully automatic 3D printer based on FDM technology disclosed in patent 201621433243.5, and the multi-nozzle different-material automatic rotation replacement special engineering plastic additive manufacturing and method disclosed in patent 202311574437.1. The main feature of this type of method is that each nozzle is responsible for printing a color of filament alone, and there are differences in its mechanical structure. There are mainly two forms: one is to use a replaceable nozzle method, which is similar to the automatic tool change principle in the CNC system. When a specific color filament needs to be printed, the nozzle structure of the corresponding color is replaced for printing; the other is to fix the multiple nozzles together and position the printing through the motion control system. When a specific color filament needs to be printed, the motion control system positions the corresponding nozzle nozzle to the position to be printed. However, this type of method has obvious defects. First, the types of printable colors are limited by the number of nozzles, and only limited color matching printing can be achieved, but mixed color printing of multi-color filaments cannot be achieved, which makes it difficult to meet printing needs with high requirements for color richness. Secondly, the printing efficiency is low. Since the printing nozzle only has the heating function when it is in the working state, it takes a long time to heat up from the non-working state to the working state, and the replacement of the nozzle requires the coordination of a complex mechanical structure, which undoubtedly increases the time cost of the printing process. Finally, the equipment structure is complex and large, and the automatic loading function of multiple nozzles needs to be considered, resulting in a high maintenance threshold for the equipment, which is not conducive to its promotion and application in the consumer-grade FDM market, and its application scope is greatly limited.

[0006] 3) Printing method with alternating supply of multi-color filaments in a single nozzle structure: For example, the 3D printing wire changing device disclosed in patent 202110033124.X, through a structure including multi-color printing wires, a wire changing module and a pushing module, uses a cutting unit, a heat connection unit and other coordinated configurations to achieve the cutting of the current printing color wire and the melt splicing with the wire to be printed, and the wire is retracted and transported by the pushing module. The single nozzle multi-material FDM 3D printing nozzle structure disclosed in patent 202023135341.X, with the help of the coordinated cooperation of modules such as the feeding unit, the outer shell, the heating structure and the extrusion structure, realizes the free switching printing of multi-color filaments on a single nozzle structure. Although this type of technology has little change to the structure of the existing single nozzle FDM equipment, it only needs to add a wire changing structure that supports multi-color filaments, but it also has a key problem, that is, it can only achieve color matching printing of multi-color filaments, and cannot support mixed color 3D printing. In the actual filament replacement process, in order to prevent the molten material of the previous color from "contaminating" the subsequent color matching printing process, it is necessary to "flush" the previous color material remaining in the nozzle with the replaced color filament to ensure the purity of the extruded color. However, this process will cause some impure color filaments to be extruded and discarded in the waste area of ​​the tray, which not only causes material waste, but also affects the efficiency and quality of printing to a certain extent.

[0007] In summary, the existing color FDM printing technology has shortcomings in achieving mixed color printing and cannot meet the market demand for high-quality, high-efficiency, and low-cost color 3D printing. Summary of the invention

[0008] The main purpose of the present application is to provide a color 3D printing data processing method, device, equipment, medium and product, aiming to solve the problem that the existing color FDM printing can only realize patchwork color printing but cannot realize mixed color printing.

[0009] To achieve the above objectives, this application provides the following solutions:

[0010] In a first aspect, the present application provides a color 3D printing data processing method, comprising the following steps:

[0011] S1. According to the color features in the color grid model M, a color mixing model GMap corresponding to the transition process of the two-color material with different colors is established;

[0012] S2. For a given color grid model M, a color voxel model A of the color grid model is established;

[0013] S3, calculating a color filling path and a regular filling path in each slice layer according to the color voxel model A and the color grid model M;

[0014] S4, according to the two-color silk material transition process mixing color model GMap established in step S1, completing the mixing color path mapping processing of the color filling path and the conventional filling path in each layer;

[0015] S5. Convert the mapped color filling paths and regular filling paths in all layers into GCode printing command files to complete single-nozzle two-color filament mixed color printing.

[0016] Optionally, the specific operation steps of step S1 are as follows:

[0017] S1.1. Select two different colored wires as experimental objects and mark them as color C1 to color C2 respectively;

[0018] S1.2, printing the filaments from color C1 to color C2 alternately through a single nozzle print head, and recording the color transition process after mixed color printing in the solid-liquid coexistence area inside the single nozzle;

[0019] S1.3, analyzing the color change rules during the color transition process, and establishing a linear proportional color mixing model relationship from color C1 to color C2;

[0020] S1.4. According to the experimental data, determine the color scale value R in the color transition process, the path distance corresponding to each color scale, and the mixing factor q of each color scale, where 0≤q≤1, and the change of q changes according to the proportion of the color scale value;

[0021] S1.5, during the transition from color C1 to color C2, the color values ​​corresponding to each color range are calculated according to the following formula:

[0022] Color i =C1*q+C2*(1-q)

[0023] Among them, Color i Represents the color value of the i-th color scale interval;

[0024] S1.6. Integrate the above experimental data and calculation results to establish the color mixing model GMap of the two-color wire transition process:

[0025] GMap(C1, C2, R) = k*m

[0026] The model represents the number k of printing paths and the total length mk covered in the transition process of mixed color printing from color C1 to color C2, and is used to quantify the relationship between the color mixing result and the color mixing distance.

[0027] Optionally, the specific operation steps of step S2 are as follows:

[0028] S2.1. Establish a spatial voxel model corresponding to the color grid model M:

[0029] Taking the diameter of the FDM printing nozzle as the side length of the voxel unit in the spatial voxel model, establishing the spatial voxel model according to the axis-aligned bounding box corresponding to the color grid model M, wherein the spatial voxel model completely surrounds the color grid model M;

[0030] S2.2. Determine the color information of the voxel unit in the spatial voxel model to establish a color voxel model A:

[0031] The position of the voxel unit in the three-dimensional space is determined by the coordinates P of the center point of the voxel unit, and the voxel units in the voxel model are divided into color voxel units that intersect with the surface of the color grid model and empty voxel grid units that do not intersect; the color information of the color voxel units is calculated, and the color voxel model A is composed of all the color voxel units.

[0032] Optionally, in step S2.1, for a color voxel unit, the color information thereof is calculated as follows:

[0033] Assume that the color voxel unit is a, the local surface patch of color texture of the color network model it surrounds is Ta, the center point of the voxel unit is p, the projection point of p to Ta is p', the distance from p to p' is h, and any point on Ta is (u, v), the color information of this point is Wcolor, then the color information Pcolor corresponding to the center point of the color voxel unit satisfies the following formula:

[0034]

[0035] Wherein, N is the number of points on Ta whose color information is Wcolor.

[0036] Optionally, the specific operation steps of step S3 are as follows:

[0037] S3.1. Calculate the height position of each slice:

[0038] G i =l*i-0.5l

[0039] Among them, G i is the slice height of the i-th layer, l is the slice thickness, and 1≤i≤Imax, Imax is the maximum integer multiple of the model height and the layer thickness;

[0040] S3.2. Calculate the filling path of each slice:

[0041] S3.2.1. Obtain a set of color voxel units S that intersect with the current slice height from the color voxel model A, and obtain a slice contour C that intersects with the current slice height from the color texture local patch in the color grid model M;

[0042] S3.2.2. According to the color scale value of the two-color wire material, the color voxel units with similar colors are classified and merged, and the part inside the slice contour of the current model is retained as the valid sub-region after the merger, and the color sub-regions S1, S2, ..., S3 inside the slice contour are obtained. n , n is the number of color sub-regions;

[0043] S3.2.3. For each color sub-region, a conventional path filling algorithm is used to perform filling processing to obtain a filling outline of each color sub-region. These filling paths containing color information are color filling paths;

[0044] S3.2.4. According to the model slice contour area of ​​the current layer, after excluding each colored sub-area, the remaining part is the remaining area of ​​the current layer. According to the contour line of the remaining area, a conventional path filling algorithm is used to fill it to obtain the filling path of the remaining area. This path does not consider color information and is called a conventional filling path.

[0045] Optionally, the specific operation steps of step S4 are as follows:

[0046] S4.1. For the current color filling path PathC[i], according to the color information Color[i] of the corresponding color sub-region, determine the mixed color printing path length L0 of the color level in the GMap model corresponding to the color information Color[i], and calculate the number of two-color filament color mixing times j:

[0047]

[0048] Where LengthC[i] is the length of the current color-filled path PathC[i];

[0049] S4.2, fill the mixed color scale length L0 matching the color information Color[i] in the printing path corresponding to PathC[i] with a length of LengthC[i] in sequence;

[0050] S4.3. Calculate the length of the printing transition path that is not effectively utilized during the transition process of the current area:

[0051] CurRegionWastePath=k*m*j-LengthC[i]

[0052] If CurRegionWastePath≤LengthN, that is, the length of the printing transition path that cannot be effectively utilized is less than the total length of the regular filling path inside the remaining area, CurRegionWastePath is used as the regular filling path to implement the regular filling path inside the remaining area, and the length of the regular filling path is updated to LengthN′=LengthN-CurRegionWastePath;

[0053] If CurRegionWastePath>LengthN, after the current transition path CurRegionWastePath is filled with the regular filling path, the remaining LengthN-CurRegionWastePath does not need to be filled in any area of ​​the current layer of the model, and can be directly printed as a useless printing path in the temporary material accumulation area of ​​the FDM tray.

[0054] In a second aspect, the present application provides a color 3D printing data processing device, comprising:

[0055] The model analysis module is used to establish a color mixing model GMap corresponding to the transition process of two-color materials of different colors according to the color characteristics in the mixed color grid model M;

[0056] A voxel model building module is used to build a color voxel model A of a color grid model for a given mixed color grid model M;

[0057] A path calculation module, used for calculating a color filling path and a regular filling path in each slice layer according to the color voxel model A and the grid model M;

[0058] A path mapping module is used to complete the color mixing path mapping processing of the color filling path and the conventional filling path in each layer according to the established two-color wire transition process color mixing model GMap;

[0059] The instruction generation module is used to convert the mapped color filling paths and regular filling paths in all layers into GCode printing instruction files to complete single-nozzle two-color filament mixed color printing.

[0060] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any one of the above-described color 3D printing data processing methods.

[0061] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the above-mentioned color 3D printing data processing methods.

[0062] In a fifth aspect, the present application provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, the steps of any one of the above-mentioned color 3D printing data processing methods are implemented.

[0063] Through the above technical scheme, the beneficial effects of the present invention are as follows: the present application is based on a single nozzle color 3D printing data processing method of a two-color wire transition process mixed color model, which solves the problem that only color matching printing can be achieved in existing color FDM printing but mixed color printing cannot be achieved. The present invention proposes for the first time to utilize the solid-liquid transition zone characteristics in the nozzle structure to achieve uniform mixed printing of the alternating process of two wires of different colors, and establishes a two-color wire transition process mixed color model GMap of any color. By establishing a color voxel model A for color filling path generation and conventional path generation, the complex calculation process of color texture bias in traditional color 3D printing is avoided, and the color 3D printing of a single nozzle is completed to achieve mixed color printing. Through the method of the present invention, color 3D printing can support mixed color printing effects, and mixed color printing of any multiple colors can be achieved. Compared with the existing FDM color matching printing technology, the color model printed by the method of the present invention has a high degree of fineness, a simple hardware structure, simple operation and easier maintenance, and has a broader promotion and application scenario in the application of color FDM technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and the embodiments in the drawings do not constitute any limitation to the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0065] Figure 1 A flowchart of a color 3D printing data processing method provided in an embodiment of the present application;

[0066] Figure 2 A schematic diagram of the experimental results of mixed color transition printing of different color filaments provided in an embodiment of the present application;

[0067] Figure 3 A schematic diagram of a transition process model for dual-filament mixed-color printing of any different colors provided in an embodiment of the present application;

[0068] Figure 4 A schematic diagram of color scale quantization and path length of a transition process model provided in an embodiment of the present application;

[0069] Figure 5A schematic diagram of a color voxel unit provided in an embodiment of the present application;

[0070] Figure 6 A schematic diagram of color information calculation of a color voxel unit provided in an embodiment of the present application;

[0071] Figure 7 A schematic diagram of the positional relationship between a slice profile and a color voxel unit at a specific slice height provided in an embodiment of the present application;

[0072] Figure 8 A schematic diagram of merging color voxel units and filling paths in the current layer provided by an embodiment of the present application;

[0073] Fig. 9 A schematic diagram of a conventional filling path for the remaining area of ​​the current layer provided in an embodiment of the present application;

[0074] Fig.10 A schematic diagram of the functional modules of a color 3D printing data processing device provided in one embodiment of the present application;

[0075] Fig.11 A schematic diagram of the structure of a computer device provided in one embodiment of the present application.

[0076] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0077] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0078] The above and other technical contents, features and effects of the present invention are described in detail below with reference to the attached Figure 1-11 The detailed description of the embodiments will clearly show that the structural contents mentioned in the following embodiments are all based on the drawings in the specification.

[0079] Exemplary embodiments of the present invention will be described below with reference to the accompanying drawings.

[0080] The main solutions of the embodiments of this application are:

[0081] like Figure 1 As shown, the color 3D printing data processing method includes the following steps:

[0082] S1. According to the color features in the color grid model M, a color mixing model GMap corresponding to the transition process of the two-color material with different colors is established;

[0083] S2. For a given color grid model M, a color voxel model A of the color grid model is established;

[0084] S3, calculating a color filling path and a regular filling path in each slice layer according to the color voxel model A and the color grid model M;

[0085] S4, according to the two-color silk material transition process mixing color model GMap established in step S1, completing the mixing color path mapping processing of the color filling path and the conventional filling path in each layer;

[0086] S5. Convert the mapped color filling paths and regular filling paths in all layers into GCode printing command files to complete single-nozzle two-color filament mixed color printing.

[0087] In the above, the specific operation steps of step S1 are as follows:

[0088] S1.1. Select two different colored wires as experimental objects and mark them as color C1 to color C2 respectively;

[0089] S1.2, printing the filaments from color C1 to color C2 alternately through a single nozzle print head, and recording the color transition process after mixed color printing in the solid-liquid coexistence area inside the single nozzle;

[0090] S1.3, analyzing the color change rules during the color transition process, and establishing a linear proportional color mixing model relationship from color C1 to color C2;

[0091] S1.4. According to the experimental data, determine the color scale value R in the color transition process, the path distance corresponding to each color scale, and the mixing factor q of each color scale, where 0≤q≤1, and the change of q changes according to the proportion of the color scale value;

[0092] S1.5, during the transition from color C1 to color C2, the color values ​​corresponding to each color range are calculated according to the following formula:

[0093] Color i =C1*q+C2*(1-q)

[0094] Among them, Color i Represents the color value of the i-th color scale interval;

[0095] S1.6. Integrate the above experimental data and calculation results to establish the color mixing model GMap of the two-color wire transition process:

[0096] GMap(C1, C2, R) = k*m

[0097] The model represents the number k of printing paths and the total length mk covered in the transition process of mixed color printing from color C1 to color C2, and is used to quantify the relationship between the color mixing result and the color mixing distance.

[0098] In the specific implementation process, Figure 2 As shown in the figure, (a), (b) and (c) experiments prove that there is a linear color transition zone in the printing transition process from dark color filament to light color filament; (d), (e) and (f) experiments prove that there is also a linear color transition zone in the printing transition process of two different color filaments. Therefore, the color mixing model GMap of the transition process of two-color filaments of arbitrary different colors is established, as shown in Figure 3 As shown, the model consists of a series of parallel printing paths, the width of each printing path is t, and the length of a single printing path is m, which is also called the width of the GMap model. The height of the printing path in the GMap model can be configured to be consistent with the layer thickness of the actual printing process. The color transition start position P1 and the color transition end position P2 can be marked in the GMap model, and the number of transition process paths covered by the above two transition start and end positions can be further calculated as k.

[0099] In the transition process from color C1 to color C2, the color value information can be calculated according to the RGB color model value. Assuming that the quantized color level R of the color transition process model from color C1 wire to color C2 wire is 9, the color calculation of each color level transition interval is as follows: Figure 4 shown.

[0100] Through the above transition process printing experiment, the establishment of the dual-color wire transition process color mixing model GMap of any color is completed, so as to obtain the mapping relationship between the dual-wire mixed printing path interval and the corresponding dual-color mixed color.

[0101] In the above, further, the specific operation steps of step S2 are as follows:

[0102] S2.1. Establish a spatial voxel model corresponding to the color grid model M:

[0103] Taking the diameter of the FDM printing nozzle as the side length of the voxel unit in the spatial voxel model, establishing the spatial voxel model according to the axis-aligned bounding box corresponding to the color grid model M, wherein the spatial voxel model completely surrounds the color grid model M;

[0104] S2.2. Determine the color information of the voxel unit in the spatial voxel model to establish a color voxel model A:

[0105] The position of the voxel unit in the three-dimensional space is determined by the coordinates P of the center point of the voxel unit, and the voxel units in the voxel model are divided into color voxel units that intersect with the surface of the color grid model and empty voxel grid units that do not intersect; the color information of the color voxel units is calculated, and the color voxel model A is composed of all the color voxel units.

[0106] In the specific implementation process, considering the characteristics of the color FDM process, under the condition of a certain layer thickness, the fineness of the color model printing depends on the size of its nozzle. In general, the diameter of the FDM nozzle is 0.4mm, which can be used as the minimum resolution of color subdivision of color FDM printing, that is, the side length s = 0.4mm of the spatial voxel model. Since the position of the voxel unit in the voxel model A is either outside the color grid model M, or inside the color model grid M, or intersecting with the surface of the color grid model M. Then the voxel unit intersecting with the surface of the color grid model M is defined as a color voxel unit, such as Figure 5 As shown, the color information inside needs to be further calculated; on the contrary, the voxel grid units that do not intersect with the surface of the color grid model M are defined as empty voxel grid units, and the color information of the corresponding voxel units does not need to be calculated.

[0107] In combination with the above embodiment, in step S2.1, for a color voxel unit, the color information thereof is calculated as follows:

[0108] Assume that the color voxel unit is a, and the local color texture patch on the surface of the color network model it surrounds is Ta, such as Figure 6 As shown, the center point of the voxel unit is p, the projection point of p to Ta is p', the distance from p to p' is h, and any point on Ta is (u, v). The color information of this point is Wcolor. Then the color information Pcolor corresponding to the center point of the color voxel unit satisfies the following formula:

[0109]

[0110] Wherein, N is the number of points on Ta whose color information is Wcolor.

[0111] Through the above steps, after the color information corresponding to all color voxel units is calculated, the voxel model composed of these color voxel grid units is called "color voxel model A".

[0112] In the above, further, the specific operation steps of step S3 are as follows:

[0113] S3.1. Calculate the height position of each slice:

[0114] G i =l*i-0.5l

[0115] Among them, G iis the slice height of the i-th layer, l is the slice thickness, and 1≤i≤Imax, Imax is the maximum integer multiple of the model height and the layer thickness;

[0116] S3.2. Calculate the filling path of each slice:

[0117] S3.2.1. Obtain a set S of color voxel units that intersect with the current slice height from the color voxel model A, and obtain a slice contour C that intersects with the current slice height from the color texture local surface in the color grid model M. Obviously, the slice contour C must be enclosed in the set S, such as Figure 7 As shown;

[0118] S3.2.2. According to the color scale value of the two-color wire material, the color voxel units with similar colors are classified and merged, and the part inside the slice contour of the current model is retained as the valid sub-region after the merger, and the color sub-regions S1, S2, ..., S3 inside the slice contour are obtained. n , where n is the number of colored sub-regions, such as Figure 8 As shown;

[0119] S3.2.3. For each color sub-region, a conventional path filling algorithm is used to fill it to obtain the filling outline of each color sub-region. These filling paths containing color information are color filling paths, such as Figure 8 As shown;

[0120] S3.2.4, according to the model slice contour area of ​​the current layer, after excluding each colored sub-area, the remaining part is the remaining area of ​​the current layer. According to the contour line of the remaining area, the conventional path filling algorithm is used to fill it to obtain the filling path of the remaining area. This path does not consider color information and is called the conventional filling path, such as Fig. 9 shown.

[0121] In the above, further, the specific operation steps of step S4 are as follows:

[0122] S4.1. For the current color filling path PathC[i], according to the color information Color[i] of the corresponding color sub-region, determine the mixed color printing path length L0 of the color level in the GMap model corresponding to the color information Color[i], and calculate the number of two-color filament color mixing times j:

[0123]

[0124] Where LengthC[i] is the length of the current color-filled path PathC[i];

[0125] S4.2, fill the mixed color scale length L0 matching the color information Color[i] in the printing path corresponding to PathC[i] with a length of LengthC[i] in sequence;

[0126] S4.3. Calculate the length of the printing transition path that is not effectively utilized during the transition process of the current area:

[0127] CurRegionWastePath=k*m*j-LengthC[i]

[0128] If CurRegionWastePath≤LengthN, that is, the length of the printing transition path that cannot be effectively utilized is less than the total length of the regular filling path inside the remaining area, CurRegionWastePath is used as the regular filling path to implement the regular filling path inside the remaining area, and the length of the regular filling path is updated to LengthN′=LengthN-CurRegionWastePath;

[0129] If CurRegionWastePath>LengthN, after the current transition path CurRegionWastePath is filled with the regular filling path, the remaining LengthN-CurRegionWastePath does not need to be filled in any area of ​​the current layer of the model, and can be directly printed as a useless printing path in the temporary material accumulation area of ​​the FDM tray.

[0130] Through the above-mentioned single-nozzle color 3D printing data processing method based on the two-color wire transition process mixing model, the method solves the problem that only color matching printing can be achieved in the existing color FDM printing, but mixed color printing cannot be achieved. The method of the present invention proposes for the first time to use the solid-liquid transition zone characteristics in the nozzle structure to achieve uniform mixed printing of the alternating process of two wires of different colors, and establishes a two-color wire transition process mixing model GMap of any color. By establishing a color voxel model A for color filling path generation and conventional path generation, the complex calculation process of color texture bias in traditional color 3D printing is avoided, and the color 3D printing of a single nozzle is completed to achieve mixed color printing. Through the method of the present invention, color 3D printing can support mixed color printing effects, and mixed color printing of any multiple colors can be achieved. Compared with the existing FDM color matching printing technology, the color model printed by the method of the present invention has a high degree of fineness, a simple hardware structure, simple operation and easier maintenance, and has a broader promotion and application scenario in the application of color FDM technology.

[0131] Based on the same inventive concept, the embodiment of the present application also provides a color 3D printing data processing device for implementing the color 3D printing data processing method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more color 3D printing data processing device embodiments provided below can refer to the limitations of the color 3D printing data processing method above, and will not be repeated here.

[0132] In an exemplary embodiment, Fig.10 A color 3D printing data processing device is provided, and the color 3D printing data processing device includes:

[0133] The model analysis module is used to establish a color mixing model GMap corresponding to the transition process of two-color materials of different colors according to the color characteristics in the mixed color grid model M;

[0134] A voxel model building module is used to build a color voxel model A of a color grid model for a given mixed color grid model M;

[0135] A path calculation module, used for calculating a color filling path and a regular filling path in each slice layer according to the color voxel model A and the grid model M;

[0136] A path mapping module is used to complete the color mixing path mapping processing of the color filling path and the conventional filling path in each layer according to the established two-color wire transition process color mixing model GMap;

[0137] The instruction generation module is used to convert the mapped color filling paths and regular filling paths in all layers into GCode printing instruction files to complete single-nozzle two-color filament mixed color printing.

[0138] In the above, the two-color material transition process mixing model GMap established by the model analysis module can accurately describe the color transition process after different color filaments are mixed inside a single nozzle. This enables the device to process mixed color grid models and generate a printing path with a gradient color effect, thereby achieving a mixed color printing effect with a smooth transition from one color to another on a single nozzle 3D printer, breaking through the limitation of traditional single nozzle FDM printers that can only perform color matching printing, and greatly enriching the expressiveness and application scenarios of color 3D printing.

[0139] In the above, the voxel model construction module divides the mixed color grid model into a color voxel model A, and accurately calculates the color information of each voxel unit in units of voxels. This voxel-based processing method enables the device to capture subtle color changes and texture details on the model surface, and the generated color filling path is more refined. The printed color model has a natural and delicate color transition and stronger detail expression, which meets the application needs with high requirements for printing quality.

[0140] In the above, the path calculation module directly calculates the color filling path and the regular filling path of each slice layer according to the color voxel model A and the mesh model M, without the need for complex color texture bias processing. This simplified data processing process reduces the amount of calculation and data processing time, improves the efficiency of color 3D printing data processing, makes the conversion from model data to printing instructions faster, speeds up the overall printing preparation process, and improves the user experience.

[0141] In summary, the functions of each module of the device are clear and the division of labor is reasonable. It can be integrated into the existing 3D printing software platform as an independent software system or plug-in. It only requires minor changes to the hardware structure of the existing single-nozzle FDM equipment. It can realize the mixed color printing function by only performing data processing at the software level, reducing the cost of technology upgrades and equipment modifications. At the same time, the modular structure also makes the maintenance of the device more convenient. When a module has a problem, it can be quickly located and repaired or updated, improving the stability and reliability of the system.

[0142] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store color 3D printing data processing data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a color 3D printing data processing method is implemented.

[0143] Those skilled in the art will understand that Fig.11The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0144] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0145] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0146] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0147] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0148] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0149] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0150] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0151] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A color 3D printing data processing method, characterized in that: The steps include: S1. According to the color features in the color grid model M, a color mixing model GMap corresponding to the transition process of the two-color material with different colors is established; S2. For a given color grid model M, a color voxel model A of the color grid model is established; S3, calculating a color filling path and a regular filling path in each slice layer according to the color voxel model A and the color grid model M; S4, according to the two-color silk material transition process mixing color model GMap established in step S1, completing the mixing color path mapping processing of the color filling path and the conventional filling path in each layer; S5. Convert the mapped color filling paths and regular filling paths in all layers into GCode printing command files to complete single-nozzle two-color filament mixed color printing.

2. The color 3D printing data processing method according to claim 1, characterized in that: The specific operation steps of step S1 are as follows: S1.

1. Select two different colored wires as experimental objects and mark them as color C1 to color C2 respectively; S1.2, printing the filaments from color C1 to color C2 alternately through a single nozzle print head, and recording the color transition process after mixed color printing in the solid-liquid coexistence area inside the single nozzle; S1.3, analyzing the color change rules during the color transition process, and establishing a linear proportional color mixing model relationship from color C1 to color C2; S1.

4. According to the experimental data, determine the color scale value R in the color transition process, the path distance corresponding to each color scale, and the mixing factor q of each color scale, where 0≤q≤1, and the change of q changes according to the proportion of the color scale value; S1.5, during the transition from color C1 to color C2, the color values ​​corresponding to each color range are calculated according to the following formula: Color i =C1*q+C2*(1-q) Among them, Color i Represents the color value of the i-th color scale interval; S1.

6. Integrate the above experimental data and calculation results to establish the color mixing model GMap of the two-color wire transition process: GMap(C1, C2, R) = k*m The model represents the number k of printing paths and the total length mk covered in the mixed color printing transition process from color C1 to color C2, and is used to quantify the relationship between the color mixing result and the color mixing distance.

3. The color 3D printing data processing method according to claim 2, characterized in that: The specific operation steps of step S2 are as follows: S2.

1. Establish a spatial voxel model corresponding to the color grid model M: Taking the diameter of the FDM printing nozzle as the side length of the voxel unit in the spatial voxel model, establishing the spatial voxel model according to the axis-aligned bounding box corresponding to the color grid model M, wherein the spatial voxel model completely surrounds the color grid model M; S2.

2. Determine the color information of the voxel unit in the spatial voxel model to establish a color voxel model A: The position of the voxel unit in the three-dimensional space is determined by the coordinates P of the center point of the voxel unit, and the voxel units in the voxel model are divided into color voxel units that intersect with the surface of the color grid model and empty voxel grid units that do not intersect; the color information of the color voxel units is calculated, and the color voxel model A is composed of all the color voxel units.

4. The color 3D printing data processing method according to claim 3, characterized in that: In step S2.1, for a color voxel unit, its color information is calculated as follows: Assume that the color voxel unit is a, the local surface patch of color texture of the color network model it surrounds is Ta, the center point of the voxel unit is p, the projection point of p to Ta is p', the distance from p to p' is h, and any point on Ta is (u, v), the color information of this point is Wcolor, then the color information Pcolor corresponding to the center point of the color voxel unit satisfies the following formula: Wherein, N is the number of points on Ta whose color information is Wcolor.

5. The color 3D printing data processing method according to claim 4, characterized in that: The specific operation steps of step S3 are as follows: S3.

1. Calculate the height position of each slice: G i =l*i-0.5l Among them, G i is the slice height of the i-th layer, l is the slice thickness, and 1≤i≤Imax, Imax is the maximum integer multiple of the model height and the layer thickness; S3.

2. Calculate the filling path of each slice: S3.2.

1. Obtain a set of color voxel units S that intersect with the current slice height from the color voxel model A, and obtain a slice contour C that intersects with the current slice height from the color texture local patch in the color grid model M; S3.2.

2. According to the color scale value of the two-color wire material, the color voxel units with similar colors are classified and merged, and the part inside the slice contour of the current model is retained as the valid sub-region after the merger, and the color sub-regions S1, S2, ..., S3 inside the slice contour are obtained. n , n is the number of color sub-regions; S3.2.

3. For each color sub-region, a conventional path filling algorithm is used to perform filling processing to obtain a filling outline of each color sub-region. These filling paths containing color information are color filling paths; S3.2.

4. According to the model slice contour area of ​​the current layer, after excluding each colored sub-area, the remaining part is the remaining area of ​​the current layer. According to the contour line of the remaining area, a conventional path filling algorithm is used to fill it to obtain the filling path of the remaining area. This path does not consider color information and is called a conventional filling path.

6. The color 3D printing data processing method according to claim 5, characterized in that: The specific operation steps of step S4 are as follows: S4.

1. For the current color filling path PathC[i], according to the color information Color[i] of the corresponding color sub-region, determine the mixed color printing path length L0 of the color level in the GMap model corresponding to the color information Color[i], and calculate the number of two-color filament color mixing times j: Where LengthC[i] is the length of the current color-filled path PathC[i]; S4.2, fill the mixed color scale length L0 matching the color information Color[i] in the printing path corresponding to PathC[i] with a length of LengthC[i] in sequence; S4.

3. Calculate the length of the printing transition path that is not effectively utilized during the transition process of the current area: CurRegionWastePath=k*m*j-LengthC[i] If CurRegionWastePath≤LengthN, that is, the length of the printing transition path that cannot be effectively utilized is less than the total length of the regular filling path inside the remaining area, CurRegionWastePath is used as the regular filling path to implement the regular filling path inside the remaining area, and the length of the regular filling path is updated to LengthN′=LengthN-CurRegionWastePath; If CurRegionWastePath>LengthN, after the current transition path CurRegionWastePath is filled with the regular filling path, the remaining LengthN-CurRegionWastePath does not need to be filled in any area of ​​the current layer of the model, and can be directly printed as a useless printing path in the temporary material accumulation area of ​​the FDM tray.

7. A color 3D printing data processing device, characterized in that: include: The model analysis module is used to establish a color mixing model GMap corresponding to the transition process of two-color materials of different colors according to the color characteristics in the mixed color grid model M; A voxel model building module is used to build a color voxel model A of a color grid model for a given mixed color grid model M; A path calculation module, used for calculating a color filling path and a regular filling path in each slice layer according to the color voxel model A and the grid model M; A path mapping module is used to complete the color mixing path mapping processing of the color filling path and the conventional filling path in each layer according to the established two-color wire transition process color mixing model GMap; Instruction generation module, used to convert the mapped color fill paths and regular fill paths in all layers into GCod e Print the command file to complete single-nozzle two-color filament mixed color printing.

8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the color 3D printing data processing method described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the color 3D printing data processing method described in any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the color 3D printing data processing method described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • 3D printing wire changing device

    CN112873847A

  • Multi-nozzle special engineering plastic additive manufacturing device and method capable of automatically rotating and replacing different materials

    CN117774304A

  • Multi-nozzle switching 3D printer, nozzle grabbing, butting and separating method and control method

    CN118596553A

  • Full -automatic 3D printer of many shower nozzles based on FDM technique

    CN206277660U

  • Single-nozzle multi-material FDM type 3D printing nozzle

    CN213972595U

Cited By

  • 3D printing method and system for achieving side face color mixing based on interlayer grating effect

    CN121608391A