Volume biological 3D printing algorithm and device for realizing gray scale gradient projection

The volumetric bio-3D printing algorithm based on grayscale gradient projection solves the problem of controlling complex mechanical gradients in existing technologies, enabling the printing of structures with complex functional gradients in a single material, suitable for the rapid printing of biological tissues or organs.

CN118752773BActive Publication Date: 2026-11-10GREEN KEY BIOTECHNOLOGY (GUANGZHOU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410937876.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2026-11-10
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

Existing bioprinting technologies cannot effectively control complex mechanical gradients and cannot achieve gradient changes for complex functions using a single material.

Method used

The volumetric bio-3D printing algorithm based on grayscale gradient projection includes converting the 3D model to grayscale, determining the direction and gradient difference of the gradient, performing equidistant layer slicing, generating projection data through Laden transform and filtering operations, and finally projecting the data onto the printer in angular order to achieve gradient effect printing.

Benefits of technology

It enables the printing of structures with complex functional gradients using a single material in a short time, and allows for the adjustment of material properties, such as the degree of hardening, according to user needs, making it suitable for different application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118752773B_ABST
    Figure CN118752773B_ABST
Patent Text Reader

Abstract

The application provides a volume biological 3D printing algorithm and device for realizing gray gradient projection, and comprises the following steps: performing gray processing on a three-dimensional model to obtain a gray processing result G; determining a gradient direction and a gradient difference according to required gradient material characteristics; performing gradient processing on the gray processing result G according to the gradient direction and the gradient difference, which comprises the following steps: equally slicing the gray processing result G according to the gradient direction to obtain M layers of segmented slices, and then calculating and adjusting the gray value of each layer of the segmented slices according to the gradient difference, so as to obtain a gray projection result R with a gradient effect. The application develops a projection method with multiple performance materials in a single printing, from stretchable elastomers to hard thermosetting materials, so that the printed structure has high complexity and functionality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of 3D printing technology, and in particular relates to a volumetric bio-3D printing algorithm, device, equipment and storage medium for realizing grayscale gradient projection. Background Technology

[0002] Bioprinting is an application of 3D printing technology in the biological field. It utilizes biological materials or bioactive substances to create biological tissues or organs with specific structures and functions through layer-by-layer stacking or layer-by-layer jetting.

[0003] Bioprinting technology can help solve some challenges in the medical field, such as tissue defect repair and organ transplantation. By using biomaterials such as bio-inks, cells, proteins, and other biomolecules can be precisely printed into three-dimensional structures to reconstruct damaged or missing tissues.

[0004] Currently, the conventional technologies for bio-3D printing both domestically and internationally employ computational axial lithography (CAL) or layer-by-layer printing. CAL enables the photoinduced curing of photosensitive resin into complex 3D end-use objects in a single step, achieved by projecting light energy from a tomographic pattern onto the volume of photocurable resin within a rotating container. Layer-by-layer printing, on the other hand, involves building three-dimensional objects by stacking materials layer by layer. The shape of each layer is derived from a computer model, and the entire object is manufactured by stacking these layers sequentially. However, CAL can only print parts with single material properties or multiple discrete properties and cannot control complex mechanical gradients. Summary of the Invention

[0005] The purpose of this invention is to propose a volumetric bio-3D printing algorithm, device, equipment, and storage medium for realizing grayscale gradient projection, which can effectively solve the above-mentioned technical problems existing in the prior art.

[0006] To achieve the above objectives, embodiments of the present invention provide a volumetric biological 3D printing algorithm for implementing grayscale gradient projection, the method comprising the following steps: S1. Convert the 3D model to grayscale to obtain the grayscale result. G ; S2. Based on the required gradient material properties, determine the gradient direction and gradient difference, and apply the grayscale processing result based on the gradient direction and gradient difference. G Gradient processing includes: converting the grayscale processing result... G Perform equidistant layering and slicing according to the direction perpendicular to the gradient to obtain... M The layers are segmented into slices, and then the grayscale value of each slice is calculated and adjusted based on the gradient difference to obtain a grayscale processing result with a gradient effect.R ; S3. The grayscale processing result with gradient effect R Equidistant slices are cut along the direction perpendicular to the Z-axis to generate... N Layer horizontal slicing; S4. Perform Laden transform on each horizontal slice to obtain 360 sets of projection data for each horizontal slice. Each set of data corresponds to the projection data of each angle. Then, perform a filtering operation on the projection data of each angle to obtain the filtered projection data of each angle. S5. The filtered projection data of each horizontal slice at the same angle are stacked together in order along the Z-axis to form the grayscale processing result with gradient effect. R Projected slices at the corresponding angle; S6. Project the projection slices onto the printer in angular order to print a structure with a gradient effect.

[0007] As an improvement to the above scheme, in step S1, the three-dimensional model is composed of a large number of triangles, each triangle being defined by three vertices and a normal vector; step S1 specifically includes: S11. Find the minimum and maximum values ​​of each triangle vertex to determine the bounding box of each triangle; assuming the vertices of the triangle are (), (), and (), the minimum and maximum values ​​of the bounding box are given by the following formula: Minimum value:

[0008] Maximum value:

[0009] S12. For each point within the bounding box of each triangle, use a ray casting algorithm to determine whether it is inside the triangle; the ray casting algorithm is implemented through the following steps: Select a point P Make it inside the bounding box, and record it as... From point P Cast a ray along the positive Z-axis; count the number of times the ray intersects the triangle; if the number of intersections is even, the point is outside the triangle; if the number of intersections is odd, the point is inside the triangle. Let the three vertices of the triangle be ( ), ( ), ( The ray direction is (0,0,1); use the triangle plane equation and the ray equation to find the intersection point. Equation of the plane of the triangle:

[0010] Wherein, normal vector n= ( a,b,c ) is obtained through vertex calculation; Ray equation:

[0011] Substituting the ray equation into the plane equation, we can solve for t to obtain the intersection point r(t); To determine if a ray passes through a triangle: First, calculate whether the intersection point r(t) lies in the plane containing the triangle. Then, use the centroid coordinate method to determine if the intersection point is inside the triangle. If the following conditions are met, then the point is inside the triangle:

[0012] If 𝛼≥0, 𝛽≥0, 𝛾≥0 and 𝛼+𝛽+𝛾=1, then the intersection point is inside the triangle; For each triangle, calculate whether the ray passes through it and count the total number of times it passes through; if the number of times it passes through is odd, the point is inside the triangle; if the number of times it passes through is even, the point is outside the triangle. S13. Based on the results of ray projection, fill the corresponding elements in the array with the corresponding numbers. Use the number 1 to represent points inside the triangle and points on the boundary of the triangle, and the number 0 to represent points outside the triangle.

[0013] S14, All P The set of points constitutes the grayscale processing result of the three-dimensional model. G .

[0014] As an improvement to the above scheme, the gradient direction includes at least one of the following directions: the X-axis direction, the Y-axis direction, the Z-axis direction, and the direction from the inside to the outside; When the gradient direction is the X-axis, Y-axis, or Z-axis direction, the grayscale processing result will be... G The desired result is obtained by equidistant layering and slicing along the vertical X-axis, Y-axis, or Z-axis. M Layer segmentation and slicing; When the gradient direction is from the inside out, the grayscale processing result is... G Starting from the center, the process gradually expands outwards until it covers the entire grayscale result. G The surface is defined, thus defining a region from the inside out; specifically, calculations are performed. GThe straight-line distance (d=sqrt(A^2+B^2+C^2)) from the starting point (0,0,0) to each voxel point (A,B,C) is used to group voxels with equal distance d into the same level, thereby resolving the grayscale processing result. G The region is divided into multiple layers from the inside to the outside to obtain the desired result. M Layer segmentation and slicing.

[0015] As an improvement to the above scheme, when the gradient direction includes at least the Z-axis direction, the grayscale processing result is... G The number of segments obtained by equidistant slicing along the vertical Z-axis is equal to the number of horizontal slices, thereby converting the grayscale result... G The lateral slices obtained by equidistant layering along the vertical Z-axis and after grayscale adjustment are used as the horizontal slices, thus omitting the execution of step S3.

[0016] As an improvement to the above scheme, in step S2, if the gradient difference is a continuous gradient difference range, then the grayscale processing result is calculated using the arithmetic progression method based on the gradient difference range. G The calculated gray values ​​are applied to each segmented slice according to the gray values ​​of each layer of the segmented slice in the direction perpendicular to the gradient, so that there is a gradient difference between two adjacent segmented slices.

[0017] As an improvement to the above scheme, in step S2, the gradient difference range is n1~n2; or, the gradient difference range is n1~n2~n1; wherein, 𝑛1 and 𝑛2 satisfy 0<𝑛1≤1, 0<𝑛2≤1.

[0018] As an improvement to the above scheme, when the gradient difference is a fixed value between two n1 and n2, step S2 is performed in any of the following ways: Method 1: Convert the grayscale processing result G Two layers of segmented slices are obtained by equidistantly slicing the slices in a direction perpendicular to the gradient. The gray values ​​of the first layer of segmented slices are adjusted to n1 (0 < n1 ≤ 1), and the gray values ​​of the second layer of segmented slices are adjusted to n2 (0 < n2 ≤ 1). Method 2: Convert the grayscale processing result G Perform equidistant layering and slicing according to the direction perpendicular to the gradient to obtain... M Layer segmentation and slicing will be in M The grayscale value of the first half of the segmentation slice is adjusted to n1 (0 < n1 ≤ 1), and the grayscale value of the slice in the first half of the segmentation slice is adjusted to n1 (0 < n1 ≤ 1). M The grayscale value of the segmented slice in the second half of / 2 is adjusted to n2 (0 < n2 ≤ 1).

[0019] Another embodiment of the present invention provides a volumetric bio-3D printing device for realizing grayscale gradient projection, comprising: The grayscale conversion module is used to convert 3D models to grayscale to obtain the grayscale result. G ; The gradient processing module is used to determine the gradient direction and gradient difference based on the required gradient material properties, and to process the grayscale result according to the gradient direction and gradient difference. G Gradient processing includes: converting the grayscale processing result... G Perform equidistant layering and slicing according to the direction perpendicular to the gradient to obtain... M The layers are segmented into slices, and then the grayscale value of each slice is calculated and adjusted based on the gradient difference to obtain a grayscale processing result with a gradient effect. R ; The horizontal slice generation module is used to process the grayscale result with gradient effect. R Equidistant slices are cut along the direction perpendicular to the Z-axis to generate... N Layer horizontal slicing; The projection data conversion module is used to perform Laden transformation on each horizontal slice, so that each horizontal slice has 360 sets of projection data, each set of data corresponds to the projection data of each angle, and then the projection data of each angle is filtered to obtain the filtered projection data of each angle. The projection slice generation module is used to stack the filtered projection data of each horizontal slice at the same angle in order along the Z-axis to form the grayscale processing result with gradient effect. R Projected slices at the corresponding angle; The printing module is used to project the projection slices onto the printer in an angular sequence, thereby printing a structure with a gradient effect.

[0020] Another embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the volumetric bio-3D printing algorithm for implementing grayscale gradient projection as described in any of the above embodiments.

[0021] Another embodiment of the present invention provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, cause the processor to execute the volumetric bio-3D printing algorithm for implementing grayscale gradient projection as described in any of the above embodiments.

[0022] Compared with existing technologies, the volumetric bio-3D printing algorithm, apparatus, device, and storage medium for implementing grayscale gradient projection provided by the embodiments of the present invention have the following technical effects: (1) It can guarantee the realization of complex functional gradients under a single material in a short time, including: (1.1) This invention utilizes volumetric biological 3D printing, which can print shapes in a short time.

[0023] (1.2) This invention requires only one material to achieve complex functional gradients.

[0024] (2) The gradient range can be freely controlled according to user needs, including: (2.1) Allows adjustment of material properties, such as the degree of hardening, according to specific application requirements. This enables printed parts to have different elasticity and stretchability, making them more suitable for different application scenarios. Attached Figure Description

[0025] To more clearly illustrate the technical solution of the present invention, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 This is a flowchart illustrating a specific embodiment of a volumetric biological 3D printing algorithm that implements grayscale gradient projection, provided by an embodiment of the present invention.

[0027] Figure 2 correspond Figure 1 The process of generating projection slices and the schematic diagram of printing are described in the steps.

[0028] Figures 3-6 These are actual printing results of three different structures obtained by implementing the volumetric biological 3D printing algorithm based on grayscale gradient projection, as described in this invention. Figures 3-5 There are two gradient layers. Figure 6 It has four gradient layers.

[0029] Figure 7 This is a structural block diagram of a volumetric bio-3D printing device that realizes grayscale gradient projection, provided in an embodiment of the present invention.

[0030] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0031] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0032] This invention provides a volumetric bio-3D printing algorithm for achieving grayscale gradient projection, and provides an algorithm for gradient printing using volumetric bio-3D printing to obtain complex functional gradient materials. Figure 1 A flowchart of a volumetric bio-3D printing algorithm for implementing grayscale gradient projection is provided in this application embodiment. The method includes steps S1 to S6: S1. Convert the 3D model to grayscale to obtain the grayscale result. G ; S2. Based on the required gradient material properties, determine the gradient direction and gradient difference, and apply the grayscale processing result based on the gradient direction and gradient difference. G Gradient processing is performed to obtain a grayscale result with a gradient effect. R This includes: converting the grayscale processing result... G Perform equidistant layered slices (e.g., one voxel thick) perpendicular to the gradient direction to obtain M The layers are segmented into slices, and then the grayscale value of each slice is calculated and adjusted based on the gradient difference to obtain a grayscale processing result with a gradient effect. R ; Specifically, the gradient direction is determined based on the required gradient material properties. and gradient difference According to perpendicular to Perform equidistant layering slices in the direction to obtain M Layer segmentation and slicing Then, calculate and adjust based on the gradient difference. The grayscale values ​​of each segment are adjusted to obtain a grayscale processing result with a gradient effect. :Ri=Gi+ΔG×i−1, where i=1,2,…,M, R i For the first i The grayscale value of the layer slice, where 0 < R i ≤1; S3. The grayscale processing result with gradient effect R Equidistant slices are cut along the direction perpendicular to the Z-axis to generate... N Layer lateral slices R1, R2, ..., RN; S4. Process each horizontal slice separately. Perform a 360-degree Radon transform, where k = 1, 2, ..., N, so that each horizontal slice yields 360 sets of projection data. , Each set of data corresponds to the projection data for each angle, and then the projection data for each angle... Perform filtering operations (e.g., using a low-pass filter) to obtain the filtered projection data for each angle. ; S5. Filtered projection data from N horizontal slices at the same angle. Stacked together in order along the Z-axis, the resulting grayscale image with a gradient effect is formed. R Projection slice at the corresponding angle Sj = StackF1j,F2j,…,FNj; S6. Print the projection slices on the printer. Projecting in angular order produces a structure with a gradient effect. For example, the gradient effect could be from soft to hard.

[0033] In step S1, the three-dimensional model is composed of a large number of triangles, each triangle being defined by three vertices and a normal vector; step S1 specifically includes: S11. Find the minimum and maximum values ​​of each triangle vertex to determine the bounding box of each triangle; assume the three vertices of the triangle are ( ), ( ), ( If the minimum and maximum values ​​of the bounding box are given by the following formulas: Minimum value:

[0034] Maximum value:

[0035] S12. For each point within the bounding box of each triangle, use a ray casting algorithm to determine whether it is inside the triangle; the ray casting algorithm is implemented through the following steps: Select a point P Make it inside the bounding box, and record it as... From point P Cast a ray along the positive Z-axis; count the number of times the ray intersects the triangle; if the number of intersections is even, the point is outside the triangle; if the number of intersections is odd, the point is inside the triangle. Let the three vertices of the triangle be ( ), ( ), ( The ray direction is (0,0,1); use the triangle plane equation and the ray equation to find the intersection point. Equation of the plane of the triangle:

[0036] Wherein, normal vector n= ( a,b,c ) is obtained through vertex calculation; Ray equation:

[0037] Substituting the ray equation into the plane equation, we can solve for t to obtain the intersection point r(t); To determine if a ray passes through a triangle: First, calculate whether the intersection point r(t) lies in the plane containing the triangle. Then, use the centroid coordinate method to determine if the intersection point is inside the triangle. If the following conditions are met, then the point is inside the triangle:

[0038] If 𝛼≥0, 𝛽≥0, 𝛾≥0 and 𝛼+𝛽+𝛾=1, then the intersection point is inside the triangle; For each triangle, calculate whether the ray passes through it and count the total number of times it passes through; if the number of times it passes through is odd, the point is inside the triangle; if the number of times it passes through is even, the point is outside the triangle. S13. Based on the results of ray projection, fill the corresponding elements in the array with the corresponding numbers. Use the number 1 to represent points inside the triangle and points on the boundary of the triangle, and the number 0 to represent points outside the triangle.

[0039] S14, All P The set of points constitutes the grayscale processing result of the three-dimensional model. G .

[0040] Understandably, in the above steps, each layer of segmentation or each horizontal slice is two-dimensional slice data.

[0041] Furthermore, in step S4, a Radon transform is performed on each slice, and each slice can obtain 360 sets of projection data. Each set of data corresponds to the projection data of each angle. Then, a Low-pass filter is used to filter the projection data.

[0042] For the k-th layer slice Bin Laden transformed into:

[0043] Where R represents the Radon transform, θ is the projection angle, and t is the projection distance.

[0044]

[0045] in, F and F −1 These represent the Fourier transform and the inverse Fourier transform, respectively. H ( f ) is a Low-pass filter.

[0046] Furthermore, in step S5, the projection data of each slice at the same angle are stacked together in order along the Z-axis to form... G Projected slice at this angle.

[0047] Let φ be a fixed projection angle, then the stacked projection slices for:

[0048] Furthermore, in step S6, the projection slices are projected onto the printer in angular order to print a structure with a gradient effect (e.g., from soft to hard).

[0049] It is understood that in this embodiment, step S2 is a key step of the present invention, and the execution process of step S2 will be further described below.

[0050] Specifically, the gradient-like direction includes at least one of the following directions: the X-axis direction, the Y-axis direction, the Z-axis direction, and the direction from the inside out; When the gradient direction is the X-axis direction, the grayscale processing result is... G Obtain by equidistant layering along the vertical X-axis direction. M Layer segmentation slice, wherein the M The number of slices in a layer can be M 1; When the gradient direction is the Y-axis direction, the grayscale processing result is... G Obtain by equidistant layering and slicing along the vertical Y-axis. M Layer segmentation slice, wherein the M The number of slices in a layer can be M 2; When the gradient direction is the Z-axis direction, the grayscale processing result is... G Equidistant slices are obtained by slicing the material along the vertical Z-axis. M Layer segmentation slice, wherein the MThe number of slices in a layer can be M 3; When the gradient direction is from the inside out, the grayscale processing result is... G Starting from the center, the process gradually expands outwards until it covers the entire grayscale result. G The surface is defined, thus defining a region from the inside out; specifically, calculations are performed. G The straight-line distance (d=sqrt(A^2+B^2+C^2)) from the starting point (0,0,0) to each voxel point (A,B,C) is used to group voxels with equal distance d into the same level, thereby resolving the grayscale processing result. G The region is divided into multiple layers from the inside to the outside to obtain M Layer segmentation slice, wherein the M The number of slices in a layer can be M 4.

[0051] Understandably, the above M 1. M 2. M 3. M The value of 4 can be the same or different; preferably, M 1= M 2= M 3= M 4= M ,in, M Greater than or equal to 2.

[0052] Understandably, in the grayscale processing result... G Perform equidistant layering and slicing according to the direction perpendicular to the gradient to obtain... M After the layers are segmented and sliced, the grayscale value of each segmented slice can be calculated and adjusted based on the degree difference.

[0053] In an optional embodiment, when the gradient difference is a fixed value between two n1 and n2, step S2 is performed in any of the following ways: Method 1: Convert the grayscale processing result G Two layers of segmented slices are obtained by equidistantly slicing the slices in a direction perpendicular to the gradient. The gray values ​​of the first layer of segmented slices are adjusted to n1 (0 < n1 ≤ 1), and the gray values ​​of the second layer of segmented slices are adjusted to n2 (0 < n2 ≤ 1). Method 2: Convert the grayscale processing result G Perform equidistant layering and slicing according to the direction perpendicular to the gradient to obtain... M Layer segmentation and slicing will be in MThe grayscale value of the first half of the segmentation slice is adjusted to n1 (0 < n1 ≤ 1), and the grayscale value of the slice in the first half of the segmentation slice is adjusted to n1 (0 < n1 ≤ 1). M The grayscale value of the segmented slice in the second half of / 2 is adjusted to n2 (0 < n2 ≤ 1).

[0054] For example, the gradient difference can be set to 0.8 and 1, for G Each slice in the middle is in M The grayscale value of the first half of the slice is 0.8, which is within the range of / 2. M The grayscale value of the slice in the second half of / 2 is 1. Of course, the grayscale values ​​of the two can also be interchanged, thus achieving the simplest gradient difference effect (see reference). Figures 3-5 ).

[0055] In another optional embodiment, when the gradient difference is a continuous gradient difference range, the grayscale processing result is calculated using an arithmetic progression method based on the gradient difference range. G The calculated grayscale value is applied to each segmented slice according to the grayscale value of each slice in the direction perpendicular to the gradient, thereby creating a gradient difference between adjacent slices. The gradient difference ranges from n1 to n2; or, the gradient difference ranges from n1 to n2 to n1; where 0 < n1 ≤ 1, 0 < n2 ≤ 1. For example, the gradient difference range can be set to 0.8 to 1, or 0.8 to 1 to 0.8. G Each slice in the algorithm can be calculated using the arithmetic progression method (or the sigmoid function, softplus function, or exponential function) to determine its gray value in a gradient direction (e.g., along the Z-axis). The resulting gray value is then applied to each slice, thus creating a gradient difference between adjacent slices.

[0056] Additionally, when the gradient direction is from the inside out, the grayscale processing result is... G The region is divided into multiple layers from the inside out, and a gradient value is assigned to each layer to represent the strength or direction of the gradient at that layer. Different gradient assignment strategies can be selected, such as linear increment or exponential increment, to ensure that there is a gradient difference between each pair of layers.

[0057] Furthermore, as a preferred embodiment, when the gradient direction includes at least the Z-axis direction, the grayscale processing result is... G The number of segments obtained by equidistant slicing along the vertical Z-axis direction (e.g.) M ) equals the number of the transverse slices (e.g. N ,and M = N This process converts the grayscale result into a grayscale value. GThe lateral slices obtained by equidistant layering along the vertical Z-axis and after grayscale adjustment are used as the horizontal slices, thus omitting the execution of step S3.

[0058] Below, for reference Figure 1 and Figure 2 The present invention will be described in detail through a specific embodiment.

[0059] In this specific embodiment, the direction with gradient properties is determined as the Z-axis direction based on the required gradient material characteristics, and the grayscale processing result is then... G The number of segments obtained by equidistant slicing along the vertical Z-axis direction (e.g.) M ) equals the number of the transverse slices (e.g. N ,and M = N =130), such as Figure 1 As shown, the specific implementation provides a volumetric bio-3D printing algorithm for achieving grayscale gradient projection, which includes the following steps: S101. Convert the three-dimensional object (i.e., the three-dimensional model) to grayscale. Specifically, the 3D model is converted to grayscale to obtain the grayscale result. G The grayscale processing procedure can be referred to the above description.

[0060] S102. Slice the three-dimensional object along the Z-axis; S103. Adjust the parameters (grayscale values) of each slice to give the 3D object a gradient difference; S104. Perform Radon transform and filter on each slice; S105. Stack up the filtered projection data in sequence to form projection slices at the corresponding angles. S106. Project the projection slices onto the printer in angular order and print out the desired result.

[0061] Figure 2 It corresponds Figure 1 The projection slicing generation process and printing principle diagram described in the steps can be understood as follows: Figure 2 middle: 1. First, convert the 3D object to grayscale, and then perform gradient processing. Then, slice the processed 3D object along the direction perpendicular to the Z-axis. This corresponds to steps S101 and S102. Parameters: 130 layers, 60*130 resolution.

[0062] 2. Adjust the parameters of each slice according to the set gradient difference range so that the 3D object has a gradient difference. Corresponding to step S103, the parameters are 0.8~1.

[0063] 3. Perform a 360-degree Radon transformation on each slice, then perform a filtered back projection operation on the transformed data, and finally stack all the 45-degree projection data onto the 45-degree projection slice, corresponding to steps S104 and S105. Parameters: 130 layers, 85*130 resolution.

[0064] 4. Project the slides onto the printer in angular order and print out the desired result.

[0065] As can be seen, the volumetric bio-3D printing algorithm for achieving grayscale gradient projection provided by this invention develops a method for producing multi-performance materials in a single print run based on volumetric 3D printing, ranging from stretchable elastomers to rigid thermosetting materials, resulting in highly complex and functional printed structures. Furthermore, this method allows for adjustment of material properties as needed, such as achieving elasticity and stretchability at different degrees of hardening, for example, 0.5~1, 0.8~1, or 0.8~1~0.8, etc.

[0066] refer to Figures 3-5 , Figures 3-5 The images show actual printing results of three different structures obtained using the volumetric bio-3D printing algorithm for grayscale gradient projection provided by this invention. Figures 3-5 In the three actual printed structures shown, each structure has two layers of gradient effects. It is evident that the volumetric bio-3D printing algorithm for achieving grayscale gradient projection provided by this invention can realize gradient printing in practical applications. It is understandable that, except... Figures 3-5 Beyond the simplest gradient difference effect shown, the volumetric bio-3D printing algorithm for grayscale gradient projection provided by this invention can also achieve more complex functional gradient effects. Figure 6 (There are four gradient layers), which will not be elaborated here.

[0067] like Figure 7 As shown, this embodiment of the invention provides a volumetric bio-3D printing device for realizing grayscale gradient projection, comprising: Grayscale processing module 51 is used to perform grayscale processing on the 3D model to obtain the grayscale processing result. G ; Gradient processing module 52 is used to determine the gradient direction and gradient difference based on the required gradient material properties, and to process the grayscale result according to the gradient direction and gradient difference. G Gradient processing includes: converting the grayscale processing result... G Perform equidistant layering and slicing according to the direction perpendicular to the gradient to obtain... MThe layers are segmented into slices, and then the grayscale value of each slice is calculated and adjusted based on the gradient difference to obtain a grayscale processing result with a gradient effect. R ; The horizontal slice generation module 53 is used to process the grayscale processing result with gradient effect. R Equidistant slices are cut along the direction perpendicular to the Z-axis to generate... N Layer horizontal slicing; The projection data conversion module 54 is used to perform Laden transformation on each horizontal slice, so that each horizontal slice obtains 360 sets of projection data, each set of data corresponds to the projection data of each angle, and then the projection data of each angle is filtered to obtain the filtered projection data of each angle. The projection slice generation module 55 is used to stack the filtered projection data of each horizontal slice at the same angle in order along the Z-axis to form the grayscale processing result with gradient effect. R Projected slices at the corresponding angle; The printing module 56 is used to project the projection slices onto the printer in an angular sequence, thereby printing a structure with a gradient effect.

[0068] The specific implementation of the volumetric bio-3D printing device for implementing grayscale gradient projection in this embodiment can be referred to the description of the volumetric bio-3D printing algorithm for implementing grayscale gradient projection in the above embodiment, and will not be repeated here.

[0069] like Figure 8 As shown, an embodiment of the present invention provides an electronic device 300, including a memory 310 and a processor 320. The memory 310 is used to store one or more computer instructions, and the processor 320 is used to call and execute the one or more computer instructions, thereby realizing any of the above-described volumetric bio-3D printing algorithms for implementing grayscale gradient projection.

[0070] In other words, the electronic device 300 includes a processor 320 and a memory 310, wherein computer program instructions are stored in the memory 310, wherein when the computer program instructions are executed by the processor, the processor 320 executes any of the above-described volumetric bio-3D printing algorithms for implementing grayscale gradient projection.

[0071] Furthermore, such as Figure 8 As shown, the electronic device 300 also includes a network interface 330, an input device 340, a hard disk 350, and a display device 360.

[0072] The various interfaces and devices described above can be interconnected via a bus architecture. The bus architecture can include any number of interconnecting buses and bridges. Specifically, various circuits representing one or more central processing units (CPUs) (represented by processor 320) and one or more memories (represented by memory 310) are connected together. The bus architecture can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits. It is understood that the bus architecture is used to implement communication between these components. In addition to the data bus, the bus architecture also includes a power bus, a control bus, and a status signal bus, all of which are well known in the art and will not be described in detail herein.

[0073] The network interface 330 can be connected to a network (such as the Internet, a local area network, etc.), obtain relevant data from the network, and store it in the hard disk 350.

[0074] The input device 340 can receive various instructions input by the operator and send them to the processor 320 for execution. The input device 340 may include a keyboard or a clicking device (e.g., a mouse, trackball, touchpad, or touchscreen).

[0075] The display device 360 ​​can display the results obtained by the processor 320 executing instructions.

[0076] The memory 310 is used to store programs and data necessary for the operation of the operating system, as well as intermediate results and other data during the calculation process of the processor 320.

[0077] It is understood that the memory 310 in the embodiments of the present invention can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be a read-only memory (ROM). R O M Programmable read-only memory (P) R O M Erasable Programmable Read-Only Memory (EPI) R O M Electrically Erasable Programmable Read-Only Memory (EEPROM) R O M ) or flash memory. Volatile memory may be random access memory (RAM), which is used as an external cache. The memory 310 of the apparatus and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0078] In some implementations, memory 310 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof: operating system 311 and application programs 312.

[0079] The operating system 311 includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 312 includes various applications, such as a browser, used to implement various application functions. Programs implementing the methods of this embodiment of the invention can be included in the application program 312.

[0080] When the processor 320 calls and executes the application program and data stored in the memory 310, specifically the program or instructions stored in the application program 312, it performs grayscale processing on the 3D model to obtain the grayscale processing result. G Based on the required gradient material properties, determine the gradient direction and gradient difference, and apply the grayscale processing result based on the gradient direction and gradient difference. G Gradient processing includes: converting the grayscale processing result... G Perform equidistant layering and slicing according to the direction perpendicular to the gradient to obtain... M The layers are segmented into slices, and then the grayscale value of each slice is calculated and adjusted based on the gradient difference to obtain a grayscale processing result with a gradient effect. R The grayscale processing result with gradient effect R Equidistant slices are cut along the direction perpendicular to the Z-axis to generate... N The process involves slicing the horizontal layers; performing a Laden transform on each horizontal slice to obtain 360 sets of projection data for each slice, with each set corresponding to projection data at each angle. Then, the projection data at each angle is filtered to obtain filtered projection data for each angle. The filtered projection data at the same angle from each horizontal slice are stacked together in Z-axis order to form the grayscale processing result with a gradient effect. R Projection slices at corresponding angles; project the projection slices onto the printer in angular order to print a structure with a gradient effect.

[0081] The volumetric bio-3D printing algorithm for implementing grayscale gradient projection disclosed in the above embodiments of the present invention can be applied to, or implemented by, processor 320. Processor 320 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed through integrated logic circuits in the hardware of processor 320 or through software instructions. The processor 320 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or an off-the-shelf programmable gate array (FPGA). GA) or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory 310, and processor 320 reads the information in memory 310 and, in conjunction with its hardware, completes the steps of the above methods.

[0082] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), or field-programmable gate arrays (FPGAs). G A) A general-purpose processor, controller, microcontroller, microprocessor, other electronic unit or combination thereof for performing the functions described in this application.

[0083] For software implementation, the techniques described herein can be achieved through modules (e.g., procedures, functions, etc.) that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented within the processor or externally.

[0084] Specifically, the processor 320 is also used to read the computer program and execute any of the above-described volumetric bio-3D printing algorithms that implement grayscale gradient projection.

[0085] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, cause the processor to perform the above-described method, such as the method performed by the above-described electronic device, which will not be elaborated here.

[0086] Optionally, the storage medium involved in this application, such as a computer-readable storage medium, may be non-volatile or volatile.

[0087] Optionally, the computer-readable storage medium may primarily include a stored program area and a stored data area. The stored program area may store the operating system, at least one application program required for a given function, etc.; the stored data area may store data created based on the use of blockchain nodes, etc. Here, the blockchain referred to in this application is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and cryptographic algorithms. A blockchain is essentially a decentralized database, a chain of data blocks linked using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain may include a blockchain underlying platform, a platform product service layer, and an application service layer, etc.

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

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

[0090] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can be physically comprised separately, or two or more units can be integrated into one unit. The integrated unit described above can be implemented in hardware or in the form of hardware plus software functional units.

[0091] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the transmission and reception methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0092] The above description discloses only some preferred embodiments of the present invention, and should not be construed as limiting the scope of the present invention. Those skilled in the art can understand that all or part of the processes of the above embodiments can be implemented, and equivalent changes made in accordance with the claims of the present invention are still within the scope of the invention.

Claims

1. A method for volumetric bio-3D printing that achieves grayscale gradient projection, characterized in that, The method includes the following steps: S1. Convert the 3D model to grayscale to obtain the grayscale result. G ; S2. Based on the required gradient material properties, determine the gradient direction and gradient difference, and apply the grayscale processing result based on the gradient direction and gradient difference. G Gradient processing includes: converting the grayscale processing result... G Perform equidistant layering and slicing according to the direction perpendicular to the gradient to obtain... M The layers are segmented into slices, and then the grayscale value of each slice is calculated and adjusted based on the gradient difference to obtain a grayscale processing result with a gradient effect. R ; S3. The grayscale processing result with gradient effect R Equidistant slices are cut along the direction perpendicular to the Z-axis to generate... N Layer horizontal slicing; S4. Perform Laden transform on each horizontal slice to obtain 360 sets of projection data for each horizontal slice. Each set of data corresponds to the projection data of each angle. Then, perform a filtering operation on the projection data of each angle to obtain the filtered projection data of each angle. S5. The filtered projection data of each horizontal slice at the same angle are stacked together in order along the Z-axis to form the grayscale processing result with gradient effect. R Projected slices at the corresponding angle; S6. Project the projection slices onto the printer in angular order to print a structure with a gradient effect; The gradient direction includes at least one of the following directions: the X-axis direction, the Y-axis direction, the Z-axis direction, and the direction from the inside out; When the gradient direction is the X-axis, Y-axis, or Z-axis direction, the grayscale processing result will be... G The desired result is obtained by equidistant layering and slicing along the vertical X-axis, Y-axis, or Z-axis. M Layer segmentation and slicing; When the gradient direction is from the inside out, the grayscale processing result is... G Starting from the center, the process gradually expands outwards until it covers the entire grayscale result. G The surface is defined, thus defining a region from the inside out; specifically, calculations are performed. G The straight-line distance d from the starting point (0,0,0) to each voxel point (A,B,C) is d=sqrt(A 2 +B 2 +C 2 The voxels with a distance d from each other are grouped into the same level, thereby resolving the grayscale processing result. G The region is divided into multiple layers from the inside to the outside to obtain the desired result. M Layer segmentation and slicing; When the gradient direction includes at least the Z-axis direction, the grayscale processing result is... G The number of segments obtained by equidistant slicing along the vertical Z-axis is equal to the number of horizontal slices, thereby converting the grayscale result... G The segmented slices obtained by equidistant layering along the vertical Z-axis and after grayscale adjustment are used as the horizontal slices, thus omitting the execution of step S3; In step S2, if the gradient difference is a continuous gradient difference range, then the grayscale processing result is calculated using the arithmetic progression method based on the gradient difference range. G The calculated gray values ​​are applied to each segmented slice according to the gray values ​​of each layer of the segmented slice in the direction perpendicular to the gradient, so that there is a gradient difference between two adjacent segmented slices.

2. The method for volumetric biological 3D printing based on grayscale gradient projection according to claim 1, characterized in that, In step S1, the three-dimensional model is composed of a large number of triangles, each triangle being defined by three vertices and a normal vector; step S1 specifically includes: S11. Find the minimum and maximum values ​​of each triangle vertex to determine the bounding box of each triangle; assuming triangles... The three vertices of the shape are ( ), ( ), ( If the minimum and maximum values ​​of the bounding box are given by the following formulas: Minimum value: ; Maximum value: ; S12. For each point within the bounding box of each triangle, use a ray casting algorithm to determine whether it is inside the triangle; the ray casting algorithm is implemented through the following steps: Select a point P Make it inside the bounding box, and record it as... From point P Cast a ray along the positive Z-axis; count the number of times the ray intersects the triangle; if the number of intersections is even, the point is outside the triangle; if the number of intersections is odd, the point is inside the triangle. Let the three vertices of the triangle be ( ), ( ), ( The ray direction is (0,0,1); use the triangle plane equation and the ray equation to find the intersection point. Equation of the plane of the triangle: ; Wherein, normal vector n= ( a,b,c ) is obtained through vertex calculation; Ray equation: ; Substituting the ray equation into the plane equation, we can solve for t to obtain the intersection point r(t); To determine if a ray passes through a triangle: First, calculate whether the intersection point r(t) lies in the plane containing the triangle. Then, use the centroid coordinate method to determine if the intersection point is inside the triangle. If the following conditions are met, then the point is inside the triangle: ; if ≥0、 ≥0、 ≥0 and If the value is 1, then the intersection point is inside the triangle; For each triangle, calculate whether the ray passes through it and count the total number of times it passes through; if the number of times it passes through is odd, the point is inside the triangle; if the number of times it passes through is even, the point is outside the triangle. S13. Based on the results of ray projection, fill the corresponding elements in the array with the corresponding numbers. Use the number 1 to represent points inside the triangle and points on the boundary of the triangle, and the number 0 to represent points outside the triangle. ; S14, All P The set of points constitutes the grayscale processing result of the three-dimensional model. G .

3. The method for volumetric biological 3D printing based on grayscale gradient projection according to claim 1, characterized in that, In step S2, the grayscale value range for forming the gradient difference is n1~n2; or, the grayscale value range for forming the gradient difference is n1~n2~n1; wherein, and satisfy .

4. The method for volumetric biological 3D printing based on grayscale gradient projection according to claim 1, characterized in that, When the grayscale value that forms the gradient difference is in the range of n1 to n2, step S2 is performed in any of the following ways: Method 1: Convert the grayscale processing result G Two layers of segmented slices are obtained by equidistant slicing along a gradient-like direction. The grayscale value of the first layer of segmented slices is adjusted to n1, where 0 < 0. ≤1, and adjust the grayscale value of the second layer segment to n2, 0< ≤1; Method 2: Convert the grayscale processing result G Perform equidistant layering and slicing according to the direction perpendicular to the gradient to obtain... M Layer segmentation and slicing will be in M The grayscale values ​​of the first half of the segmented slice are adjusted to n1, 0 < ≤1, and will be in M The grayscale value of the segmented slice in the latter half of / 2 is adjusted to n2, 0< ≤1.

5. A volumetric bio-3D printing apparatus for realizing grayscale gradient projection, used to perform the volumetric bio-3D printing method for realizing grayscale gradient projection as described in any one of claims 1-4, characterized in that, include: The grayscale conversion module is used to convert 3D models to grayscale to obtain the grayscale result. G ; The gradient processing module is used to determine the gradient direction and gradient difference based on the required gradient material properties, and to process the grayscale result according to the gradient direction and gradient difference. G Gradient processing includes: converting the grayscale processing result... G Perform equidistant layering and slicing according to the direction perpendicular to the gradient to obtain... M The layers are segmented into slices, and then the grayscale value of each slice is calculated and adjusted based on the gradient difference to obtain a grayscale processing result with a gradient effect. R ; The horizontal slice generation module is used to process the grayscale result with gradient effect. R Equidistant slices are cut along the direction perpendicular to the Z-axis to generate... N Layer horizontal slicing; The projection data conversion module is used to perform Laden transformation on each horizontal slice, so that each horizontal slice has 360 sets of projection data, each set of data corresponds to the projection data of each angle, and then the projection data of each angle is filtered to obtain the filtered projection data of each angle. The projection slice generation module is used to stack the filtered projection data of each horizontal slice at the same angle in order along the Z-axis to form the grayscale processing result with gradient effect. R Projected slices at the corresponding angle; The printing module is used to project the projection slices onto the printer in an angular sequence, thereby printing a structure with a gradient effect; The gradient direction includes at least one of the following directions: the X-axis direction, the Y-axis direction, the Z-axis direction, and the direction from the inside out; When the gradient direction is the X-axis, Y-axis, or Z-axis direction, the grayscale processing result will be... G The desired result is obtained by equidistant layering and slicing along the vertical X-axis, Y-axis, or Z-axis. M Layer segmentation and slicing; When the gradient direction is from the inside out, the grayscale processing result is... G Starting from the center, the process gradually expands outwards until it covers the entire grayscale result. G The surface is defined, thus defining a region from the inside out; specifically, calculations are performed. G The straight-line distance d from the starting point (0,0,0) to each voxel point (A,B,C) is d=sqrt(A 2 +B 2 +C 2 The voxels with a distance d from each other are grouped into the same level, thereby resolving the grayscale processing result. G The region is divided into multiple layers from the inside to the outside to obtain the desired result. M Layer segmentation and slicing; When the gradient direction includes at least the Z-axis direction, the grayscale processing result is... G The number of segments obtained by equidistant slicing along the vertical Z-axis is equal to the number of horizontal slices, thereby converting the grayscale result... G The horizontal slices are obtained by equidistant layering along the vertical Z-axis and then adjusted for grayscale values. This eliminates the need for the gradient-effect grayscale processing result to be processed by the horizontal slice generation module. R Perform equidistant layering along the direction perpendicular to the Z-axis to generate N Layer horizontal slicing; In the gradient processing module, if the gradient difference is a continuous range, the grayscale processing result is calculated using an arithmetic progression method based on this gradient difference range. G The calculated gray values ​​are applied to each segmented slice according to the gray values ​​of each layer of the segmented slice in the direction perpendicular to the gradient, so that there is a gradient difference between two adjacent segmented slices.

6. An electronic device, characterized in that, The device includes a processor and a memory, wherein the memory is used to store a computer program, the computer program including program instructions, and the processor is configured to invoke the program instructions to execute the volumetric bio-3D printing method for implementing grayscale gradient projection as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the volumetric bio-3D printing method for implementing grayscale gradient projection as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Gray-level digital light processing (DLP) printing method

    CN110202784A

  • Contour line-based functionally gradient material 3D printing path planning method

    CN111319266A