CN115071134A - 3D printing Z-axis compensation method and device, electronic equipment and storage medium - Google Patents

3D printing Z-axis compensation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115071134A
CN115071134A CN202210806990.2A CN202210806990A CN115071134A CN 115071134 A CN115071134 A CN 115071134A CN 202210806990 A CN202210806990 A CN 202210806990A CN 115071134 A CN115071134 A CN 115071134A
Authority
CN
China
Prior art keywords
layer
printing
processed
gray value
slice
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210806990.2A
Other languages
Chinese (zh)
Inventor
凌少华
其他发明人请求不公开姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen CBD Technology Co Ltd
Original Assignee
Shenzhen CBD Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen CBD Technology Co Ltd filed Critical Shenzhen CBD Technology Co Ltd
Priority to CN202210806990.2A priority Critical patent/CN115071134A/en
Publication of CN115071134A publication Critical patent/CN115071134A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/30Auxiliary operations or equipment
    • B29C64/386Data acquisition or data processing for additive manufacturing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y50/00Data acquisition or data processing for additive manufacturing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0007Image acquisition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Materials Engineering (AREA)
  • Chemical & Material Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Manufacturing & Machinery (AREA)
  • Software Systems (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • Mechanical Engineering (AREA)
  • Optics & Photonics (AREA)
  • Computer Vision & Pattern Recognition (AREA)

Abstract

The application is suitable for the technical field of 3D printing, and provides a 3D printing Z-axis compensation method, a device, electronic equipment and a storage medium, wherein the method mainly comprises the following steps: traversing all triangular meshes spliced on the 3D model to form the 3D model; layering the 3D model slices and acquiring all slice images; selecting the slice images of the Nth layer and the (N + M) th layer; acquiring pixel gray values of the N-th layer sliced image and the N + M-th layer sliced image for comparison, and further acquiring a gray value difference area as a to-be-processed area of the N + M-th layer sliced image; carrying out gray value reduction processing on pixels in a region to be processed on the N + M-th slice image; the processed slice image data is stored in a storage unit. According to the method and the device, the generation of the secondary thickness exceeding the layer thickness can be reduced when the current layer is solidified and formed, and the printing precision of the model is further improved.

Description

3D printing Z-axis compensation method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of 3D printing, in particular to a Z-axis compensation method and device for 3D printing, electronic equipment and a storage medium.
Background
In the existing photocuring 3D printing technology, the principle of layer stacking, curing and molding of a 3D model is that the curing layer thickness of the current layer of resin is defined by a molding platform or a layer thickness space between a cured layer on the top and a resin groove bottom film on the bottom, and the curing range of a new layer of resin on a plane is defined by a light-transmitting area on a slice image; under normal conditions, the photosensitive resin solution in the resin tank exceeds the set layer thickness height of the resin layer in order to avoid replenishing the resin solution layer by layer; therefore, if the light-transmitting area range of the current layer on the plane does not exceed the range of the cured layer of the previous layer, the current layer can be cured in a standard way within the limited range of the layer thickness and the light-transmitting area of the slice image; if the model is formed by inverted triangle, the surface thickening of each layer of forming layer can not be generated; however, the depth of the resin exceeds the thickness of the current layer, and when the range of the current layer exceeds the range of the cured layer of the previous layer, the ultraviolet light can penetrate through the resin solution at the difference range of the current layer and the previous layer without the blockage of the cured substance of the formed layer at the top, so that the secondary thickness exceeding the layer thickness is generated at the top of the current layer at the difference range; as with the positive triangular mold, the edge surface of the differential area of each layer beyond the last molded layer may be subject to surface thickening.
Therefore, a 3D printing Z-axis compensation method is needed, which aims to reduce the generation of the secondary thickness exceeding the layer thickness when the current layer is solidified and formed by reducing the gray value of the pixels corresponding to the difference range of the slice images of the adjacent layers on the current layer and reducing the light transmission amount, so as to improve the model printing precision.
Disclosure of Invention
The embodiment of the application provides a 3D printing Z-axis compensation method, a device, electronic equipment and a storage medium, and aims to reduce generation of secondary thickness exceeding layer thickness when a current layer is solidified and formed by reducing a gray value of a pixel where a difference range of slice images of adjacent layers is located and reducing light transmission amount, so that model printing accuracy is improved.
A first aspect of an embodiment of the present application provides a 3D printing Z-axis compensation method, including the following steps:
s100, traversing all triangular meshes spliced on the 3D model to form the 3D model;
s200, layering the 3D model slices and acquiring all slice images;
s300, selecting the slice images of the Nth layer and the (N + M) th layer;
s400, obtaining pixel gray values of the slice images of the Nth layer and the (N + M) th layer for comparison, and further obtaining a gray value difference area as a to-be-processed area of the slice images of the (N + M) th layer;
s500, performing gray value reduction processing on pixels in a region to be processed on the N + M-th slice image;
and S600, storing the processed slice image data in a storage unit.
Further, the step S400 further includes the steps of:
s410, acquiring pixel gray values of slice images of the Nth layer and the (N + M) th layer;
s420, performing gray value XOR processing on the nth layer of sliced image pixels and the (N + M) th layer of sliced image pixels according to the same pixel coordinates;
and S430, acquiring a gray value to-be-processed area on the N + M layer slice image according to the gray value XOR processing result.
Optionally, N is a positive integer starting from 1; and M is any positive integer from 1 to 10.
Optionally, in the step S500, a manner of performing gray-scale value reduction processing on pixels in a region to be processed on the N + M-th slice image includes: the gray value of the pixel in the area to be processed is reduced proportionally, or the gray value of the pixel in the area to be processed is reduced according to a fixed value, or the gray value of the pixel in the area to be processed is reduced according to a gradient value, or the gray value of the pixel in the area to be processed is reduced to 0.
Still further, the method comprises the following steps:
and S550, performing anti-aliasing treatment on all slice images.
Still further, the method comprises the following steps:
and S700, importing the slice image data into a 3D printing device for 3D exposure printing.
A second aspect of an embodiment of the present application provides a 3D printing Z-axis compensation device, including:
the model mesh traversing module is used for traversing all triangular meshes spliced on the 3D model to form the 3D model;
the slice processing module is used for layering the 3D model slices and acquiring all slice images;
the slice image selecting module is used for selecting slice images of the Nth layer and the (N + M) th layer;
the to-be-processed region acquisition module is used for acquiring pixel gray values of the sliced images of the Nth layer and the (N + M) th layer for comparison so as to acquire a gray value difference region as a to-be-processed region of the sliced images of the (N + M) th layer;
the grey value reduction module is used for carrying out grey value reduction processing on pixels in a region to be processed on the N + M layer sliced image;
and the slice data storage module is used for storing the processed slice image data in a storage unit.
Further, the module for acquiring the to-be-processed area further includes:
the pixel gray value acquisition module is used for acquiring the pixel gray values of the slice images of the Nth layer and the (N + M) th layer;
the Boolean processing module is used for carrying out gray value XOR processing on the nth layer of sliced image pixels and the (N + M) th layer of sliced image pixels according to the same pixel coordinates;
and the to-be-processed area acquisition module is used for acquiring the gray value to-be-processed area on the N + M layer sliced image according to the gray value XOR processing result.
Still further, the method further comprises:
and the anti-aliasing processing module is used for carrying out anti-aliasing processing on all the slice images.
Still further, the method further comprises:
and the 3D printing equipment is used for importing the slice image data into the 3D printing equipment for 3D exposure printing.
A third aspect of embodiments of the present application provides a non-transitory computer readable storage medium storing a computer program that, when executed by a processor, implements the steps of any one of the 3D printing Z-axis compensation methods described above.
A fourth aspect of the embodiments of the present application provides an electronic device, including: at least one processor; and a memory unit communicatively coupled to the at least one processor; wherein the storage unit stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of any of the 3D printing Z-axis compensation methods described above.
A fifth aspect of an embodiment of the present application provides a 3D printing apparatus, including a memory, a controller, and a computer program stored in the memory and executable on the controller, where the controller implements, when executing the computer program, any of the steps of the 3D printing Z-axis compensation method.
Compared with the prior art, the beneficial effects of this application are:
1. according to the 3D printing Z-axis compensation method, the secondary thickness exceeding the layer thickness generated when the current layer is solidified and formed can be reduced, and therefore the secondary layer thickness on the surface of the model does not need to be repaired manually subsequently.
2. The 3D printing Z-axis compensation method can reduce the secondary thickness exceeding the layer thickness generated when the current layer is solidified and formed, and further improves the model printing precision.
3. According to the 3D printing Z-axis compensation method, when the model hole is printed in the direction perpendicular to the aperture, the aperture of the lower edge of the model hole can be subjected to Z-axis compensation to reduce the generation of the secondary thickness of the lower edge of the model hole, and the aperture printing precision is higher.
4. The 3D printing Z-axis compensation method provided by the application obtains pixel gray values of an Nth layer of sliced image and an Nth + M layer of sliced image to be compared, further obtains a gray value difference area as a to-be-processed area of the Nth + M layer of sliced image, can accurately process the pixel gray value of the to-be-processed area of each layer beyond an exposure range of the previous layer, further can ensure the completion of normal printing and reduce the secondary thickness as much as possible according to the control of the transmittance of the area where the layer is located, and therefore the compensation result is more accurate.
5. According to the 3D printing Z-axis compensation method, in the step S420, the gray value to-be-processed area is obtained in a gray value exclusive-OR processing mode, and operation processing is quicker and more convenient.
6. According to the 3D printing Z-axis compensation method, when the pixel gray values of the slice images of the Nth layer and the (N + M) th layer are obtained for comparison, when the value of M is 1, the difference range between adjacent layers can be obtained in a comparative way to serve as a region to be processed; when the value of M is 2, the difference range between the phase separation layers can be obtained and used as a region to be processed, and the selected region can be expanded as required so as to prevent the oblique ultraviolet light from generating a secondary layer thickness on the surface of the current layer.
Drawings
Fig. 1A is a flowchart of a 3D printing Z-axis compensation method provided in an embodiment of the present application;
fig. 1B is a flowchart of acquiring a region to be processed by a 3D printing Z-axis compensation method according to an embodiment of the present application;
fig. 2A is a structural diagram of a 3D printing Z-axis compensation device provided in an embodiment of the present application;
fig. 2B is a diagram of an apparatus for acquiring a region to be processed by a 3D printing Z-axis compensation apparatus according to an embodiment of the present disclosure;
FIGS. 3A-B are schematic diagrams illustrating the secondary thickness formation cause of the current layer during curing in the prior art;
FIGS. 3C-D are schematic diagrams illustrating Z-axis misalignment of a pattern hole in a prior art;
FIGS. 3E-F are schematic illustrations of Z-axis compensation of a mold hole according to an embodiment of the present application;
FIGS. 4A-F are schematic diagrams illustrating the acquisition of a region to be processed and the reduction of gray scale values according to a slice image according to an embodiment of the present application;
fig. 5A is a block diagram of an electronic device implementing a 3D printing Z-axis compensation method according to an embodiment of the present application;
FIG. 5B is a diagram illustrating an electronic device performing pre-processing slicing on a 3D model according to an embodiment of the disclosure;
FIG. 6A is a block diagram of a 3D printing apparatus implementing the compensation method for 3D printing Z axis according to the present invention;
fig. 6B is a schematic diagram of importing the slice image data processed by the method of the present application into a 3D printing device.
Description of reference numerals:
a model mesh traversal module 100; a slicing processing module 200; a slice image selection module 300; a to-be-processed region acquisition module 400; a gray value reduction module 500; an anti-aliasing processing module 550; a slice data storage module 600; a pixel gray value acquisition module 410; a Boolean processing module 420; a region to be processed acquisition module 430;
a UV light source 31; an LCD screen 32; an image opaque region 321; an image light-transmitting area 322; an image semi-opaque region 323; a resin tank 33; a base film 331; a photosensitive resin solution 332; a forming table 34; a cured layer 341; the current layer 342; the secondary layer thickness 343; a pattern hole 344; a weak solidification region 345; a Z-axis compensation zone 346;
an electronic device 5; a computer program 50; a processor 51; a storage unit 52; a 3D printing device 6; the print control program 60; a controller 61; a memory 62; the storage device 7 is removable.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the embodiments described below are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
Fig. 1A is a flowchart of a 3D printing Z-axis compensation method provided in an embodiment of the present application. As shown in the figure, the 3D printing Z-axis compensation method comprises the following steps:
s100, traversing all triangular meshes spliced on the 3D model to form the 3D model;
s200, layering the 3D model slices and acquiring all slice images;
s300, selecting the slice images of the Nth layer and the (N + M) th layer;
s400, obtaining pixel gray values of the slice images of the Nth layer and the (N + M) th layer for comparison, and further obtaining a gray value difference area as a to-be-processed area of the slice images of the (N + M) th layer;
s500, performing gray value reduction processing on pixels in a region to be processed on the N + M-th slice image;
and S600, storing the processed slice image data in a storage unit.
Optionally, still further, the method further comprises the following steps:
and S550, performing anti-aliasing treatment on all the slice images.
It should be noted that the reason why the anti-aliasing process in step S550 is performed after step S500 is that the anti-aliasing process also reduces the gray-level value of the edge of the slice image, and the range of the region to be processed is obtained by comparing the gray-level values of the slice images of different layers.
Optionally, still further, the method further comprises the following steps:
and S700, importing the slice image data into a 3D printing device for 3D exposure printing.
Optionally, N is a positive integer starting from 1; and M is any positive integer from 1 to 10.
Specifically, when N is 1 and M is 1, the difference range between the 1 st layer and the 2 nd layer of the adjacent layers can be obtained by comparison to serve as the region to be treated on the 2 nd layer; when N is 2 and M is 1, comparing and obtaining the difference range of the 2 nd layer and the 3 rd layer of the adjacent layers as the to-be-processed area on the 3 rd layer; when N is 2 and M is 2, comparing and obtaining the difference range of the 2 nd layer and the 4 th layer of the phase separation layer as the area to be processed on the 4 th layer; the larger the value of M is, the more the slice image layers are selected for comparison.
Correspondingly, when the value of M is 1, the difference range between adjacent layers can be obtained through comparison and used as the region to be processed; at the moment, because the difference range between the adjacent layers is obtained too accurately, after the light transmittance of the area to be processed on the image in the LCD screen is reduced, only the light transmittance of direct light within the boundary can be blocked and reduced, and the light transmittance of oblique light cannot be blocked and reduced; therefore, the selection of the difference range needs to be expanded, and when the value of M is 2, the difference range between the phase separation layers can be obtained relatively to serve as a region to be processed, and the selection area can be expanded as required to avoid that oblique ultraviolet light irradiates the surface of the current layer to generate a secondary layer thickness.
Particularly, the difference range between the phase separation layers is obtained by comparison to serve as a region to be processed, and the selection region can be expanded as required so as to avoid that oblique ultraviolet light irradiates the surface of the current layer to generate a secondary layer thickness; therefore, the larger the value of M is, the range of the region to be processed is correspondingly enlarged, but the range is not too large, and the value is preferably within 10 layers.
Optionally, in the step S500, a manner of performing gray-scale value reduction processing on pixels in a region to be processed on the N + M-th slice image includes: the gray value of the pixels in the area to be processed is reduced proportionally, or the gray value of the pixels in the area to be processed is reduced according to a fixed value, or the gray value of the pixels in the area to be processed is reduced according to a gradient value, or the gray value of the pixels in the area to be processed is reduced to 0.
Specifically, the gray value of the pixel in the region to be processed can be reduced to a suitable range according to the actual printing test result, for example, for an opaque photosensitive resin material with low transmittance, the gray value of the pixel in the region to be processed can be directly reduced from 255 to 153 according to a 0.6-fold proportional value, or reduced from 100 to 155 according to a fixed value; for the transparent photosensitive resin material with high transmittance, the pixel gray value of the area to be processed can be directly reduced from 255 to be close to 0, even 0, because even if the pixel gray value on the slice image is 0, a small amount of ultraviolet light can still penetrate through the pixel gray value, and partial curing can still be generated by superposing the light transmission effect of the high-transmittance resin material.
Fig. 1B is a flowchart of acquiring a region to be processed by a 3D printing Z-axis compensation method according to an embodiment of the present application. The steps in this figure correspond to step S400 in fig. 1A, and as shown, step S400 further includes the following steps:
s410, acquiring pixel gray values of slice images of the Nth layer and the (N + M) th layer;
s420, performing gray value XOR processing on the nth layer of sliced image pixels and the (N + M) th layer of sliced image pixels according to the same pixel coordinates;
and S430, acquiring a gray value to-be-processed area on the N + M layer slice image according to the gray value XOR processing result.
Specifically, for example:
s410, acquiring pixel gray values of slice images of the 1 st layer and the 2 nd layer;
s420, performing gray value XOR processing on the layer 1 slice image pixel and the layer 2 slice image pixel according to the same pixel coordinate;
and S430, acquiring a gray value to-be-processed area on the layer 2 slice image according to the gray value XOR processing result.
Alternatively, for example:
s410, acquiring pixel gray values of slice images of the 1 st layer and the 3 rd layer;
s420, performing gray value XOR processing on the layer 1 slice image pixel and the layer 3 slice image pixel according to the same pixel coordinate;
and S430, acquiring a gray value to-be-processed area on the 3 rd layer slice image according to the gray value XOR processing result.
Fig. 2A is a structural diagram of a 3D printing Z-axis compensation device provided in an embodiment of the present application. As shown, 3D prints Z axle compensation arrangement includes:
the model mesh traversing module 100 is used for traversing all triangular meshes spliced on the 3D model to form the 3D model;
a slice processing module 200 for layering 3D model slices and acquiring all slice images;
a slice image selecting module 300, configured to select slice images of the nth layer and the nth + M layer;
a to-be-processed region obtaining module 400, configured to obtain pixel gray values of the nth layer and the N + M layer sliced images for comparison, and further obtain a gray value difference region as a to-be-processed region of the N + M layer sliced image;
the gray value reduction module 500 is used for performing gray value reduction processing on pixels in a region to be processed on the N + M-th slice image;
and a slice data storage module 600 for storing the processed slice image data in a storage unit.
Optionally, still further, the method further comprises:
and an anti-aliasing processing module 550, configured to perform anti-aliasing processing on all slice images.
Optionally, still further, the method further comprises:
and the 3D printing device 6 is used for importing the slice image data into the 3D printing device for 3D exposure printing.
Fig. 2B is a device diagram of acquiring a region to be processed by the 3D printing Z-axis compensation device according to the embodiment of the present application. Each block in this figure corresponds to step S400 in fig. 1B, and as shown in the figure, the to-be-processed region acquiring module 400 further includes:
a pixel gray value obtaining module 410, configured to obtain pixel gray values of the nth layer and the (N + M) th layer slice images;
the boolean processing module 420 is configured to perform gray value xor processing on the nth layer sliced image pixels and the N + M layer sliced image pixels according to the same pixel coordinates;
and a to-be-processed region obtaining module 430, configured to obtain, from the result of the gray value xor processing, a gray value to-be-processed region on the N + M-th slice image.
Fig. 3A-B are schematic diagrams illustrating the reason why the secondary thickness is formed when the current layer is cured in the background art. As shown in the figure, fig. 3A shows a process of performing model printing by using a 3D printing apparatus in the background of the existing photo-curing 3D printing technology, in which a UV light source 31 emits UV light to transmit through an LCD screen 32 and a bottom film 331 of a resin tank 33, so that a photosensitive resin solution 332 in the resin tank 33 is photo-cured and formed, and in this process, cured layers 341 of each layer are attached to a forming platform 34 for lifting movement; specifically, the current layer 342 is stacked and formed by defining the curing layer thickness of the current layer 342 through the layer thickness space between the previous cured layer 341 and the bottom film 331, and defining the curing range of the UV light source 31 to the photosensitive resin solution 332 through the image opaque region 321 and the image transparent region 322 of the slice image loaded in the LCD screen 32; for the inverted triangular model shown in the figure, since both sides of the current layer 342 do not exceed the range of the previous cured layer 341, all the ultraviolet light transmitted by the image transparent area 322 can be blocked by the previous cured layer 341, so that the current layer 342 can be cured normally and no secondary layer thickness is generated.
As shown in the figure, fig. 3B illustrates a process of performing model printing by using a 3D printing apparatus in the background of the existing photocuring 3D printing technology, and for the model formed by regular triangle, when the ultraviolet light of the UV light source 31 passes through the image transmission region 322 to perform ultraviolet light curing on the photosensitive resin solution 332, since both sides of the current layer 342 of the model are beyond the range of the previous cured layer 341, all the ultraviolet light transmitted by the image transmission region 322 cannot be blocked by the previous cured layer 341, so that while the current layer 342 is cured, the ultraviolet light of the UV light source 31 passes through the current layer 342 to simultaneously cure both sides of the previous cured layer 341, thereby generating a secondary layer thickness 343; for a general ornamental 3D model, this secondary layer thickness is acceptable; however, for assembling 3D model parts, assembly errors may occur.
FIGS. 3C-D are schematic diagrams illustrating Z-axis deviation of a pattern hole in the prior art. As shown in the figure, in the prior art background of the photo-curing 3D printing, for the model printing process with hole-like structure shown in the figure, when the UV light of the UV light source 31 passes through the image transparent region 322 to UV-cure the photosensitive resin solution 332, since the cured layer 341 on the upper layer has a middle hole, all the UV light passing through the image transparent region 322 cannot be completely blocked by the cured layer 341 on the upper layer, so while the current layer 342 is cured and formed, the UV light of the UV light source 31 passes through the current layer 342 to cure the middle hole position of the cured layer 341 on the upper layer, thereby generating a secondary layer thickness 343; specifically, the area indicated by the dotted line in the figure is the thickness 343 of the secondary layer generated during the previous curing molding.
As shown in fig. 3D, a schematic diagram of Z-axis deviation generated for the model hole shown in the figure in the prior art of photo-curing 3D printing is shown in fig. 3D, and when the layer thickness of the hole-like structure in fig. 3C is smaller, the hole-containing model in fig. 3D is more similar. In the actual printing process of the existing photocuring 3D printing technology, when the hole-containing model in fig. 3D is printed, the lower edge of the model hole 344 usually shrinks upwards along the Z-axis direction, so that the actually printed model hole forms an irregular circle; as can be seen from the schematic diagram of fig. 3C, the shrinkage of the lower edge of the pattern hole 344 is caused by the secondary layer thickness 343 shown in fig. 3C during printing, i.e., the secondary layer thickness 343 in the area of the dotted line in fig. 3D causes the lower edge of the pattern hole 344 to shrink upward in the Z-axis direction.
Fig. 3E-F are schematic diagrams illustrating Z-axis compensation of a mold hole according to an embodiment of the present application. Fig. 3E is a schematic diagram of performing Z-axis compensation on a model having a hole-like structure according to an embodiment of the present application, in which the method according to the embodiment of the present application is used for performing Z-axis compensation on the model, and the idea is to reduce the generation of a secondary thickness exceeding a layer thickness when a current layer is cured and formed by reducing a gray value of a pixel where a difference range of adjacent layer slice images is located and reducing a light transmittance;
as shown in the figure, in fig. 3E, when the current layer 342 is printed and cured, the gray-level reduction processing is performed on the pixels in the middle area where the image transparent area 322 is located on the slice image in the LCD screen 32 to form an image semi-transparent area 323; thereby reducing the penetrability of ultraviolet light emitted by the UV light source 31, reducing the exposure of the middle area where the current layer 342 is positioned, avoiding curing the photosensitive resin solution 332 at the previous layer position and further avoiding generating secondary thickness; correspondingly, a weak solidification region 345 is formed in the middle area where the current layer 342 is located; specifically, the area indicated by the dotted line in the figure is the weak solidification region 345 generated in the first few times of solidification molding.
As shown, fig. 3F is a schematic diagram of Z-axis compensation of the hole pattern according to the embodiment of the present application, and when the layer thickness of the hole-like structure in fig. 3E is smaller, the hole-containing pattern in fig. 3F is more similar to the hole-like structure in fig. 3E. As can be seen from the schematic diagram of fig. 3E, since the generation of the secondary layer thickness is avoided, accordingly, the lower edge of the mold hole 344 in fig. 3F, i.e., the position corresponding to the secondary layer thickness 343 in fig. 3D, forms a blank Z-axis compensation zone 346, so that the actual printed mold hole forms a regular circle; therefore, the Z-axis compensation of the model hole is realized, the model printing precision is improved, and particularly, the 3D assembly precision of the assembly type 3D model part is improved.
Fig. 4A-F are schematic diagrams illustrating the acquisition of a region to be processed and the reduction of gray scale values according to a slice image according to an embodiment of the present application.
As shown in the figure, taking the 3D model of the pyramid as an example in fig. 4A, the electronic device traverses all triangular meshes spliced on the 3D model to form the 3D model, then slices of the 3D model are layered according to a preset layer thickness H millimeter, and 3 layers of slice images including L1, L2, and L3 are obtained, where the center of each layer of slice image is white and the periphery is black, after the slice image is loaded into the LCD screen, the white part is used for image exposure through ultraviolet light of the UV light source, and the black part is used for blocking penetration of ultraviolet light of the UV light source.
As shown, fig. 4B is 3 slice images, respectively slice images L1, L2, L3, obtained based on fig. 4A, wherein the center of each slice image is white and the periphery is black; in general, the gray-scale value of the white part is 255, and the gray-scale value of the black part is 0; after loading the LCD screen, the white portions are used for image exposure through the UV light of the UV light source, and the black portions are used for blocking the penetration of the UV light source.
As shown, fig. 4C is the slice image L1 taken in fig. 4B; the gray value of the white part at the center is 255, and the gray value of the black part at the periphery is 0;
as shown, FIG. 4D is the slice image L2 taken in FIG. 4B; the gray value of the central white part is 255, and the gray value of the peripheral black part is 0;
correspondingly, according to the flow step S400 of the 3D printing Z-axis compensation method provided in the embodiment of the present application in fig. 1A, pixel gray values of slice images of the L1 layer and the L2 layer are obtained and compared to obtain a region to be processed of the slice image of the L2 th layer; specifically, according to the flow step S420 of acquiring the region to be processed by the 3D printing Z-axis compensation method provided in the embodiment of the present application in fig. 1B, the pixels of the slice images of the L1 layer and the L2 layer are subjected to gray value exclusive or processing according to the same pixel coordinates; so that the annular region to be processed shown in fig. 4E, which is the region to be processed on layer L2, is obtained from the xor result;
as shown in the figure, fig. 4F is a schematic diagram of performing gray-level reduction processing on pixels in a region to be processed according to the 3D printing Z-axis compensation method provided in the embodiment of the present application in fig. 1B. According to the flow step S500 in fig. 1B, a region to be processed on the L2 th slice image, that is, an annular region in fig. 4E, is subjected to pixel gray value reduction processing, and the gray value 255 of the region is reduced to the gray value 200; the processed slice image data is stored in the storage unit according to the flow step S600 in fig. 1B. Correspondingly, when the 3D printing equipment performs exposure printing by using the processed slice image data, the light transmission amount of the light transmission area with the gray value of 200 can be reduced; as shown in fig. 3E, the ultraviolet light emitted from the UV light source 31 is reduced, the exposure of the middle area of the current layer 342 is reduced, and the photosensitive resin solution 332 in the previous layer is prevented from being cured, so as to avoid generating a secondary thickness.
Fig. 5A is a structural block diagram of an electronic device for implementing the 3D printing Z-axis compensation method according to the embodiment of the present application. As shown, the electronic device 5 in this figure takes a processor 51 as an example. As shown, an electronic device 5 includes a processor 51 and a storage unit 52; wherein the storage unit 52 stores a computer program 50 or instructions executable by the processor 51, the computer program 50 or instructions being executable by the processor 51 to enable the processor 51 to perform steps S100-S600 as in fig. 1A, or steps S410-S430 as in fig. 1B.
The storage unit 52 is a non-transitory computer readable storage medium provided in the third aspect of the present application. Wherein the storage unit 52 stores instructions executable by the at least one processor 51, so that the at least one processor 51 implements steps S100 to S600 in fig. 1A or implements steps S410 to S430 in fig. 1B when executing the instructions.
The storage unit 52, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as when executed to implement program instructions/modules corresponding to steps S100-S600 in fig. 1A, or to implement program instructions/modules corresponding to steps S410-S430 in fig. 1B. The processor 51 executes various functional applications of the server and data processing, i.e., steps related to the computer and the processor in the embodiment corresponding to fig. 1A or fig. 1B described above, by executing the non-transitory computer program 50, instructions, and modules stored in the storage unit 52.
The storage unit 52 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created when the electronic device 5 uses the method, and the like. In addition, the memory unit 52 may include a high speed random access memory module, and may also include a non-transitory memory module, such as at least one piece of disk memory, flash memory device, or other non-transitory solid state memory module. In some embodiments, the storage unit 52 optionally includes a storage module remotely located from the processor 51, which may be connected via a network to an electronic device that stores the slice image data. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input unit, and at least one output device.
These computer programs 50 (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, storage modules, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
Fig. 5B is a schematic diagram of an electronic device performing pre-processing slicing on a 3D model according to an embodiment of the application. As shown in the figure, a user runs 3D slicing software through the electronic device 5, performs steps S100 to S600 by using a 3D printing Z-axis compensation method provided in the first aspect of the embodiment of the present application, and aims to reduce generation of a secondary thickness exceeding a layer thickness of a current layer during curing molding by reducing a gray value of a pixel where a difference range of adjacent layer slice images is located and reducing a light transmittance, so as to improve model printing accuracy.
Fig. 6A is a block diagram of a 3D printing apparatus implementing the 3D printing Z-axis compensation method according to the present invention. As shown, a 3D printing apparatus 6 includes a controller 61 and a memory 62; the memory 62 stores a printing control program 60 or instructions executable by the controller 61, and the printing control program 60 or instructions are executed by the controller 61, so that the controller 61 can execute the step S700 in fig. 1A, so that the generation of the secondary thickness of the current layer of the model can be reduced during curing and forming, and the printing precision of the model is further improved; or performing steps S100-S600 as in FIG. 1A; or performing steps S410-S430 as in FIG. 1B; this is because the portions of steps S100 to S600 in fig. 1A and the portions of steps S410 to S430 in fig. 1B can also be executed all the way through the 3D printing apparatus 6.
Fig. 6B is a schematic diagram of importing the slice image data processed by the method of the present application into a 3D printing device. As shown in the figure, the slice image data and/or printing parameters obtained by processing the electronic device 5 by the user through the mobile storage device 7 and obtained after the pixel gray value reduction processing of the region to be processed is completed are imported into the 3D printing device 6 for 3D exposure printing, so that the generation of secondary thickness of the current layer of the model can be reduced during curing molding, and the model printing precision is improved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (11)

1. A3D printing Z-axis compensation method is characterized by comprising the following steps:
s100, traversing all triangular meshes spliced on the 3D model to form the 3D model;
s200, layering the 3D model slices and acquiring all slice images;
s300, selecting the slice images of the Nth layer and the (N + M) th layer;
s400, obtaining pixel gray values of the sliced images of the Nth layer and the (N + M) th layer for comparison, and further obtaining a gray value difference area as a to-be-processed area of the sliced images of the (N + M) th layer;
s500, performing gray value reduction processing on pixels in a region to be processed on the N + M-th slice image;
and S600, storing the processed slice image data in a storage unit.
2. The 3D printing Z-axis compensation method according to claim 1, wherein the step S400 further comprises the steps of:
s410, acquiring pixel gray values of slice images of the Nth layer and the (N + M) th layer;
s420, performing gray value XOR processing on the nth layer of sliced image pixels and the (N + M) th layer of sliced image pixels according to the same pixel coordinates;
and S430, acquiring a gray value to-be-processed area on the N + M layer slice image according to the gray value XOR processing result.
3. The 3D printing Z-axis compensation method according to claim 1, wherein N is a positive integer that increases from 1; and M is any positive integer from 1 to 10.
4. The 3D printing Z-axis compensation method according to claim 1, wherein in the step S500, the manner of performing the gray-level reduction processing on the pixels in the region to be processed on the N + M-th slice image includes: the gray value of the pixels in the area to be processed is reduced proportionally, or the gray value of the pixels in the area to be processed is reduced according to a fixed value, or the gray value of the pixels in the area to be processed is reduced according to a gradient value, or the gray value of the pixels in the area to be processed is reduced to 0.
5. The 3D printing Z-axis compensation method according to claim 1, further comprising the steps of:
and S550, performing anti-aliasing treatment on all slice images.
6. The 3D printing Z-axis compensation method according to claim 1, further comprising the steps of:
and S700, importing the slice image data into a 3D printing device for 3D exposure printing.
7. The utility model provides a 3D prints Z axle compensation arrangement which characterized in that includes:
the model mesh traversing module is used for traversing all triangular meshes spliced on the 3D model to form the 3D model;
the slice processing module is used for layering the 3D model slices and acquiring all slice images;
the slice image selection module is used for selecting slice images of the Nth layer and the (N + M) th layer;
the to-be-processed region acquisition module is used for acquiring pixel gray values of the N-th layer sliced image and the N + M-th layer sliced image for comparison so as to acquire a gray value difference region as a to-be-processed region of the N + M-th layer sliced image;
the grey value reduction module is used for carrying out grey value reduction processing on pixels in a region to be processed on the N + M layer sliced image;
and the slice data storage module is used for storing the processed slice image data in the storage unit.
8. The 3D printing Z-axis compensation device of claim 7, wherein the region to be processed acquisition module further comprises:
the pixel gray value acquisition module is used for acquiring the pixel gray values of the slice images of the Nth layer and the (N + M) th layer;
the Boolean processing module is used for carrying out gray value XOR processing on the nth layer of sliced image pixels and the (N + M) th layer of sliced image pixels according to the same pixel coordinates;
and the to-be-processed area acquisition module is used for acquiring the gray value to-be-processed area on the N + M layer sliced image according to the gray value XOR processing result.
9. A non-transitory computer readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the steps of the 3D printing Z-axis compensation method according to any one of claims 1 to 6.
10. An electronic device, comprising: at least one processor; and a memory unit communicatively coupled to the at least one processor; wherein the storage unit stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the 3D printing Z-axis compensation method of any one of claims 1 to 6.
11. A 3D printing apparatus comprising a memory, a controller and a computer program stored in the memory and executable on the controller, wherein the controller when executing the computer program implements the steps of the 3D printing Z-axis compensation method of any of claims 1 to 6.
CN202210806990.2A 2022-07-09 2022-07-09 3D printing Z-axis compensation method and device, electronic equipment and storage medium Pending CN115071134A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210806990.2A CN115071134A (en) 2022-07-09 2022-07-09 3D printing Z-axis compensation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210806990.2A CN115071134A (en) 2022-07-09 2022-07-09 3D printing Z-axis compensation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115071134A true CN115071134A (en) 2022-09-20

Family

ID=83259382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210806990.2A Pending CN115071134A (en) 2022-07-09 2022-07-09 3D printing Z-axis compensation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115071134A (en)

Similar Documents

Publication Publication Date Title
US20230101921A1 (en) Sub-pixel grayscale three-dimensional printing
US20230081400A1 (en) Enhanced three dimensional printing of vertical edges
US10780643B2 (en) Stereolithography printer mapping a plurality of pixels of a cross-sectional image to corresponding mirrors of a plurality of mirrors of a digital micromirror unit
JP6449465B2 (en) Surface exposure rapid prototyping method and apparatus using enhanced digital light processing technology
CN113334767B (en) 3D printing method, device, data processing method, system and storage medium
TWI448732B (en) Three-dimensional printing apparatus
US20180141278A1 (en) Stereolithography printer
CN106393670A (en) 3D printing method and device
Calderon et al. BeamMaker: an open hardware high-resolution digital fabricator for the masses
CN114274514A (en) Model printing annular texture full blanking method, device, equipment and storage medium
CN114953440A (en) 3D printing Z-axis fine compensation method and device, electronic equipment and storage medium
US20240157654A1 (en) Method for improving fineness of specified region on surface of light-curable 3d printed model
CN114474732A (en) Data processing method, system, 3D printing method, device and storage medium
US20240116249A1 (en) Method, System and Apparatus for Processing Slice Image for 3D Printing, and Storage Medium
CN115071134A (en) 3D printing Z-axis compensation method and device, electronic equipment and storage medium
JP2005123549A (en) Dynamic mask module
CN114147969B (en) Model preprocessing annular texture blanking method, device, equipment and storage medium
CN116330664A (en) 3D printing precision control method and system based on image morphology operation
US11370165B2 (en) Method for improving resolution in LCD screen based 3D printers
CN114103124B (en) Three-dimensional printing method, device, equipment and computer readable medium for top compensation
CN115723333B (en) 3D printing method, system, device and storage medium
CN113715325A (en) Photocuring three-dimensional printing method, system, equipment and computer readable medium
EP4092560A1 (en) A method for three-dimensional printing with surface dithering, a computer program product and a 3d printing device
US20220281178A1 (en) Systems and methods for three-dimensional printing and products produced thereby
WO2024008576A1 (en) Method for additively manufacturing an ophthalmic lens and manufacturing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination