3D printing modeling method

By performing 3D scanning modeling and adaptive layer slicing of the object to be printed, and generating G-code files, the problem of poor printing results caused by the failure to consider the characteristics of the object in the existing technology is solved, and precise control and efficient printing are achieved.

CN122008552APending Publication Date: 2026-05-12HUNAN SK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUNAN SK TECH CO LTD
Filing Date
2026-01-26
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Current 3D printing technology does not take into account the characteristics of the object to be printed when slicing into layers, resulting in poor printing results.

Method used

The scanning module performs a 3D scan of the object to be printed, performs 3D modeling based on the scan data, acquires recognition data and performs adaptive layer slicing processing, and generates G-code files to control the 3D printing equipment.

Benefits of technology

It enables precise control of 3D printing based on the characteristics of small targets, improving printing quality and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122008552A_ABST
    Figure CN122008552A_ABST
Patent Text Reader

Abstract

The invention discloses a 3D printing modeling method which comprises the following steps: performing 3D scanning on a to-be-printed object through a scanning module to obtain first scanning data; performing 3D modeling based on the first scanning data to obtain a first three-dimensional model; acquiring first identification data of the first three-dimensional model; performing hierarchical slicing processing on the first three-dimensional model according to the first identification data to obtain a first hierarchical slicing result; the first layered slicing result comprises a plurality of layered slices, each layered slice corresponds to a group of parameters, and the group of parameters comprises layered slice thickness, layered slice shape, layered slice color, layered slice coordinate set and layered slice number; determining a first G code file according to the plurality of hierarchical slices and a group of parameters corresponding to each hierarchical slice in the plurality of hierarchical slices; and the 3D printing equipment is controlled to conduct printing operation based on the first G code file, the first 3D printing result is obtained, and the 3D printing effect can be guaranteed.
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, specifically to a 3D printing modeling method. Background Technology

[0002] With the rapid advancement of computer technology, materials science, and artificial intelligence, 3D printing has gradually moved from the laboratory to the market. Significant progress has been made in 3D printing technology in terms of accuracy, speed, and materials. In particular, the mature application of mainstream technologies such as Fused Deposition Modeling (FDM), Stereolithography (SLA), and Selective Laser Sintering (SLS) has enabled 3D printing to be widely used in the automotive, aerospace, medical, and consumer goods industries.

[0003] Currently, in actual 3D printing processes, simple layering and slicing are often used without considering the characteristics of the object being printed, resulting in poor printing quality. Summary of the Invention

[0004] This application provides a 3D printing modeling method that can perform adaptive layer slicing based on the small target characteristics of small targets (local targets) in the object to be printed. The G-code file is also related to the depth of the layer slicing result, which enables precise control of the 3D printing equipment and ensures the 3D printing effect.

[0005] This application provides a 3D printing modeling method applied to a 3D printing device, the 3D printing device including a scanning module; the method includes:

[0006] The scanning module performs a 3D scan of the object to be printed to obtain the first scan data.

[0007] Based on the first scan data, 3D modeling is performed to obtain the first three-dimensional model;

[0008] Obtain the first recognition data of the first three-dimensional model;

[0009] The first three-dimensional model is sliced ​​according to the first recognition data to obtain the first sliced ​​result. The first sliced ​​result includes multiple slices, each slice corresponding to a set of parameters, which includes: slice thickness, slice shape, slice color, slice coordinate set, and slice number.

[0010] The first G-code file is determined based on the plurality of layered slices and a set of parameters corresponding to each of the plurality of layered slices;

[0011] The 3D printing device is controlled to perform printing operations based on the first G-code file to obtain a first 3D printing result.

[0012] The embodiments described in this application have the following beneficial effects:

[0013] As can be seen, the 3D printing modeling method described in this application embodiment is applied to a 3D printing device, which includes a scanning module. The scanning module performs a 3D scan on the object to be printed to obtain first scan data. Based on the first scan data, 3D modeling is performed to obtain a first three-dimensional model. First recognition data of the first three-dimensional model is obtained. Based on the first recognition data, the first three-dimensional model is sliced ​​into layers to obtain a first layered slicing result. The first layered slicing result includes multiple layers, each layer corresponding to a set of parameters, including: layer thickness, layer shape, layer color, layer coordinate set, and layer number. A first G-code file is determined based on the multiple layers and the set of parameters corresponding to each layer. The 3D printing device is controlled to perform printing operations based on the first G-code file to obtain a first 3D printing result. Since the first recognition data represents the small target characteristics of different regions, the first three-dimensional model can be adaptively sliced ​​based on the small target characteristics to obtain the corresponding first layered slicing result. In addition, since the G-code file is also related to the depth of the first layered slicing result, the 3D printing device can be precisely controlled to ensure the 3D printing effect. Attached Figure Description

[0014] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 This is a first structural schematic diagram of a 3D printing device provided in an embodiment of this application;

[0016] Figure 2 This is a flowchart illustrating a 3D printing modeling method provided in an embodiment of this application;

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

[0018] Figure 4 This is a second structural schematic diagram of a 3D printing device provided in an embodiment of this application. Detailed Implementation

[0019] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0020] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0021] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0022] The embodiments of this application will be described in detail below.

[0023] Please see Figure 1 , Figure 1 This is a first structural schematic diagram of a 3D printing device provided in an embodiment of this application. As shown in the figure, the 3D printing device includes: a scanning module, a print head, a stepper motor, and a 3D printing feeding device, wherein the scanning module, the print head, the stepper motor, and the 3D printing feeding device are communicatively connected.

[0024] The scanning module is used to scan the object to be printed in order to obtain its corresponding scan data.

[0025] The printhead is used to control the movement of the printhead, and it can also eject printing material to generate the printing result.

[0026] The stepper motor is used to control the print head.

[0027] The 3D printing feeding device is used to provide printing consumables. It can provide at least one type of printing consumable, such as printing consumables of different colors or different materials.

[0028] Based on this 3D printing equipment, the following functions can be achieved:

[0029] The scanning module performs a 3D scan of the object to be printed to obtain the first scan data.

[0030] Based on the first scan data, 3D modeling is performed to obtain the first three-dimensional model;

[0031] Obtain the first recognition data of the first three-dimensional model;

[0032] The first three-dimensional model is sliced ​​according to the first recognition data to obtain the first sliced ​​result. The first sliced ​​result includes multiple slices, each slice corresponding to a set of parameters, which includes: slice thickness, slice shape, slice color, slice coordinate set, and slice number.

[0033] The first G-code file is determined based on the plurality of layered slices and a set of parameters corresponding to each of the plurality of layered slices;

[0034] The 3D printing device is controlled to perform printing operations based on the first G-code file to obtain a first 3D printing result.

[0035] As can be seen, the 3D printing device described in this application embodiment includes a scanning module. The scanning module performs a 3D scan of the object to be printed to obtain first scan data. Based on the first scan data, a 3D model is created to obtain a first three-dimensional model. First recognition data of the first three-dimensional model is obtained. Based on the first recognition data, the first three-dimensional model is sliced ​​into layers to obtain a first layered slicing result. The first layered slicing result includes multiple layers, each layer corresponding to a set of parameters, including: layer thickness, layer shape, layer color, layer coordinate set, and layer number. A first G-code file is determined based on the multiple layers and the set of parameters corresponding to each layer. The 3D printing device is controlled to perform printing operations based on the first G-code file to obtain a first 3D printing result. Since the first recognition data represents the small target characteristics of different regions, adaptive layer slicing processing can be performed on the first three-dimensional model based on the small target characteristics to obtain the corresponding first layered slicing result. Furthermore, since the G-code file is also related to the depth of the first layered slicing result, the 3D printing device can be precisely controlled, ensuring the 3D printing effect.

[0036] Please see Figure 2 , Figure 2This is a flowchart illustrating a 3D printing modeling method provided in an embodiment of this application, applied to a 3D printing device, which includes a scanning module; the 3D printing modeling method includes the following steps:

[0037] S201: The object to be printed is 3D scanned using the scanning module to obtain the first scan data.

[0038] The object to be printed can be any object that needs to be printed, such as books, trees, houses, animals, etc., without any limitation.

[0039] Specifically, the object to be printed can be 3D scanned using a scanning module, for example, a partial scan or a global scan, to obtain its full-range scan data, i.e., the first scan data.

[0040] S202: Perform 3D modeling based on the first scan data to obtain the first three-dimensional model.

[0041] Specifically, since the first scan data itself contains the characteristics of the object to be printed, such as position, color, material, etc., 3D modeling can be performed based on the first scan data to obtain the first three-dimensional model.

[0042] Optionally, the above steps, which involve 3D modeling based on the first scan data to obtain the first three-dimensional model, can be implemented in the following manner:

[0043] Based on the first scan data, a preliminary 3D model is performed to obtain a first reference 3D model;

[0044] The integrity of the first reference 3D model is checked to obtain incomplete areas;

[0045] The incomplete regions in the first reference 3D model are repaired to obtain the second reference 3D model;

[0046] The second reference 3D model is resized to obtain the first 3D model.

[0047] In this process, preliminary 3D modeling can be performed based on the first scan data to obtain an initial three-dimensional model, namely the first reference three-dimensional model. Then, integrity checks can be performed on it, such as geometric continuity checks, topological correctness checks, data consistency checks, etc., to obtain incomplete areas.

[0048] Among them, geometric continuity detection mainly refers to detecting the smoothness and continuity of the surface of the first reference 3D model. This can be achieved by calculating the curvature change of the model surface. For example, if the curvature of the surface of the first reference 3D model changes abruptly in a certain region, it may indicate that the region is incomplete or has an anomaly.

[0049] Among them, the topology correctness detection focuses on the connection relationship and structural integrity of the first reference 3D model, including detecting whether there are holes, cracks or unreasonable connections in the first reference 3D model.

[0050] Among them, the data consistency detection is used to ensure that the data in the first reference 3D model is consistent in all dimensions, including detecting the coordinate system, units and data format of the first reference 3D model.

[0051] Next, a preset repair method can be used to repair the incomplete areas in the first reference 3D model to obtain the second reference 3D model. The preset repair method can include at least one of the following: a repair method based on a region classification model, a repair method based on deep learning, etc., which are not limited here. Then, the size of the second reference 3D model is adjusted to obtain the first 3D model. That is, the user can dynamically adjust the size according to their needs so that the printing result meets their actual requirements.

[0052] In this example, not only can a preliminary 3D model be created based on the scanned data, but also an integrity check can be performed, incomplete areas can be repaired, and finally the size can be adjusted according to user needs to make the printing result more complete and meet the user's actual needs.

[0053] S203: Obtain the first recognition data of the first three-dimensional model.

[0054] In a specific implementation, the first three-dimensional model can be identified, for example, by target identification or background identification, to obtain the first identification data, which in turn helps to perform different layered slicing based on different targets.

[0055] Optionally, the above steps, obtaining the first recognition data of the first 3D model, can be implemented in the following manner:

[0056] Small target identification is performed on the first 3D model to obtain multiple small target types and multiple small target regions; each small target type corresponds to a small target region.

[0057] Multiple small target types and multiple small target regions are labeled to obtain multiple labeled data;

[0058] The first identification data is determined based on the plurality of tag data.

[0059] Specifically, small target recognition can be performed on the first 3D model. For example, small target recognition can be performed on the first 3D model based on a preset neural network model. The preset neural network model can be pre-set or a system default; for example, it can be a neural network model, a classifier, etc. The small targets that the preset neural network model can recognize can be pre-set or a system default. Small targets can be a part, a tissue of an animal, a component of a building, etc. After small target recognition, multiple small target types and multiple small target regions can be obtained; each small target type corresponds to a small target region, and the small target type is used to characterize what the small target is.

[0060] Next, multiple small target types and small target regions can be marked in the first 3D model to obtain multiple marking data. The marking data can include at least one of the following: coordinates, small target type, color, etc.

[0061] Finally, the multiple labeled data can be aggregated to obtain the first identification data.

[0062] In this example, the first 3D model can be identified, such as target identification and background identification, to obtain the first identification data, which in turn helps to make different layered slices based on different targets.

[0063] S204: Based on the first identification data, the first three-dimensional model is processed into layers and slices to obtain a first layered slicing result; the first layered slicing result includes multiple layers and slices, each layer and slice corresponding to a set of parameters, which includes: layered slice thickness, layered slice shape, layered slice color, layered slice coordinate set, and layered slice number.

[0064] The first layer slicing result may include multiple layer slices, each layer slice corresponding to a set of parameters, which includes: layer slice thickness, layer slice shape, layer slice color, layer slice coordinate set, and layer slice number.

[0065] Since the first identification data represents the characteristics of small targets in different regions, the first three-dimensional model can be adaptively sliced ​​based on the characteristics of small targets to obtain the corresponding first sliced ​​result.

[0066] Optionally, the above step of performing layered slicing processing on the first 3D model based on the first recognition data to obtain the first layered slicing result can be implemented in the following manner:

[0067] Based on the first identification data, the first three-dimensional model is initially sliced ​​into non-small target layers and small target layers, resulting in m non-small target layers and n small target layers, where m and n are both positive integers;

[0068] Each of the m non-small target layers is sliced ​​to obtain p slices, where p is a positive integer.

[0069] Each of the n small target layers is sliced ​​based on its own labeled data to obtain q slices, where q is a positive integer.

[0070] The first layered slicing result is determined based on the p layered slices and the q layered slices.

[0071] In specific implementation, the importance evaluation value corresponding to each small target can be determined based on the preset mapping relationship between the small target type and the importance evaluation value, resulting in multiple importance evaluation values. From these multiple importance evaluation values, an importance evaluation value with a preset threshold is selected to obtain at least one importance evaluation value. Then, the small target type and small target region corresponding to the small target with at least one importance evaluation value are obtained. That is, the first three-dimensional model can be initially sliced ​​into non-small target layers and small target layers based on the small target type and small target region, resulting in m non-small target layers and n small target layers, where m and n are both positive integers. The small target layer is the printing layer corresponding to the lowest height and the highest height of the small target.

[0072] In specific implementation, for example, the height range of small target A is [c1, c2], while the height range of small target B is [d1, d2]. If there is an intersection between the two height ranges, it means that there is an overlap between them; otherwise, it means that there is no overlap between them. If the small target type and small target area corresponding to at least one importance evaluation value overlap in height, then small target A and small target B can be merged. Alternatively, the small target with the higher importance evaluation value can be retained, while the small target with the lower importance evaluation value can be deleted.

[0073] Specifically, in 3D printing, the X, Y, and Z axes represent three mutually perpendicular directions used to control the movement of the print head and work platform to build a three-dimensional model. The X axis can represent the horizontal axis, controlling the left and right movement of the print head or work platform in the horizontal direction; the Y axis can represent the vertical axis, controlling the forward and backward movement of the print head or work platform in the horizontal direction; and the Z axis can represent the vertical axis, controlling the up and down movement of the work platform and determining the height of the printed layer.

[0074] The preset threshold can be set in advance or be the system default. The preset threshold can be related to the characteristics of the object to be printed (object identifier, object volume, etc.), or it can be related to the size of the first three-dimensional model or the volume of the first three-dimensional model.

[0075] Next, each of the m non-small target layers can be sliced ​​to obtain p slices, where p is a positive integer. For example, non-small target layers can be sliced ​​uniformly, and the thickness of the slices can be preset or defaulted to by the system. Then, each of the n small target layers is sliced ​​based on its own labeled data to obtain q slices, where q is a positive integer. For example, different types of small targets have different slice thicknesses. For small target layers, slices can be sliced ​​uniformly or non-sliced; that is, the slice thickness for small target layers is not fixed and can be adjusted according to the characteristics of the small target layer. For example, when the surface curvature of the small target is large or there are many details, the slice thickness can be reduced to improve printing accuracy. In flat areas of the small target, the slice thickness can be increased to improve printing efficiency, resulting in full detail and high efficiency. The first slice result is then determined based on the p and q slices.

[0076] In this example, since the first identification data represents the characteristics of small targets in different regions, the first 3D model can be adaptively sliced ​​based on the characteristics of small targets to obtain the corresponding first sliced ​​result. This adaptive slicing based on the characteristics of small targets not only makes the 3D printing details full but also improves the printing efficiency.

[0077] S205: Determine the first G-code file based on the plurality of layered slices and a set of parameters corresponding to each layered slice.

[0078] Specifically, G-code can be understood as the "operation instruction set" for 3D printing equipment to perform printing tasks. It is converted from the 3D model by slicing software. For example, it controls key parameters such as print head (nozzle) movement, temperature, and speed line by line.

[0079] Specifically, the first G-code file can be determined based on multiple layer slices and a set of parameters corresponding to each layer slice, which enables precise control of the 3D printing equipment and ensures the 3D printing effect.

[0080] S206: Control the 3D printing device to perform printing operations based on the first G-code file to obtain a first 3D printing result.

[0081] Specifically, the 3D printing equipment can be controlled to perform printing operations based on the first G-code file to obtain the first 3D printing result. Due to the small target characteristics, the first three-dimensional model is adaptively sliced ​​to obtain the corresponding first layer slice result. In addition, since the G-code file is also related to the depth of the first layer slice result, the 3D printing equipment can be precisely controlled to ensure the 3D printing effect.

[0082] Optionally, the above steps, determining the first G-code file based on the plurality of layered slices and a set of parameters corresponding to each layered slice, can be implemented in the following manner:

[0083] Multiple sets of control parameters and multiple sets of control timing are determined based on the multiple layered slices and a set of parameters corresponding to each layered slice; each layered slice corresponds to a set of control parameters and control timing.

[0084] Multiple initial G-code files are determined based on the aforementioned sets of control parameters;

[0085] The multiple initial G-code files are concatenated to obtain the first G-code file.

[0086] Specifically, multiple sets of control parameters and control sequences can be determined based on multiple layer slices and a set of parameters corresponding to each layer slice. Each layer slice corresponds to a set of control parameters and control sequences. Each set of control parameters can be used to control the corresponding modules to perform printing actions in an orderly manner for each layer slice. For example, the actions of the print head (e.g., nozzle speed, nozzle size, etc.), the actions of the stepper motor, the actions of the 3D printing feed device, the actions of the fan, etc. Each control sequence is used to control the corresponding modules in an orderly manner, enabling precise control of the 3D printing equipment.

[0087] Next, multiple initial G-code files can be determined based on multiple sets of control parameters and multiple sets of control timing. That is, each set of control parameters and its corresponding control timing can generate an initial G-code file. Finally, multiple initial G-code files can be concatenated according to the layer slice number to obtain the first G-code file.

[0088] In this example, since the first identification data represents the characteristics of small targets in different regions, the first 3D model can be adaptively sliced ​​based on the characteristics of small targets to obtain the corresponding first sliced ​​result. In addition, since the G-code file is also related to the depth of the first sliced ​​result, the 3D printing equipment can be precisely controlled to ensure the 3D printing effect.

[0089] Optionally, the 3D printing equipment further includes: a print head, a stepper motor, and a 3D printing material feeding device; the above steps, which determine multiple sets of control parameters and multiple sets of control timing sequences based on the multiple layer slices and a set of parameters corresponding to each layer slice, can be implemented in the following manner:

[0090] The trajectory parameters and print head speed parameters of the print head are determined based on the layer slice thickness, layer slice shape and layer slice coordinate set of the first layer slice, wherein the first layer slice is any one of the plurality of layer slices;

[0091] The first timing parameters of the stepper motor are determined based on the trajectory parameters;

[0092] The first feeding parameter and the second timing parameter of the 3D printing feeding device are determined based on the print head rate parameter, the layered slice coordinate set of the first layered slice, and the layered slice color.

[0093] The control parameters for the first layered slice are determined based on the trajectory parameters, the printhead speed parameters, and the first feeding parameters.

[0094] The control timing of the first layered slice is determined based on the first timing parameter and the second timing parameter.

[0095] Specifically, the layer slice thickness defines the printing accuracy and number of layers in the Z-axis direction, which directly affects print quality and efficiency. The layer slice shape describes the two-dimensional contour of each layer. For example, taking the STL model as an example, it is generated by intersecting the STL model with the slice plane, and is usually a polygonal contour. The layer slice coordinate set can be a discrete set of points of the slice shape, which represents the vertex coordinates of the contour. These coordinates need to be converted into the printer coordinate system to generate the path. Specifically, the outer contour and inner filling area can be identified from the coordinate set, and the internal path can be generated according to the filling density parameters (such as grid or honeycomb structure). For overhanging parts, support points can also be automatically generated, and their coordinates need to be included in the path planning. Then, the printhead start and stop are reduced through the path smoothing algorithm.

[0096] Specifically, taking the first layer slice as an example, the first layer slice is any one of multiple layer slices. The layer slice thickness, layer slice shape, and layer slice coordinate set are the core elements in 3D printing slice processing, which together determine the generation of the print head path. The trajectory parameters and print head speed parameters of the print head can be determined based on the layer slice thickness, layer slice shape, and layer slice coordinate set of the first layer slice. After the trajectory parameters are determined, the corresponding print head speed parameters can also be determined to precisely control the print head. The print head speed parameters can include the print head movement speed parameters, or the nozzle movement speed parameters and spraying speed parameters. After the trajectory parameters are determined, the first timing parameters of the stepper motor can be determined in conjunction with the trajectory parameters to precisely control the start and stop of the print head.

[0097] Furthermore, the first feeding parameters and second timing parameters of the 3D printing feeding device can be determined based on the print head speed parameters, the coordinate set of the first layer slice, and the layer slice color. This allows the 3D printing feeding device to accurately supply consumables. Finally, the control parameters of the first layer slice are determined based on the trajectory parameters, print head speed parameters, and the first feeding parameters. The control timing of the first layer slice is determined based on the first and second timing parameters, making the G-code file deeply correlated with the first layer slice result. This allows for precise control of the 3D printing equipment and ensures the 3D printing effect. Finally, based on the first G-code file, the print head can be controlled to move layer by layer, realizing the layer-by-layer stacking of the three-dimensional model.

[0098] In this example, firstly, the layer slicing parameters are analyzed in depth to extract the thickness, shape, and coordinate set. Then, the trajectory is calculated, and the print head path is calculated based on the coordinates. Motor timing is generated: stepper motor control signals are generated based on the trajectory parameters. Next, the feeding parameters are calculated, that is, the feeding rate is determined by combining the shape and color. Then, the control parameters are assembled, and all parameters are integrated to generate the final printing instruction. Subsequently, it can be flexibly expanded to support layer processing of different shapes and colors. Finally, efficient calculation can be achieved by reducing redundant calculations through parametric design, which enables precise control of the 3D printing equipment and ensures the 3D printing effect.

[0099] As can be seen, the 3D printing modeling method described in this application embodiment is applied to a 3D printing device, which includes a scanning module. The scanning module performs a 3D scan on the object to be printed to obtain first scan data. Based on the first scan data, 3D modeling is performed to obtain a first three-dimensional model. First recognition data of the first three-dimensional model is obtained. Based on the first recognition data, the first three-dimensional model is sliced ​​into layers to obtain a first layered slicing result. The first layered slicing result includes multiple layers, each layer corresponding to a set of parameters, including: layer thickness, layer shape, layer color, layer coordinate set, and layer number. A first G-code file is determined based on the multiple layers and the set of parameters corresponding to each layer. The 3D printing device is controlled to perform printing operations based on the first G-code file to obtain a first 3D printing result. Since the first recognition data represents the small target characteristics of different regions, the first three-dimensional model can be adaptively sliced ​​based on the small target characteristics to obtain the corresponding first layered slicing result. In addition, since the G-code file is also related to the depth of the first layered slicing result, the 3D printing device can be precisely controlled to ensure the 3D printing effect.

[0100] Figure 3This is a schematic diagram of the structure of a 3D printing modeling device 300 according to an embodiment of this application. It is applied to a 3D printing device, which includes a scanning module; the 3D printing modeling device 300 includes:

[0101] Scanning unit 310 is used to perform 3D scanning of the object to be printed through the scanning module to obtain first scan data;

[0102] 3D modeling unit 320 is used to perform 3D modeling based on the first scan data to obtain a first three-dimensional model;

[0103] Acquisition unit 330 is used to acquire the first recognition data of the first three-dimensional model;

[0104] The layer slicing processing unit 340 is used to perform layer slicing processing on the first three-dimensional model according to the first recognition data to obtain a first layer slicing result; the first layer slicing result includes multiple layer slices, each layer slice corresponding to a set of parameters, the set of parameters including: layer slice thickness, layer slice shape, layer slice color, layer slice coordinate set, and layer slice number.

[0105] The determining unit 350 is used to determine a first G-code file based on the plurality of layered slices and a set of parameters corresponding to each layered slice in the plurality of layered slices;

[0106] The control unit 360 is used to control the 3D printing device to perform printing operations based on the first G-code file to obtain a first 3D printing result.

[0107] Optionally, in the process of performing 3D modeling based on the first scan data to obtain a first three-dimensional model, the 3D modeling unit 320 is specifically used for:

[0108] Based on the first scan data, a preliminary 3D model is performed to obtain a first reference 3D model;

[0109] The integrity of the first reference 3D model is checked to obtain incomplete areas;

[0110] The incomplete regions in the first reference 3D model are repaired to obtain the second reference 3D model;

[0111] The second reference 3D model is resized to obtain the first 3D model.

[0112] Optionally, in acquiring the first recognition data of the first three-dimensional model, the acquisition unit 330 is specifically used for:

[0113] Small target identification is performed on the first 3D model to obtain multiple small target types and multiple small target regions; each small target type corresponds to a small target region.

[0114] Multiple small target types and multiple small target regions are labeled to obtain multiple labeled data;

[0115] The first identification data is determined based on the plurality of tag data.

[0116] Optionally, in the step of performing layered slicing processing on the first three-dimensional model based on the first identification data to obtain a first layered slicing result, the layered slicing processing unit 340 is specifically used for:

[0117] Based on the first identification data, the first three-dimensional model is initially sliced ​​into non-small target layers and small target layers, resulting in m non-small target layers and n small target layers, where m and n are both positive integers;

[0118] Each of the m non-small target layers is sliced ​​to obtain p slices, where p is a positive integer.

[0119] Each of the n small target layers is sliced ​​based on its own labeled data to obtain q slices, where q is a positive integer.

[0120] The first layered slicing result is determined based on the p layered slices and the q layered slices.

[0121] Optionally, in determining the first G-code file based on the plurality of layered slices and a set of parameters corresponding to each layered slice, the determining unit 350 is specifically used for:

[0122] Multiple sets of control parameters and multiple sets of control timing are determined based on the multiple layered slices and a set of parameters corresponding to each layered slice; each layered slice corresponds to a set of control parameters and control timing.

[0123] Multiple initial G-code files are determined based on the aforementioned sets of control parameters;

[0124] The multiple initial G-code files are concatenated to obtain the first G-code file.

[0125] Optionally, the 3D printing equipment further includes: a print head, a stepper motor, and a 3D printing feeding device; in determining multiple sets of control parameters and multiple sets of control timing sequences based on the multiple layer slices and a set of parameters corresponding to each layer slice, the determining unit 350 is specifically used for:

[0126] The trajectory parameters and print head speed parameters of the print head are determined based on the layer slice thickness, layer slice shape and layer slice coordinate set of the first layer slice, wherein the first layer slice is any one of the plurality of layer slices;

[0127] The first timing parameters of the stepper motor are determined based on the trajectory parameters;

[0128] The first feeding parameter and the second timing parameter of the 3D printing feeding device are determined based on the print head rate parameter, the layered slice coordinate set of the first layered slice, and the layered slice color.

[0129] The control parameters for the first layered slice are determined based on the trajectory parameters, the printhead speed parameters, and the first feeding parameters.

[0130] The control timing of the first layered slice is determined based on the first timing parameter and the second timing parameter.

[0131] Please see Figure 4 , Figure 4 This is a second structural schematic diagram of a 3D printing device 400 provided in an embodiment of this application. The 3D printing device 400 includes a processor 410, a memory 420, a communication interface 430, and one or more programs 421. The one or more programs 421 are stored in the memory 420 and configured to be executed by the processor 410. The 3D printing device includes a scanning module. The one or more programs 421 include instructions for performing the following steps:

[0132] The scanning module performs a 3D scan of the object to be printed to obtain the first scan data.

[0133] Based on the first scan data, 3D modeling is performed to obtain the first three-dimensional model;

[0134] Obtain the first recognition data of the first three-dimensional model;

[0135] The first three-dimensional model is sliced ​​according to the first recognition data to obtain the first sliced ​​result. The first sliced ​​result includes multiple slices, each slice corresponding to a set of parameters, which includes: slice thickness, slice shape, slice color, slice coordinate set, and slice number.

[0136] The first G-code file is determined based on the plurality of layered slices and a set of parameters corresponding to each of the plurality of layered slices;

[0137] The 3D printing device is controlled to perform printing operations based on the first G-code file to obtain a first 3D printing result.

[0138] Optionally, in the step of performing 3D modeling based on the first scan data to obtain a first three-dimensional model, the one or more procedures 421 include instructions for performing the following steps:

[0139] Based on the first scan data, a preliminary 3D model is performed to obtain a first reference 3D model;

[0140] The integrity of the first reference 3D model is checked to obtain incomplete areas;

[0141] The incomplete regions in the first reference 3D model are repaired to obtain the second reference 3D model;

[0142] The second reference 3D model is resized to obtain the first 3D model.

[0143] Optionally, in acquiring the first recognition data of the first 3D model, the one or more procedures 421 include instructions for performing the following steps:

[0144] Small target identification is performed on the first 3D model to obtain multiple small target types and multiple small target regions; each small target type corresponds to a small target region.

[0145] Multiple small target types and multiple small target regions are labeled to obtain multiple labeled data;

[0146] The first identification data is determined based on the plurality of tag data.

[0147] Optionally, in the step of performing layered slicing processing on the first 3D model based on the first identification data to obtain a first layered slicing result, the one or more procedures 421 include instructions for performing the following steps:

[0148] Based on the first identification data, the first three-dimensional model is initially sliced ​​into non-small target layers and small target layers, resulting in m non-small target layers and n small target layers, where m and n are both positive integers;

[0149] Each of the m non-small target layers is sliced ​​to obtain p slices, where p is a positive integer.

[0150] Each of the n small target layers is sliced ​​based on its own labeled data to obtain q slices, where q is a positive integer.

[0151] The first layered slicing result is determined based on the p layered slices and the q layered slices.

[0152] Optionally, in determining the first G-code file based on the plurality of layered slices and a set of parameters corresponding to each of the plurality of layered slices, the one or more programs 421 include instructions for performing the following steps:

[0153] Multiple sets of control parameters and multiple sets of control timing are determined based on the multiple layered slices and a set of parameters corresponding to each layered slice; each layered slice corresponds to a set of control parameters and control timing.

[0154] Multiple initial G-code files are determined based on the aforementioned sets of control parameters;

[0155] The multiple initial G-code files are concatenated to obtain the first G-code file.

[0156] Optionally, the 3D printing equipment further includes: a print head, a stepper motor, and a 3D printing feed device; in determining multiple sets of control parameters and multiple sets of control timing based on the multiple layer slices and a set of parameters corresponding to each layer slice, the one or more programs 421 include instructions for performing the following steps:

[0157] The trajectory parameters and print head speed parameters of the print head are determined based on the layer slice thickness, layer slice shape and layer slice coordinate set of the first layer slice, wherein the first layer slice is any one of the plurality of layer slices;

[0158] The first timing parameters of the stepper motor are determined based on the trajectory parameters;

[0159] The first feeding parameter and the second timing parameter of the 3D printing feeding device are determined based on the print head rate parameter, the layered slice coordinate set of the first layered slice, and the layered slice color.

[0160] The control parameters for the first layered slice are determined based on the trajectory parameters, the printhead speed parameters, and the first feeding parameters.

[0161] The control timing of the first layered slice is determined based on the first timing parameter and the second timing parameter.

[0162] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes a 3D printing device.

[0163] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may include a 3D printing device.

[0164] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0165] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

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

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

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

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

[0170] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0171] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A 3D printing modeling method, characterized in that, The method is applied to a 3D printing device, the 3D printing device including a scanning module; the method includes: The scanning module performs a 3D scan of the object to be printed to obtain the first scan data. Based on the first scan data, 3D modeling is performed to obtain the first three-dimensional model; Obtain the first recognition data of the first three-dimensional model; The first three-dimensional model is sliced ​​according to the first recognition data to obtain the first sliced ​​result. The first sliced ​​result includes multiple slices, each slice corresponding to a set of parameters, which includes: slice thickness, slice shape, slice color, slice coordinate set, and slice number. The first G-code file is determined based on the plurality of layered slices and a set of parameters corresponding to each of the plurality of layered slices; The 3D printing device is controlled to perform printing operations based on the first G-code file to obtain a first 3D printing result.

2. The method according to claim 1, characterized in that, The step of performing 3D modeling based on the first scan data to obtain a first three-dimensional model includes: Based on the first scan data, a preliminary 3D model is performed to obtain a first reference 3D model; The integrity of the first reference 3D model is checked to obtain incomplete areas; The incomplete regions in the first reference 3D model are repaired to obtain the second reference 3D model; The second reference 3D model is resized to obtain the first 3D model.

3. The method according to claim 1, characterized in that, The step of obtaining the first recognition data of the first three-dimensional model includes: Small target identification is performed on the first 3D model to obtain multiple small target types and multiple small target regions; each small target type corresponds to a small target region. Multiple small target types and multiple small target regions are labeled to obtain multiple labeled data; The first identification data is determined based on the plurality of tag data.

4. The method according to claim 3, characterized in that, The step of performing layered slicing processing on the first 3D model based on the first recognition data to obtain the first layered slicing result includes: Based on the first identification data, the first three-dimensional model is initially sliced ​​into non-small target layers and small target layers, resulting in m non-small target layers and n small target layers, where m and n are both positive integers; Each of the m non-small target layers is sliced ​​to obtain p slices, where p is a positive integer. Each of the n small target layers is sliced ​​based on its own labeled data to obtain q slices, where q is a positive integer. The first layered slicing result is determined based on the p layered slices and the q layered slices.

5. The method according to any one of claims 1-4, characterized in that, The step of determining the first G-code file based on the plurality of layered slices and a set of parameters corresponding to each layered slice includes: Multiple sets of control parameters and multiple sets of control timing are determined based on the multiple layered slices and a set of parameters corresponding to each layered slice; each layered slice corresponds to a set of control parameters and control timing. Multiple initial G-code files are determined based on the multiple sets of control parameters and the multiple sets of control timing. The multiple initial G-code files are concatenated to obtain the first G-code file.

6. The method according to claim 5, characterized in that, The 3D printing equipment further includes: a print head, a stepper motor, and a 3D printing feeding device; the step of determining multiple sets of control parameters and multiple sets of control timing sequences based on the multiple layer slices and a set of parameters corresponding to each layer slice includes: The trajectory parameters and print head speed parameters of the print head are determined based on the layer slice thickness, layer slice shape and layer slice coordinate set of the first layer slice, wherein the first layer slice is any one of the plurality of layer slices; The first timing parameters of the stepper motor are determined based on the trajectory parameters; The first feeding parameter and the second timing parameter of the 3D printing feeding device are determined based on the print head rate parameter, the layered slice coordinate set of the first layered slice, and the layered slice color. The control parameters for the first layered slice are determined based on the trajectory parameters, the printhead speed parameters, and the first feeding parameters. The control timing of the first layered slice is determined based on the first timing parameter and the second timing parameter.