3D printing method, apparatus, device, and storage medium

By generating point cloud information that does not include points on the edges of polygonal patches, the problem of inaccurate color in textured areas in 3D printing is solved, and the color performance of the model is improved.

CN117774324BActive Publication Date: 2026-06-26ZHUHAI SAILNER 3D TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In 3D printing, the color representation of the textured areas inside the model is poor, especially when there are multiple color information for points on the common edge of the polygonal facet, making it impossible to determine the accurate color of the points in the textured area.

Method used

By acquiring point cloud information of polygonal facets, only points inside the polygonal facets are collected, avoiding the collection of points on common edges, thus generating point cloud information of the target 3D model and ensuring the accuracy of color information.

Benefits of technology

It improves the color performance of 3D printing results, avoids color uncertainty caused by points on common edges, and enhances the printing effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117774324B_ABST
    Figure CN117774324B_ABST
Patent Text Reader

Abstract

The application provides a 3D printing method, device, equipment and storage medium. The method comprises: acquiring a polygonal patch located on the surface of a target three-dimensional model to be printed, and the surface of the target three-dimensional model is composed of a plurality of polygonal patches. In the process of generating point cloud information of the target three-dimensional model based on the polygonal patches, a target point inside the polygonal patch is determined. Based on the target point, the point cloud information of the target three-dimensional model is generated, and the point cloud information does not include points located on the edges of the polygonal patch. According to the point cloud information, the target three-dimensional model is printed. The method of the application can avoid the problem that the color of the color point on the target three-dimensional model mapping area cannot be determined, and improves the color performance of the 3D printing result of the target three-dimensional model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of 3D printing technology, and in particular to a 3D printing method, apparatus, device and storage medium. Background Technology

[0002] 3D printing is a rapid prototyping technology that uses digital models as a basis to generate corresponding physical objects through layer-by-layer printing. Most current digital models consist of closed curved surfaces enclosed by polygonal facets. (The text then abruptly shifts to a seemingly unrelated topic: "In pasting...") Figure 3 In 3D printing, not only the surface of the model needs to be printed with color, but also the textured areas inside the model. The colors of the textured areas inside the model are usually determined by the color information of the sample points on the model's surface.

[0003] However, adjacent polygonal faces on the model surface share common edges. If adjacent polygonal faces are different colors, a single point on their common edge may contain multiple color information. When the sampling point corresponding to a point in the textured area inside the model is a point on the common edge, it is impossible to determine the color used by the point in that textured area, resulting in poor color representation in the 3D printing result of the model.

[0004] Therefore, improving the color representation of 3D printed models is an urgent problem to be solved. Summary of the Invention

[0005] This application provides a 3D printing method, apparatus, device, and storage medium to solve the problem of improving the color performance of 3D printing results of models in the prior art.

[0006] In a first aspect, this application provides a 3D printing method, including:

[0007] Obtain polygonal patches located on the surface of a target 3D model, wherein the surface of the target 3D model is composed of multiple polygonal patches;

[0008] Determine the target point inside the polygonal patch;

[0009] Based on the target point, point cloud information of the target 3D model is generated, wherein the point cloud information does not include points located on the edges of the polygonal facet;

[0010] Print the target 3D model based on the point cloud information.

[0011] Optionally, determining the target point inside the polygonal patch includes:

[0012] A mesh set is generated within the bounding box of the polygonal patch according to the first resolution;

[0013] Determine the first grid located inside the polygonal facet from the grid set;

[0014] The target point is determined based on the first grid.

[0015] Optionally, determining the target point based on the first grid includes:

[0016] Obtain a second grid from the grid set, wherein the second grid is the grid in the grid set that intersects with the edge of the polygonal facet;

[0017] A third grid is determined from the second grid based on a second resolution, wherein the third grid is a sub-grid located inside the polygonal patch within a sub-grid of the second grid, and the second resolution is higher than the first resolution;

[0018] The target point is determined based on the first grid and the third grid.

[0019] Optionally, determining a third grid from the second grid based on a second resolution includes:

[0020] The third grid is determined from the second grid based on a specified second resolution.

[0021] Optionally, determining the third grid from the second grid based on the second resolution further includes:

[0022] Obtain the angle between the polygonal facet and the adjacent polygonal facet;

[0023] Based on the included angle and the mapping relationship between the included angle and the second resolution, a second resolution is determined for the second grid that intersects each side of the polygonal patch, wherein the included angle is negatively correlated with the second resolution.

[0024] Optional, also includes:

[0025] If the second grid intersects at least two edges of the polygonal facet, then obtain the included angles between the polygonal facet and at least two adjacent polygonal facests.

[0026] Based on the included angle, at least two third resolutions are determined;

[0027] The second resolution is obtained from at least two of the third resolutions, wherein the second resolution is the highest resolution among the at least two third resolutions.

[0028] Optionally, before generating a mesh set within the bounding box of the polygon patch according to the first resolution, the method further includes:

[0029] Obtain the printing resolution of the 3D printing equipment used to print the target 3D model;

[0030] The printing resolution is taken as the first resolution.

[0031] Optionally, printing the target 3D model based on the point cloud information includes:

[0032] Obtain the undetermined color points on the texture area inside the target 3D model;

[0033] The point among the target points that is closest to the undetermined color point is taken as the sample point of the undetermined color point;

[0034] The color of the undetermined color point is determined based on the color of the sample points;

[0035] Print the target 3D model based on the colors of the undetermined color points.

[0036] Secondly, this application provides a 3D printing apparatus, comprising:

[0037] The acquisition module is used to acquire polygonal patches located on the surface of a target 3D model, wherein the surface of the target 3D model is composed of multiple polygonal patches.

[0038] The processing module is used to determine the target point inside the polygonal patch;

[0039] A generation module is used to generate point cloud information of the target 3D model based on the target point, wherein the point cloud information does not include points located on the edges of the polygonal facets;

[0040] The control module is used to print the target 3D model based on the point cloud information.

[0041] Thirdly, this application provides an electronic device, including: a processor, a communication interface, and a memory; the processor is communicatively connected to the communication interface and the memory respectively;

[0042] The memory stores computer-executed instructions;

[0043] The communication interface communicates and interacts with external devices.

[0044] The processor executes computer execution instructions stored in the memory to implement the method as described in any one of the first aspects.

[0045] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the 3D printing method as described in any one of the first aspects.

[0046] Fifthly, this application provides a computer program product, which, when executed by a processor, is used to implement the 3D printing method as described in any one of the first aspects.

[0047] The 3D printing method, apparatus, device, and storage medium provided in this application obtain polygonal facets located on the surface of a target 3D model. During the process of generating point cloud information of the target 3D model based on these polygonal facets, target points within the polygonal facets are determined. Based on these target points, point cloud information of the target 3D model is generated. This point cloud information does not include points located on the edges of the polygonal facets. The target 3D model is then printed based on this point cloud information. This method avoids acquiring points on the common edges of polygonal facets on the surface of the target 3D model when obtaining the color of points on the texture area, thereby avoiding the problem of not being able to determine the color of color points on the texture area and improving the color performance of the 3D printing results. Attached Figure Description

[0048] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0049] Figure 1 A schematic diagram of the structure of a target three-dimensional model provided in this application;

[0050] Figure 2 A schematic diagram of the structure of another target three-dimensional model provided in this application;

[0051] Figure 3 A schematic flowchart of a 3D printing method provided in an embodiment of this application;

[0052] Figure 4 A schematic flowchart of another 3D printing method provided in an embodiment of this application;

[0053] Figure 5 A schematic diagram of the bounding box of a polygonal patch provided in an embodiment of this application;

[0054] Figure 6 A schematic diagram of a grid set of bounding boxes provided in an embodiment of this application;

[0055] Figure 7 This is a schematic diagram of the structure of a second grid provided in an embodiment of this application;

[0056] Figure 8 A flowchart illustrating another 3D printing method provided in an embodiment of this application;

[0057] Figure 9A schematic flowchart illustrating another 3D printing method provided in an embodiment of this application;

[0058] Figure 10 A schematic flowchart illustrating another 3D printing method provided in an embodiment of this application;

[0059] Figure 11 This is a schematic diagram of the structure of a 3D printing device provided in an embodiment of this application;

[0060] Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0061] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0062] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0063] To make it easier to understand, let's first discuss the current posts. Figure 3 This section introduces 3D printing.

[0064] stick Figure 3 The target 3D model for 3D printing has a certain thickness. During printing, not only the surface of the target 3D model needs to be printed with color, but also the textured areas of a specified thickness inside the target 3D model need to be printed with corresponding colors. In one example, the colors of the textured areas of the target 3D model correspond to the colors of the surface of the target 3D model.

[0065] Taking the target 3D model as a sphere as an example, Figure 1 This is a schematic diagram of the structure of a target three-dimensional model provided in this application. Figure 1 As shown, the surface of this sphere model is composed of polygonal patches, such as... Figure 1 The image shows a triangular facet. Different polygonal faces can be the same color or different colors.

[0066] Figure 2 A schematic diagram of the structure of another target three-dimensional model provided in this application. (See attached diagram.) Figure 2As shown, after slicing the sphere model, the area of ​​a specified thickness on the sliced ​​surface of the sphere model is the texture area of ​​the sphere model. In the texturing... Figure 3 During 3D printing, the color of each color point on the texture area can be determined based on the color points on the surface of the corresponding sphere model. In one example, the corresponding color point on the surface of the sphere model is the color point with the smallest distance from the color point on the texture area.

[0067] Currently applying the stickers. Figure 3 In the process of 3D printing, in one example, the distance between the color point on the texture area and the color point on the surface of the sphere model can be calculated. The color point on the surface of the sphere model with the smallest distance can be selected and its color extracted. The extracted color is then used as the printing color of the corresponding color point on the texture area for printing.

[0068] However, since the surface of a sphere model is composed of polygonal facets, if a selected color point on the surface of the sphere model is located on the common edge of two adjacent polygonal facets, and the colors of these two adjacent polygonal facets are different, then the color point located on the common edge may possess the color parameters of the two adjacent polygonal facets. In this case, after extracting the color of the color point on the common edge, the color point on the texture area cannot determine its own required printing color from the surface color points with multiple color parameters, resulting in poor color representation in the 3D printing result.

[0069] In view of this, this application provides a 3D printing method that, during the process of generating point cloud information of a target 3D model based on polygonal patches, only collects points inside the polygonal patches and does not collect points on the edges of the polygonal patches. This ensures that the point cloud information of the target 3D model does not include points on the edges of the polygonal patches, so that when obtaining the color of points on the texture area, the points on the edges of the polygonal patches on the surface of the target 3D model are avoided. This avoids the problem of not being able to determine the color of color points on the texture area and improves the color performance of the 3D printing results.

[0070] The executing entity of the printing method provided in this application can be a 3D printing device with data processing capabilities, a processing chip of the 3D printing device, or software or program code that implements the printing method. When the executing entity is a 3D printing device with data processing capabilities, the software or program code that runs the printing method can be deployed on the 3D printing device, and the 3D printing method can be extracted and executed through the software or program code. The executing entity of the method can also be a cloud platform with data processing capabilities. When the executing entity is a cloud platform, the processing of obtaining the color of points on the texture area in the method can be performed in the cloud. The cloud platform can be logically divided into multiple parts according to actual needs, and each part has different functions. The various parts of the data processing platform can be deployed in any two or three of the electronic devices (located on the user side), the edge environment, and the cloud environment. The edge environment includes a set of edge electronic devices that are close to the electronic devices, including edge servers, edge stations with computing power, etc. The various parts of the data processing platform deployed in different environments or devices work together to realize the functions of the data processing platform. It should be understood that this application does not restrict the specific deployment environment of which parts of the data processing platform are deployed. In actual application, the deployment can be adapted according to the computing power of electronic devices, the resource availability of edge and cloud environments, or specific application requirements.

[0071] The following describes the technical solution of this application and how it solves the above-mentioned technical problems through specific embodiments, taking a 3D printing device as the implementing entity. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0072] Figure 3 This is a schematic flowchart illustrating a 3D printing method provided in an embodiment of this application. Figure 3 As shown, the method may include:

[0073] S301. Obtain the polygonal facets located on the surface of the target 3D model.

[0074] The target 3D model can be a 3D model of a 3D object of any shape, and this application does not impose any restrictions on it. The surface of the target 3D model is composed of multiple polygonal facets. Depending on the accuracy requirements of different parts of the target 3D model, the shapes or areas of the polygonal facets may differ. For example, a model may contain polygonal facets of various shapes (e.g., rectangles, triangles, polygons, etc.), and the areas of different polygonal facets may also differ. Generally, for parts of the model with higher accuracy, the area of ​​the polygonal facets included in that part is smaller.

[0075] One possible implementation is that the 3D printing equipment includes a 3D scanning device, which acquires the three-dimensional data of the target object through 3D scanning, and then generates a target three-dimensional model of the target object through modeling software, as well as acquires the polygonal patches included on the surface of the target three-dimensional model.

[0076] Another possible implementation is that the 3D printing device can directly receive a file containing the target 3D model, including the target 3D model and the polygonal facets on its surface. For example, the user can directly input the target 3D model file into the 3D printing device, or the user can send the file to the 3D printing device through another device.

[0077] S302. Determine the target point inside the polygonal patch.

[0078] One possible implementation is to determine the points that do not belong to the edges of the polygonal patch and those outside the polygonal patch, based on the edges of the polygonal patch (e.g., the coordinate equations of the edges) and each point (e.g., the coordinates of the point). These points are the target points inside the polygonal patch.

[0079] In another possible implementation, after determining all points on the polygonal patch, points located on the edges of the polygonal patch are deleted.

[0080] Specifically, a grid can be determined based on a preset resolution, and the polygonal facets can be divided using a grid set composed of these grids. Points in all grids that do not intersect with the edges of the polygonal facets are taken as target points.

[0081] S303. Based on the target points, generate point cloud information of the target 3D model.

[0082] The point cloud information of the target 3D model is generated based on all target points acquired during the process of generating the point cloud information of the target 3D model. This point cloud information includes the aforementioned target points but excludes points located on the edges of polygonal patches.

[0083] S304. Print the target 3D model based on the point cloud information.

[0084] Based on the point cloud information, and the colors of the points on the surface of the target 3D model included in the point cloud information, the colors of the points in the texture regions inside the model corresponding to these points are determined. Data processing is performed on the slice layer containing the texture region to obtain the layer printing data for that slice layer. Printing is performed based on this layer printing data to obtain that layer of the target 3D model. These layers are stacked one after another to finally print the target 3D model.

[0085] Specifically, the slicing unit (slicing software) of the 3D printing equipment can be used to slice the target 3D model, obtaining at least one slice layer. Based on a preset texture thickness, the outer contour line of the slice layer is shrunk inward using a contour shrinkage method to obtain the inner contour line. The area between the outer and inner contour lines is defined as the texture area of ​​the slice layer. The color of the points in the texture area of ​​the slice layer is determined based on the point cloud information, and the slice layer is printed according to these point colors. Finally, all slice layers are printed to complete the printing process of the target 3D model.

[0086] The 3D printing technologies that can be used in this application include, but are not limited to, stereolithography (SLA), digital light processing (DLP), 3D printing (3DP), multijet fusion (MJF), and various other types of 3D printing or additive manufacturing technologies known in the art, which are not limited herein.

[0087] The method provided in this application, by acquiring polygonal patches located on the surface of a target 3D model, generates point cloud information of the target 3D model only based on target points within the polygonal patches during the point cloud generation process. This point cloud information does not include points on the edges of the polygonal patches. The target 3D model is then printed based on this point cloud information. This avoids acquiring points on the common edges of polygonal patches on the surface of the target 3D model when obtaining the color of points on the texture area, thereby avoiding the problem of not being able to determine the color of color points on the texture area and improving the color performance of the 3D printing results.

[0088] Below, taking the direct acquisition of target points as an example, we will provide a detailed explanation of how to determine the target points inside the polygonal patch in the aforementioned step S302.

[0089] Figure 4 This is a schematic flowchart of another 3D printing method provided in an embodiment of this application. Figure 4 As shown, the aforementioned step S302 may include:

[0090] S401. Generate a mesh set within the bounding box of the polygon facet according to the first resolution.

[0091] The bounding box of the polygonal facet encloses the polygonal facet. This bounding box can be any shape, such as a rectangular bounding box, a circular bounding box, an elliptical bounding box, or a polygonal bounding box; this application does not impose any limitation on this. The bounding box can be one that exactly encloses the polygonal facet, meaning that if the bounding box is further reduced in size, at least one corner of the polygonal facet will be outside the bounding box. Alternatively, the bounding box can be any larger than the bounding box that exactly encloses the polygonal facet.

[0092] For example, Figure 5 This is a schematic diagram of the bounding box of a polygonal patch provided in an embodiment of this application. Figure 5 As shown, the polygonal facet is a triangular facet, the bounding box is a rectangular bounding box, and the bounding box is a bounding box that exactly encloses the polygonal facet.

[0093] This first resolution is used to divide the bounding box into a set of grids consisting of several grids. Figure 5 On this basis, Figure 6 This is a schematic diagram of a grid set for a bounding box provided in an embodiment of this application. Figure 6 As shown, the bounding box includes a set of meshes consisting of several meshes, including meshes located outside the polygonal facet, meshes intersecting the edges of the polygonal facet, and meshes located inside the polygonal facet.

[0094] The first resolution can be set according to actual needs, as long as it can divide the bounding box into the three types of grids mentioned above. Alternatively, the first resolution can be determined based on the printing resolution of the 3D printing equipment; for example, the first resolution may be the same as the printing resolution of the 3D printing equipment, or it may be determined after adjustment based on the printing resolution of the 3D printing equipment.

[0095] If the first resolution is determined based on the printing resolution of the 3D printing device, the method may further include acquiring the first resolution. This acquisition of the first resolution can be achieved through the following steps: acquiring the printing resolution of the 3D printing device used to print the target 3D model. For example, the printing resolution can be extracted from the printing parameters of the 3D printing device by reading them; alternatively, the printing resolution can be obtained through a network query; or, the printing resolution can be acquired in response to user-inputted printing resolution, etc. After acquiring the printing resolution, it is used as the first resolution.

[0096] S402. Determine the first grid located inside the polygon face from the grid set.

[0097] Specifically, whether a grid is the first grid inside a polygonal face can be determined by whether each grid in the grid set intersects with an edge of the polygonal face. If they intersect, it is not the first grid inside the polygonal face; if they do not intersect, it is the first grid inside the polygonal face.

[0098] One possible implementation is to detect whether each grid contains an edge of a polygonal face; if so, it is not the first grid located inside the polygonal face. For example... Figure 6 The grid marked 111b. If not included, it is the first grid located inside the polygonal facet, for example... Figure 6 The grid marked as 111a.

[0099] Another possible implementation is to determine whether a grid is the first grid located inside the polygonal patch based on whether the coordinate range of each grid includes the coordinates of any point on the edge of the polygonal patch. If it includes, then it is not; if it does not include, then it is.

[0100] S403. Determine the target point based on the first grid.

[0101] One possible implementation is to determine the target point based on all points on the first grid. Since the first grid consists of grids inside polygonal patches, every point on each first grid is a point inside a polygonal patch, therefore any point on each first grid is a target point.

[0102] Another possible implementation involves determining the target point based on the first grid and the second grid that intersects with the edges of the polygonal patch. This implementation can be achieved through the following steps:

[0103] S4031. Obtain the second grid from the grid set.

[0104] The second grid refers to the grid within the grid set that intersects with the edges of the polygonal facet. (Continue referring to the preceding text.) Figure 6 The second grid is Figure 6 The grid marked as 111b.

[0105] The second grid is determined based on the position of the edges of the polygonal facet. For example, it can be determined based on the coordinate equations of the edges of the polygonal facet within the bounding box, and the coordinate range of each grid. When a grid's coordinate range contains coordinates applicable to the coordinate equations of the edges of the polygonal facet, that grid is the second grid.

[0106] S4032. Determine the third grid from the second grid based on the second resolution.

[0107] The third grid is a sub-grid located inside a polygonal facet within a sub-grid of the second grid, and the second resolution is higher than the first resolution.

[0108] The second resolution is used to further divide the second grid, that is, to divide the second grid into a grid composed of several sub-grids, including sub-grids located outside the polygonal facets, sub-grids intersecting the edges of the polygonal facets, and sub-grids located inside the polygonal facets.

[0109] One possible implementation is that the second resolution can be determined based on the polygonal patch and the included angle between the polygonal patches adjacent to the polygonal patch, wherein the common edge of the adjacent polygonal patches and the polygonal patch is the edge that intersects with the second grid as mentioned above. In this implementation, the second resolution can be determined based on the mapping relationship between the included angle and the second resolution, and the included angle itself.

[0110] Another possible implementation is that the second resolution can be determined according to actual needs, as long as it is a resolution that can divide the second grid into a set of sub-grids that meet the above requirements. For example, it can be a user-specified second resolution or a preset resolution in the 3D printing device.

[0111] The third grid can be any sub-grid within the polygonal facet of the second grid. For example, it can be a sub-grid within the second grid that is located inside the polygonal facet and whose distance from the edge of the polygonal facet is less than the second distance threshold, or it can be the sub-grid closest to the edge of the polygonal facet. The method for determining the third gridt based on distance is similar to the method for determining the first gridt based on distance described above, and will not be repeated here.

[0112] For example, Figure 7 This is a schematic diagram of a second grid structure provided in an embodiment of this application. Figure 7 As shown, the third grid in the second grid is Figure 7 The subgrid marked as 112a.

[0113] S4033. Determine the target point based on the first grid and the third grid.

[0114] Since the third grid is a sub-grid within the polygonal patch of the second grid, and the first grid is a grid within the polygonal patch of the grid set, both are regions within the polygonal patch. Therefore, the points in the first grid and the third grid are target points within the polygonal patch.

[0115] The method provided in this application generates a mesh set within the bounding box of a polygonal patch according to a first resolution, determines a first mesh located inside the polygonal patch from the mesh set, and determines a target point based on the first mesh, so that the point cloud information does not include points located on the edges of the polygonal patch. This avoids taking points located on the common edges of the polygonal patch during the generation of the point cloud information of the target 3D model, thereby improving the accuracy of further determining the color information of corresponding points in the texture area based on the color information of points on the surface of the target 3D model, and thus improving the color effect of the 3D printing result.

[0116] The following section describes how the second resolution is determined in step S4032 based on the polygonal facet and the included angle between the polygonal facets adjacent to the polygonal facet. Figure 8 This is a schematic flowchart illustrating another 3D printing method provided in an embodiment of this application. Figure 8 As shown, the method may further include:

[0117] S801. Obtain the angle between the polygonal facet and the adjacent polygonal facet.

[0118] The angle between the polygonal facet and its adjacent polygonal facets can be obtained from the 3D model parameters of the target 3D model.

[0119] S802. Based on the included angle and the mapping relationship between the included angle and the second resolution, determine the second resolution applied to the second grid that intersects each side of the polygon patch.

[0120] The included angle is negatively correlated with the second resolution. When the included angle is larger, the polygonal facets tend to lie on the same plane as their adjacent faces. In this case, higher printing precision is not required to print accurate colors at a specified point during 3D printing. Therefore, determining the target point using a lower second resolution ensures accurate color printing at that point. Conversely, when the included angle is smaller, higher printing precision is required to ensure accurate color printing at a specified point during 3D printing. Therefore, a higher second resolution is needed to determine the target point to ensure accurate color printing at that point.

[0121] The mapping relationship between the included angle and the second resolution can be pre-stored in the 3D printing device. When the second resolution needs to be determined, the mapping relationship can be retrieved from the storage medium of the 3D printing device. Alternatively, the mapping relationship can be obtained from a third-party device connected to the 3D printing device. When the second resolution needs to be determined, the mapping relationship can be actively retrieved or received from the third-party device.

[0122] Based on the included angle and the mapping relationship between the included angle and the second resolution, the second resolution applied to the second grid that intersects each side of the polygon patch is determined.

[0123] exist Figure 8 In the implementation shown, refer to the aforementioned Figure 6 In the mesh set, there are also meshes that intersect with at least two edges of the polygonal facet. Based on the meshes that intersect with at least two edges of the polygonal facet, the corresponding two included angles are obtained (i.e., the included angle between the first adjacent polygonal facet that shares the first edge with the polygonal facet and the polygonal facet itself, and the included angle between the second adjacent polygonal facet that shares the second edge with the polygonal facet itself). In this implementation, the second resolution can also be determined by the following method.

[0124] Figure 9 This is a schematic flowchart illustrating another 3D printing method provided in an embodiment of this application. Figure 9 As shown, the method may further include:

[0125] S901. If the second grid intersects at least two sides of the polygonal face, then obtain the angle between at least two polygonal faces adjacent to the polygonal face and the polygonal face.

[0126] Specifically, based on the at least two edges, at least two polygonal faces adjacent to the polygonal face are determined, and the at least two included angles are obtained respectively by the method of obtaining included angles in the aforementioned S801.

[0127] S902. Determine at least two third resolutions based on the included angle.

[0128] The third resolution is the resolution corresponding to each included angle. Since a second resolution needs to be finally determined from the third resolution, the third resolution can be understood as a candidate second resolution.

[0129] Based on each acquired angle and the mapping relationship between the angle and the second resolution, at least two candidate second resolutions are determined, which are the third resolutions mentioned in this step. How to determine the angles and the mapping relationship between the angles and the second resolutions can be found in the foregoing embodiments, and will not be repeated here.

[0130] S903: Obtain a second resolution from at least two third resolutions.

[0131] The second resolution is the highest of at least two third resolutions.

[0132] Since multiple second resolutions exist, selecting a lower-resolution third resolution as the second resolution would not meet the color printing requirements of adjacent polygonal faces that require higher resolution. Therefore, to ensure that the color printing requirements of adjacent polygonal faces corresponding to each included angle are met, the highest resolution among the third resolutions should be used as the second resolution to ensure accurate color printing at all points.

[0133] The method provided in this application determines a second resolution that meets the printing accuracy requirements corresponding to the angle between a polygonal facet and its adjacent polygonal facets by considering the relationship between the angle and the printing accuracy. This allows for the acquisition of more accurate target points, avoids color deviation during printing, and further improves the color effect of 3D printing.

[0134] The following section provides a detailed explanation of how to determine the color of the texture inside the target 3D model based on the point cloud information in step S304. Figure 10 This is a schematic flowchart illustrating another 3D printing method provided in an embodiment of this application. Figure 10 As shown, the aforementioned step S304 may include:

[0135] S1001. Obtain the undetermined color points on the texture area inside the target 3D model.

[0136] The undetermined color point can be any point on the texture area inside the target 3D model, and the color point can be determined according to the printing accuracy of the 3D printing equipment. Before performing the printing operation, the color parameters of each undetermined color point need to be determined in order to print the texture area inside the target 3D model with color.

[0137] The undetermined color point can be obtained by voxelizing the texture area inside the target 3D model.

[0138] S1002. Select the point in the target points that is closest to the color point to be determined as the sample point of the color point to be determined.

[0139] The point cloud information includes all target points on the surface of the target 3D model, but these target points do not include points on the edges of polygonal patches.

[0140] It can iterate through the distances between the undetermined color point and each target point, and based on these distances, determine the target point that is closest to the undetermined color point, and use that target point as the sample point for the undetermined color point.

[0141] S1003. Determine the color of the undetermined color point based on the color of the sample point.

[0142] Extract the color parameters of the sample point and use these color parameters as the color parameters of the undetermined color point.

[0143] S1004. Print the target 3D model based on the color of the undetermined color points.

[0144] Based on the color parameters of the undetermined color point, print parameters for printing the target 3D model are generated, and the target 3D model is printed using these print parameters.

[0145] Figure 11 This is a schematic diagram of the structure of a 3D printing device provided in an embodiment of this application. Figure 11 As shown, the printing device may include: an acquisition module 11, a processing module 12, a generation module 13, and a control module 14.

[0146] The acquisition module 11 is used to acquire polygonal patches located on the surface of the target 3D model, the surface of which is composed of multiple polygonal patches.

[0147] Processing module 12 is used to determine the target point inside the polygonal patch.

[0148] The generation module 13 is used to generate point cloud information of the target 3D model based on the target point, the point cloud information not including points located on the edges of the polygonal patch.

[0149] The control module 14 is used to print the target 3D model based on the point cloud information.

[0150] Optionally, the processing module 12 is specifically configured to generate a mesh set within the bounding box of the polygonal patch according to a first resolution. From this mesh set, a first mesh located inside the polygonal patch is determined, and based on this first mesh, the target point is determined.

[0151] Optionally, processing module 12 is specifically used to obtain a second grid from the grid set. A third grid is determined from the second grid based on a second resolution, and the target point is determined based on the first grid and the third grid. The second grid is the grid in the grid set that intersects with the edge of the polygonal facet. The third grid is a sub-grid within the polygonal facet of the second grid, and the second resolution is higher than the first resolution.

[0152] Optionally, the processing module 12 is specifically used to determine a third grid from the second grid based on a specified second resolution.

[0153] Optionally, the processing module 12 is further configured to obtain the included angle between the polygonal patch and adjacent polygonal patches. Based on the included angle and the mapping relationship between the included angle and the second resolution, a second resolution applied to the second grid intersecting each edge of the polygonal patch is determined, wherein the included angle is negatively correlated with the second resolution.

[0154] Optionally, the processing module 12 is further configured to, if the second grid intersects at least two edges of the polygonal patch, obtain the angle between the polygonal patch and at least two adjacent polygonal patches. Based on the angle, determine at least two third resolutions. Obtain the second resolution from the at least two third resolutions, wherein the second resolution is the highest resolution among the at least two third resolutions.

[0155] Optionally, the acquisition module 11 is further configured to acquire the printing resolution of the 3D printing device for printing the target 3D model before generating a mesh set within the bounding box of the polygonal patch according to the first resolution. The processing module 12 is further configured to use the printing resolution as the first resolution.

[0156] Optionally, the acquisition module 11 is specifically used to acquire the undetermined color point on the texture area inside the target 3D model. The processing module 12 is specifically used to take the point closest to the undetermined color point among the target points as the sample point of the undetermined color point. The color of the undetermined color point is determined based on the color of the sample point. The control module 14 is specifically used to print the target 3D model based on the color of the undetermined color point.

[0157] The 3D printing apparatus provided in this application embodiment can execute the 3D printing method in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described again here.

[0158] Figure 12 This is a schematic diagram of an electronic device provided in an embodiment of this application. The electronic device is used to perform the aforementioned 3D printing method, and may be, for example, the aforementioned 3D printing device with data processing capabilities. Figure 12 As shown, the electronic device 1200 may include at least one processor 1201, a memory 1202, and a communication interface 1203.

[0159] The memory 1202 is used to store programs. Specifically, the program may include program code, which includes computer operation instructions.

[0160] The memory 1202 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0161] The processor 1201 is used to execute computer execution instructions stored in the memory 1202 to implement the method described in the foregoing method embodiments. The processor 1201 may be a CPU, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.

[0162] The processor 1201 can communicate and interact with external devices through the communication interface 1203. These external devices can be, for example, the aforementioned third-party devices. In specific implementations, if the communication interface 1203, memory 1202, and processor 1201 are implemented independently, they can be interconnected via a bus to complete communication. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc., but this does not imply that there is only one bus or one type of bus.

[0163] Optionally, in a specific implementation, if the communication interface 1203, memory 1202 and processor 1201 are integrated on a single chip, then the communication interface 1203, memory 1202 and processor 1201 can communicate through an internal interface.

[0164] This application also provides a computer-readable storage medium, which may include various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. Specifically, the computer-readable storage medium stores program instructions, which are used in the methods described in the above embodiments.

[0165] This application also provides a program product including executable instructions stored in a readable storage medium. At least one processor of a computing device can read the executable instructions from the readable storage medium, and the at least one processor executes the executable instructions to cause the computing device to perform the 3D printing method described above.

[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A 3D printing method, characterized in that, include: Obtain polygonal patches located on the surface of a target 3D model, wherein the surface of the target 3D model is composed of multiple polygonal patches; Determine the target point inside the polygonal patch; Based on the target point, point cloud information of the target 3D model is generated, wherein the point cloud information does not include points located on the edges of the polygonal facet; Print the target 3D model based on the point cloud information.

2. The method according to claim 1, characterized in that, Determining the target point inside the polygonal patch includes: A mesh set is generated within the bounding box of the polygonal patch according to the first resolution; Determine the first grid located inside the polygonal facet from the grid set; The target point is determined based on the first grid.

3. The method according to claim 2, characterized in that, Determining the target point based on the first grid includes: Obtain a second grid from the grid set, wherein the second grid is the grid in the grid set that intersects with the edge of the polygonal facet; A third grid is determined from the second grid based on a second resolution, wherein the third grid is a sub-grid located inside the polygonal patch within a sub-grid of the second grid, and the second resolution is higher than the first resolution; The target point is determined based on the first grid and the third grid.

4. The method according to claim 3, characterized in that, Determining the third grid from the second grid based on the second resolution includes: The third grid is determined from the second grid based on a specified second resolution.

5. The method according to claim 3, characterized in that, Determining the third grid from the second grid based on the second resolution also includes: Obtain the angle between the polygonal facet and the adjacent polygonal facet; Based on the included angle and the mapping relationship between the included angle and the second resolution, a second resolution is determined for the second grid that intersects each side of the polygonal patch, wherein the included angle is negatively correlated with the second resolution.

6. The method according to claim 5, characterized in that, Also includes: If the second grid intersects at least two sides of the polygonal facet, then obtain the included angles between the polygonal facet and at least two adjacent polygonal facests. Based on the included angle, at least two third resolutions are determined; The second resolution is obtained from at least two of the third resolutions, wherein the second resolution is the highest resolution among the at least two third resolutions.

7. The method according to any one of claims 2-6, characterized in that, Before generating a mesh set within the bounding box of the polygonal patch according to the first resolution, the method further includes: Obtain the printing resolution of the 3D printing equipment used to print the target 3D model; The printing resolution is taken as the first resolution.

8. The method according to any one of claims 1-6, characterized in that, The step of printing the target 3D model based on the point cloud information includes: Obtain the undetermined color points on the texture area inside the target 3D model; The point among the target points that is closest to the undetermined color point is taken as the sample point of the undetermined color point; The color of the undetermined color point is determined based on the color of the sample points; Print the target 3D model based on the colors of the undetermined color points.

9. A 3D printing device, characterized in that, include: The acquisition module is used to acquire polygonal patches located on the surface of a target 3D model, wherein the surface of the target 3D model is composed of multiple polygonal patches. The processing module is used to determine the target point inside the polygonal patch; A generation module is used to generate point cloud information of the target 3D model based on the target point, wherein the point cloud information does not include points located on the edges of the polygonal facets; The control module is used to print the target 3D model based on the point cloud information.

10. An electronic device, characterized in that, include: The processor includes a communication interface and a memory, wherein the processor is communicatively connected to the communication interface and the memory, respectively. The memory stores computer-executed instructions; The communication interface communicates and interacts with external devices. The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the 3D printing method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • 3D printing-slicing method and device, equipment, and storage medium

    CN112102460A

  • Three-dimensional grid reconstruction method and device, electronic device and storage medium

    CN113470180A