CN112721150A - Photocuring 3D printing method, device, equipment and storage medium - Google Patents

Photocuring 3D printing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112721150A
CN112721150A CN202011480525.1A CN202011480525A CN112721150A CN 112721150 A CN112721150 A CN 112721150A CN 202011480525 A CN202011480525 A CN 202011480525A CN 112721150 A CN112721150 A CN 112721150A
Authority
CN
China
Prior art keywords
printing
image
photocuring
slice
target image
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
CN202011480525.1A
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 Chuangxiang 3D Technology Co Ltd
Original Assignee
Shenzhen Chuangxiang 3D 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 Chuangxiang 3D Technology Co Ltd filed Critical Shenzhen Chuangxiang 3D Technology Co Ltd
Priority to CN202011480525.1A priority Critical patent/CN112721150A/en
Publication of CN112721150A publication Critical patent/CN112721150A/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/10Processes of additive manufacturing
    • B29C64/106Processes of additive manufacturing using only liquids or viscous materials, e.g. depositing a continuous bead of viscous material
    • B29C64/124Processes of additive manufacturing using only liquids or viscous materials, e.g. depositing a continuous bead of viscous material using layers of liquid which are selectively solidified
    • 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
    • B29C64/393Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes
    • 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
    • B33Y10/00Processes of 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
    • B33Y50/02Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • G06T5/70

Abstract

The embodiment of the invention discloses a photocuring 3D printing method, a photocuring 3D printing device, photocuring equipment and a storage medium. The method comprises the following steps: the 3D data model to be printed is rendered and restored to a 3D space defined by OpenGL through OpenGL; adjusting view parameters in the 3D space to obtain slice images of the 3D data model; carrying out post-processing on the basis of the slice image to obtain a target image; and determining printing data based on the target image, and controlling a forming platform to complete printing according to the printing data. The embodiment of the invention solves the problem of low slicing efficiency caused by CPU (Central processing Unit) calculation force limitation, and performs post-processing to optimize the printing effect after the sliced image is obtained, thereby remarkably improving the printing efficiency and the printing effect.

Description

Photocuring 3D printing method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of 3D printing, in particular to a photocuring 3D printing method, a photocuring 3D printing device, photocuring equipment and a storage medium.
Background
3D prints and is novel rapid prototyping manufacturing technology, and the field that 3D printed the technical application is more and more extensive under the intelligent promotion of computer digital technology. The photocuring 3D printing (referred to as photocuring printing in the invention) is to slice a group of three-dimensional objects through a certain algorithm to generate slice images, then output the images to a matched curing material by a projection device, and perform photocuring reaction after the curing material is irradiated to convert the curing material from a liquid state to a solid state, thus completing the printing by layer curing. In the prior art, in the photocuring printing process, the traditional method of calculating coordinates of an intersection point in a mode of intersecting a plane and a model to generate a slice image is adopted, the process is completed by a CPU, but the efficiency of generating the slice image by the CPU is not high, particularly for a complex model, and the printing efficiency is low due to low slicing efficiency.
Disclosure of Invention
In view of this, embodiments of the present invention provide a photocuring 3D printing method, apparatus, device, and storage medium, which can use the GPU computing power of a photocuring 3D printing device to directly perform image processing to complete photocuring printing, improve the slicing efficiency in the photocuring printing process, and facilitate post-processing optimization of sliced images to optimize the printing effect.
In a first aspect, an embodiment of the present invention provides a photocuring 3D printing method, including:
the 3D data model to be printed is rendered and restored to a 3D space defined by OpenGL through OpenGL;
adjusting view parameters in the 3D space to obtain slice images of the 3D data model;
carrying out post-processing on the basis of the slice image to obtain a target image;
and determining printing data based on the target image, controlling a forming platform to complete printing according to the printing data, and directly acquiring a slice image by calling GPU computing power through OpenGL to adjust view parameters, so that the slice efficiency is greatly improved, and the printing speed is increased.
In some embodiments, said adjusting view parameters in said 3D space to acquire slice images comprises:
determining a view mode of the 3D space as a perspective mode;
determining the moving direction and the moving interval of the virtual camera in the perspective mode according to the 3D data model;
acquiring sectional images of the virtual camera at different distances in the perspective mode;
and storing the interface image into an OpenGL frame cache object to obtain a slice image, and directly taking the section image as the slice image by adjusting the virtual camera in a perspective mode, so that the slice process and the slice effect can be directly observed conveniently.
In some embodiments, determining the movement direction and movement interval of the virtual camera in the perspective mode from the 3D data model comprises:
determining a photocuring printing direction according to the 3D data model, and determining a moving direction of the virtual camera according to the photocuring printing direction;
the thickness of a slice layer of the 3D data model is determined according to the 3D data model and the photocuring printing direction, the moving interval of the virtual camera is determined according to the thickness of the slice layer and the moving direction of the virtual camera, the moving direction and the moving interval of the virtual camera can be automatically determined according to the 3D data model, and slice images can be automatically acquired.
In some embodiments, the post-processing based on the slice image to obtain the target image comprises:
reading a slice image in an OpenGL frame cache object;
and carrying out denoising treatment and/or anti-aliasing treatment on the slice image to obtain a target image, optimizing the slice image through denoising treatment and/or anti-aliasing treatment to obtain the target image, and printing the target image to optimize the printing effect.
In some embodiments, the anti-aliasing process comprises:
performing rasterization processing on the slice image to obtain a first image;
determining edge pixels of the first image;
sampling the edge pixels at multiple sampling points;
and obtaining an anti-aliasing processed image based on the sampling result of the multiple sampling points as a target image, and sampling the multiple sampling points of the edge pixels of the slice image to improve the edge precision and perform anti-aliasing optimization.
In some embodiments, after obtaining the processed image by performing the post-processing based on the slice image, the method further includes:
displaying the target image, and judging whether reprocessing operation of the user based on the target image is detected;
and if the reprocessing operation of the user is detected, reprocessing the target image again and updating the processed target image, and performing one or more times of reprocessing optimization according to the requirement of the user so as to meet different optimization requirements of the user.
In some embodiments, the determining print data based on the target image and controlling the forming platform to complete printing according to the print data includes:
determining a printing order of the target images;
and controlling the model main body on the forming platform to move according to the moving direction and the moving interval, simultaneously controlling the forming platform to project the target image according to the printing sequence to finish curing, and automatically controlling the photocuring printing process according to the slicing process of the target image without additionally calculating the moving track of the model main body on the forming platform.
In a second aspect, an embodiment of the present invention further provides a photocuring 3D printing apparatus, including:
the model rendering module is used for rendering and restoring the 3D data model to be printed to a 3D space defined by OpenGL through OpenGL;
the model slicing module is used for adjusting view parameters in the 3D space to obtain slice images of the 3D data model;
the image processing module is used for carrying out post-processing on the basis of the slice image to obtain a target image;
and the printing control module is used for determining printing data based on the target image and controlling the forming platform to finish printing according to the printing data.
In a third aspect, an embodiment of the present invention further provides a photocuring 3D printing apparatus, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a photocuring 3D printing method as provided by any embodiment of the invention.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the photocuring 3D printing method according to any embodiment of the present invention
In the photocuring 3D printing method provided by the embodiment of the invention, a 3D data model to be printed is rendered and restored to a 3D space defined by OpenGL through OpenGL to obtain a three-dimensional image of the 3D space, direct acquisition of a direct sliced image is realized by adjusting view parameters of the 3D space, the sliced image is subjected to post-processing optimization to obtain a target image, and a printing data is generated based on the target image to control a forming platform to complete printing.
Drawings
Fig. 1 is a schematic flow chart of a photocuring 3D printing method according to a first embodiment of the present invention;
fig. 2 is a schematic flow chart of another photocuring 3D printing method according to a second embodiment of the present invention;
fig. 3 is a schematic flow chart of the virtual camera movement control in the second embodiment of the present invention;
FIG. 4 is a schematic flow chart of the post-processing in the second embodiment of the present invention;
FIG. 5 is a schematic view of the anti-aliasing process of the third embodiment of the invention;
fig. 6 is a schematic flow chart of a further photocuring 3D printing method in the third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a photocuring 3D printing apparatus in a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of a photocuring 3D printing apparatus in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first image may be referred to as a second image, and similarly, a second image may be referred to as a first image, without departing from the scope of the present disclosure. The first image and the second image are both images, but they are not the same image. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise. It should be noted that when a portion is referred to as being "secured to" another portion, it can be directly on the other portion or there can be an intervening portion. When a portion is said to be "connected" to another portion, it may be directly connected to the other portion or intervening portions may be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only and do not denote a unique embodiment.
Example one
An embodiment of the present invention provides a photocuring 3D printing method, which may be applied to various photocuring 3D printing devices, and as shown in fig. 1, the photocuring 3D printing method provided by this embodiment includes:
and S110, restoring the 3D data model to be printed to a 3D space defined by OpenGL through OpenGL rendering.
The 3D data model is a three-dimensional data model of the product to be printed, is used for representing the shape and the size of the product to be printed, and further comprises colors and the like. OpenGL (Open Graphics Library) is a software Library that has access to Graphics hardware device features and can be used to render images.
In this embodiment, the 3D data model to be printed may be stored in a file with a different format for OpenGL recognition processing, an OpenGL program is preset in the photocuring 3D printing device, the 3D data model to be printed is obtained through the OpenGL program, and the OpenGL program renders and restores the 3D data model to a three-dimensional image and displays the three-dimensional image in a 3D space provided by the OpenGL program.
And S120, adjusting view parameters in the 3D space to obtain slice images of the 3D data model.
The view parameters are used for adjusting a three-dimensional image displayed by the 3D data model in the 3D space, and may specifically include a view mode, a view perspective, a view direction, and the like. The slice image is actually an output image corresponding to different cured layers in photocuring printing, and is used for determining the specific shape of the cured layer, and further determining the color and the like of the cured layer. The slice image is obtained by slicing the 3D data model by using a preset algorithm, and the CPU computational power is used in this process, and considering that the photocuring 3D printing apparatus has a high usage degree of the CPU computational power (the CPU generally processes a corresponding file to determine the 3D data model), and has a low usage degree of the GPU computational power. Since the GPU has a high parallel structure and has higher efficiency than a CPU in the aspects of processing graphic data and complex algorithms, the OpenGL program can call GPU computing power to perform rasterization computation to quickly determine different slice images according to view parameters. When aiming at a complex 3D data model, the slicing efficiency is greatly improved by adopting the GPU computing power to directly process the image to obtain the slice image compared with adopting the CPU computing power to slice.
In this embodiment, in order to obtain a slice image of the 3D data model, after the OpenGL program restores the 3D data model to the 3D space, the view mode of the 3D space is set to the perspective mode to obtain a cross-sectional image of the 3D data model, and the cross-sectional image is used as the slice image.
And S130, carrying out post-processing based on the slice image to obtain a target image.
The target image is an image obtained by carrying out post-processing optimization on the sliced image so as to optimize the printing effect, and the specific post-processing mode can be set according to different printing requirements and the specific shape of a product to be printed. For example, for a slice image with complex image texture and unobvious color distinction, a denoising mode can be adopted to improve the fineness of a printed product.
In this embodiment, the slice image obtained by directly perspective viewing the three-dimensional image in the 3D space based on the GPU computing power may be conveniently subjected to various optimization processes: and after the slice image is obtained, performing post-processing on the slice image through a preset optimization algorithm to obtain a target image.
And S140, determining printing data based on the target image, and controlling a forming platform to complete printing according to the printing data.
The printing data is used for controlling specific forming actions of the forming platform and comprises movement control data, image output data and the like, the movement control data is used for controlling the moving direction, the moving distance, the moving time and the like of a printed product on the forming platform, and the image output data outputs corresponding target images at different times so as to solidify corresponding printing materials.
The embodiment provides a photocuring 3D printing method, a 3D data model to be printed is rendered and restored to a 3D space defined by OpenGL through OpenGL to obtain a three-dimensional image of the 3D space, direct acquisition of a direct slice image is achieved by adjusting view parameters of the 3D space, the slice image is subjected to post-processing optimization to obtain a target image, and printing data is generated based on the target image to control a forming platform to complete printing.
Example two
The present embodiment provides a photocuring 3D printing method based on the above embodiment, which is different from the first embodiment in that part of the content in the first embodiment is further explained and supplemented, for example, a specific process of adjusting view parameters to obtain slice images is specifically:
as shown in fig. 2, the photocuring 3D printing method provided by the present embodiment includes:
s210, the 3D data model to be printed is rendered and restored to the 3D space defined by OpenGL through OpenGL.
And S220, determining the view mode of the 3D space as a perspective mode.
The perspective mode is a mode in which a part of a three-dimensional image of 3D model data in a 3D space is made transparent, and a cross-sectional image of the 3D model data can be directly displayed in the perspective mode.
And S230, determining the moving direction and the moving interval of the virtual camera in the perspective mode according to the 3D data model.
The sectional image specifically displayed by the 3D model data in the perspective mode can be determined by moving the virtual camera, and the sectional image changes when the virtual camera is moved, and in order to obtain the sectional image that can be a slice image, it is necessary to determine how to control the virtual camera to move according to the 3D data model.
Specifically, in one embodiment, as shown in the virtual camera movement control flowchart of fig. 3, step S230 includes steps S231-232:
s231, determining a photocuring printing direction according to the 3D data model, and determining a moving direction of the virtual camera according to the photocuring printing direction.
S232, determining the thickness of a slice layer of the 3D data model according to the 3D data model and the photocuring printing direction, and determining the movement interval of the virtual camera according to the thickness of the slice layer and the movement direction of the virtual camera.
For convenience of performing the photocuring printing according to the slice image, the order of acquiring the slice image is generally consistent with the direction of the photocuring printing, for example, when the photocuring printing is performed from the bottom end to the top end of the 3D data model, the order of acquiring the slice image is also from the bottom end to the top end of the 3D data model, that is, the moving direction of the virtual camera is from the bottom end to the top end of the 3D data model. The slice layer thickness determines how many layers the 3D data model is divided into, i.e. determines the number of slice images and the distance each time the virtual camera is moved (movement interval).
And S240, acquiring sectional images of the virtual camera at different distances in the perspective mode.
And S250, storing the section image into an OpenGL frame cache object to obtain a slice image.
The virtual camera generates a section image, namely a frame of slice image, when moving to a pause position according to the moving interval each time, the virtual camera is continuously moved according to the moving direction and the moving interval, and corresponding interface images are sequentially stored in an OpenGL frame cache object to obtain all required slice images.
And S260, carrying out post-processing based on the slice image to obtain a target image.
And S270, determining printing data based on the target image, and controlling a forming platform to complete printing according to the printing data.
In this embodiment, steps S220 to S250 are a refinement of step S120 in the first embodiment, so as to specifically describe how to obtain the slice image by adjusting the view parameters, where the view parameters include the moving direction and the moving interval of the virtual camera, it is understood that the above is only an example, and there are various ways of actually determining the slice image based on the view parameters, which is not an example here.
On the basis of the above embodiments, in some embodiments, the step S270 determines print data based on the target image, and controls the forming platform to complete printing according to the print data, which may simplify the processing according to the acquisition process of the slice image, and specifically includes steps S271-272 (not shown):
and S271, determining the printing sequence of the target images.
And S272, controlling the model main body on the forming platform to move according to the moving direction and the moving interval, and simultaneously controlling the forming platform to project the target image according to the printing sequence to finish curing.
Usually, when printing is performed according to a target image, the movement parameters of the model main body on the forming platform are calculated according to the slice thickness, but in the embodiment, the target image is obtained by controlling the cross-sectional image generated by the movement of the virtual camera, the movement process of the virtual camera can be synchronized to the control process of the model main body, the movement parameters of the model main body can be obtained by simply converting according to the proportional relation between the 3D data model and the model main body in the 3D space, the calculation amount is reduced, and the method is convenient and fast.
More specifically, in some embodiments, as shown in FIG. 4, post-processing the slice image in step S260 includes steps S261-262:
and S261, reading the slice image in the OpenGL frame buffer object.
And S262, carrying out denoising treatment and/or anti-aliasing treatment on the slice image to obtain a target image.
It has been mentioned above that the slice image is a cross-sectional image stored in the OpenGL frame buffer object, and needs to be read out from the OpenGL frame buffer object before performing post-processing optimization on the slice image, so as to be optimized by an image optimization algorithm. In this embodiment, two optimization processing methods are provided: the method comprises denoising treatment and anti-aliasing treatment, wherein the denoising treatment is used for fine printing effect, the printed patterns and textures are prevented from being fuzzy, and the anti-aliasing treatment can prevent the edges of printed products from being jagged.
More specifically, in some embodiments, the specific process of the anti-aliasing process shown in fig. 5 comprises:
s2621, performing rasterization processing on the slice image to obtain a first image.
Rasterization is a common processing mode of OpenGL, an image actually displayed by a display is composed of pixels, and the rasterization is used for converting points and lines on the image into corresponding pixel points through a certain algorithm.
S2622, determining edge pixels of the first image.
The antialiasing process is an antialiasing optimization on the edges of the graphics, and therefore the edge pixels in the first image need to be determined to optimize for the edges. The rim referred to herein may include an inner edge and an outer edge.
And S2623, sampling the edge pixels by multiple sampling points.
And S2624, obtaining an anti-aliasing image based on the sampling results of the multiple sampling points as a target image.
S2623-2624 is for carrying out the concrete mode that optimizes to marginal pixel, will originally a pixel use a sampling point sampling to replace and use a plurality of sampling points to sample for a sampling point, can carry out more accurate sampling to marginal pixel, avoid the not enough jaggies that lead to image edge precision to lead to of sampling.
Optionally, in an embodiment, as shown in fig. 6, a user-defined optimization frequency manner of performing one or more post-processing optimizations according to a user operation is further provided, and specifically, after step S260, steps S280 to 290 are further included:
and S280, displaying the target image, and judging whether reprocessing operation of the user based on the target image is detected.
And the target image is visually displayed for a user to check, the user can operate the visual printing equipment to confirm that the subsequent printing process is continued when checking the target image and confirming that standards such as image precision and the like meet requirements, and if the standards do not meet the requirements, the user operates the visual printing equipment to select reprocessing to optimize the target image.
And S290, if the reprocessing operation of the user is detected, reprocessing the target image again and updating the processed target image.
The reprocessing is generally performed in the same optimization manner as the post-processing, for example, the post-processing is performed by anti-aliasing, the reprocessing is also performed by anti-aliasing, and different optimization manners may be selected according to actual conditions. The reprocessing and post-processing optimization mode adopted in the step S290 is the same, after the reprocessing is selected by the user operation, the target image is subjected to the post-processing optimization again to obtain a new target image, and actually, the process of the steps S280 to 290 can be repeated for a plurality of times according to the optimization requirement of the user, that is, the user can select to perform the optimization for a plurality of times by himself to achieve an ideal target image, and the printing effect is ensured.
The embodiment provides a photocuring 3D printing method, further provides a process of adjusting view parameters to obtain a slice image in a perspective mode in a 3D space, a mode of optimizing the slice image through post-processing, and a mode of controlling a printing process according to the process of obtaining the slice image, and the photocuring 3D printing method is explained in detail, so that the photocuring printing efficiency is improved by using the advantage of GPU image processing, the printing quality is ensured by one or more times of optimization processing selected by a user, the operation pressure is reduced by combining with the control of the curing process through the slicing process, and the capability of processing and printing a large-scale model is improved.
EXAMPLE III
Fig. 7 provides a photocuring 3D printing apparatus according to a third embodiment of the present invention, and the photocuring 3D printing apparatus according to the third embodiment of the present invention can execute the photocuring 3D printing method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 7, the photocuring 3D printing apparatus includes:
a model rendering module 310, configured to render and restore a 3D data model to be printed to a 3D space defined by OpenGL through OpenGL;
a model slice module 320, configured to adjust view parameters in the 3D space to obtain slice images of the 3D data model;
the image processing module 330 is configured to perform post-processing on the slice image to obtain a target image;
and the printing control module 340 is configured to determine printing data based on the target image, and control the forming platform to complete printing according to the printing data.
Optionally, in an embodiment, the model slicing module 320 specifically includes:
a view selection unit for determining a view mode of the 3D space as a perspective mode;
the virtual camera control unit is used for determining the moving direction and the moving interval of the virtual camera in the perspective mode according to the 3D data model;
a sectional image acquisition unit for acquiring sectional images of the virtual camera at different distances in the perspective mode;
and the image caching unit is used for storing the section image into an OpenGL frame caching object to obtain a slice image.
Optionally, in an embodiment, the virtual camera control unit is specifically configured to:
determining a photocuring printing direction according to the 3D data model, and determining a moving direction of the virtual camera according to the photocuring printing direction;
determining the thickness of a slice layer of the 3D data model according to the 3D data model and the photocuring printing direction, and determining the movement interval of the virtual camera according to the thickness of the slice layer and the movement direction of the virtual camera.
Optionally, in an embodiment, the image processing module 330 includes:
a slice image reading unit for reading slice images in the OpenGL frame buffer objects;
and the optimization unit is used for carrying out denoising processing and/or anti-aliasing processing on the slice image to obtain a target image.
Optionally, in an embodiment, the optimization unit is specifically configured to:
performing rasterization processing on the slice image to obtain a first image;
determining edge pixels of the first image;
sampling the edge pixels at multiple sampling points;
and obtaining an anti-aliasing processed image as a target image based on the sampling result of the multiple sampling points.
Optionally, in an embodiment, the photocuring 3D printing apparatus further includes:
the reprocessing judgment module is used for displaying the target image and judging whether reprocessing operation of the user based on the target image is detected;
and the reprocessing module is used for reprocessing the target image and updating the processed target image if reprocessing operation of the user is detected.
Optionally, in an embodiment, the print control module 340 is specifically configured to:
determining a printing order of the target images;
and controlling the model main body on the forming platform to move according to the moving direction and the moving interval, and simultaneously controlling the forming platform to project the target image according to the printing sequence to finish curing.
The embodiment provides a photocuring 3D printing device, a 3D data model to be printed is rendered and restored to a 3D space defined by OpenGL through OpenGL to obtain a three-dimensional image of the 3D space, direct acquisition of a direct slice image is achieved by adjusting view parameters of the 3D space, a target image is obtained by performing postprocessing optimization on the slice image, and printing data is generated based on the target image to control a forming platform to complete printing.
Example four
Fig. 8 is a schematic structural diagram of a photocuring 3D printing apparatus 12 according to a fourth embodiment of the present invention. Fig. 7 shows a block diagram of an exemplary photocuring 3D printing device 12 suitable for use in implementing embodiments of the present invention. The photocuring 3D printing apparatus 12 shown in fig. 7 is merely an example, and should not bring any limitation to the functions and the range of use of the embodiment of the present invention.
As shown in fig. 8, the photocuring 3D printing device 12 is in the form of a general purpose computing device. The components of the photocuring 3D printing device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The photocuring 3D printing device 12 typically includes a variety of computer system readable media. These media may be any available media that can be accessed by the photocuring 3D printing device 12, including volatile and non-volatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The photocuring 3D printing device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 8, and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The photocuring 3D printing device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the photocuring 3D printing device 12, and/or with any device (e.g., network card, modem, etc.) that enables the photocuring 3D printing device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the photocuring 3D printing device 12 can also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the photocuring 3D printing device 12 over the bus 18. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the photocuring 3D printing device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, to implement the photocuring 3D printing method provided by the embodiment of the present invention:
the 3D data model to be printed is rendered and restored to a 3D space defined by OpenGL through OpenGL;
adjusting view parameters in the 3D space to obtain slice images of the 3D data model;
carrying out post-processing on the basis of the slice image to obtain a target image;
and determining printing data based on the target image, and controlling a forming platform to complete printing according to the printing data.
EXAMPLE five
Fifth, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a photocuring 3D printing method according to any embodiment of the present invention:
the 3D data model to be printed is rendered and restored to a 3D space defined by OpenGL through OpenGL;
adjusting view parameters in the 3D space to obtain slice images of the 3D data model;
carrying out post-processing on the basis of the slice image to obtain a target image;
and determining printing data based on the target image, and controlling a forming platform to complete printing according to the printing data.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A photocuring 3D printing method, comprising:
the 3D data model to be printed is rendered and restored to a 3D space defined by OpenGL through OpenGL;
adjusting view parameters in the 3D space to obtain slice images of the 3D data model;
carrying out post-processing on the basis of the slice image to obtain a target image;
and determining printing data based on the target image, and controlling a forming platform to complete printing according to the printing data.
2. The photocuring 3D printing method of claim 1, wherein adjusting view parameters in the 3D space to acquire slice images of the 3D data model comprises:
determining a view mode of the 3D space as a perspective mode;
determining the moving direction and the moving interval of the virtual camera in the perspective mode according to the 3D data model;
acquiring sectional images of the virtual camera at different distances in the perspective mode;
and storing the section image into an OpenGL frame cache object to obtain a slice image.
3. The photocuring 3D printing method of claim 2, wherein determining a movement direction and a movement interval of a virtual camera in a perspective mode from the 3D data model comprises:
determining a photocuring printing direction according to the 3D data model, and determining a moving direction of the virtual camera according to the photocuring printing direction;
determining the thickness of a slice layer of the 3D data model according to the 3D data model and the photocuring printing direction, and determining the movement interval of the virtual camera according to the thickness of the slice layer and the movement direction of the virtual camera.
4. The photocuring 3D printing method of claim 1, wherein the post-processing based on the slice image to obtain a target image comprises:
reading a slice image in an OpenGL frame cache object;
and carrying out denoising treatment and/or anti-aliasing treatment on the slice image to obtain a target image.
5. The photocuring 3D printing method of claim 3, wherein the anti-aliasing process comprises:
performing rasterization processing on the slice image to obtain a first image;
determining edge pixels of the first image;
sampling the edge pixels at multiple sampling points;
and obtaining an anti-aliasing processed image as a target image based on the sampling result of the multiple sampling points.
6. The photocuring 3D printing method according to claim 1, further comprising, after the post-processing based on the slice image to obtain a processed image:
displaying the target image, and judging whether reprocessing operation of the user based on the target image is detected;
and if the reprocessing operation of the user is detected, performing the post-processing on the target image again and updating the processed target image.
7. The photocuring 3D printing method according to claim 2, wherein determining print data based on the target image and controlling a forming platform to complete printing according to the print data comprises:
determining a printing order of the target images;
and controlling the model main body on the forming platform to move according to the moving direction and the moving interval, and simultaneously controlling the forming platform to project the target image according to the printing sequence to finish curing.
8. A photocuring 3D printing device, comprising:
the model rendering module is used for rendering and restoring the 3D data model to be printed to a 3D space defined by OpenGL through OpenGL;
the model slicing module is used for adjusting view parameters in the 3D space to obtain slice images of the 3D data model;
the image processing module is used for carrying out post-processing on the basis of the slice image to obtain a target image;
and the printing control module is used for determining printing data based on the target image and controlling the forming platform to finish printing according to the printing data.
9. A photocuring 3D printing apparatus, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the photocuring 3D printing method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the photocuring 3D printing method according to any one of claims 1 to 7.
CN202011480525.1A 2020-12-15 2020-12-15 Photocuring 3D printing method, device, equipment and storage medium Pending CN112721150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011480525.1A CN112721150A (en) 2020-12-15 2020-12-15 Photocuring 3D printing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011480525.1A CN112721150A (en) 2020-12-15 2020-12-15 Photocuring 3D printing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112721150A true CN112721150A (en) 2021-04-30

Family

ID=75602356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011480525.1A Pending CN112721150A (en) 2020-12-15 2020-12-15 Photocuring 3D printing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112721150A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113591309A (en) * 2021-07-30 2021-11-02 深圳市创想三维科技股份有限公司 3D printing model slicing method and device, computing terminal and storage medium
CN114770948A (en) * 2022-03-28 2022-07-22 深圳市纵维立方科技有限公司 3D printing method and device, storage medium and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150034007A1 (en) * 2013-07-31 2015-02-05 Tangible Engineering Gmbh Compact apparatus for producing a three-dimensional object by hardening a photocuring material
CN105121134A (en) * 2013-03-14 2015-12-02 斯特拉塔西斯公司 Slicing and/or texturing for three-dimensional printing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105121134A (en) * 2013-03-14 2015-12-02 斯特拉塔西斯公司 Slicing and/or texturing for three-dimensional printing
US20150034007A1 (en) * 2013-07-31 2015-02-05 Tangible Engineering Gmbh Compact apparatus for producing a three-dimensional object by hardening a photocuring material

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113591309A (en) * 2021-07-30 2021-11-02 深圳市创想三维科技股份有限公司 3D printing model slicing method and device, computing terminal and storage medium
CN113591309B (en) * 2021-07-30 2024-03-15 深圳市创想三维科技股份有限公司 Model slicing method and device for 3D printing, computing terminal and storage medium
CN114770948A (en) * 2022-03-28 2022-07-22 深圳市纵维立方科技有限公司 3D printing method and device, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
US10636213B2 (en) Graphics processing systems
US9842424B2 (en) Volume rendering using adaptive buckets
CN112721150A (en) Photocuring 3D printing method, device, equipment and storage medium
CN115147558A (en) Training method of three-dimensional reconstruction model, three-dimensional reconstruction method and device
US10650577B2 (en) Graphics processing systems
CN112766027A (en) Image processing method, device, equipment and storage medium
CN116051719A (en) Image rendering method and device based on nerve radiation field model
CN112650457A (en) File processing method, device and equipment applied to 3D printing and storage medium
CN112419372A (en) Image processing method, image processing device, electronic equipment and storage medium
CN114266860A (en) Three-dimensional face model establishing method and device, electronic equipment and storage medium
US11475549B1 (en) High dynamic range image generation from tone mapped standard dynamic range images
CN114022604A (en) Model drawing method and device, electronic equipment and storage medium
CN113496506A (en) Image processing method, device, equipment and storage medium
CN115272575B (en) Image generation method and device, storage medium and electronic equipment
CN112528707A (en) Image processing method, device, equipment and storage medium
CN109448123B (en) Model control method and device, storage medium and electronic equipment
CN115908116A (en) Image processing method, device, equipment and storage medium
CN114170367B (en) Method, apparatus, storage medium, and device for infinite-line-of-sight pyramidal heatmap rendering
CN113421335B (en) Image processing method, image processing apparatus, electronic device, and storage medium
CN115578515A (en) Training method of three-dimensional reconstruction model, and three-dimensional scene rendering method and device
CN114708382A (en) Three-dimensional modeling method, device, storage medium and equipment based on augmented reality
CN110335205B (en) Landform smoothing method and device, computer equipment and storage medium
US11348287B2 (en) Rendering of graphic objects with pattern paint using a graphics processing unit
US8810572B2 (en) Tessellation cache for object rendering
CN113793349A (en) Target detection method and device, computer readable storage medium and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210430