3D printing method and device, storage medium and program product
By identifying different faces of the 3D model and generating surface quality improvement strategies for the internal faces, the problem of printing accuracy and time mismatch in the existing technology is solved, and the printing quality and efficiency of the outer surface of the 3D model are improved.
Patent Information
- Application Number
- CN202111342039.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-11-12
AI Technical Summary
When existing 3D printing technology improves the printing quality of the outer surface of a 3D model, it cannot effectively distinguish the accuracy requirements of different surfaces, resulting in a mismatch between printing accuracy and time.
By identifying the splicing surface, appearance surface and internal surface of the 3D model, a surface quality improvement strategy is generated for the internal surface, and the slice layer height and Z seam position are adjusted to improve the printing quality of the external surface of the 3D model.
It realizes the application of different printing strategies according to the accuracy requirements of different surfaces, improves the printing quality of 3D models, saves printing time, and reduces the impact of Z seams on the appearance.
Smart Images

Figure CN114043727B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of 3D printing, and in particular to a method and apparatus for 3D printing, a computer-readable storage medium, and a computer program product. Background Art
[0002] 3D printer, also known as three-dimensional printer, stereo printer, is a kind of rapid prototyping process equipment, usually realized by printing wire with digital technology. 3D printers are often used to make models or parts in the fields of mold manufacturing, industrial design, etc. In recent years, 3D printing technology has great application prospects in jewelry, footwear, industrial design, architecture, engineering and construction (AEC), automobile, aerospace, dental and medical industries, education, geographic information systems, civil engineering, firearms and other fields.
[0003] The three-dimensional printing method known in the art first builds a model through computer modeling software and imports the model into slicing software. The slicing software decomposes the model into a series of slices and the plane information corresponding to the slices according to different process requirements and a certain thickness. Combined with the slicing results of the model decomposition and the processing parameters of the 3D printer, a code (for example, G-CODE) recognizable by the 3D printer is generated. Finally, the 3D printer is driven by the code to plan the printing path, process each layer of slices in an orderly manner, and stack the multiple slices until a solid model is formed. Summary of the invention
[0004] The present disclosure provides a method and apparatus for 3D printing, a computer-readable storage medium, and a computer program product.
[0005] According to some aspects of the present disclosure, a method for 3D printing is provided. The method includes: obtaining a 3D model file, wherein the 3D model file defines a 3D model composed of multiple parts; disassembling the 3D model into multiple parts, wherein the outer surface of each part includes multiple facets; identifying the splicing surface, appearance surface, and internal surface for the 3D model, wherein each splicing surface is a facet for splicing with another part among multiple facets of a corresponding part among multiple parts, each appearance surface is a facet used as the outer surface of the 3D model among multiple facets of a corresponding part among multiple parts, and the internal surface is a facet of each facet of multiple parts except the splicing surface and the appearance surface; and generating a control code for execution by a processor of a 3D printer, wherein the control code enables a surface quality improvement strategy to be applied at least to the internal surface to improve the printing quality of the outer surface of the 3D model.
[0006] According to another aspect of the present disclosure, a device for 3D printing is also provided. The device includes: a first unit configured to obtain a three-dimensional model file, wherein the three-dimensional model file defines a three-dimensional model composed of multiple parts; a second unit configured to disassemble the three-dimensional model into multiple parts, wherein the outer surface of each part includes multiple facets; a third unit configured to identify the splicing surface, the appearance surface, and the internal surface for the three-dimensional model, wherein each splicing surface is a facet for splicing with another part among the multiple facets of a corresponding part of the multiple parts, each appearance surface is a facet used as the outer surface of the three-dimensional model among the multiple facets of a corresponding part of the multiple parts, and the internal surface is a facet of each facet of the multiple parts except the splicing surface and the appearance surface; and a fourth unit configured to generate a control code for execution by a processor of a 3D printer, wherein the control code enables a surface quality improvement strategy to be applied at least to the internal surface to improve the printing quality of the outer surface of the three-dimensional model.
[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above method for 3D printing.
[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program performs the above-mentioned method for 3D printing when executed by a processor.
[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in accordance with the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0011] Figure 1 A flowchart of a method for 3D printing according to some exemplary embodiments of the present disclosure is shown;
[0012] Figure 2 A schematic diagram of a splicing surface of a three-dimensional model according to some exemplary embodiments of the present disclosure is shown;
[0013] Figure 3 A schematic diagram showing an exterior surface of a three-dimensional model according to some exemplary embodiments of the present disclosure;
[0014] Figure 4 A schematic diagram showing the interior surface of a three-dimensional model according to some exemplary embodiments of the present disclosure;
[0015] Figure 5 According to an exemplary embodiment of the present disclosure, Figure 1 An example process of identifying the stitching surfaces of a three-dimensional model in a method;
[0016] Figure 6 According to an exemplary embodiment of the present disclosure, Figure 1 An example process for identifying the appearance surface of a three-dimensional model in a method;
[0017] Figure 7 A schematic diagram showing a method of identifying an appearance surface of a three-dimensional model according to some exemplary embodiments of the present disclosure is shown;
[0018] Figure 8 Another exemplary embodiment of the present disclosure is shown in Figure 1 An example process for identifying an appearance surface of a three-dimensional model in a method; and
[0019] Fig. 9 A structural block diagram of a device for 3D printing according to an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0020] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0021] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same example of the element, and in some cases, based on the description of the context, they may also refer to different examples.
[0022] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.
[0023] In practice, slicing software provides a variety of functions dedicated to improving the surface quality of 3D models. These functions perform specific operations by analyzing the surface geometric features of the parts that make up the 3D model. These operations include, for example:
[0024] 1. Adaptive layer height. Adjust the slice layer height according to the angle between the surface of the 3D model and the horizontal plane. Setting the slice to have a small layer height can make the surface of the model look more delicate, but of course it will take longer to complete the printing.
[0025] 2. Z-seam position setting. The outer wall of each slice is basically a closed polygon. There are starting points and end points on the route planned by the 3D printer. When printing is completed, the 3D printer will extrude more or less wire material, resulting in the two points being close together, but there is still a visible gap (Z-seam) in the middle, affecting the appearance of the model. In related technologies, sharp corners are usually selected as Z-seam positions, which can make the Z-seam look less obvious, but if the model does not have obvious corners (such as cylindrical parts), the impact of the Z-seam on the appearance cannot be effectively avoided.
[0026] The inventors have realized that in a 3D model, different surfaces have different requirements for printing accuracy. Some surfaces do not require high-precision printing, while other surfaces require higher printing accuracy. Therefore, by identifying these different surfaces and applying different printing strategies to these surfaces, the printing quality of the 3D model can be improved while saving printing time.
[0027] In view of this, the embodiments of the present disclosure provide a method and apparatus for 3D printing, a computer-readable storage medium, and a computer program product, which can alleviate, mitigate, or even eliminate the above-mentioned problems.
[0028] Figure 1 A flow chart of a method 100 for 3D printing according to some exemplary embodiments of the present disclosure is shown. The method 100 may be executed by slicing software and may include the following steps.
[0029] In step 101, a three-dimensional model file is obtained, wherein the three-dimensional model file defines a three-dimensional model composed of multiple parts.
[0030] According to some embodiments, the 3D model file defines a complete 3D model composed of multiple parts. These parts can be printed with the same wire or different wires (for example, wires of different colors or wires of different materials).
[0031] In step 102 , the three-dimensional model is decomposed into a plurality of parts, wherein the outer surface of each part includes a plurality of face patches.
[0032] According to some embodiments, the 3D model file includes splicing information describing the splicing relationship between the multiple parts, and the 3D model is disassembled into the multiple parts based on the splicing information.
[0033] In one example, the 3D model file received by the slicing software may be a file in the general STEP format generated by the CAD software. In the STEP format file, not only the complete 3D model is defined, but also the splicing information describing the splicing relationship between the various parts in the 3D model is included. The slicing software can directly determine the splicing relationship between the various parts through such splicing information, and then disassemble the 3D model into multiple parts based on the determined splicing relationship.
[0034] In another example, the 3D model file received by the slicing software may not contain the splicing information describing the splicing relationship between the various parts in the 3D model. In this case, the slicing software can analyze and obtain the splicing relationship between the various parts, or the user can specify the splicing relationship between the various parts. Then, based on the splicing relationship, the 3D model is disassembled into multiple parts.
[0035] According to some embodiments, the outer surface of the three-dimensional model is composed of a plurality of facets with common vertices. In one example, the shape of these facets may be a triangle or a rectangle, but the present disclosure is not limited thereto.
[0036] According to some embodiments, the relative spatial positions of the plurality of parts in the three-dimensional model before the disassembly are maintained after the disassembly.
[0037] In step 103, the splicing surfaces, appearance surfaces and internal surfaces used for the three-dimensional model are identified, wherein each splicing surface is a surface patch among the multiple surface patches of a corresponding part among the multiple parts for splicing with another part, each appearance surface is a surface patch among the multiple surface patches of a corresponding part among the multiple parts used as the outer surface of the three-dimensional model, and the internal surface is a surface patch among the multiple parts except the splicing surfaces and the appearance surfaces.
[0038] refer to Figure 2 , which shows a schematic diagram of the splicing surface of a three-dimensional model. Figure 2 In the example of FIG. 2 , surface 201 and surface 202 are the joint surfaces of part 21 and other different parts in the three-dimensional model, and both joint surface 201 and joint surface 202 include multiple facets. The method for identifying the joint surfaces for the three-dimensional model will be described later in conjunction with FIG. Figure 5 Detailed description.
[0039] Understandably, Figure 2 This is just an example to clearly show the joint surface between parts, and does not represent the result after the three-dimensional model is disassembled into multiple parts. The joint surface between part 21 and other multiple parts in the three-dimensional model is not limited to Figure 2 The splicing surface 201 and the splicing surface 202 shown in FIG.
[0040] refer to Figure 3 , which shows a schematic diagram of the appearance of a three-dimensional model. Figure 3 In the example, surface 301, surface 302, surface 303, and surface 304 are appearance surfaces in the three-dimensional model. In one example, surface 301, surface 302, surface 303, and surface 304 all include multiple facets. The method for identifying appearance surfaces for the three-dimensional model will be described later in conjunction with Figure 6 , Figure 7 and Figure 8 Detailed description.
[0041] Understandably, Figure 3 Only partial appearance surfaces of the three-dimensional model in the figure are listed and shown, and the actual appearance surfaces are not limited thereto, and are not intended to limit the scope of the present disclosure.
[0042] For the convenience of clear display Figure 3 The internal surface of the 3D model, reference Figure 4 , wherein the parts on the top of the three-dimensional model are removed, and at this time, surface 401, surface 402 and surface 403 are the inner surfaces of the three-dimensional model. In one example, surface 401, surface 402 and surface 403 all include multiple face patches.
[0043] Understandably, Figure 4 Only some of the internal surfaces of the three-dimensional model in the figure are listed and displayed. The actual internal surfaces are not limited to these and are not limited here.
[0044] According to some embodiments, after the identification of the joint surfaces and appearance surfaces is completed, the identified joint surfaces and appearance surfaces are excluded from all the facets of each part of the three-dimensional model, and the remaining facets are the internal faces of the three-dimensional model.
[0045] In step 104 , a control code for execution by a processor of a 3D printer is generated, wherein the control code causes a surface quality improvement strategy to be applied at least to the inner surface to improve the printing quality of the outer surface of the three-dimensional model.
[0046] According to some embodiments, the surface quality improvement strategy includes: setting a slice layer height for the internal surface, wherein the slice layer height set for the internal surface is greater than the slice layer height set for the external surface and the joint surface. This is because the internal surface has a lower requirement for printing accuracy, while the external surface and the joint surface may have a higher requirement for printing accuracy.
[0047] In one example, when the slicing software executes the surface quality improvement strategy, the layer height set for the internal surface can be greater than the layer height set for the splicing surface, and the layer height set for the splicing surface can be greater than or equal to the layer height set for the appearance surface. In another example, when the slicing software executes the surface quality improvement strategy, the layer height set for the internal surface can be greater than the layer height set for the appearance surface, and the layer height set for the appearance surface can be greater than the layer height set for the splicing surface.
[0048] According to some embodiments, the surface quality improvement strategy includes setting the Z-seam position on the inner surface.
[0049] In one example, when the slicer software generates a control code (e.g., G-CODE), the starting point of the printing path of each slice layer is set on the inner surface, and the ending point is also set on the inner surface, and the starting point and the ending point are close in space. After printing a layer of slices, there is a Z gap between the starting point and the ending point, and the Z gap is located on the inner surface, so as not to affect the appearance of the printed product.
[0050] According to some embodiments, after completing the identification of the joint surface, the exterior surface, and the interior surface, the slicing software may also assign the multiple parts disassembled from the three-dimensional model to one or more virtual hot beds, where each virtual hot bed corresponds to the real hot bed of the 3D printer. This may be referred to as "plating", because the process of assigning parts to the virtual hot bed is like placing these parts on a "plate". Accordingly, the control code generated in step 104 may include instructions corresponding to the results of the plating. When these instructions are executed by the processor of the 3D printer, the 3D printer will print out these parts on the hot bed according to the plating results set by the slicing software.
[0051] The following will be combined Figure 5 Described in Figure 1 An example process of identifying stitching surfaces of a three-dimensional model in method 100.
[0052] According to some embodiments, the 3D model file also defines the printing tolerance between each two parts that are in a splicing relationship with each other. In order to cope with errors that occur during the printing process, the creator of the 3D model can define the printing tolerance in the generated 3D model file when designing the 3D model (for example, using CAD software). After receiving the 3D model file, the slicing software can read this printing tolerance.
[0053] In such an embodiment, identifying the joining surfaces of the three-dimensional model may include the following example operations.
[0054] In step 501, while keeping the center position of the multiple parts unchanged, each part is enlarged so that each face of the part is enlarged and moved a predetermined distance in a direction away from the center of the part. The predetermined distance is positively correlated with the printing tolerance, so that there is an intersection between the face of each part before enlargement and the face of the rest of the parts except the part after enlargement. In this way, it is ensured that after two parts in a splicing relationship are enlarged, one part before enlargement and the other part after enlargement will have face intersections.
[0055] In one example, the predetermined distance is the sum of a predetermined value (gap) and a printing tolerance (tolerance), that is, predetermined distance = gap + tolerance. In another example, the predetermined distance may be gap + tolerance × 0.5. It will be understood that the predetermined distance given here is only an example and does not limit the scope of the present disclosure.
[0056] In step 502, the intersection between the multiple face patches of each part before enlargement and the face patches of the remaining parts except the part in the multiple parts after enlargement is determined as the splicing surface corresponding to the part.
[0057] As mentioned above, based on the spatial position information of a single part before enlargement, it is detected whether the part has intersecting faces with all other enlarged parts, and the intersecting faces are identified as joint faces.
[0058] In step 503, the joint surfaces corresponding to the plurality of parts are used as the joint surfaces of the three-dimensional model.
[0059] In one example, the slicing software collects the joint surfaces corresponding to all the identified parts as the joint surfaces of the three-dimensional model.
[0060] The following will be combined Figure 6 , Figure 7 and Figure 8 Detailed description in Figure 1 An example process of identifying an appearance surface of a three-dimensional model in method 100.
[0061] In step 601 , a bounding box surrounding a three-dimensional model is generated.
[0062] In one example, the slicing software detects edge coordinates of a 3D model and uses the edge coordinates to generate a bounding box that encloses the 3D model.
[0063] In step 602, grid sampling is performed on each surface of the bounding box based on a preset sampling rate to obtain a plurality of grid points.
[0064] In step 603, a ray extending toward the three-dimensional model and perpendicular to the surface of the bounding box where the grid point is located is generated at each grid point, so that at least a portion of the ray intersects with the outer surface of the three-dimensional model.
[0065] refer to Figure 7 For example, surface 701 is composed of multiple patches ( Figure 7 The rays start from the grid points on the surface of the bounding box and pass through the three-dimensional model in the bounding box along the direction perpendicular to the surface of the bounding box, wherein at least a part of the rays intersects the surface 701 at each facet 702 ( Figure 7 There may be some rays that do not intersect any patch in the surface 701.
[0066] In step 604, the facet corresponding to the position where the at least a portion of the rays intersects the outer surface of the three-dimensional model for the first time is identified as an appearance surface.
[0067] Continue to refer Figure 7 In this example, multiple facets 702 are identified as the appearance surfaces of the three-dimensional model. Considering that the ray usually passes through the entire three-dimensional model (i.e., intersects the outer surface of the three-dimensional model twice), for a ray starting from each surface of the bounding box, only the facet where the ray intersects with the outer surface of the three-dimensional model for the first time is identified as the appearance surface.
[0068] In some cases, the mesh sampling rate may be low, so that rays starting from the bounding box surface cannot hit some of the exterior faces of the 3D model. Figure 7 In FIG. 7 , the recognized appearance surfaces are only the plurality of face patches 702 indicated by the black triangle blocks, and the face patches indicated by the remaining blank triangle blocks should also be recognized as appearance surfaces.
[0069] In view of this situation, according to some embodiments, Figure 8 Another example process for identifying the appearance of a three-dimensional model is shown. Figure 8 In the example, the appearance of the 3D model is identified by:
[0070] In step 801 , a bounding box surrounding a three-dimensional model is generated.
[0071] In step 802, grid sampling is performed on each surface of the bounding box based on a preset sampling rate to obtain a plurality of grid points.
[0072] In step 803, a ray extending toward the three-dimensional model and perpendicular to the surface of the bounding box where the grid point is located is generated at each grid point, so that at least a portion of the ray intersects with the outer surface of the three-dimensional model.
[0073] In step 804, the facet corresponding to the position where the at least a portion of the rays intersects the outer surface of the three-dimensional model for the first time is identified as an appearance surface.
[0074] Step 801 to step 804 are similar to step 601 to step 604 and are not described here for the sake of brevity.
[0075] In step 805 , adjacent face patches of the face patch identified as the appearance surface are further identified as appearance surfaces, wherein the adjacent face patches have common vertices with the face patch identified as the appearance surface.
[0076] Return to reference Figure 7 In order to compensate for the problem that some patches on surface 701 that originally belong to appearance surfaces are not correctly identified as appearance surfaces due to low mesh sampling rate, patches that share vertices with each patch 702 can be identified as appearance surfaces of the three-dimensional model.
[0077] It will be appreciated that when the grid sampling rate is high enough, step 805 is not necessary.
[0078] Fig. 9 FIG. 9 shows a structural block diagram of an apparatus 900 for 3D printing according to an exemplary embodiment of the present disclosure. Fig. 9 As shown, the device 900 includes:
[0079] The first unit 901 is configured to obtain a three-dimensional model file, wherein the three-dimensional model file defines a three-dimensional model composed of multiple parts.
[0080] The second unit 902 is configured to decompose the three-dimensional model into a plurality of parts, wherein the outer surface of each part includes a plurality of face patches.
[0081] The third unit 903 is configured to identify splicing surfaces, appearance surfaces and internal surfaces used for the three-dimensional model, wherein each splicing surface is a surface patch among multiple surface patches of a corresponding part among the multiple parts for splicing with another part, each appearance surface is a surface patch among multiple surface patches of a corresponding part among the multiple parts used as the outer surface of the three-dimensional model, and the internal surface is a surface patch among the surface patches of the multiple parts except the splicing surfaces and the appearance surfaces.
[0082] The fourth unit 904 is configured to generate a control code for execution by a processor of the 3D printer, wherein the control code enables applying a surface quality improvement strategy at least to the inner surface to improve the printing quality of the outer surface of the three-dimensional model.
[0083] According to an embodiment of the present disclosure, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory. The processor is configured to execute the computer program to implement the steps of any method embodiment described above.
[0084] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium is further provided, on which instructions are stored, wherein when the instructions are executed by a processor, the steps of the method 100 described in any of the above embodiments are implemented. For the sake of brevity, the details of the method 100 are not repeated.
[0085] According to an embodiment of the present disclosure, a computer program product is further provided, including instructions, wherein when the instructions are executed by a processor, the steps of the method 100 described in any of the above embodiments are implemented. For the sake of brevity, the details of the method 100 are not repeated.
[0086] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0087] It should be understood that in this specification, the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships or dimensions that are based on the orientations or positional relationships or dimensions shown in the accompanying drawings, and these terms are used only for the convenience of description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the scope of protection of the present disclosure.
[0088] In addition, the terms "first", "second", "third", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", "third" may explicitly or implicitly include one or more of the feature. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0089] In the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or a communication; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
[0090] In the present disclosure, unless otherwise expressly specified and limited, a first feature being “above” or “below” a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being “above”, “above”, and “above” a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being “below”, “below”, and “below” a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.
[0091] This specification provides many different embodiments or examples that can be used to implement the present disclosure. It should be understood that these different embodiments or examples are purely exemplary and are not intended to limit the scope of protection of the present disclosure in any way. Those skilled in the art can conceive of various changes or replacements based on the disclosure of the present specification, which should all be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection defined by the attached claims.
Claims
1. A method for 3D printing, the method include: Acquire a three-dimensional model file, wherein the three-dimensional model file defines a three-dimensional model composed of a plurality of parts and a printing tolerance between every two parts that are in a splicing relationship with each other; Decomposing the three-dimensional model into the multiple parts, wherein the outer surface of each part includes multiple facets; Identify the stitching faces, appearance faces, and internal faces for the three-dimensional model, wherein each stitching face is a face patch of the plurality of face patches of a corresponding part among the plurality of parts for stitching with another part, each appearance face patch is a face patch of the plurality of face patches of a corresponding part among the plurality of parts used as an outer surface of the three-dimensional model, and the internal faces are face patches of the plurality of parts other than the stitching faces and the appearance faces, and wherein identifying the stitching faces of the three-dimensional model comprises: While keeping the center positions of the multiple parts unchanged, enlarging each part so that each face patch of the part is enlarged and moved in a direction away from the center of the part by a predetermined distance, wherein the predetermined distance is positively correlated with the printing tolerance, so that there is an intersection between the multiple face patches of each part before enlarging and the face patches of the remaining parts of the multiple parts except the part after enlarging; Determine the intersection between the multiple face patches of each part before enlargement and the face patches of the remaining parts of the multiple parts except the part after enlargement as the splicing surface corresponding to the part, and each splicing surface corresponding to the multiple parts is the splicing surface of the three-dimensional model; and A control code for execution by a processor of a 3D printer is generated, wherein the control code causes a surface quality improvement strategy to be applied at least to the inner surface to improve the printing quality of the outer surface of the three-dimensional model.
2. The method according to claim 1, in, The three-dimensional model file includes splicing information describing a splicing relationship between the plurality of parts, and wherein disassembling the three-dimensional model into the plurality of parts includes: Based on the splicing information, disassembling the three-dimensional model into the plurality of parts; and The plurality of parts are maintained in relative spatial positions in the three-dimensional model after being disassembled as those before being disassembled.
3. The method according to claim 2, in, Identifying the appearance surface of the three-dimensional model includes: generating a bounding box surrounding the three-dimensional model; Based on a preset sampling rate, grid sampling is performed on each surface of the bounding box to obtain a plurality of grid points; generating, at each grid point, a ray extending toward the three-dimensional model and perpendicular to the surface of the bounding box where the grid point is located, so that at least a portion of the ray intersects with the outer surface of the three-dimensional model; and A facet corresponding to a position where the at least a portion of rays intersects the outer surface of the three-dimensional model for the first time is identified as the appearance surface.
4. The method according to claim 3, further comprising: include: An adjacent face patch of the face patch identified as the appearance surface is further identified as the appearance surface, wherein the adjacent face patch has a common vertex with the face patch identified as the appearance surface.
5. The method according to claim 1, in, Identifying the internal surface of the three-dimensional model includes: The remaining face patches of each of the plurality of parts except the splicing faces and the appearance faces are used as the internal faces of the three-dimensional model.
6. The method according to any one of claims 1 to 5, in, The surface quality improvement strategies include: A slice layer height is set for the internal surface, wherein the slice layer height set for the internal surface is greater than the slice layer height set for the appearance surface and the stitching surface.
7. The method according to any one of claims 1 to 5, in, The surface quality improvement strategies include: Set the Z seam position on the inner face.
8. A device for 3D printing, the device include: The first unit is configured to obtain a three-dimensional model file, wherein the three-dimensional model file defines a three-dimensional model composed of a plurality of parts and a printing tolerance between every two parts that are in a splicing relationship with each other; A second unit is configured to decompose the three-dimensional model into the plurality of parts, wherein the outer surface of each part includes a plurality of face patches; The third unit is configured to identify the stitching surfaces, appearance surfaces and internal surfaces used for the three-dimensional model, wherein each stitching surface is a surface patch of the multiple surface patches of a corresponding part among the multiple parts for stitching with another part, each appearance surface is a surface patch of the multiple surface patches of a corresponding part among the multiple parts used as an outer surface of the three-dimensional model, and the internal surface is a surface patch of each surface patch of the multiple parts except the stitching surfaces and the appearance surfaces, and wherein identifying the stitching surfaces of the three-dimensional model includes: while keeping the center positions of the multiple parts unchanged, Enlarging each part so that each facet of the part is enlarged and moved a predetermined distance in a direction away from the center of the part, the predetermined distance being positively correlated with the printing tolerance, so that there is an intersection between the multiple facets of each part before enlarging and the facets of the remaining parts of the multiple parts except the part after enlarging; determining the intersection between the multiple facets of each part before enlarging and the facets of the remaining parts of the multiple parts except the part after enlarging as the splicing surface corresponding to the part, and each splicing surface corresponding to the multiple parts is the splicing surface of the three-dimensional model; and A fourth unit is configured to generate a control code for execution by a processor of the 3D printer, wherein the control code causes a surface quality improvement strategy to be applied at least to the inner surface to improve the printing quality of the outer surface of the three-dimensional model.
9. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.
10. A computer program product comprising a computer program, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
