Size compensation method and device, electronic equipment and computer readable storage medium

By dividing the model to be printed in the metal additive manufacturing process into multiple printing areas, and determining the target size compensation coefficient for each area, dimensional compensation for the slice layer is solved, and the dimensional deformation problem caused by thermal stress in metal additive manufacturing is improved, and the dimensional accuracy of the print piece is improved.

CN119870508APending Publication Date: 2025-04-25GUANGDONG HANBANG 3D TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311394234.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

During metal additive manufacturing, thermal stress accumulation due to expansion and contraction of metal materials and temperature differences in slice layers lead to deformation of the print piece and deviating from the original design size.

Method used

Dimension compensation is performed on the slice layer of each printing area by dividing the model to be printed into multiple printing areas along the height direction and determining a target size compensation coefficient for each printing area. This method does not require secondary design of the printing model, and can alleviate the dimensional deformation problems caused by thermal stress and metal thermal barrier cooling.

Benefits of technology

It effectively reduces the deviation between the finished product and the design size of the printed product, improves the dimensional accuracy of the finished product, and ensures the dimensional consistency and quality of the printed product.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119870508A_ABST
    Figure CN119870508A_ABST
Patent Text Reader

Abstract

The invention relates to the field of metal additive manufacturing, in particular to a size compensation method and device, electronic equipment and a computer readable storage medium. The size compensation method comprises the steps that size design values of a plurality of printing areas divided by a to-be-printed model in the height direction are obtained, and each printing area comprises at least one slice layer of the to-be-printed model; determining a target size compensation coefficient matched with each printing area; and based on the target size compensation coefficient matched with each printing area and the size design value of the printing area, performing size compensation on the slice layer of each printing area. According to the invention, the deviation between the size of the printed finished product and the design size of the printed product can be reduced, and the size accuracy of the printed finished product is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of metal additive manufacturing, and specifically to a dimensional compensation method, device, electronic device, and computer-readable storage medium. Background Art

[0002] In the process of metal additive manufacturing, the 3D printer will lay a layer of metal material on the forming platform, heat the metal material, and cool it to form slices. In this way, the final print is formed by stacking layers of metal material.

[0003] However, since metal materials have a certain expansion coefficient, they will expand and contract during the heating and cooling process, and the formed slice layers have temperature differences when cooled. The temperature differences in the formed slice layers will cause the accumulation of thermal stress in the slice layers, resulting in the final printed part being deformed in size and deviating from the original design size. Summary of the invention

[0004] In view of the above, the embodiments of the present application provide a size compensation method, device, electronic device and computer-readable storage medium, which can reduce the deviation between the size of the finished print and the designed size of the print, and improve the size accuracy of the printed product.

[0005] The embodiment of the present application provides a size compensation method, including:

[0006] Acquire size design values ​​of a plurality of printing areas into which the model to be printed is divided along a height direction, each printing area including at least one slice layer of the model to be printed;

[0007] Determining a target size compensation coefficient matching each of the printing areas;

[0008] Based on the target size compensation coefficient matching each printing area and the size design value of the printing area, size compensation is performed on the slice layer of each printing area.

[0009] The embodiment of the present application divides the print part into multiple printing areas along the height direction, and the printing areas at different heights have their corresponding target size compensation coefficients, so that different degrees of size compensation can be performed on the print part at different heights without redesigning the print model. The problem of inconsistent dimensional deformation of print parts at different heights caused by thermal stress and metal thermal barrier shrinkage can be alleviated, the deviation between the printed product and the actual design size can be reduced, and the dimensional accuracy of the printed product can be improved.

[0010] In some embodiments, determining a target size compensation coefficient matching each of the printing areas includes:

[0011] Obtaining a dimensional measurement value of each printing area of ​​a printed sample, wherein the printed sample is a printed product formed by three-dimensional printing of the model to be printed;

[0012] Based on the size measurement value and the size design value of each printing area, a target size compensation coefficient matching each printing area is obtained.

[0013] The embodiment of the present application combines the dimensional measurement value of the print sample actually printed out to obtain the dimensional compensation coefficient. The dimensional measurement value and the dimensional design value can reflect the actual deformation of the print sample printed out, and thus the target dimensional compensation coefficient can be made more accurate.

[0014] In some embodiments, each of the printing areas includes a slice layer, and obtaining a target size compensation coefficient matching the printing area based on the size measurement value and the size design value of each printing area includes:

[0015] Determining an initial size compensation coefficient of each slice layer based on the size measurement value and the size design value of each slice layer in the to-be-printed model;

[0016] A scaling curve is obtained by performing smooth fitting based on the initial size compensation coefficient of each slice layer, wherein the independent variable of the scaling curve is the number of layers of each slice layer in the to-be-printed model, and the dependent variable of the scaling curve is the target size compensation coefficient matched by each slice layer.

[0017] The embodiment of the present application performs fitting based on the initial compensation size coefficient of each slice layer to obtain the target compensation size coefficient, so that the target size compensation coefficient of each slice layer can smoothly transition as the slice layer height changes, avoiding a sudden change in the area of ​​a certain slice layer after size compensation, thereby making each slice layer after size compensation have continuity in connection.

[0018] In some embodiments, performing smooth fitting based on the initial size compensation coefficient of each slice layer to obtain a scaling curve includes:

[0019] Acquire a correction value corresponding to the initial size compensation coefficient of each slice layer;

[0020] Based on the correction value, the initial size compensation coefficient of each slice layer is corrected to obtain each corrected initial size compensation coefficient;

[0021] The scaling curve is obtained by performing smooth fitting based on the corrected initial size compensation coefficients.

[0022] The embodiment of the present application corrects the initial size compensation coefficient, which can further improve the accuracy of size compensation.

[0023] In some embodiments, determining an initial size compensation coefficient of each slice layer based on the size measurement value and the size design value of each slice layer in the to-be-printed model includes:

[0024] Obtaining an initial size compensation coefficient of each slice layer based on a ratio of the size design value to the size measurement value of each slice layer;

[0025] The step of performing size compensation on the slice layer of each printing area based on the target size compensation coefficient matched with each printing area and the size design value of the printing area comprises:

[0026] The target size compensation coefficient matched by the slice layer is multiplied by the size design value of the slice layer to obtain the printing size of the slice layer after size compensation.

[0027] The embodiment of the present application can scale the size of the slice layer. When the 3D printer prints the scaled slice layer, it can compensate for the deformation problem of the printed part along the height direction, thereby improving the convenience of size compensation of the 3D printer.

[0028] In some embodiments, obtaining an initial size compensation coefficient of each slice layer based on a ratio of the size design value to the size measurement value of each slice layer includes:

[0029] Obtaining an initial size compensation coefficient of the slice layer in the first direction based on a ratio of the size design value and the size measurement value of the slice layer in the first direction;

[0030] The initial size compensation coefficient of the slice layer in the second direction is obtained based on the ratio of the size design value and the size measurement value of the slice layer in the second direction.

[0031] The embodiment of the present application takes into account the difference in degree of dimensional deformation in different directions of the same slice layer, and performs dimensional compensation to different degrees in the same slice layer direction, thereby further improving the dimensional compensation accuracy.

[0032] In some embodiments, obtaining a target size compensation coefficient matching each printing area based on the size measurement value and the size design value of each printing area includes:

[0033] Inputting the size measurement value and the size design value of the slice layer in the printing area into a preset spot compensation value determination model to obtain the spot compensation value of the slice layer in the printing area;

[0034] Based on the spot compensation value of the slice layer in the printing area, a target size compensation coefficient matching the printing area is determined.

[0035] The embodiment of the present application also provides a size compensation device, including:

[0036] An acquisition module, used to acquire the size design values ​​of a plurality of printing areas into which the model to be printed is divided along the height direction, each printing area including at least one slice layer of the model to be printed;

[0037] A matching module, used for determining a target size compensation coefficient matching each printing area;

[0038] The compensation module is used to perform size compensation on the slice layer of each printing area based on the target size compensation coefficient matching each printing area and the size design value of the printing area.

[0039] An embodiment of the present application further provides an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned size compensation method.

[0040] An embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned size compensation method. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 The figure is a flowchart of a size compensation method according to an embodiment of the present application.

[0042] Figure 2 A schematic diagram of dividing the printing area of ​​a model to be printed according to an embodiment of the present application.

[0043] Figure 3 FIG. 4 is a schematic diagram of spot compensation provided according to an embodiment of the present application.

[0044] Figure 4 The flowchart is a sub-step flowchart of step 102 provided according to an embodiment of the present application.

[0045] Figure 5 The present invention is a flowchart of a size compensation method according to another embodiment of the present application.

[0046] Figure 6 It is a schematic diagram of a scaling curve provided according to an embodiment of the present application.

[0047] Figure 7 It is a schematic structural diagram of a size compensation device provided according to an embodiment of the present application.

[0048] Figure 8The figure is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the implementation methods of the present application and the features in the implementation methods can be combined with each other without conflict.

[0050] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.

[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0052] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0053] In this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0054] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0055] In the process of metal additive manufacturing, the 3D printer will lay a layer of metal material on the forming platform, heat the metal material, and cool it to form slices. In this way, the final print is formed by stacking layers of metal material.

[0056] However, since metal materials have a certain expansion coefficient, they will expand and contract during the heating and cooling process, and the formed slice layers have temperature differences. The temperature differences of each slice during the cooling and forming process will cause the accumulation of thermal stress in each slice layer, ultimately causing the size of the formed print to deform and deviate from the original design size.

[0057] Therefore, in some embodiments, during the printing process, the printed part may be scaled as a whole or the spot compensation value may be adjusted to make the printed part consistent with the size and wall thickness of the original design.

[0058] However, in the metal additive manufacturing process, due to the difference in residual thermal stress along the height direction and the difference in slice area, the degree of deformation of the printed product will vary with the change in height. Therefore, the above-mentioned method of scaling the entire print or adjusting the spot compensation value still cannot guarantee the size and shape accuracy of the printed product.

[0059] In view of the above, an embodiment of the present application provides a size compensation method, which can be applied to an electronic device, and the electronic device can be integrated into a three-dimensional printer, such as the electronic device can be a host or control module in the three-dimensional printer, or the electronic device can also be communicatively connected with the host or control module of the three-dimensional printer.

[0060] The electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes but is not limited to processors, microprogrammed control units (MCU), application specific integrated circuits (ASIC), programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc., but is not limited to these.

[0061] Figure 1 This is a flowchart of the steps in an embodiment of the size compensation method of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0062] See also Figure 1 As shown, the size compensation method may include the following steps:

[0063] Step 101, obtaining the size design values ​​of a plurality of printing areas into which the model to be printed is divided along the height direction.

[0064] Each printing area includes at least one slice layer of the model to be printed. The model to be printed is a three-dimensional model to be three-dimensionally printed. The three-dimensional model is sliced ​​according to a set layer thickness, and each layer obtained can be used as a slice layer of the three-dimensional model.

[0065] The number of printing areas and the number of slice layers included in each printing area can be set according to user needs.

[0066] For example, the electronic device may provide a human-computer interaction interface, and the user may input a division method of the printing area of ​​the to-be-printed model on the human-computer interaction interface, for example, dividing every N slice layers into a printing area, and for example, referring to Figure 2 As shown, according to the height of the printed part, the model to be printed is divided into an upper printing area 201 and a lower printing area 202 with the middle height as the boundary.

[0067] The size design value of the printing area represents the shape and size of each slice layer designed in the printing area, such as the wall thickness, length, width, radius, etc. of the slice layer.

[0068] For example, refer to Figure 3 As shown, the size design value of the slice layer 301 may include the inner circle radius of the slice layer 301 and the outer circle radius of the slice layer 301 , and the difference between the outer circle radius and the inner circle radius may reflect the wall thickness of the slice layer 301 .

[0069] Step 102: determining a target size compensation coefficient matching each printing area.

[0070] The target size compensation coefficient can perform size compensation on each slice layer included in the printing area to obtain a size-compensated model to be printed, so that the size accuracy of the printed product printed by the size-compensated model to be printed meets the preset accuracy standard.

[0071] When the printing area includes multiple slice layers, each of the multiple slice layers shares the target size compensation coefficient matched by the printing area. That is, when a printing area includes N slice layers, N is an integer greater than or equal to 2, and the target size compensation coefficient of the printing area is num1, the N slice layers of the printing area all use num1 for size compensation.

[0072] When the printing area includes one slice layer, the slice layer has its corresponding target size compensation coefficient. For example, when a printing area includes one slice layer and the target size compensation coefficient of the printing area is num2, the target size compensation coefficient of the slice layer is num2.

[0073] In some embodiments, the target size compensation factor may be a target size scaling factor of the print area.

[0074] The target size scaling factor of a certain printing area represents the scaling ratio of each slice layer file in the printing area. By scaling each slice layer in the printing area according to the scaling ratio, the printing size of the slice layer in the printing area after size compensation can be obtained.

[0075] If the 3D printer prints according to the printing size of the slice layer after size compensation, the accuracy of the model printed in the printing area can meet the preset accuracy standard.

[0076] Further, the target size scaling factor of each printing area may include a target size scaling factor of each slice layer of the printing area along a first direction and a target size scaling factor along a second direction, wherein the first direction and the second direction may be perpendicular to each other.

[0077] It can be understood that the target scaling factor in the first direction may represent the scaling ratio of each slice layer width in the printing area, and the target scaling factor in the second direction may represent the scaling ratio of each slice layer length in the printing area.

[0078] In the above embodiment, the target size compensation coefficient is a target size scaling coefficient of the printing area. In other embodiments, the target size compensation coefficient may also be a target spot compensation value of the printing area.

[0079] The target spot compensation value refers to the width of the laser scanning path offset inward (ie, toward the inside of the print) along the designed contour line of the slice layer, or the width of the laser scanning path offset outward (ie, toward the outside of the print) along the designed contour line of the slice layer.

[0080] Different contour line positions in the slice layer may correspond to different target spot compensation values.

[0081] For example, refer to Figure 3 As shown, assuming that the slice layer 301 is in the shape of a concentric ring, the spot compensation value of the inner contour line of the slice layer 301 is -0.2 mm, and the spot compensation value of the outer contour line of the slice layer 301 is -0.3 mm. The laser scanning path corresponding to the inner contour line of the slice layer 301 will be offset outward by 0.2 mm to form a laser scanning path 302 corresponding to the inner contour line after size compensation; the laser scanning path corresponding to the outer contour line of the slice layer 301 will be offset outward by 0.3 mm to form a laser scanning path 303 corresponding to the outer contour line after size compensation, thereby achieving size compensation of the slice layer 301.

[0082] In some embodiments, step 102 may include: the electronic device may provide a human-computer interaction interface for configuring the target size compensation coefficient, such as a human-computer interaction interface, and obtain the target size compensation coefficient matching each printing area from the human-computer interaction interface, or the electronic device pre-stores the target size compensation coefficient for each printing area, and when size compensation is required, the electronic device may call the target size compensation coefficient for each printing area.

[0083] For example, refer again to Figure 2 As shown, if the target size compensation coefficient is the target size scaling coefficient, the user can set the target scaling coefficient of the upper printing area 201 between 1.7 and 2, and the target scaling coefficient of the lower printing area 202 between 1.5 and 1.8.

[0084] The printing area of ​​the embodiment of the present application may include multiple slice layers, and each of the multiple slice layers may be set with the same target size compensation coefficient. Therefore, there is no need to calculate the corresponding size compensation coefficient for each slice layer, which can reduce the calculation amount of size compensation while improving the size accuracy of the print.

[0085] Furthermore, the human-computer interaction interface for configuring the target size compensation coefficient may also be provided with a coefficient type selection option, and the coefficient type selection option at least includes: a target size scaling coefficient and a target spot compensation value.

[0086] In the case where the user sets the coefficient type selection option to the target size scaling coefficient, the user may further configure the target size scaling coefficient based on the human-computer interaction interface.

[0087] In the case where the user sets the coefficient type selection option to the target spot compensation value, the user may further configure the target spot compensation value based on the human-computer interaction interface.

[0088] In the above embodiments, the user may manually set the target size compensation coefficient that matches each printing area. In other embodiments, the electronic device may obtain the target size compensation coefficient that matches each printing area through automatic calculation.

[0089] Specifically, refer to Figure 4 As shown, step 102 may include:

[0090] Step 401, obtaining the dimension measurement value of each printing area of ​​the printed sample.

[0091] The printed sample is the finished product formed by three-dimensional printing of the model to be printed.

[0092] The printed sample is a finished product printed by a 3D printer using the slice file of the model to be printed without size compensation.

[0093] For example, the print sample can be scanned by a 3D scanner, and the 3D scanner can be connected to communicate with an electronic device. The electronic device can obtain scanning data from the 3D scanner, such as the deformation of the print sample compared to the model to be printed, and then determine the dimensional measurement value corresponding to each slice layer in each printing area of ​​the print sample based on the scanning data (i.e., the dimensional measurement value of the print sample).

[0094] Step 402: Based on the size measurement value and the size design value of each printing area, a target size compensation coefficient matching each printing area is obtained.

[0095] In some embodiments, step 402 may include:

[0096] Step 4021, based on the size measurement value and size design value of the slice layer in the printing area, obtain the initial size compensation coefficient of the slice layer in the printing area.

[0097] When the type of the initial size compensation coefficient of the slice layer is the spot compensation value, step 4021 may include: inputting the size measurement value and size design value of the slice layer into a preset spot compensation value determination model to obtain the initial size compensation coefficient of the slice layer (i.e., the initial spot compensation value).

[0098] For example, a spot compensation value lookup table may be stored in the spot compensation value determination model, in which a correspondence between slice layer related parameters and spot compensation values ​​is set. The slice layer related parameters may include: size design value range, deformation amount range, slice layer number range, etc., wherein the deformation amount can be obtained based on the size measurement value and size design value of the slice layer.

[0099] The electronic device can first obtain the deformation amount based on the size measurement value and size design value of the slice layer, and then find the corresponding spot compensation value in the spot compensation value lookup table based on the deformation amount of the slice layer, the size design value range and the layer number of the slice layer, and use the found spot compensation value as the initial spot compensation value of the slice layer.

[0100] For another example, the spot compensation value determination model can be obtained based on pre-training of an artificial neural network, or, in combination with a graphics algorithm and settings such as a galvanometer, scanning angle, and scanning laser radius of a 3D printer, the spot compensation value determination model can be set in actual application according to actual application requirements. The embodiments of the present application are not limited to this.

[0101] The above is an embodiment in which the type of the initial size compensation coefficient corresponding to the slice layer is a spot compensation value. When the size compensation coefficient corresponding to the slice layer is a size scaling coefficient, step 4021 may include: calculating the ratio of the size design value and the size measurement value of the slice layer, and obtaining the initial size compensation coefficient of the slice layer (i.e., the initial size scaling coefficient) based on the ratio.

[0102] For example, the ratio of the size design value and the size measurement value of the slice layer is used as the initial size compensation coefficient of the slice layer.

[0103] Furthermore, the initial size compensation coefficient can be corrected. Specifically, the electronic device can obtain a correction value corresponding to the initial size compensation coefficient. For example, the electronic device stores a correspondence between a size compensation coefficient range and a correction value. The correction value corresponding to the initial size compensation coefficient is found in the correspondence between the size compensation coefficient range and the correction value. Then, the initial size compensation coefficient is corrected based on the correction value, such as by adding the correction value to the initial size compensation coefficient.

[0104] The correction value can be set according to the accuracy requirements for the print, and parameters such as the ratio of the size design value and the size measurement value of the slice layer, and the embodiments of the present application are not limited to this.

[0105] In the embodiment of the present application, the accuracy of the initial size compensation value of the slice layer can be improved by using the correction value to compensate the initial size.

[0106] After the initial size compensation coefficient of the slice layer in the printing area is obtained, step 4022 may be executed.

[0107] Step 4022: Based on the initial size compensation coefficient of the slice layer in the printing area, a target size compensation coefficient matching the printing area is obtained.

[0108] In some embodiments, when a printing area includes only one slice layer, the initial size compensation coefficient of the slice layer may be used as the target size compensation coefficient of the printing area.

[0109] In the case where a certain printing area includes a plurality of slice layers, a target size compensation coefficient matching the printing area may be obtained based on the initial size compensation coefficients of the plurality of slice layers.

[0110] For example, an average value of initial size compensation coefficients of multiple slice layers may be used as a target size compensation coefficient matching the printing area.

[0111] Alternatively, the initial size compensation coefficient of a certain slice layer in the printing area, such as a slice layer at a middle height in the printing area, or the median value of the initial size compensation coefficients of the multiple slice layers can be used as the target size compensation coefficient matching the printing area, and the embodiments of the present application are not limited to this.

[0112] In the above-mentioned embodiment, each printing area in the printout may include one or more slice layers, and each slice layer in the printing area may use the same target size compensation coefficient for size compensation. There is no need to calculate the target size compensation coefficient corresponding to each slice layer, which can simplify the complexity of the operation.

[0113] In other embodiments, each printing area in the model to be printed may also include only one slice layer, that is, each slice layer of the model to be printed has its corresponding target size compensation coefficient, thereby further improving the size compensation accuracy of the slice layer.

[0114] The following description is about the process of the electronic device executing step 402 when each printing area in the to-be-printed model includes only one slice layer.

[0115] In some embodiments, the electronic device may determine an initial size compensation coefficient for each slice layer, such as an initial spot compensation value or an initial size scaling coefficient, based on the size measurement value and size design value of each slice layer in the model to be printed, and then obtain a scaling curve based on a smooth fitting of the initial size compensation coefficient of each slice layer, wherein the independent variable of the scaling curve is the number of layers of each slice layer in the model to be printed, and the dependent variable of the scaling curve is the target size compensation coefficient matched to each slice layer.

[0116] The embodiment of the present application performs smooth fitting based on the initial size compensation coefficient of each slice layer to obtain the target size compensation coefficient, so that the target size compensation coefficient of each slice layer can smoothly transition as the slice layer height changes, avoiding a sudden change in the area of ​​a certain slice layer after size compensation, thereby making each slice layer after size compensation coherent in connection, and further making each slice layer of the stacked printed product after size compensation can be smoothly connected.

[0117] After the target size compensation coefficient matching each printing area is obtained, step 103 may be executed.

[0118] Step 103 : Based on the target size compensation coefficient matching each printing area and the size design value of the printing area, size compensation is performed on the slice layer of each printing area.

[0119] When the target size compensation coefficient is a target size scaling coefficient, step 103 may include: multiplying the size design value of each slice layer in the printing area by the target size compensation value matched to the printing area to obtain the printing size of each slice layer in the printing area after size compensation.

[0120] When the target size compensation coefficient is a target spot compensation value, step 103 may include: modifying an original laser scanning path of each slice layer of the printing area by a target spot compensation value matching the printing area, wherein the original laser scanning path of each slice layer is determined based on a size design value of each slice layer.

[0121] refer to Figure 5 As shown, the size compensation process is described below in conjunction with a specific application scenario. In this application scenario, each printing area of ​​the model to be printed includes only one slice layer, and the target size compensation coefficient is the target size scaling coefficient.

[0122] Step 501, obtaining the size design value of each slice layer in the model to be printed.

[0123] Step 502, obtaining the dimension measurement value of each slice layer in the printed sample.

[0124] Among them, the printed sample is a printed product formed by three-dimensional printing of the model to be printed.

[0125] That is, the printed sample is a finished product printed by the 3D printer using the slice file of the model to be printed without performing size compensation.

[0126] Step 503: Based on the ratio of the size design value and the size measurement value of each slice layer, an initial size compensation coefficient of each slice layer is obtained.

[0127] Specifically, the ratio of the size design value and the size measurement value of the slice layer may be used as the initial size compensation coefficient (ie, initial size scaling coefficient) of the slice layer.

[0128] In some embodiments, step 503 may include: obtaining an initial size compensation coefficient of the slice layer in the first direction based on a ratio of a size design value and a size measurement value of the slice layer in the first direction; and obtaining the initial size compensation coefficient of the slice layer in the second direction based on a ratio of a size design value and a size measurement value of the slice layer in the second direction.

[0129] The first direction and the second direction may be perpendicular to each other. That is, a rectangular coordinate system is established with the plane where the slice layer is located, the direction along the x-axis may be used as the first direction, the y-axis direction may be used as the second direction, and the x-axis and the y-axis are perpendicular to each other.

[0130] This embodiment takes into account the difference in the degree of size deformation in different directions of the same slice layer, and can perform different degrees of scaling in the same slice layer direction, thereby further improving the size scaling accuracy.

[0131] Reference Figure 3 As shown, when there are inner contour lines and outer contour lines in the slice layer (that is, there are inner circles and outer circles in the slice layer), the initial size compensation coefficient of the slice layer can be as follows:

[0132] Initial size scaling factor of the first direction = (design size value of the outer ring in the first direction / measured size value of the outer ring in the first direction + design size value of the inner ring in the first direction / measured size value of the inner ring in the first direction) / 2;

[0133] The initial size scaling factor of the second direction = (design size value of the outer circle in the second direction / measured size value of the outer circle in the second direction + design size value of the inner circle in the second direction / measured size value of the inner circle in the second direction) / 2.

[0134] In the embodiment of the present application, when the slice layer has an inner circle and an outer circle, the initial size scaling factor is obtained based on the average value of the scaling factors of the inner and outer cavities, which can improve the accuracy of the initial size scaling factor of the print with wall thickness.

[0135] After executing step 503, a smooth fitting may be performed based on the initial size compensation coefficient of each slice layer to obtain a scaling curve.

[0136] Among them, reference Figure 6 As shown, the independent variable of the scaling curve of the model to be printed is the number of layers of each slice layer in the model to be printed, and the dependent variable is the target size compensation coefficient (ie, the target size scaling coefficient) matched by each slice layer.

[0137] The scaling curve of the model to be printed may include a first direction scaling curve and a second direction scaling curve.

[0138] The independent variable of the first direction scaling curve is the number of each slice layer in the to-be-printed model, and the dependent variable is the target size compensation coefficient of the first direction matched by each slice layer.

[0139] The independent variable of the second direction scaling curve is the number of each slice layer in the print, and the dependent variable is the target size compensation coefficient of the second direction matched to each slice layer.

[0140] The embodiment of the present application performs smooth fitting based on the initial size compensation coefficient of each slice layer to obtain the target size compensation coefficient, so that the target size compensation coefficient of each slice layer can smoothly transition as the slice layer height changes, avoiding a sudden change in the area of ​​a certain slice layer after size compensation, thereby making each slice layer after size compensation have continuity in connection.

[0141] In some embodiments, performing smooth fitting on the initial size compensation coefficient of each slice layer to obtain the scaling curve includes: performing smooth fitting on the initial size compensation coefficient of each slice layer to obtain the scaling curve.

[0142] For example, the slice layer and its initial size compensation coefficient can be recorded as coordinates (i, Zi), i represents the number of slice layers, and Zi represents the initial size compensation coefficient of the i-th slice layer. If the model to be printed includes N slice layers, (1, Z1), (2, Z2), ..., (N, ZN) can be fitted to obtain a scaling curve, wherein Zi' in a coordinate point (i, Zi') in the scaling curve is the target size compensation coefficient of the i-th layer.

[0143] In other embodiments, smooth fitting is performed based on the initial size compensation coefficient of each slice layer to obtain a scaling curve, which may include the following steps 504 to 506.

[0144] Step 504: Obtain a correction value corresponding to the initial size compensation coefficient of each slice layer.

[0145] Step 505: based on the correction value, correct the initial size compensation coefficient of each slice layer to obtain each corrected initial size compensation coefficient.

[0146] Step 506 , performing smooth fitting based on the corrected initial size compensation coefficients to obtain a scaling curve.

[0147] The independent variable of the scaling curve is the number of layers of each slice layer in the model to be printed, and the dependent variable is the target size compensation coefficient matched for each slice layer.

[0148] Step 507 : multiplying the target size compensation coefficient matched by the slice layer by the size design value of the slice layer to obtain the printing size of the slice layer after size compensation.

[0149] If the scaling curve of the model to be printed may include a first direction scaling curve and a second direction scaling curve, step 507 may include: multiplying the target size compensation coefficient of the first direction matched by the slice layer by the size design value of the first direction of the slice layer, and multiplying the target size compensation coefficient of the second direction matched by the slice layer by the size design value of the second direction of the slice layer, so as to obtain the printing size of the slice layer after size compensation.

[0150] In an embodiment of the present application, the electronic device can divide the printout into multiple printing areas along the height direction, and the printing areas at different heights have their corresponding target size compensation coefficients, so that different degrees of size compensation can be performed at different heights of the printout without the need for secondary design of the print model. This can alleviate the problem of inconsistent degree of dimensional deformation of different heights of the printed product caused by thermal stress and metal thermal barrier shrinkage, reduce the deviation between the printed product and the actual design size, and improve the dimensional accuracy of the printed product.

[0151] In addition, the electronic device of the embodiment of the present application can perform fitting based on the scattered value of the initial compensation size coefficient of each slice layer to obtain the target compensation size coefficient, so that the target size compensation coefficient of each slice layer can smoothly transition as the slice layer height changes, avoiding a sudden change in the area of ​​a certain slice layer after size compensation, thereby making each slice layer after size compensation have continuity in connection.

[0152] Based on the same idea as the size compensation method in the above embodiment, the present application also provides a size compensation device, which can be used to perform the above size compensation method. For ease of explanation, the structural schematic diagram of the embodiment of the size compensation device only shows the parts related to the embodiment of the present application. It can be understood by those skilled in the art that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown in the diagram, or combine certain components, or arrange the components differently.

[0153] like Figure 7 As shown, the size compensation device includes an acquisition module 701, a matching module 702, and a compensation module 703. In some embodiments, the above modules can be programmable software instructions stored in a memory and can be called and executed by a processor. It is understood that in other embodiments, the above modules can also be program instructions or firmware fixed in the processor.

[0154] An acquisition module 701 is used to acquire the size design values ​​of a plurality of printing areas into which the model to be printed is divided along the height direction, each printing area including at least one slice layer of the model to be printed;

[0155] A matching module 702 is used to determine a target size compensation coefficient that matches each printing area;

[0156] The compensation module 703 is used to perform size compensation on the slice layer of each printing area based on the target size compensation coefficient matching each printing area and the size design value of the printing area.

[0157] Figure 8 This is a schematic diagram of an embodiment of an electronic device of the present application.

[0158] The electronic device 100 includes a memory 20, a processor 30, and a computer program 40 stored in the memory 20 and executable on the processor 30. When the processor 30 executes the computer program 40, the steps in the above-mentioned size compensation method embodiment are implemented, for example Figure 1 Steps 101 to 103 are shown.

[0159] Exemplarily, the computer program 40 can also be divided into one or more modules / units, which are stored in the memory 20 and executed by the processor 30. The one or more modules / units can be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program 40 in the electronic device 100. For example, it can be divided into Figure 7 The illustrated acquisition module 701 , matching module 702 and compensation module 703 .

[0160] Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 100 and does not constitute a limitation of the electronic device 100. The electronic device 100 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 100 may also include input and output devices, network access devices, buses, etc.

[0161] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, a single-chip microcomputer, or the processor 30 may also be any conventional processor, etc.

[0162] The memory 20 can be used to store the computer program 40 and / or the module / unit. The processor 30 realizes various functions of the electronic device 100 by running or executing the computer program and / or the module / unit stored in the memory 20 and calling the data stored in the memory 20. The memory 20 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data (such as audio data) created according to the use of the electronic device 100, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0163] If the module / unit integrated in the electronic device 100 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0164] In the several embodiments provided in this application, it should be understood that the disclosed electronic device and method can be implemented in other ways. For example, the electronic device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation.

[0165] In addition, each functional unit in each embodiment of the present application may be integrated into the same processing unit, or each unit may exist physically separately, or two or more units may be integrated into the same unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0166] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or electronic devices stated in the electronic device claim can also be implemented by the same unit or electronic device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the above embodiments, a person skilled in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. A size compensation method, characterized in that: include: Acquire the size design values ​​of a plurality of printing areas into which the model to be printed is divided along the height direction, each printing area including at least one slice layer of the model to be printed; Determining a target size compensation coefficient matching each of the printing areas; Based on the target size compensation coefficient matching each printing area and the size design value of the printing area, size compensation is performed on the slice layer of each printing area.

2. The size compensation method according to claim 1, characterized in that: The determining of the target size compensation coefficient matching each printing area includes: Obtaining a dimensional measurement value of each printing area of ​​a printed sample, wherein the printed sample is a printed product formed by three-dimensional printing of the model to be printed; Based on the size measurement value and the size design value of each printing area, a target size compensation coefficient matching each printing area is obtained.

3. The size compensation method according to claim 2, characterized in that: Each of the printing areas includes a slice layer, and obtaining a target size compensation coefficient matching the printing area based on the size measurement value and the size design value of each printing area includes: Determining an initial size compensation coefficient of each slice layer based on the size measurement value and the size design value of each slice layer in the to-be-printed model; A scaling curve is obtained by performing smooth fitting based on the initial size compensation coefficient of each slice layer, wherein the independent variable of the scaling curve is the number of layers of each slice layer in the to-be-printed model, and the dependent variable of the scaling curve is the target size compensation coefficient matched by each slice layer.

4. The size compensation method according to claim 3, characterized in that: The step of performing smooth fitting based on the initial size compensation coefficient of each slice layer to obtain a scaling curve includes: Acquire a correction value corresponding to the initial size compensation coefficient of each slice layer; Based on the correction value, the initial size compensation coefficient of each slice layer is corrected to obtain each corrected initial size compensation coefficient; The scaling curve is obtained by performing smooth fitting based on the corrected initial size compensation coefficients.

5. The size compensation method according to claim 3, characterized in that: The determining, based on the size measurement value and the size design value of each slice layer in the to-be-printed model, an initial size compensation coefficient of each slice layer comprises: Obtaining an initial size compensation coefficient of each slice layer based on a ratio of the size design value to the size measurement value of each slice layer; The step of performing size compensation on the slice layer of each printing area based on the target size compensation coefficient matched with each printing area and the size design value of the printing area comprises: The target size compensation coefficient matched by the slice layer is multiplied by the size design value of the slice layer to obtain the printing size of the slice layer after size compensation.

6. The size compensation method according to claim 5, characterized in that: The obtaining, based on the ratio of the size design value to the size measurement value of each slice layer, an initial size compensation coefficient of each slice layer comprises: Obtaining an initial size compensation coefficient of the slice layer in the first direction based on a ratio of the size design value and the size measurement value of the slice layer in the first direction; The initial size compensation coefficient of the slice layer in the second direction is obtained based on the ratio of the size design value and the size measurement value of the slice layer in the second direction.

7. The size compensation method according to claim 2, characterized in that: The step of obtaining a target size compensation coefficient matching each printing area based on the size measurement value and the size design value of each printing area includes: Inputting the size measurement value and the size design value of the slice layer in the printing area into a preset spot compensation value determination model to obtain the spot compensation value of the slice layer in the printing area; Based on the spot compensation value of the slice layer in the printing area, a target size compensation coefficient matching the printing area is determined.

8. A size compensation device, characterized in that: include: An acquisition module, used to acquire the size design values ​​of a plurality of printing areas into which the model to be printed is divided along the height direction, each printing area including at least one slice layer of the model to be printed; A matching module, used for determining a target size compensation coefficient matching each printing area; The compensation module is used to perform size compensation on the slice layer of each printing area based on the target size compensation coefficient matching each printing area and the size design value of the printing area.

9. An electronic device, comprising a processor and a memory, characterized in that: The memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the size compensation method according to any one of claims 1 to claim 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the size compensation method according to any one of claims 1 to 7.