Three-dimensional model size compensation method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202410122063.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2044-01-29
AI Technical Summary
[0005]目前大多数切片软件只是进行简单的等比例缩放的方法进行尺寸精度补偿,忽略了打印件尺寸、形状对三维数据最终的尺寸影响,因而该方法只能适应特定尺寸范围及形状,难以适应大多数的模型
[0023] In this embodiment of the invention, a target 3D model is obtained, wherein the target 3D model is located in a spatial rectangular coordinate system composed of the X-axis, Y-axis, and Z-axis; predetermined geometric parameters of the target 3D model in the spatial rectangular coordinate system are determined; based on the predetermined geometric parameters, size compensation parameters corresponding to the target 3D model are obtained; and size compensation is performed on the target 3D model according to the size compensation parameters to obtain target 3D printing data. In this embodiment, the size compensation parameters corresponding to the target 3D model are determined according to the predetermined geometric parameters of the target 3D model in the spatial rectangular coordinate system, thus adjusting the original 3D printing data, making the 3D model printed based on the adjusted 3D printing data more accurate and more consistent with the original model, thereby solving the technical problem in related technologies where the 3D model obtained after 3D printing from 3D printing data has inaccurate dimensions.
Smart Images

Figure CN117922016B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of 3D printing, and more specifically, to a method, apparatus, electronic device, and storage medium for compensating the size of a three-dimensional model. Background Technology
[0002] 3D printing (also known as three-dimensional printing) technology uses 3D printing equipment to create three-dimensional solid objects by layering data from a three-dimensional model. 3D printing can overcome special structural obstacles that are currently impossible to achieve with traditional machining, enabling the simplified production of arbitrarily complex structural parts. Current 3D printing technologies include stereolithography (SLA), digital light processing (DLP), liquid crystal display (LCD), fused deposition modeling (FDM), and selective laser sintering (SLS).
[0003] 3D printing technology, from design to final product, involves roughly three stages: pre-processing, printing, and post-processing. Each stage can introduce errors, resulting in dimensional deviations between the printed part and the original design file. Dimensional compensation is an effective means of resolving these errors.
[0004] Dimensional accuracy compensation of 3D data is an indispensable part of photopolymerization 3D printing technology. The method involves importing the 3D data file into specific slicing software and then scaling the 3D data proportionally to achieve dimensional deformation compensation in photopolymerization.
[0005] Most slicing software currently only uses a simple proportional scaling method to compensate for dimensional accuracy, ignoring the influence of the printed part's size and shape on the final 3D data size. Therefore, this method can only adapt to specific size ranges and shapes, and is difficult to adapt to most models.
[0006] There is currently no effective solution to the above problems. Summary of the Invention
[0007] This invention provides a method, apparatus, electronic device, and storage medium for compensating the size of a three-dimensional model, in order to at least solve the technical problem in the related art that the size of the three-dimensional model obtained after three-dimensional printing using three-dimensional printing data is inaccurate.
[0008] According to one aspect of the present invention, a method for compensating the size of a three-dimensional model is provided, comprising: acquiring a target three-dimensional model, wherein the target three-dimensional model is located in a spatial rectangular coordinate system composed of an X-axis, a Y-axis, and a Z-axis; determining predetermined geometric parameters of the target three-dimensional model in the spatial rectangular coordinate system; obtaining size compensation parameters corresponding to the target three-dimensional model based on the predetermined geometric parameters; and performing size compensation on the target three-dimensional model according to the size compensation parameters to obtain target three-dimensional printing data.
[0009] Optionally, obtaining the size compensation parameters corresponding to the target 3D model based on the predetermined geometric parameters includes: determining the projection parameters of the target 3D model on the XY plane, wherein the predetermined geometric parameters include the projection parameters of the target 3D model on the XY plane, and the XY plane is the plane formed by the X-axis and the Y-axis; and determining a first scaling factor and a second scaling factor of the target 3D model in the X-axis direction and in the Y-axis direction based on the projection parameters, wherein the size compensation parameters include the first scaling factor and the second scaling factor.
[0010] Optionally, obtaining the size compensation parameter corresponding to the target 3D model based on the predetermined geometric parameters includes: determining the height parameter of the target 3D model on the Z-axis, wherein the predetermined geometric parameters include the height parameter of the target 3D model on the Z-axis; and determining a third scaling factor of the target 3D model in the Z-axis direction based on the height parameter, wherein the size compensation parameter includes the third scaling factor.
[0011] Optionally, determining the first scaling factor of the target 3D model in the X-axis direction and the second scaling factor in the Y-axis direction based on the projection parameters includes: determining the narrow length based on the projection area and the projection perimeter when the projection parameters include the projection area and the projection perimeter; and determining the first scaling factor and the second scaling factor based on the narrow length.
[0012] Optionally, determining the narrow length based on the projected area and the projected perimeter includes: determining the ratio of the square of the projected perimeter to the projected area as the narrow length.
[0013] Optionally, determining the first scaling factor and the second scaling factor based on the narrow length includes: determining the ratio of the first factor to the narrow length to obtain the second factor; determining the sum of a predetermined factor and the second factor as the first scaling factor, and determining the sum of the predetermined factor and the second factor as the second scaling factor.
[0014] Optionally, the method further includes: determining the model type of the target three-dimensional model based on the projected area of the target three-dimensional model on the XY plane; and determining the first coefficient corresponding to the target three-dimensional model based on a pre-configured mapping relationship between the model type and the first coefficient and the model type.
[0015] Optionally, the method further includes: obtaining the printing material type corresponding to the target 3D model; and determining the first coefficient corresponding to the target 3D model based on a pre-configured mapping relationship between the printing material type and the first coefficient, and the printing material type.
[0016] Optionally, determining the third scaling factor of the target 3D model in the Z-axis direction based on the height parameter includes: determining the product of a first coefficient and the height parameter to obtain a third coefficient; and determining the sum of a predetermined coefficient and the third coefficient as the third scaling factor.
[0017] Optionally, after obtaining target 3D printing data by performing size compensation on the target 3D model according to the size compensation parameters, the method further includes: determining slice data based on the target 3D printing data; and performing 3D printing based on the slice data to obtain a 3D printing model.
[0018] Optionally, after obtaining a 3D printed model by performing 3D printing based on the slice data, the method further includes: determining a first error index between the 3D printed model and the target 3D model in the X-axis direction, a second error index in the Y-axis direction, and a third error index in the Z-axis direction; adjusting the first scaling factor based on the first error index to obtain a fourth scaling factor; adjusting the second scaling factor based on the second error index to obtain a fifth scaling factor; and adjusting the third scaling factor based on the third error index to obtain a sixth scaling factor.
[0019] Optionally, after determining the first error index of the 3D printed model and the target 3D model in the X-axis direction, the second error index in the Y-axis direction, and the third error index in the Z-axis direction, the method further includes: adjusting the method of calculating the first scaling factor based on the first error index, adjusting the method of calculating the second scaling factor based on the second error index, and adjusting the method of calculating the third scaling factor based on the third error index.
[0020] According to one aspect of the present invention, a three-dimensional model size compensation device is provided, comprising: an acquisition module for acquiring a target three-dimensional model, wherein the target three-dimensional model is located in a spatial rectangular coordinate system composed of an X-axis, a Y-axis, and a Z-axis; a first determination module for determining projection parameters of the target three-dimensional model on an XY plane, wherein the XY plane is a plane composed of the X-axis and the Y-axis; a second determination module for obtaining size compensation parameters corresponding to the target three-dimensional model based on the projection parameters; and a compensation module for performing size compensation on the target three-dimensional model according to the size compensation parameters to obtain target three-dimensional printing data.
[0021] According to one aspect of the present invention, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the three-dimensional model size compensation method described in any of the preceding embodiments.
[0022] According to one aspect of the present invention, a computer-readable storage medium is provided, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the three-dimensional model size compensation method described in any of the preceding claims.
[0023] In this embodiment of the invention, a target 3D model is obtained, wherein the target 3D model is located in a spatial rectangular coordinate system composed of the X-axis, Y-axis, and Z-axis; predetermined geometric parameters of the target 3D model in the spatial rectangular coordinate system are determined; based on the predetermined geometric parameters, size compensation parameters corresponding to the target 3D model are obtained; and size compensation is performed on the target 3D model according to the size compensation parameters to obtain target 3D printing data. In this embodiment, the size compensation parameters corresponding to the target 3D model are determined according to the predetermined geometric parameters of the target 3D model in the spatial rectangular coordinate system, thus adjusting the original 3D printing data, making the 3D model printed based on the adjusted 3D printing data more accurate and more consistent with the original model, thereby solving the technical problem in related technologies where the 3D model obtained after 3D printing from 3D printing data has inaccurate dimensions. Attached Figure Description
[0024] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0025] Figure 1 This is a flowchart of a three-dimensional model size compensation method according to an embodiment of the present invention;
[0026] Figure 2This is a schematic diagram of a tooth model provided by an optional embodiment of the present invention in a spatial state;
[0027] Figure 3 This is a schematic diagram of a tooth model provided by an optional embodiment of the present invention in a spatial state;
[0028] Figure 4 These are schematic diagrams of different tooth models provided by optional embodiments of the present invention;
[0029] Figure 5 These are schematic projection diagrams of different tooth models provided in optional embodiments of the present invention.
[0030] Figure 6 This is a schematic diagram of an image type provided by an optional embodiment of the present invention;
[0031] Figure 7 This is a schematic diagram of scaling compensation in the X-axis and Y-axis directions provided by an optional embodiment of the present invention;
[0032] Figure 8 This is a schematic diagram of adjustment in the Z-axis direction provided by an optional embodiment of the present invention;
[0033] Figure 9 This is a structural block diagram of a three-dimensional model size compensation device according to an embodiment of the present invention. Detailed Implementation
[0034] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0035] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0036] According to an embodiment of the present invention, an embodiment of a three-dimensional model size compensation method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0037] Figure 1 This is a flowchart of a three-dimensional model size compensation method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0038] Step S102: Obtain the target 3D model, wherein the target 3D model is located in a spatial rectangular coordinate system composed of the X-axis, Y-axis and Z-axis;
[0039] In step S102 of this application, a target 3D model is involved, which can be a 3D model placed in a spatial Cartesian coordinate system. The target 3D model can also be understood as the 3D digital model to be formed in the printed part. The target 3D model includes, but is not limited to, a tooth model, and can also be used for 3D object models such as headphones, toys, and orthopedic models.
[0040] The operator can initially acquire the raw 3D printing data of the printed part. Methods for acquiring this raw 3D printing data include, but are not limited to, scanning or modeling. The types of raw 3D printing data include, but are not limited to, triangular facet 3D data, curved surface 3D data, mesh 3D data, or point cloud 3D data. After obtaining the raw 3D printing data, the operator converts it into voxel 3D data. Of course, the operator can also directly or indirectly obtain the voxel 3D data of the printed part through other methods; the method of acquiring voxel 3D data is not limited here.
[0041] It should be noted that the spatial state of the target 3D model placed in the Cartesian coordinate system is the same as the spatial state of the model to be printed. Therefore, the target 3D model can be placed in the Cartesian coordinate system and its position adjusted to the spatial state to be printed, so as to obtain the projection and height of the model in that spatial state later.
[0042] It should also be noted that the X-axis direction can refer to the length or width of the target 3D model during printing, and the Y-axis direction can also refer to the length or width of the target 3D model during printing. The X-axis and Y-axis directions refer to different directions of the target 3D model during printing. The Z-axis direction refers to the height of the target 3D model during printing.
[0043] Step S104: Determine the predetermined geometric parameters of the target 3D model in the spatial rectangular coordinate system;
[0044] In step S104 of this application, predetermined geometric parameters of the target 3D model in a spatial rectangular coordinate system are determined. These predetermined geometric parameters may include various parameters, such as the projected area of the model on a certain surface, the model's length, width, and height, etc. The specific predetermined geometric parameters can be customized according to the actual application and scenario.
[0045] Step S106: Based on the predetermined geometric parameters, obtain the size compensation parameters corresponding to the target 3D model;
[0046] In step S106 of this application, based on predetermined geometric parameters, size compensation parameters corresponding to the target 3D model are obtained. That is, based on the predetermined geometric parameters of the model in a spatial Cartesian coordinate system, the result of determining how to perform size compensation on the model is determined. This can also be understood as determining the size compensation parameters based on the model itself and its orientation in space, so that the printed data of the model can be adjusted accordingly.
[0047] It should be noted that the size compensation parameter can be used to compensate for the overall data, or it can be used to compensate for the height, width, or length of the model. The specific aspect to be compensated can be set adaptively according to the actual application and scenario.
[0048] Step S108: Based on the size compensation parameters, perform size compensation on the target 3D model to obtain the target 3D printing data.
[0049] In step S108 of this application, the target three-dimensional model is sized according to the size compensation parameters to obtain target three-dimensional printing data, and 3D printing is performed based on the target three-dimensional printing data, so that the size of the model printed based on the target three-dimensional printing data is more accurate.
[0050] Through the above steps S102-S108, a target 3D model is obtained, wherein the target 3D model is located in a spatial rectangular coordinate system composed of the X-axis, Y-axis, and Z-axis; predetermined geometric parameters of the target 3D model in the spatial rectangular coordinate system are determined; based on the predetermined geometric parameters, size compensation parameters corresponding to the target 3D model are obtained; according to the size compensation parameters, size compensation is performed on the target 3D model to obtain target 3D printing data. In this embodiment, the size compensation parameters corresponding to the target 3D model are determined according to the predetermined geometric parameters of the target 3D model in the spatial rectangular coordinate system. Therefore, the original 3D printing data is adjusted, making the 3D model printed based on the adjusted 3D printing data more accurate and more consistent with the original model. This solves the technical problem in related technologies where the 3D model obtained after 3D printing from 3D printing data has inaccurate dimensions.
[0051] In related technologies, the resulting 3D model, after being printed from 3D printing data, has inaccurate dimensions. As an optional embodiment, a size compensation parameter corresponding to the target 3D model is obtained based on predetermined geometric parameters. This includes: determining the projection parameters of the target 3D model on the XY plane, wherein the predetermined geometric parameters include the projection parameters of the target 3D model on the XY plane, where the XY plane is the plane formed by the X-axis and the Y-axis; and determining a first scaling factor of the target 3D model in the X-axis direction and a second scaling factor in the Y-axis direction based on the projection parameters, wherein the size compensation parameter includes the first scaling factor and the second scaling factor.
[0052] In this embodiment, the projection parameters of the target 3D model on the XY plane are determined. The projection on the XY plane is the projection formed on the bottom surface when light shines on the top of the target 3D model. For example, the projection of a spherical 3D model on the XY plane is a circle. The projection parameters are the aforementioned projection-related parameters, such as the perimeter, area, and shape of the projection. These are not limited here and can be specifically set according to the actual application and scenario.
[0053] After obtaining the first and second scaling parameters, the original 3D printing data of the target 3D model can be adjusted based on these scaling factors. Adjusting the original 3D printing data of the target 3D model based on the first scaling factor can involve adjusting data related to the X-axis direction, while adjusting the original 3D printing data of the target 3D model based on the second scaling factor can involve adjusting data related to the Y-axis direction, thereby obtaining scaled target 3D printing data. This makes the data related to the X-axis and Y-axis directions in the target 3D printing data more accurate, enabling the printing of a more accurate model in the X-axis and Y-axis directions.
[0054] As an optional embodiment, based on predetermined geometric parameters, the size compensation parameters corresponding to the target 3D model are obtained, including: determining the height parameter of the target 3D model on the Z-axis, wherein the predetermined geometric parameters include the height parameter of the target 3D model on the Z-axis; and based on the height parameter, determining a third scaling factor of the target 3D model in the Z-axis direction, wherein the size compensation parameters include the third scaling factor.
[0055] In this embodiment, the height parameter of the target 3D model on the Z-axis is also determined, such as the height of the spherical 3D model on the Z-axis, such as the height of its diameter.
[0056] After obtaining the third scaling parameter, the original 3D printing data of the target 3D model can be adjusted based on the third scaling factor. When adjusting the original 3D printing data of the target 3D model based on the third scaling factor, adjustments can be made to the data related to the Z-axis direction to obtain scaled target 3D printing data. This makes the Z-axis related data in the target 3D printing data more accurate, enabling the printing of a more accurate model in the Z-axis direction.
[0057] Through the two optional embodiments described above, considering that in 3D printing, the 3D model in the height direction (i.e., the Z-axis direction) is printed by continuously stacking numerical values, while the 3D model in the length and width directions (X-axis and Y-axis directions) is printed directly based on numerical values, it is known that the error in the height direction will differ from the error in the length and width directions. Therefore, the method for calculating the scaling factor in the Z-axis direction is different from the methods for calculating the scaling factor in the X-axis and Y-axis directions. This allows for the determination of the corresponding scaling factor in a targeted manner to achieve better printing results.
[0058] As an optional embodiment, determining a first scaling factor in the X-axis direction and a second scaling factor in the Y-axis direction of the target 3D model based on projection parameters includes: determining a narrow length based on the projection area and projection perimeter when the projection parameters include the projection area and projection perimeter; and determining the first scaling factor and the second scaling factor based on the narrow length.
[0059] This embodiment describes the specific method for determining the first scaling factor and the second scaling factor. When determining the scaling factor based on projection parameters, it can be considered to determine the scaling factor based on the area and perimeter of the projection. Specifically, the narrow length can be determined based on the projection area and perimeter, that is, the elongation of the projection, and the scaling factor can be determined based on the elongation. For example, a larger narrow length indicates a more elongated projection. A more elongated projection should theoretically have a smaller scaling factor. A smaller narrow length indicates a less elongated projection. A less elongated projection should theoretically have a larger scaling factor. Because when the projection is not very elongated, errors tend to be larger, a larger scaling factor should be used to adjust the original 3D printing data to more accurately adjust the errors.
[0060] As an optional embodiment, determining the narrow length based on the projected area and the projected perimeter includes: determining the ratio of the square of the projected perimeter to the projected area as the narrow length.
[0061] In this embodiment, a method for determining the slenderness is described. The ratio of the square of the projected perimeter to the projected area can be determined as the slenderness. When the slenderness is larger, it indicates that the perimeter is larger relative to the area, that is, the projection is more elongated. Through this method, the determined slenderness can be applied to various projection planes and better reflect the flat relationship.
[0062] As an alternative embodiment, determining the first scaling coefficient and the second scaling coefficient based on the slenderness comprises: determining the ratio of the first coefficient to the slenderness to obtain a second coefficient; determining the sum of a predetermined coefficient and the second coefficient as the first scaling coefficient, and determining the sum of the predetermined coefficient and the second coefficient as the second scaling coefficient.
[0063] In this embodiment, a specific method for determining the first scaling coefficient and the second scaling coefficient is described. By determining the ratio of the first coefficient to the slenderness, when the slenderness is larger and the projection is more elongated, the corresponding scaling coefficient is smaller; and when the slenderness is smaller and the projection is less elongated, the corresponding scaling coefficient is larger. Both the first coefficient and the predetermined coefficient can be custom-set according to actual applications and scenarios. The predetermined coefficient may be 1, and the size of the scaling coefficient is adjusted by the second coefficient. Therefore, the first coefficient can be a relatively small number, so that the scaling coefficient can be finely adjusted, avoiding abnormal large or small printed model caused by the adjusted target three-dimensional printing data due to excessively large scaling coefficient.
[0064] As an alternative embodiment, determining the model type of the target three-dimensional model based on the projection area of the target three-dimensional model on the XY plane; and determining the first coefficient corresponding to the target three-dimensional model based on the pre-configured mapping relationship between model types and first coefficients and the model type.
[0065] In this embodiment, the model type is considered to set the first coefficient in a targeted manner. When determining the model type, it is determined based on the projection area, so that the model type can be accurately determined according to the projection area, and a more targeted first coefficient can be determined.
[0066] Wherein, when determining the model type according to the projection area, various methods can be used. For example, projection area reference values X1 and X2 can be set, where X1<X2, and the projection area is S. The method for determining the model type is as follows:
[0067] 1) When S<X1, the model type is determined as a 1 / 4 dental model;
[0068] 2) When S>X2, the model type is determined as a D-shaped dental model;
[0069] 3) When X1≤S≤X2, the model type is determined as a C-shaped dental model.
[0070] The pre-configured mapping relationship between model types and the first coefficient can be as follows: for a 1 / 4 dental model, the first coefficient is 0.01; for a D-shaped dental model, the first coefficient is 0.05; and for a C-shaped dental model, the first coefficient is 0.03. Different types of dental models correspond to different first coefficients. Based on practical considerations, the first coefficient can be set to be larger for larger projected areas to ensure more accurate printing data later.
[0071] As an optional embodiment, the printing material type corresponding to the target 3D model is obtained; based on the pre-configured mapping relationship between the printing material type and the first coefficient, and the printing material type, the first coefficient corresponding to the target 3D model is determined.
[0072] This embodiment illustrates that the selection of the first coefficient can also be related to the resin material used for printing, and different resin materials also affect the dimensional compensation parameters. Before each print, the material type to be used for the model to be printed can be selected in the pre-processing software, and then the first coefficient can be determined based on the material type. That is, the first coefficient corresponding to the printing material type can be determined from the pre-configured mapping relationship between printing material types and first coefficients, based on the printing material type corresponding to the target 3D model. This allows for a more comprehensive consideration when determining the first coefficient, enabling more accurate printing data to be determined subsequently.
[0073] As an optional embodiment, determining a third scaling factor for the target 3D model in the Z-axis direction based on the height parameter includes: determining the product of a first coefficient and the height parameter to obtain a third coefficient; and determining the sum of a predetermined coefficient and the third coefficient as the third scaling factor.
[0074] This embodiment illustrates the specific method for determining the third scaling factor. Because higher heights result in more printing layers, the accumulated error will inevitably increase. Therefore, the product of the first factor and the height parameter can be determined. By determining this product, the scaling factor is larger when the height parameter is larger, and smaller when the height parameter is smaller. Both the first factor and the predetermined factor can be customized based on the actual application and scenario. The predetermined factor can be 1, and the scaling factor is adjusted using the second factor. Therefore, the first factor can be a smaller number, allowing for fine-tuning of the scaling factor and preventing excessively large scaling factors that could cause the adjusted target 3D printing data to result in an abnormally large or small printed model.
[0075] As an optional embodiment, after obtaining target 3D printing data by performing size compensation on the target 3D model according to the size compensation parameters, the method further includes: determining slice data based on the target 3D printing data; and performing 3D printing based on the slice data to obtain a 3D printing model.
[0076] This embodiment illustrates the steps of 3D printing based on target 3D printing data. During the 3D printing process, it is necessary to first determine the slice data, and then perform 3D printing based on the slice data to obtain a 3D printed model. That is, printing is done layer by layer to obtain the 3D printed model. By printing layer by layer, the resulting 3D printed model can be made more accurate.
[0077] As an optional embodiment, after obtaining a 3D printed model by performing 3D printing based on slice data, the method further includes: determining a first error index in the X-axis direction, a second error index in the Y-axis direction, and a third error index in the Z-axis direction between the 3D printed model and the target 3D model; adjusting a first scaling factor based on the first error index to obtain a fourth scaling factor; adjusting a second scaling factor based on the second error index to obtain a fifth scaling factor; and adjusting a third scaling factor based on the third error index to obtain a sixth scaling factor.
[0078] This embodiment illustrates a method for error adjustment based on the printed 3D model. Because the 3D printing model is printed from target 3D printing data adjusted using scaling factors, there may be some deviation between it and the actual model, i.e., the target 3D model. Therefore, the error index between these two models in different axial directions can be determined to adjust the scaling factors. This allows for the printing of a more accurate model that better matches the original actual model when using 3D printing data determined by the adjusted scaling factors.
[0079] As an optional embodiment, after determining the first error index of the 3D printed model and the target 3D model in the X-axis direction, the second error index in the Y-axis direction, and the third error index in the Z-axis direction, the method further includes: adjusting the method of calculating the first scaling factor based on the first error index, adjusting the method of calculating the second scaling factor based on the second error index, and adjusting the method of calculating the third scaling factor based on the third error index.
[0080] This embodiment describes how to adjust the method for calculating the scaling factor. Since the original 3D printing data is adjusted based on the scaling factor to obtain the target 3D printing model, the method for calculating the scaling factor can be directly adjusted based on the error between the printed 3D model and the original actual target 3D model. This allows for a more accurate determination of the scaling factor later, resulting in a more precise model that better matches the original actual model.
[0081] As an optional embodiment, the target 3D model is a tooth model.
[0082] In this embodiment, it is explained that the target 3D model can be a tooth model because there are more precise requirements when printing a tooth model, that is, the printing accuracy of the tooth model is required to be high. Therefore, by setting a scaling factor to adjust the original 3D printing data, the printed 3D tooth model can better meet the accuracy requirements.
[0083] Based on the above embodiments and optional embodiments, an optional implementation method is provided, which is described in detail below.
[0084] An optional embodiment of the present invention provides a method for compensating the size of a three-dimensional model, which will be described in detail below.
[0085] S1, Obtain the tooth model, where the tooth model is located in a spatial rectangular coordinate system composed of the X-axis, Y-axis and Z-axis;
[0086] Figure 2 This is a schematic diagram of a tooth model provided by an optional embodiment of the present invention in a spatial state. Figure 3 This is a schematic diagram of a tooth model provided by an optional embodiment of the present invention in a spatial state, as shown below. Figure 2 , 3 As shown, the tooth model is located in a spatial rectangular coordinate system, differing only in its spatial state. Based on the model in different spatial states, subsequent target 3D printing data in different spatial states can be determined. In this optional embodiment of the invention, using... Figure 3 We will print out a model of a tooth in a spatial configuration as an example for further explanation.
[0087] That is, when the data is first imported into the Cartesian coordinate system, the spatial state may not be the same as the spatial state required for printing. Therefore, the spatial state of the tooth model can be adjusted to match the spatial state required for printing. In other words, when the data is first imported into the Cartesian coordinate system, it may appear as follows: Figure 2 As shown, the tooth model must first be rotated and adjusted to... Figure 3 The purpose of rotation is to align the 3D data file to the required angle. The rotation method is to rotate the model along the X, Y, and Z axes until the bottom surface of the dental model is parallel to the printing platform for subsequent processing.
[0088] S2, determine the projection parameters of the tooth model on the XY plane and the height parameters on the Z axis, where the XY plane is the plane formed by the X axis and the Y axis;
[0089] Figure 4 These are schematic diagrams of different tooth models provided by optional embodiments of the present invention. Figure 5 These are schematic projection diagrams of different tooth models provided in optional embodiments of the present invention, such as... Figure 4 , 5As shown, different tooth models and their corresponding projections are displayed. The projection parameters can be determined through the projection to facilitate subsequent processing for determining the scaling factor.
[0090] S3, when the projection parameters include the projected area and the projected perimeter, determine the ratio of the square of the projected perimeter to the projected area as the narrow length.
[0091] Specifically, the formula for calculating the narrow length is as follows: Narrow length = Perimeter 2 / area.
[0092] Figure 6 This is a schematic diagram of image types provided by an optional embodiment of the present invention, from left to right: circle, square, and rectangle. Here, we use... Figure 6 The image types shown illustrate how to determine the narrow length. Table 1 is a table showing the area, perimeter, and narrow length corresponding to different image types, as shown in Table 1.
[0093] Table 1
[0094] area 314.00 314.00 314.18 perimeter 62.80 70.88 88.64 Narrow length 12.56 16.00 25.01
[0095] S4, determine the ratio of the first coefficient to the narrow length to obtain the second coefficient;
[0096] S5, determine the sum of the predetermined coefficient and the second coefficient as the first scaling factor, and determine the sum of the predetermined coefficient and the second coefficient as the second scaling factor;
[0097] As shown in steps S4-S5, the first and second scaling factors can be calculated using the narrow length.
[0098] Let the scaling factors in the X and Y directions be CoeffXY, and the narrow length be Xc. The scaling factors in the X and Y directions are calculated as follows: CoeffXY = 1 + 0.05 / Xc. Where 1 is a predetermined coefficient, and 0.05 is a first coefficient.
[0099] Figure 7 This is a schematic diagram of scaling compensation in the X-axis and Y-axis directions provided by an optional embodiment of the present invention, that is, Figure 7 This diagram illustrates the adjustment and compensation of data in the X and Y axes of the original 3D printing data based on scaling factors. The dashed part represents the shape before compensation, and the actual part represents the shape after compensation.
[0100] S6, determine the product of the first coefficient and the height to obtain the third coefficient;
[0101] S7, determine the sum of the predetermined coefficient and the third coefficient as the third scaling factor;
[0102] As shown in steps S6-S7, the third scaling factor can be calculated using the model's Z-axis height.
[0103] Let the scaling factor in the Z-axis direction be CoeffZ and the height of the Z-axis be Zh. The scaling factor in the Z-axis direction is calculated as follows: CoeffZ = 1 + 0.0025 * Zh. Where 1 is a predetermined factor and 0.05 is a first factor.
[0104] Figure 8 This is a schematic diagram of scaling compensation in the Z-axis direction provided by an optional embodiment of the present invention, that is, Figure 8 This diagram illustrates how the data in the Z-axis direction of the original 3D printing data is adjusted based on a scaling factor.
[0105] S8. The original 3D printing data of the tooth model is adjusted based on the first scaling factor, the second scaling factor, and the third scaling factor to obtain the target 3D printing data.
[0106] S9, determine the slice data based on the target 3D printing data;
[0107] S10, based on the slice data, performs 3D printing to obtain a 3D printed model.
[0108] Based on slice data, photopolymerization printing can be performed using SLA, DLP, or LCD photopolymerization.
[0109] It should be noted that the Z-axis height, narrow length calculation, projected area size, and compensation implementation of any three-dimensional data in this solution can be obtained in the preprocessing software. In other embodiments, the Z-axis height, narrow length calculation, and projected area size data can also be obtained in the preprocessing software, and compensation can be performed in the slices after slicing; alternatively, the Z-axis height, narrow length calculation, and projected area size of the three-dimensional data can be obtained and calculated in the slices after slicing, thereby performing size compensation.
[0110] The above optional implementation methods solve the problem that the dimensional accuracy compensation methods in the related technologies are too simple and cannot achieve high-precision dimensional compensation based on photopolymerization molding technology. Therefore, a compensation method based on three-dimensional data size and shape is provided, which can ensure the improvement of printing accuracy of three-dimensional data of different sizes and shapes, and can achieve the purpose of improving the printing accuracy of models of different sizes and shapes.
[0111] 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 the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. 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 the present invention.
[0112] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.
[0113] According to an embodiment of the present invention, an apparatus for implementing the above-described three-dimensional model size compensation method is also provided. Figure 9 This is a structural block diagram of a three-dimensional model size compensation device according to an embodiment of the present invention, such as... Figure 9 As shown, the device includes: an acquisition module 902, a first determination module 904, a second determination module 906, and a compensation module 908. The device will be described in detail below.
[0114] An acquisition module 902 is used to acquire a target 3D model, wherein the target 3D model is located in a spatial rectangular coordinate system composed of the X-axis, Y-axis, and Z-axis; a first determination module 904 is connected to the acquisition module 902 and is used to determine predetermined geometric parameters of the target 3D model in the spatial rectangular coordinate system; a second determination module 906 is connected to the first determination module 904 and is used to obtain size compensation parameters corresponding to the target 3D model based on the predetermined geometric parameters; a compensation module 908 is connected to the second determination module 906 and is used to perform size compensation on the target 3D model according to the size compensation parameters to obtain target 3D printing data.
[0115] It should be noted that the above-mentioned acquisition module 902, first determination module 904, second determination module 906 and compensation module 908 correspond to steps S102 to S108 in the implementation of the three-dimensional model size compensation method. The multiple modules and the corresponding steps are the same in terms of implementation instances and application scenarios, but are not limited to the content disclosed in the above embodiment 1.
[0116] According to another aspect of the present invention, an electronic device is also provided, comprising: a processor; and a memory for storing processor-executable instructions, wherein the processor is configured to execute instructions to implement the three-dimensional model size compensation method of any of the above embodiments.
[0117] According to another aspect of the present invention, a computer-readable storage medium is also provided, which, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the three-dimensional model size compensation method described above.
[0118] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0119] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0120] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0121] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0122] Furthermore, the functional units in the various embodiments of the present invention 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.
[0123] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium 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.
[0124] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for compensating the size of a three-dimensional model, characterized in that, include: Obtain a target 3D model, wherein the target 3D model is located in a spatial rectangular coordinate system composed of the X-axis, Y-axis and Z-axis; Determine the predetermined geometric parameters of the target 3D model in the spatial rectangular coordinate system, wherein the predetermined geometric parameters include the projection parameters of the target 3D model on the XY plane and / or the height parameters of the target 3D model on the Z axis; Based on the predetermined geometric parameters, the size compensation parameters corresponding to the target three-dimensional model are obtained; Based on the size compensation parameters, the target 3D model is sized to obtain the target 3D printing data; Specifically, based on the predetermined geometric parameters, the size compensation parameters corresponding to the target 3D model are obtained, including: - Determine the projection parameters of the target 3D model on the XY plane. If the projection parameters include the projection area and the projection perimeter, determine the narrow length based on the projection area and the projection perimeter. - Based on the narrow length, determine a first scaling factor for the target 3D model in the X-axis direction and a second scaling factor in the Y-axis direction, wherein the narrow length is the ratio of the square of the projected perimeter to the projected area, and the size compensation parameters include the first scaling factor and the second scaling factor; and / or Based on the predetermined geometric parameters, size compensation parameters corresponding to the target 3D model are obtained, including: Determine the height parameter of the target 3D model on the Z-axis; Based on the height parameter, a third scaling factor is determined for the target 3D model in the Z-axis direction, wherein the size compensation parameter includes the third scaling factor.
2. The method according to claim 1, characterized in that, Determining the first scaling factor and the second scaling factor based on the narrow length includes: The ratio of the first coefficient to the narrow length is determined to obtain the second coefficient; The sum of the predetermined coefficient and the second coefficient is determined to be the first scaling factor, and the sum of the predetermined coefficient and the second coefficient is determined to be the second scaling factor.
3. The method according to claim 2, characterized in that, The method further includes: Based on the projected area of the target 3D model on the XY plane, the model type of the target 3D model is determined; Based on the pre-configured mapping relationship between model types and first coefficients, and the model types, the first coefficients corresponding to the target 3D model are determined.
4. The method according to claim 2, characterized in that, The method further includes: Obtain the printing material type corresponding to the target 3D model; Based on the pre-configured mapping relationship between printing material type and first coefficient, and the printing material type, the first coefficient corresponding to the target 3D model is determined.
5. The method according to claim 1, characterized in that, The step of determining the third scaling factor of the target 3D model in the Z-axis direction based on the height parameter includes: The product of the first coefficient and the height parameter is determined to obtain the third coefficient; The sum of the predetermined coefficient and the third coefficient is determined to be the third scaling factor.
6. The method according to claim 1, characterized in that, After obtaining the target 3D printing data by performing size compensation on the target 3D model according to the size compensation parameters, the method further includes: Based on the target 3D printing data, determine the slice data; Based on the sliced data, a 3D printed model is obtained.
7. The method according to claim 6, characterized in that, After obtaining a 3D printed model by performing 3D printing based on the sliced data, the process further includes: Determine the first error index of the 3D printed model and the target 3D model in the X-axis direction, the second error index in the Y-axis direction, and the third error index in the Z-axis direction; The first scaling factor is adjusted based on the first error index to obtain the fourth scaling factor. The second scaling factor is adjusted based on the second error index to obtain the fifth scaling factor. The third scaling factor is adjusted based on the third error index to obtain the sixth scaling factor.
8. The method according to claim 7, characterized in that, After determining the first error index of the 3D printed model and the target 3D model in the X-axis direction, the second error index in the Y-axis direction, and the third error index in the Z-axis direction, the method further includes: The method for calculating the first scaling factor is adjusted based on the first error index, the method for calculating the second scaling factor is adjusted based on the second error index, and the method for calculating the third scaling factor is adjusted based on the third error index.
9. A three-dimensional model size compensation device, characterized in that, include: An acquisition module is used to acquire a target 3D model, wherein the target 3D model is located in a spatial rectangular coordinate system composed of the X-axis, Y-axis, and Z-axis; The first determining module is used to determine the predetermined geometric parameters of the target three-dimensional model in the spatial rectangular coordinate system, wherein the predetermined geometric parameters include the projection parameters of the target three-dimensional model on the XY plane and / or the height parameters of the target three-dimensional model on the Z axis; The second determining module is used to obtain the size compensation parameters corresponding to the target three-dimensional model based on the predetermined geometric parameters; The compensation module is used to perform size compensation on the target 3D model according to the size compensation parameters to obtain target 3D printing data; Specifically, based on the predetermined geometric parameters, the size compensation parameters corresponding to the target 3D model are obtained, including: - Determine the projection parameters of the target 3D model on the XY plane. If the projection parameters include the projection area and the projection perimeter, determine the narrow length based on the projection area and the projection perimeter. - Based on the narrow length, determine a first scaling factor for the target 3D model in the X-axis direction and a second scaling factor in the Y-axis direction, wherein the narrow length is the ratio of the square of the projected perimeter to the projected area, and the size compensation parameters include the first scaling factor and the second scaling factor; and / or Based on the predetermined geometric parameters, size compensation parameters corresponding to the target 3D model are obtained, including: Determine the height parameter of the target 3D model on the Z-axis; Based on the height parameter, a third scaling factor is determined for the target 3D model in the Z-axis direction, wherein the size compensation parameter includes the third scaling factor.
10. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the three-dimensional model size compensation method as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is able to perform the three-dimensional model size compensation method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
3D printing equipment, 3D printing method, 3D model data processing method and 3D model data processing system
CN116252485A
Three-dimensional printing apparatus and method for compensating coordinate offset between nozzles thereof
US20160059491A1