Slicing method of three-dimensional color model and related apparatus and device

By using a slicing method for a 3D color model, color contour information and support information are generated. Color contour line thickening processing and interpolation algorithms are then performed, solving the problem that monochrome printing cannot meet the color expression requirements in existing technologies and achieving high-quality full-color printing effects.

CN118163360BActive Publication Date: 2026-08-04SHENZHEN ANYCUBIC TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN ANYCUBIC TECH CO LTD
Filing Date
2023-12-29
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

Existing 3D printing technology is mainly geared towards monochrome products and cannot meet the market's demand for color expression, especially in fields such as product design, architectural design, mechanical manufacturing, and biomedicine, where it is difficult to achieve full-color printing to improve the printing quality and detail of models.

Method used

A method for slicing a 3D color model is provided. By obtaining color contour information and support information, slice layer images are generated. This includes thickening the color contour lines and setting the support layer to ensure the matching of color contour information and support information. A preset interpolation algorithm is used for sampling interpolation to generate high-quality slice layer images.

Benefits of technology

It improves the printing quality of 3D color models, making them more realistic, detailed, and with stronger color expression. It also avoids surface roughness and flaws during the printing process, thus improving printing accuracy and visualization effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118163360B_ABST
    Figure CN118163360B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a slicing method of a three-dimensional color model, a slicing device of the three-dimensional color model and a computer readable storage medium, which are used for slicing the three-dimensional color model while improving the printing quality of the three-dimensional color model. The method comprises the following steps: obtaining color contour information of a slice of the three-dimensional color model, obtaining support information of the slice of the three-dimensional color model, and generating a slice layer picture of the slice according to the color contour information of the slice and the support information of the slice.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of slicing three-dimensional color models, and more specifically, to a method for slicing three-dimensional color models, a device for slicing three-dimensional color models, and a computer-readable storage medium. Background Technology

[0002] With the development of 3D printing technology, more and more fields require slicing 3D models. For example, it is widely used in the medical field; doctors can slice 3D images of organs such as the liver and heart to better observe and diagnose conditions. Simultaneously, slicing technology can also be used for design and simulation in other fields, such as engineering and architecture. Therefore, slicing 3D models is necessary.

[0003] Currently, most 3D printing technologies are geared towards monochrome products, and slicing software also focuses on monochrome methods, failing to meet people's demands for color, especially in many fields such as product design, architectural design, mechanical manufacturing, and biomedicine. Products in these fields require color to enhance their expressiveness. How to improve the color expressiveness of products, better showcase the details and appearance of printed models, make models more realistic, improve the printing quality of 3D models, and achieve true full-color printing is a key research focus in the field of 3D printing.

[0004] Therefore, in order to adapt to the changing demands of the market, there is an urgent need for a slicing method for three-dimensional color models. Summary of the Invention

[0005] This application provides a method, apparatus, and device for slicing a three-dimensional color model, as well as a computer-readable storage medium, for slicing a three-dimensional color model while improving the printing quality of the three-dimensional color model.

[0006] In a first aspect, embodiments of this application provide a slicing method for a three-dimensional color model, including:

[0007] Obtain the color contour information of slices from a 3D color model;

[0008] Obtain the support information of the slices of the three-dimensional color model;

[0009] Based on the color contour information and support information of the slice, a slice layer image of the slice is generated.

[0010] Optionally, obtaining the support information of the slices of the three-dimensional color model includes:

[0011] Determine the target area to be supported in the three-dimensional color model; wherein the target area to be supported is composed of areas to be supported.

[0012] The target area to be supported is projected to obtain the geometric coordinate information of the area to be supported on the projection plane; wherein the geometric coordinate information includes the vertex coordinates and / or side length information of the area to be supported.

[0013] Based on the geometric coordinate information of the surface to be supported on the projection plane, a support layer for the slice is generated; wherein the support layer for the slice is the support information of the slice.

[0014] Optionally, determining the target area to be supported in the three-dimensional color model includes:

[0015] Determine the initial area of ​​the three-dimensional color model to be supported;

[0016] The initial area to be supported with the largest supporting surface is taken as the target area to be supported.

[0017] Optionally, obtaining the support information of the slices of the three-dimensional color model includes:

[0018] The color contour information of the slice is projected to obtain the geometric coordinate information of the color contour information of the slice on the projection plane;

[0019] Based on the geometric coordinates of the color contour information of the slice on the projection plane, a support layer for the slice is generated; wherein the support layer for the slice is the support information of the slice.

[0020] Optionally, the setting parameters of the support layer include the support type;

[0021] After generating the support layer for the slice based on the geometric coordinate information of the surface to be supported on the projection plane, the method further includes:

[0022] Set the support type of the support layer of the first slice to solid; wherein the first slice is a slice in which the difference between the number of slice layers and the number of slice layers corresponding to the target area to be supported is less than or equal to a preset difference.

[0023] Set the support type of the support layer of the second slice to hollow; wherein the second slice is a slice in which the difference between the number of slice layers and the number of slice layers corresponding to the target area to be supported is greater than the preset difference.

[0024] Optionally, after obtaining the color contour information of the slices of the three-dimensional color model, the method further includes:

[0025] The color contour information of the slice is thickened to obtain the target color contour information of the slice;

[0026] The step of generating a slice layer image of the slice based on the color contour information and support information of the slice includes:

[0027] Based on the target color contour information and the support information of the slice, a slice layer image of the slice is generated.

[0028] Optionally, the color contour information includes color contour lines;

[0029] The process of thickening the color contour information of the slice to obtain the target color contour information of the slice includes:

[0030] The colored outline of the slice is offset inward to obtain the colored outline after inward offset;

[0031] The color information corresponding to the inwardly offset colored contour line is determined based on the color information corresponding to the colored contour line.

[0032] The region information between the colored contour line and the inwardly offset colored contour line is used as the target colored contour information of the slice.

[0033] Optionally, determining the color information corresponding to the inwardly offset colored contour line based on the color information corresponding to the colored contour line includes:

[0034] The intersection points of the inwardly offset colored contour lines are matched point by point with the intersection points of the colored contour lines;

[0035] For each point corresponding to the target intersection, the color information of the pixel corresponding to the target intersection of the colored contour line is used as the color information of the pixel corresponding to the target intersection of the colored contour line after inward offset.

[0036] For the intersection of the inner-biased colored contour lines, target sampling interpolation is performed between the two intersection points of the intersection lines in the pixel space to obtain the color information of the target pixel of the intersection line, and the color information corresponding to the inner-biased colored contour line is obtained based on the color information of the target pixel of the intersection line.

[0037] Optionally, the color contour information includes color contour lines;

[0038] The process of thickening the color contour information of the slice to obtain the target color contour information of the slice includes:

[0039] The colored outline of the slice is offset outward to obtain the outwardly offset colored outline;

[0040] The color information corresponding to the outwardly offset color contour line is determined based on the color information corresponding to the color contour line.

[0041] The region information between the colored contour line and the outwardly offset colored contour line is used as the target colored contour information of the slice.

[0042] The step of generating a slice layer image of the slice based on the target color contour information and the support information of the slice includes:

[0043] Adjust the support information of the slice based on the target color contour information of the slice;

[0044] Based on the target color contour information of the slice and the adjusted support information of the slice, a slice layer image of the slice is generated.

[0045] Optionally, the step of performing target sampling interpolation between the two intersection points of the intersection line in the pixel space to obtain the color information of the target pixel of the intersection line includes at least one of the following cases:

[0046] According to a preset upsampling interpolation algorithm, upsampling interpolation is performed between the two intersection points of the intersection line in the pixel space at a preset sampling rate to obtain the color information of the target pixel point of the intersection line; wherein the preset upsampling interpolation algorithm includes a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, or a cubic spline interpolation algorithm; or

[0047] According to a preset downsampling interpolation algorithm, downsampling interpolation is performed between the two intersection points of the intersection line in the pixel space at a preset sampling rate to obtain the color information of the target pixel point of the intersection line; wherein the preset downsampling interpolation algorithm includes nearest neighbor extraction algorithm, average extraction algorithm or Gaussian extraction algorithm.

[0048] Optionally, the three-dimensional color model includes a mesh model and a material texture model; and the mesh model includes the geometric coordinate information of each vertex in adjacent polygonal facets; the material texture model includes the texture coordinate information of each vertex;

[0049] The process of obtaining the color contour information of slices of the three-dimensional color model includes:

[0050] The three-dimensional color model is sliced ​​to obtain the intersection lines corresponding to the slices, and the intersection lines are connected to obtain the initial contour lines; wherein the initial contour lines include the geometric coordinate information and texture coordinate information of the intersection points of the intersection lines;

[0051] The texture coordinate information of the intersection line is converted from texture space to pixel space, and target sampling interpolation is performed between the intersection points of the intersection line in the pixel space to obtain the color information of the target pixel of the intersection line. The color contour information of the slice is obtained based on the color information of the target pixel of the intersection line.

[0052] Optionally, the polygonal facet is a triangular facet; the step of slicing the three-dimensional color model to obtain the intersection lines corresponding to the slices, and connecting the intersection lines to obtain the initial contour lines, includes:

[0053] Construct the topological structure of the three-dimensional color model; wherein the topological structure represents the topological relationship between triangular facets and vertices, and the topological relationship between triangular facets and adjacent triangular facets;

[0054] Based on the topological relationships between the triangular facets and vertices and between the triangular facets and adjacent triangular facets, the three-dimensional color model is sliced ​​to obtain the intersection lines corresponding to the slices, and the intersection lines are connected to obtain the initial contour lines.

[0055] Secondly, embodiments of this application provide a slicing device for a three-dimensional color model, comprising:

[0056] The obtaining unit is used to obtain the color contour information of slices of a three-dimensional color model; wherein the color contour information includes the geometric coordinate information and texture coordinate information of the intersection points of the intersection lines;

[0057] The obtaining unit is used to obtain the support information of the slice of the three-dimensional color model;

[0058] The synthesis unit is used to generate a slice layer image of the slice based on the color contour information and support information of the slice.

[0059] Thirdly, embodiments of this application provide a slicing device for a three-dimensional color model, comprising:

[0060] Central processing unit, memory, input / output interfaces, wired or wireless network interfaces, and power supply;

[0061] The memory is either a short-term storage memory or a persistent storage memory;

[0062] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the aforementioned slicing method of the three-dimensional color model.

[0063] Fourthly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the aforementioned slicing method for a three-dimensional color model.

[0064] Fifthly, embodiments of this application provide a computer program product containing instructions that, when run on a computer, cause the computer to execute the aforementioned slicing method for a three-dimensional color model.

[0065] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: They can obtain the color contour information of slices of a 3D color model, obtain the support information of slices of a 3D color model, and generate slice layer images of the slices based on the color contour information and support information of the slices. This provides a method for slicing 3D color models, improving the printing quality of 3D color models. Attached Figure Description

[0066] Figure 1 This is a flowchart illustrating a slicing method for a three-dimensional color model disclosed in an embodiment of this application;

[0067] Figure 2 This is a schematic diagram of a three-dimensional color model disclosed in an embodiment of this application;

[0068] Figure 3 This is a schematic diagram of the mesh and material texture of a color model of a human face disclosed in an embodiment of this application;

[0069] Figure 4 This is a schematic diagram of another three-dimensional color model disclosed in an embodiment of this application;

[0070] Figure 5 This is a schematic diagram of the mesh and material texture of a cube color model disclosed in an embodiment of this application;

[0071] Figure 6 This is a flowchart illustrating a method for establishing a topology structure as disclosed in an embodiment of this application;

[0072] Figure 7 This is a schematic diagram of a model slice disclosed in an embodiment of this application;

[0073] Figure 8 This is a schematic diagram of a monochrome intracavitary voxel generation method disclosed in an embodiment of this application;

[0074] Figure 9 This is a schematic diagram of another monochromatic intracavitary voxel generation method disclosed in an embodiment of this application;

[0075] Figure 10 This is a schematic diagram of another method for generating a monochromatic intracavitary voxel according to an embodiment of this application;

[0076] Figure 11 This is a schematic diagram of a monochrome cavity model voxel generation disclosed in an embodiment of this application;

[0077] Figure 12 This is a schematic diagram of a color outline generation method disclosed in an embodiment of this application;

[0078] Figure 13 This is a schematic diagram illustrating another method for generating colored outlines as disclosed in an embodiment of this application.

[0079] Figure 14 This is a schematic diagram of the color contour information before thickening as disclosed in an embodiment of this application;

[0080] Figure 15 This is a schematic diagram of a color contour information thickened according to an embodiment of this application;

[0081] Figure 16 This is a schematic diagram illustrating an offset thickening process for a colored outline (colored outline information) disclosed in an embodiment of this application;

[0082] Figure 17 This is a schematic diagram of a method for obtaining the color of each vertex after biasing, as disclosed in an embodiment of this application;

[0083] Figure 18 This is a schematic diagram of a target area to be supported, as disclosed in an embodiment of this application.

[0084] Figure 19 This is a schematic diagram of another target area to be supported, as disclosed in an embodiment of this application.

[0085] Figure 20 This is a schematic diagram of the physical object and support body of a simulated printing three-dimensional color model disclosed in an embodiment of this application;

[0086] Figure 21 This is a schematic diagram of the physical object and support of another simulated printed three-dimensional color model disclosed in an embodiment of this application;

[0087] Figure 22 This is a schematic diagram of the physical object and support body of another simulated printing three-dimensional color model disclosed in the embodiments of this application;

[0088] Figure 23 This is a schematic diagram of the physical object and support body of another simulated printing three-dimensional color model disclosed in the embodiments of this application;

[0089] Figure 24 This is a schematic diagram of the structure of a slicing device for a three-dimensional color model disclosed in an embodiment of this application;

[0090] Figure 25 This is a schematic diagram of the structure of another slicing device for a three-dimensional color model disclosed in an embodiment of this application. Detailed Implementation

[0091] This application provides a method for slicing a three-dimensional color model, a slicing device for a three-dimensional color model, and a computer-readable storage medium for slicing a three-dimensional color model while improving the printing quality of the three-dimensional color model.

[0092] Please see Figure 1 , Figure 1 This is a flowchart illustrating a slicing method for a three-dimensional color model disclosed in an embodiment of this application. The method includes:

[0093] 101. Obtain the color contour information of slices of the three-dimensional color model.

[0094] In this embodiment, when slicing the three-dimensional color model, the color contour information of the slices of the three-dimensional color model can be obtained.

[0095] 102. Obtain the supporting information of the slices of the three-dimensional color model.

[0096] It can obtain the supporting information of slices of a three-dimensional color model.

[0097] One method for obtaining the support information of slices in a 3D color model is to first project the color contour information of the slices to obtain the geometric coordinates of the color contour information of the slices on the projection plane, and then generate a support layer for the slices based on the geometric coordinates of the color contour information of the slices on the projection plane. In some embodiments, the projection plane can be the plane where the slices are located; the support layer for the slices is the support information of the slices. It is understood that, in addition to the method for obtaining the support information of slices in a 3D color model described above, other reasonable methods can also be used, and specific methods are not limited here.

[0098] 103. Generate slice layer images of the slices based on the color outline information and support information of the slices.

[0099] After obtaining the color contour information and support information of the slices of the 3D color model, slice layer images can be generated based on the color contour information and support information of the slices, such as generating color bitmaps or images in other formats.

[0100] It's important to understand that the support information for a slice can be a support layer, which can be composed of multiple stacked support sub-layers. The slice layer image can include the slice's color outline information and / or its support information. For example, for some slices, the slice layer images may only include the slice's color outline information, or only include the slice's support information, or may include both the slice's color outline information and its support information; the specifics are not limited here.

[0101] It is worth mentioning that the support information is used to generate the support body, and the color contour information is used to generate the physical object corresponding to the 3D color model. When the 3D printer prints the slice layer image, it can print the color contour information and support information of the slice at the same time. This allows the support body generated by the 3D printer after printing layer by layer to support the physical object corresponding to the 3D color model, so as to ensure the printing stability and quality of the physical object corresponding to the 3D color model.

[0102] In this embodiment, color contour information and support information of slices of a 3D color model can be obtained. Based on the color contour information and support information of the slices, a slice layer image of the slices is generated. This provides a slicing method for 3D color models, improving the printing quality of 3D color models.

[0103] In this application embodiment, there are multiple methods for obtaining the support information of slices of a three-dimensional color model, based on... Figure 1 The slicing method for the three-dimensional color model shown is described below, and one of the methods is described below.

[0104] In this embodiment, when slicing a three-dimensional color model, the color contour information of the slices of the three-dimensional color model can be obtained, wherein the color contour information may include the geometric coordinate information and texture coordinate information of the intersection points of the lines.

[0105] One method for obtaining the color contour information of a slice of a 3D color model is to first slice the 3D color model to obtain the intersection lines corresponding to the slices, and then connect the intersection lines to obtain the initial contour lines. The initial contour lines include the geometric coordinate information and texture coordinate information of the intersection points of the intersection lines. Then, the texture coordinate information of the intersection lines is converted from texture space to pixel space, and target sampling interpolation is performed between the intersection points of the intersection lines in pixel space to obtain the color information of the target pixels of the intersection lines. The color contour information of the slice is obtained based on the color information of the target pixels of the intersection lines. The 3D color model includes a mesh model and a material texture model. The mesh model includes the geometric coordinate information of each vertex in the adjacent polygonal facets, and the material texture model includes the texture coordinate information of each vertex.

[0106] One method for slicing a 3D color model to obtain the intersection lines corresponding to the slices, and connecting the intersection lines to obtain the initial contour lines, is to first construct the topological structure of the 3D color model, where the topological structure represents the topological relationship between triangular facets and vertices, as well as the topological relationship between triangular facets and adjacent triangular facets. Then, based on the topological relationship between triangular facets and vertices and the topological relationship between triangular facets and adjacent triangular facets, the 3D color model is sliced ​​to obtain the intersection lines corresponding to the slices, and the intersection lines are connected to obtain the initial contour lines.

[0107] For details, please refer to Figure 2 , Figure 2 This is a schematic diagram of a three-dimensional color model disclosed in an embodiment of this application. Figure 2 It can be seen that, Figure 2 For a color model of a face, please refer to [link / reference]. Figure 3 , Figure 3 This is a schematic diagram of the mesh and material texture of a color model of a human face disclosed in an embodiment of this application. Figure 3 It can be seen that, Figure 3 The image on the left is the texture model of the colored face model. Figure 3 The image on the right is a mesh model of a colored face. See also... Figure 4 , Figure 4 This is a schematic diagram of another three-dimensional color model disclosed in the embodiments of this application, by Figure 4 It can be seen that, Figure 4 This is a colored cube model. Please refer to [link / reference] for details. Figure 5 , Figure 5 This is a schematic diagram of the mesh and material texture of a cube color model disclosed in an embodiment of this application. Figure 5 It can be seen that, Figure 5 The left side shows the material texture model of the cube color model. Figure 5 The right side shows the mesh model of the cube color model.

[0108] It's important to understand that a mesh model is a concept in 3D reconstruction, encompassing the geometric coordinates of each vertex within adjacent polygonal faces. For example, a mesh model can be a 3D model composed of many small triangles or quadrilaterals, each vertex of which has geometric coordinates. A material / texture model, on the other hand, refers to the texture coordinates of each vertex on the mesh model, describing the position of each vertex within the texture image. In 3D reconstruction, material / texture models are typically used to map texture images onto mesh models, giving the 3D model a more realistic appearance.

[0109] For details, please refer to Figure 6 , Figure 6 This is a flowchart illustrating a topology establishment method disclosed in an embodiment of this application. Figure 6 The steps for establishing a topology include: (1) starting from a vertex; (2) finding the outward half; (3) switching to the opposite half; and (4) the next half pointing to an adjacent vertex. Steps (2) to (4) are repeated until all adjacent vertices are found. Similarly, adjacent faces or half-edges can be determined. It is important to understand that topology establishment can be implemented, but is not limited to, using iterators / loopers.

[0110] For more details, please refer to Figure 7 , Figure 7 This is a schematic diagram of a model slice disclosed in an embodiment of this application, by... Figure 7 It can be seen that for a certain triangular facet of a 3D model, with vertices v1, v2, and v3, cutting the facet with the tangent plane Z results in the intersection line segment AB, with points A and B at the two intersection points. Assume the geometric coordinates (x, y, z) and texture coordinates (u, v) of the vertices of the facet are v1 {(x1, y1, z1), (u1, v1)}, v2 {(x2, y2, z2), (u2, v2)}, and v3 {(x3, y3, z3), (u3, v3)}, respectively. The formula for calculating the geometric coordinates of point A can be found in Formula 1, and the formula for calculating the texture coordinates of point B can be found in Formula 2.

[0111]

[0112] Formula 1

[0113] As shown in Formula 1, the geometric coordinates of point A can be calculated using Formula 1. It is understandable that the calculation of the geometric coordinates of point B is similar to that of point A, and will not be repeated here.

[0114]

[0115] Formula 2

[0116] As shown in Formula 2, the texture coordinates of point B can be calculated using Formula 2. It is understandable that the calculation of the texture coordinates of point A is similar to that of point B, and will not be repeated here.

[0117] It's worth noting that constructing the topological structure of a 3D color model helps in better understanding and processing the topological relationships between triangular faces and vertices, as well as the topological relationships between adjacent triangular faces. Based on these relationships, the 3D color model can be sliced ​​to obtain the intersection lines corresponding to the slices, and connecting these intersection lines yields the initial contour lines, allowing for more accurate extraction of the target object's contour lines. Furthermore, this method can reduce the amount of data and improve processing efficiency.

[0118] After obtaining the color contour information of the slices of the 3D color model, the color contour information of the slices can be thickened to obtain the target color contour information of the slices. Furthermore, the method for generating slice layer images based on the color contour information and support information of the slices can be as follows: [The text abruptly ends here, so the translation stops as well.]

[0119] Specifically, you can first perform monochrome cavity generation. For monochrome cavity voxel generation, please refer to [link to documentation]. Figure 8 , 9 And 10, Figure 8 This is a schematic diagram of a monochrome intracavitary voxel generation method disclosed in an embodiment of this application. Figure 9 This is a schematic diagram illustrating another method for generating monochromatic intracavitary voxels according to an embodiment of this application. Figure 10 This is a schematic diagram illustrating another method of generating a monochrome cavity voxel according to an embodiment of this application. For details on generating monochrome cavity model voxels, please refer to [link to relevant documentation]. Figure 11 , Figure 11 This is a schematic diagram of the generation of a monochrome cavity model voxel disclosed in an embodiment of this application.

[0120] For instructions on generating colored outlines, please refer to [link / reference]. Figure 12 and 13 , Figure 12 This is a schematic diagram illustrating the generation of a colored outline as disclosed in an embodiment of this application. Figure 13 This is a schematic diagram illustrating another method for generating colored outlines as disclosed in the embodiments of this application. Figure 12 and Figure 13 As can be seen, for example, in the face model in the figure, there is a line connecting the nose and the ear, which can be the colored outline corresponding to the slice layer.

[0121] It's important to understand that generating monochrome cavity model voxels is crucial for filling the model's interior with a single color during 3D model slicing. This ensures the correct display of the model's internal colors when generating colored outlines. If the model's interior is not filled with color, holes will appear during sampling and interpolation, preventing the internal colors from being displayed correctly. Therefore, generating monochrome cavity model voxels guarantees the accurate display of the 3D model's internal colors, thereby improving the visualization effect of the 3D model.

[0122] It's worth noting that the thickened color contour information can compensate for the deficiencies of the original contour information, resulting in a smoother model surface and richer details. It also prevents surface roughness and imperfections caused by insufficient contour information during printing. Therefore, thickening the color contour information corresponding to each slice can improve print quality, making the printed model more realistic and detailed.

[0123] One method for thickening the color contour information of a slice to obtain its target color contour information can be as follows: first, the color contour line of the slice is offset outwards to obtain the offset color contour line; then, the color information corresponding to the offset color contour line is determined based on the color information corresponding to the original color contour line; finally, the area information between the original color contour line and the offset color contour line is used as the target color contour information of the slice. Furthermore, another method for generating a slice layer image based on the target color contour information and the slice's support information can be as follows: first, the support information of the slice is adjusted based on the target color contour information; then, the slice layer image is generated based on the target color contour information and the adjusted support information.

[0124] It's worth noting that offsetting the colored outline of a slice outwards may cause a mismatch between the slice's support information and the offset colored outline. Therefore, the slice's support information needs to be adjusted to ensure consistency and accuracy between the colored outline and the support information. By adjusting the slice's support information, the colored outline and support information can be matched, thus generating an accurate slice layer image.

[0125] One method for thickening the color contour information of the slice to obtain the target color contour information of the slice is to first offset the color contour line of the slice inward to obtain the inwardly offset color contour line, then determine the color information corresponding to the inwardly offset color contour line based on the color information corresponding to the color contour line, and finally use the area information between the color contour line and the inwardly offset color contour line as the target color contour information of the slice.

[0126] Specifically, you can thicken the color outline information; please refer to [link / reference]. Figure 14 , Figure 14 This is a schematic diagram of the color contour information before thickening as disclosed in the embodiments of this application. Figure 14 As we can see, the color outline information consists of only one line, and the discontinuity of the color leads to blurriness. It's important to understand that during color printing, because there's only one line on the outer wall, the color doesn't adhere well. Therefore, it's necessary to thicken the color outline information to solve the problems of discontinuity causing blurriness and poor color adhesion. Please refer to [link / details] after thickening the color outline information. Figure 15 , Figure 15 This is a schematic diagram of a color contour information thickened according to an embodiment of this application. Figure 15 It is evident that the thickened color contour information exhibits characteristics of continuous and clear color, and easy color adhesion. Understandably, the key processing step in thickening involves identifying the inner and outer regions of the contour and then applying pixel-level offsets accordingly. Please refer to [link / reference]. Figure 16 , Figure 16This is a schematic diagram illustrating an offset thickening process for a colored outline (colored outline information) disclosed in an embodiment of this application. Figure 16 As can be seen, both inward and outward offsets are possible. Specifically, inward offset involves offsetting the colored contour line inwards to obtain the inward-off colored contour line. The color information corresponding to the inward-off colored contour line is then determined based on its corresponding color information. Finally, the region information between the original colored contour line and the inward-off colored contour line is used as the colored contour information for each slice after thickening. Outward offset involves offsetting the colored contour line outwards to obtain the outward-off colored contour line. The color information corresponding to the outward-off colored contour line is then determined based on its corresponding color information. Finally, the region information between the outward-off colored contour line and the original colored contour line is used as the colored contour information for each slice after thickening.

[0127] It's worth noting that for a slice of a 3D model, if you choose to offset inwards, the outline in the color contour information corresponding to each slice after thickening will shift inwards by a certain distance. This makes the surface of the 3D model smoother and also prevents the surface from being too thin in applications such as 3D printing. Conversely, if you choose to offset outwards, the outline in the color contour information corresponding to each slice after thickening will shift outwards by a certain distance. This makes the surface of the 3D model rougher and also prevents the surface from being too thick in applications such as 3D printing.

[0128] One method for determining the color information of the inwardly biased color contour line based on the color information corresponding to the color contour line is as follows: First, the intersection points of the inwardly biased color contour line are matched point by point with the intersection points of the color contour line. Then, for the target intersection points matched point by point, the color information of the pixel corresponding to the target intersection point of the color contour line is used as the color information of the pixel corresponding to the target intersection point of the inwardly biased color contour line. Finally, for the intersection of the inwardly biased color contour lines, target sampling interpolation is performed between the two intersection points of the intersection line in pixel space to obtain the color information of the target pixel of the intersection line. The color information of the inwardly biased color contour line is obtained based on the color information of the target pixel of the intersection line.

[0129] For details, please refer to Figure 17 , Figure 17 This is a schematic diagram illustrating a method for obtaining the color of each vertex after biasing, as disclosed in an embodiment of this application. Figure 17It can be seen that the original contour (colored contour line) can be offset inward to obtain the subsequent contour (the colored contour line after offset inward). Then, each intersection point in the subsequent contour is matched with each intersection point in the original contour point. For each pair of target intersection points, the color information of the pixel corresponding to the target intersection point of the original contour is used as the color information of the pixel corresponding to the target intersection point of the subsequent contour. For example, for the three intersection points of the original contour and the subsequent contour, the intersection points located at the top are all blue, the intersection points located at the left are all red, and the intersection points located at the right are all yellow. Finally, for each intersection line of the subsequent contour, target sampling interpolation is performed between the two intersection points of the intersection line in pixel space to obtain the color information of each target pixel of the intersection line. The color information of the subsequent contour is obtained based on the color information of each target pixel of each intersection line.

[0130] It's worth noting that mapping each intersection point in the later contour to each intersection point in the original contour ensures a one-to-one correspondence between the two. This guarantees that every pixel in the later contour corresponds to a pixel in the original contour, thus ensuring the accuracy and integrity of the later contour. Furthermore, it ensures that each pixel in the later contour receives the same color information as its corresponding pixel in the original contour, thereby guaranteeing the color accuracy of the later contour.

[0131] Specifically, the formula for converting the texture coordinate information of the intersection line from texture space to pixel space can be found in Formula 3.

[0132]

[0133] Formula 3

[0134] As shown in Formula 3, w and h are the width and height of the texture image, respectively. Formula 3 is used to convert the width w and height h of the texture image into pixel coordinates in the coordinate system of the texture image, so that the pixel coordinates of points A and B can be obtained: A(ua′, va′) and B(ub′, vb′).

[0135] Among them, target sampling interpolation is performed between the two intersection points of the intersection line in the pixel space to obtain the color information of the target pixel of the intersection line, including at least one of the following cases.

[0136] (1) According to the preset upsampling interpolation algorithm, upsampling interpolation is performed between the two intersection points of the intersection line in the pixel space according to the preset sampling rate to obtain the color information of the target pixel point of the intersection line; wherein the preset upsampling interpolation algorithm includes nearest neighbor interpolation algorithm, bilinear interpolation algorithm or cubic spline interpolation algorithm.

[0137] Specifically, nearest neighbor interpolation is a simple interpolation method that sets the color value of a target pixel to the color value of the pixel closest to it, and it is computationally fast. Bilinear interpolation is a more accurate interpolation method than nearest neighbor interpolation. It considers the color values ​​of the four pixels surrounding the target pixel and performs a weighted average based on their distance from the target pixel to obtain the target pixel's color value, thus reducing jagged artifacts. For example, if a pixel has a color value of (100, 50, 200), and its four surrounding pixels have color values ​​of (80, 60, 180), (120, 40, 220), (90, 70, 190), and (110, 30, 210), then when using bilinear interpolation, the color values ​​of these four pixels are weighted and averaged based on their distance from the target pixel to obtain the target pixel's color value. Cubic spline interpolation is a more accurate interpolation method. It considers the color values ​​of 16 pixels surrounding the target pixel and performs a weighted average based on their distance from the target pixel to obtain the target pixel's color value, which can further reduce jagged artifacts.

[0138] It is worth mentioning that upsampling interpolation can improve printing accuracy and quality, making the printed model more realistic, detailed and smooth, while reducing distortion and noise during the printing process.

[0139] (2) According to the preset downsampling interpolation algorithm, downsampling interpolation is performed between the two intersection points of the intersection line in the pixel space according to the preset sampling rate to obtain the color information of the target pixel point of the intersection line; wherein the preset downsampling interpolation algorithm includes nearest neighbor extraction algorithm, average value extraction algorithm or Gaussian extraction algorithm.

[0140] Specifically, nearest neighbor decimation is a simple downsampling interpolation algorithm that sets the color value of a target pixel to the color value of its nearest neighbor pixel, offering fast computation. For example, when downsampling a 1024x1024 image to a 512x512 image, nearest neighbor decimation, average decimation, or Gaussian decimation can be used for downsampling interpolation to obtain the color information of the target pixel. Average decimation sets the color value of a target pixel to the average of the color values ​​of its surrounding pixels, reducing jagged artifacts. Gaussian decimation sets the color value of a target pixel to the weighted average of the color values ​​of its surrounding pixels, reducing jagged artifacts and image blurring while preserving more detail.

[0141] It's worth noting that in 3D printing, the printer needs to convert the 3D model into a series of 2D images before printing these 2D images. Using downsampling interpolation algorithms can reduce the number of pixels that need to be printed, thereby reducing printing time and material usage, while also improving printing accuracy and quality.

[0142] After obtaining the color contour information of the slices of the 3D color model, the support information of the slices of the 3D color model can be obtained.

[0143] One method for obtaining the support information of a slice of a 3D color model is to first project the color contour information of the slice to obtain the geometric coordinate information of the color contour information of the slice on the projection plane, and then generate a support layer of the slice based on the geometric coordinate information of the color contour information of the slice on the projection plane; wherein the support layer of the slice is the support information of the slice.

[0144] It is worth mentioning that the support layer of the slice can be generated directly using the color outline information of the slice, without the need for additional calculation and processing steps, making it simpler and faster.

[0145] One method for obtaining the support information of a slice of a 3D color model is to first determine the target area of ​​the 3D color model to be supported, wherein the target area of ​​the target area to be supported is composed of facets to be supported; then project the target area of ​​the target area to be supported to obtain the geometric coordinate information of the facets to be supported on the projection plane, wherein the geometric coordinate information includes the vertex coordinates and / or side length information of the facets to be supported; finally, based on the geometric coordinate information of the facets to be supported on the projection plane, a support layer for the slice is generated, wherein the support layer for the slice is the support information of the slice.

[0146] Specifically, the support layer refers to the two-dimensional image generated during the slicing process based on the projection information of the area to be supported. The area to be supported can be located at, but is not limited to, the edges of the model, regions with large curvature, and / or tilted parts of the model.

[0147] More specifically, for the target area to be supported in a 3D color model, z-plane projection can be performed to obtain the projection information corresponding to the target area to be supported. The projection information includes the projected area and the projected position. Then, a support layer is generated based on the projection information corresponding to the target area to be supported. Specifically, the support layer is used to support areas outside the model, allowing the ink for color printing to adhere to the model.

[0148] For more details, please refer to Figure 18 and 19 , Figure 18 This is a schematic diagram of a target area to be supported, as disclosed in an embodiment of this application. Figure 19 This is a schematic diagram of another target area to be supported as disclosed in the embodiments of this application. Figure 18 and 19 It can be seen that the deeper areas are the areas requiring support (the target area of ​​the surface to be supported). From... Figure 18 and 19 As can be seen, for a face model that needs support, the face model can be projected along the z-axis to obtain the projection information corresponding to the target area to be supported. Then, a support layer is generated based on the projection information, and the final support layer can be used for 3D printing.

[0149] It's worth noting that projecting the target area to be supported allows for the generation of a support layer for the slice based on its geometric features. This more accurately reflects the support information of the slice, meaning it can more precisely determine the position, shape, and size of the target area to be supported. This allows for a more accurate determination of the location and quantity of support structures to be added, avoiding unnecessary additions and thus reducing the number of support structures required, saving material and time costs. Furthermore, it improves the accuracy and quality of the 3D color model, making it more realistic. It also ensures that the ink for color printing adheres well to the model, thereby improving the efficiency, quality, and stability of model generation.

[0150] One method for determining the target area to be supported in a 3D color model is to first determine the initial area to be supported in the 3D color model, and then take the initial area to be supported with the largest support surface as the target area to be supported.

[0151] For specific examples, please refer to the following. Figure 18 and 19 In a face model, the areas requiring support might be protruding features such as the chin or ears. Then, within the initial regions to be supported, the region with the largest initial support surface is selected as the target region to be supported. For example, in the chin region, there exists an initial region with the largest support surface, and this is selected as the target region to be supported. Finally, a support layer is generated based on the target region to be supported.

[0152] It's worth noting that using the initial support area with the largest support surface as the target support area ensures the quality and accuracy of color printing, preventing model distortion or deformation. Secondly, it allows for faster determination of the support structure corresponding to each support area, thus improving the efficiency of support structure generation and shortening printing time. Finally, it avoids the problem of overly dense support structures caused by an excessive number of support structures.

[0153] Specifically, after generating the support layer of the slice based on the geometric coordinate information of the surface to be supported on the projection plane, the support type of the support layer of the first slice can be set to solid, where the difference between the number of slice layers and the number of slice layers corresponding to the target surface to be supported area is less than or equal to a preset difference. The support type of the support layer of the second slice can be set to hollow, where the difference between the number of slice layers and the number of slice layers corresponding to the target surface to be supported area is greater than a preset difference. The setting parameters of the support layer can include the support type.

[0154] Specifically, the parameters for the support layer can be set through the 3D printer software. Different printer software may have different interfaces and options, such as providing a parameter setting for the support type. Understandably, the support type can include hollow or solid support types. Hollow support layers can save material and printing time, while solid support layers can provide a stronger support structure.

[0155] It's worth noting that color inkjet paint needs to be applied to specific areas, and these areas require sufficient support to maintain stability and accuracy. By setting the support type to solid, the support portion of the color inkjet paint has sufficient strength and stability to prevent deformation or displacement during spraying, ensuring the paint is accurately applied to the target area for precise coloring. Meanwhile, other areas can use hollow or partially filled supports to save material and printing time. This choice of support type can improve the printing effect and quality of the color inkjet paint. Secondly, it can prevent problems such as tilting, deformation, or collapse of the model during printing. The support structure provides additional support points, allowing detailed and suspended parts of the model to be printed correctly. Simultaneously, the support structure helps distribute stress during printing, reducing model distortion and deformation. Therefore, choosing the appropriate support type can improve printing quality and efficiency, ensuring the accuracy and integrity of the model.

[0156] The settings parameters for the support layer may also include at least one of the following settings parameters.

[0157] (1) Support density: The density of the support layer can be adjusted, that is, the number and spacing of the support structures. Higher density can provide stronger support, but may increase printing time and material consumption.

[0158] It is worth mentioning that by adjusting the support density, the relationship between the strength of the support structure and printing time and material consumption can be balanced. Higher density can provide a stronger support effect, but may increase printing time and material consumption.

[0159] (2) Support Angle: You can set the angle between the support layer and the model surface. A smaller angle can provide better support, but may increase printing time and material consumption.

[0160] It's worth noting that setting an appropriate support angle ensures a good fit between the support structure and the model surface, providing better support. A smaller angle can offer better support, but may increase printing time and material consumption.

[0161] (3) Support generation algorithm: The printer software can provide different support generation algorithms to optimize the generation of support structures. You can choose the appropriate algorithm as needed.

[0162] It is worth mentioning that choosing a suitable support generation algorithm can optimize the generation of the support structure, improving printing efficiency and support effectiveness. By properly setting the parameters of the support layer, print quality can be improved, distortion and deformation during the printing process can be reduced, and printing time and material consumption can be saved.

[0163] Understandably, parameters such as support type, support density, support angle, and / or support generation algorithm can be adjusted to optimize printing results based on specific printing needs and model characteristics.

[0164] After obtaining the color contour information of the slices of the 3D color model and the support information of the slices, a slice layer image of the slice can be generated based on the color contour information and the support information of the slice.

[0165] Understandably, after generating slice layer images of the slices, 3D printers can print physical objects and supports of three-dimensional color models based on the slice layer images of the slices.

[0166] Please refer to the details. Figure 20 , 21 22 and 23, Figure 20 This is a schematic diagram of the physical object and support body of a simulated 3D color model disclosed in an embodiment of this application. Figure 21 This is a schematic diagram of the physical object and support body of another simulated printed three-dimensional color model disclosed in an embodiment of this application. Figure 22 This is a schematic diagram of the physical object and support structure of another simulated printing three-dimensional color model disclosed in this application. Figure 23 This is a schematic diagram of the physical object and support of another simulated printed three-dimensional color model disclosed in the embodiments of this application. Figure 20 As can be seen, the slice layer images of lower-level slices only contain support information; therefore, only the lower-level support is generated. Figure 21It is known that the slice layer images of the mid-to-high-level slices include color contour information and support information. Therefore, the physical object and support of the 3D color model of the mid-to-high-level slices are generated simultaneously. Figure 22 We know that the current slice is layer 794. Figure 22 To simulate the physical object and support structure of the 3D color model printed up to layer 794, by Figure 23 It can be seen that, Figure 23 This is a simulation of the physical object and support structure of the printed 3D color model. Please refer to the following for further information. Figure 23 In addition to the two supporting entities that support the head, supporting entities can also be generated for the suspended parts such as the belly and tail of the 3D color model. In other words, the supporting layer of the slice image can include not only two supporting sub-layers (the supporting sub-layers corresponding to the two supporting entities supporting the head), but also supporting sub-layers corresponding to the suspended parts such as the belly and tail.

[0167] It should also be understood that, in the embodiments of this application, if the slice file is larger than a preset threshold, the image information corresponding to the slice file can be compressed and integrated.

[0168] In this embodiment, color contour information and support information of slices of a 3D color model can be obtained. Based on the color contour information and support information of the slices, slice layer images are generated. This provides a slicing method for 3D color models, improving the printing quality of the 3D color model. Secondly, using the initial area to be supported with the largest support surface as the target area to be supported ensures the quality and accuracy of color printing, avoids model distortion or deformation, and allows for faster determination of the support structure corresponding to each area to be supported, thereby improving the efficiency of support structure generation, shortening printing time, and avoiding the problem of overly dense support structures due to an excessive number of support structures. Next, by setting the support type to solid, sufficient strength and stability of the support portion of the color inkjet paint can be ensured so that it does not deform or shift during the spraying process, ensuring that the color inkjet paint can be accurately coated on the target area, thus achieving a precise coloring effect. Other areas can choose hollow or partially filled support types to save material and printing time. Furthermore, the digital color model can be sliced ​​into layer images for color printing. To ensure compatibility with existing monochrome slicing methods, methods for generating voxels within cavities and thickening color contours are proposed. This maintains the operation of the original system while expanding to meet the future development needs of color printing. Next, slicing of the color model can be implemented to obtain color contour information, thus solving the problem of single-color slicing. Furthermore, processing of photocured color slices can be achieved, addressing the issue of relatively blank areas in photocured color slices. Moreover, slicing of 3D color models based on topological relationships can reduce data volume and improve processing efficiency. Furthermore, upsampling interpolation can improve printing accuracy and quality, making the printed model more realistic, detailed, and smooth, while reducing distortion and noise during the printing process; downsampling interpolation can reduce the number of pixels to be printed, thereby reducing printing time and material usage, while also improving printing accuracy and quality. Furthermore, mapping each intersection point in the rear contour to each intersection point in the original contour ensures a one-to-one correspondence between the two, guaranteeing the accuracy and integrity of the rear contour and its color accuracy. Additionally, projecting the target area to be supported allows for more accurate determination of the position, shape, and size of each area, reducing the number of support structures and saving material and time costs; it also improves the efficiency, quality, and stability of model generation. Finally, determining the maximum support surface corresponding to each area to be supported ensures the quality and accuracy of color printing, preventing model distortion or deformation; it also allows for faster determination of the support structure corresponding to each area, thus improving the efficiency of support structure generation and shortening printing time.

[0169] The slicing method for the three-dimensional color model in the embodiments of this application has been described above. The slicing device for the three-dimensional color model in the embodiments of this application is described below. Please refer to [link / reference]. Figure 24 One embodiment of the slicing device for the three-dimensional color model in this application includes:

[0170] Unit 2401 is used to obtain the color contour information of slices of the three-dimensional color model;

[0171] The obtaining unit 2401 is used to obtain the support information of the slice of the three-dimensional color model;

[0172] The integration unit 2402 is used to generate a slice layer image of the slice based on the color contour information and support information of the slice.

[0173] In this embodiment, color contour information and support information of slices of a 3D color model can be obtained. Based on the color contour information and support information of the slices, a slice layer image of the slices is generated. This provides a slicing method for 3D color models, improving the printing quality of 3D color models.

[0174] Please refer to the following: Figure 25 Another embodiment of the slicing device 2500 for the three-dimensional color model in this application includes:

[0175] Central processing unit 2501, memory 2505, input / output interface 2504, wired or wireless network interface 2503, and power supply 2502;

[0176] Memory 2505 can be either short-term or long-term storage.

[0177] The central processing unit 2501 is configured to communicate with the memory 2505 and execute instructions stored in the memory 2505 to perform the aforementioned operations. Figure 1 The method in the illustrated embodiment.

[0178] This application also provides a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to perform the aforementioned actions. Figure 1 The method in the illustrated embodiment.

[0179] This application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to perform the aforementioned... Figure 1 The method in the illustrated embodiment.

[0180] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0181] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0182] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.

[0183] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0184] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0185] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0186] This application also provides the following embodiments:

[0187] Example 1. A method for slicing a three-dimensional color model, characterized by comprising:

[0188] Obtain the color contour information of slices from a 3D color model;

[0189] Obtain the support information of the slices of the three-dimensional color model;

[0190] Based on the color contour information and support information of the slice, a slice layer image of the slice is generated.

[0191] Example 2. Based on the method described in Example 1,

[0192] The supporting information for obtaining the slices of the three-dimensional color model includes:

[0193] Determine the target area to be supported in the three-dimensional color model; wherein the target area to be supported is composed of areas to be supported.

[0194] The target area to be supported is projected to obtain the geometric coordinate information of the area to be supported on the projection plane; wherein the geometric coordinate information includes the vertex coordinates and / or side length information of the area to be supported.

[0195] Based on the geometric coordinate information of the surface to be supported on the projection plane, a support layer for the slice is generated; wherein the support layer for the slice is the support information of the slice.

[0196] Example 3. Based on the method described in Example 2,

[0197] Determining the target area to be supported in the three-dimensional color model includes:

[0198] Determine the initial area of ​​the three-dimensional color model to be supported;

[0199] The initial area to be supported with the largest supporting surface is taken as the target area to be supported.

[0200] Example 4. Based on the method described in Example 1,

[0201] The supporting information for obtaining the slices of the three-dimensional color model includes:

[0202] The color contour information of the slice is projected to obtain the geometric coordinate information of the color contour information of the slice on the projection plane;

[0203] Based on the geometric coordinates of the color contour information of the slice on the projection plane, a support layer for the slice is generated; wherein the support layer for the slice is the support information of the slice.

[0204] Example 5. Based on the method described in any one of Examples 2 to 4,

[0205] The settings parameters for the support layer include the support type;

[0206] After generating the support layer for the slice based on the geometric coordinate information of the surface to be supported on the projection plane, the method further includes:

[0207] Set the support type of the support layer of the first slice to solid; wherein the first slice is a slice in which the difference between the number of slice layers and the number of slice layers corresponding to the target area to be supported is less than or equal to a preset difference.

[0208] Set the support type of the support layer of the second slice to hollow; wherein the second slice is a slice in which the difference between the number of slice layers and the number of slice layers corresponding to the target area to be supported is greater than the preset difference.

[0209] Example 6. Based on the method described in Example 1,

[0210] After obtaining the color contour information of the slices of the three-dimensional color model, the method further includes:

[0211] The color contour information of the slice is thickened to obtain the target color contour information of the slice;

[0212] The step of generating a slice layer image of the slice based on the color contour information and support information of the slice includes:

[0213] Based on the target color contour information and the support information of the slice, a slice layer image of the slice is generated.

[0214] Example 7. Based on the method described in Example 6,

[0215] The color contour information includes color contour lines;

[0216] The process of thickening the color contour information of the slice to obtain the target color contour information of the slice includes:

[0217] The colored outline of the slice is offset inward to obtain the colored outline after inward offset;

[0218] The color information corresponding to the inwardly offset colored contour line is determined based on the color information corresponding to the colored contour line.

[0219] The region information between the colored contour line and the inwardly offset colored contour line is used as the target colored contour information of the slice.

[0220] Example 8. Based on the method described in Example 7,

[0221] Determining the color information corresponding to the inwardly offset color contour line based on the color information corresponding to the color contour line includes:

[0222] The intersection points of the inwardly offset colored contour lines are matched point by point with the intersection points of the colored contour lines;

[0223] For each point corresponding to the target intersection, the color information of the pixel corresponding to the target intersection of the colored contour line is used as the color information of the pixel corresponding to the target intersection of the colored contour line after inward offset.

[0224] For the intersection of the inner-biased colored contour lines, target sampling interpolation is performed between the two intersection points of the intersection lines in the pixel space to obtain the color information of the target pixel of the intersection line, and the color information corresponding to the inner-biased colored contour line is obtained based on the color information of the target pixel of the intersection line.

[0225] Example 9. Based on the method described in Example 6,

[0226] The color contour information includes color contour lines;

[0227] The process of thickening the color contour information of the slice to obtain the target color contour information of the slice includes:

[0228] The colored outline of the slice is offset outward to obtain the outwardly offset colored outline;

[0229] The color information corresponding to the outwardly offset color contour line is determined based on the color information corresponding to the color contour line.

[0230] The region information between the colored contour line and the outwardly offset colored contour line is used as the target colored contour information of the slice.

[0231] The step of generating a slice layer image of the slice based on the target color contour information and the support information of the slice includes:

[0232] Adjust the support information of the slice based on the target color contour information of the slice;

[0233] Based on the target color contour information of the slice and the adjusted support information of the slice, a slice layer image of the slice is generated.

[0234] Example 10. Based on the method described in Example 8,

[0235] The step of performing target sampling interpolation between the two intersection points of the intersection line in the pixel space to obtain the color information of the target pixel of the intersection line includes at least one of the following cases:

[0236] According to a preset upsampling interpolation algorithm, upsampling interpolation is performed between the two intersection points of the intersection line in the pixel space at a preset sampling rate to obtain the color information of the target pixel point of the intersection line; wherein the preset upsampling interpolation algorithm includes a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, or a cubic spline interpolation algorithm; or

[0237] According to a preset downsampling interpolation algorithm, downsampling interpolation is performed between the two intersection points of the intersection line in the pixel space at a preset sampling rate to obtain the color information of the target pixel point of the intersection line; wherein the preset downsampling interpolation algorithm includes nearest neighbor extraction algorithm, average extraction algorithm or Gaussian extraction algorithm.

[0238] Example 11. Based on the method described in Example 1,

[0239] The three-dimensional color model includes a mesh model and a material texture model; the mesh model includes the geometric coordinate information of each vertex in adjacent polygonal facets; the material texture model includes the texture coordinate information of each vertex;

[0240] The process of obtaining the color contour information of slices of the three-dimensional color model includes:

[0241] The three-dimensional color model is sliced ​​to obtain the intersection lines corresponding to the slices, and the intersection lines are connected to obtain the initial contour lines; wherein the initial contour lines include the geometric coordinate information and texture coordinate information of the intersection points of the intersection lines;

[0242] The texture coordinate information of the intersection line is converted from texture space to pixel space, and target sampling interpolation is performed between the intersection points of the intersection line in the pixel space to obtain the color information of the target pixel of the intersection line. The color contour information of the slice is obtained based on the color information of the target pixel of the intersection line.

[0243] Example 12. Based on the method described in Example 11,

[0244] The polygonal facet is a triangular facet; the step of slicing the three-dimensional color model to obtain the intersection lines corresponding to the slices, and connecting the intersection lines to obtain the initial contour lines, includes:

[0245] Construct the topological structure of the three-dimensional color model; wherein the topological structure represents the topological relationship between triangular facets and vertices, and the topological relationship between triangular facets and adjacent triangular facets;

[0246] Based on the topological relationships between the triangular facets and vertices and between the triangular facets and adjacent triangular facets, the three-dimensional color model is sliced ​​to obtain the intersection lines corresponding to the slices, and the intersection lines are connected to obtain the initial contour lines.

[0247] Example 13. A slicing device for a three-dimensional color model, characterized in that it comprises:

[0248] The acquisition unit is used to obtain the color contour information of slices of a three-dimensional color model;

[0249] The obtaining unit is also used to obtain the support information of the slice of the three-dimensional color model;

[0250] The synthesis unit is used to generate a slice layer image of the slice based on the color contour information and support information of the slice.

[0251] Example 14. A slicing device for a three-dimensional color model, characterized in that it comprises:

[0252] Central processing unit and memory;

[0253] The memory is either a short-term storage memory or a persistent storage memory;

[0254] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method as described in any one of embodiments 1 to 12.

[0255] Example 15. A computer-readable storage medium, characterized in that the computer-readable storage medium includes instructions that, when executed on a computer, cause the computer to perform the method described in any one of Examples 1 to 12.

Claims

1. A slicing method for a three-dimensional color model, characterized in that, include: Obtain the color contour information of slices from a 3D color model; Obtain the support information of the slices of the three-dimensional color model; The support information of the slice is the support structure information that matches the color outline information of the slice; Based on the color contour information and support information of the slice, a slice layer image of the slice is generated; After obtaining the color contour information of the slices of the three-dimensional color model, the method further includes: The color contour information of the slice is thickened to obtain the target color contour information of the slice; The step of generating a slice layer image of the slice based on the color contour information and support information of the slice includes: Based on the target color contour information and the support information of the slice, a slice layer image of the slice is generated; The supporting information for obtaining the slices of the three-dimensional color model includes: The color contour information of the slice is projected to obtain the geometric coordinate information of the color contour information of the slice on the projection plane; Based on the geometric coordinates of the color contour information of the slice on the projection plane, a support layer for the slice is generated; wherein the support layer for the slice is the support information of the slice.

2. The method according to claim 1, characterized in that, The settings parameters for the support layer include the support type; After generating a support layer for the slice based on its color contour information and geometric coordinates on the projection plane, the method further includes: Set the support type of the support layer of the first slice to solid; wherein the first slice is a slice in which the difference between the number of slice layers and the number of slice layers corresponding to the target area to be supported is less than or equal to a preset difference, and the target area to be supported is composed of areas to be supported; Set the support type of the support layer of the second slice to hollow; wherein the second slice is a slice in which the difference between the number of slice layers and the number of slice layers corresponding to the target area to be supported is greater than the preset difference.

3. The method according to claim 1, characterized in that, The color contour information includes color contour lines; The process of thickening the color contour information of the slice to obtain the target color contour information of the slice includes: The colored outline of the slice is offset inward to obtain the colored outline after inward offset; The color information corresponding to the inwardly offset colored contour line is determined based on the color information corresponding to the colored contour line. The region information between the colored contour line and the inwardly offset colored contour line is used as the target colored contour information of the slice.

4. The method according to claim 3, characterized in that, Determining the color information corresponding to the inwardly offset color contour line based on the color information corresponding to the color contour line includes: The intersection points of the inwardly offset colored contour lines are matched point by point with the intersection points of the colored contour lines; For each point corresponding to the target intersection, the color information of the pixel corresponding to the target intersection of the colored contour line is used as the color information of the pixel corresponding to the target intersection of the colored contour line after inward offset. For the intersection of the inwardly offset colored contour lines, target sampling interpolation is performed between the two intersection points of the intersection lines in pixel space to obtain the color information of the target pixel of the intersection line, and the color information corresponding to the inwardly offset colored contour lines is obtained based on the color information of the target pixel of the intersection line.

5. The method according to claim 1, characterized in that, The color contour information includes color contour lines; The process of thickening the color contour information of the slice to obtain the target color contour information of the slice includes: The colored outline of the slice is offset outward to obtain the outwardly offset colored outline; The color information corresponding to the outwardly offset color contour line is determined based on the color information corresponding to the color contour line. The region information between the colored contour line and the outwardly offset colored contour line is used as the target colored contour information of the slice. The step of generating a slice layer image of the slice based on the target color contour information and the support information of the slice includes: Adjust the support information of the slice based on the target color contour information of the slice; Based on the target color contour information of the slice and the adjusted support information of the slice, a slice layer image of the slice is generated.

6. A slicing device for a three-dimensional color model, characterized in that, include: The acquisition unit is used to obtain the color contour information of slices of a three-dimensional color model; The obtaining unit is further configured to obtain the support information of the slice of the three-dimensional color model; the support information of the slice is the support structure information that matches the color contour information of the slice; The integration unit is used to generate a slice layer image of the slice based on the color contour information and support information of the slice; The slicing device for the three-dimensional color model also includes: A thickening processing unit is used to thicken the color contour information of the slice to obtain the target color contour information of the slice; The integration unit is specifically used to generate a slice layer image of the slice based on the target color contour information of the slice and the support information of the slice. The obtaining unit is specifically used to project the color contour information of the slice to obtain the geometric coordinate information of the color contour information of the slice on the projection plane, and generate a support layer of the slice based on the geometric coordinate information of the color contour information of the slice on the projection plane; wherein the support layer of the slice is the support information of the slice.

7. A slicing device for a three-dimensional color model, characterized in that, include: Central processing unit and memory; The memory is either a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 5.