Method of generating volumetric texture of 3D model of physical object

Through the method of generating volume textures, triangulated surfaces and voxel models are used to achieve real bump mapping effects in 3D printing, solving the problem that existing technologies cannot achieve these effects on physical objects, and improving processing efficiency and detail levels. .

CN118575199APending Publication Date: 2024-08-30HYPERFORGE HLDG PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280075527.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2021-09-16
Filing Date
2022-07-07
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing technology cannot achieve bump mapping effects in physical 3D printing because the normal vector of the surface can only be adjusted in simulation, and these effects cannot be achieved on the surface of a physical object in the real world.

Method used

Achieve realism in 3D printing by generating triangulated surfaces with multiple triangles and generating parallel planes along surface normals, projecting angular normals to create volumetric regions and voxel models, and assigning texture coordinates to represent volumetric textures. Bump mapping effect.

Benefits of technology

Enables digital visualization on physical objects at virtually any level of detail, such as rough or patterned surfaces, significantly improving processing and storage efficiency and reducing voxel model complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575199A
    Figure CN118575199A
Patent Text Reader

Abstract

The invention relates to a method for generating a volumetric texture of a 3D model of a physical object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for generating a volumetric texture of a 3D model of a physical object. Background Art

[0002] It is known to process boundary surface models with reference to their appearance. For this purpose, textures, in particular two-dimensional image textures, are usually applied to the surfaces of 3D models in visualization programs. By changing the surface or boundary surfaces of the 3D model, the surface of the object can be enriched with details without thereby increasing the complexity of the object's geometry. For example, the color of the surface, the normal vectors of a surface portion can be changed, or even the surface portion can be displaced.

[0003] Specifically, the 3D effect can be simulated by adjusting the normal vector of the surface portion of the object. This visualization technique is also called "bump mapping". Bump mapping can be used, for example, to simulate a rough surface on a 3D model of an object, even if the surface itself is smooth.

[0004] However, with regard to 3D printing, common methods for bump mapping objects have the following disadvantages: the simulated 3D effects only exist virtually; that is, they are missing from the physical 3D printed object or cannot be printed. This is because the normal vector of the surface can only be changed or adjusted in the simulation, but not in the case of the real surface of a physical object in the real world. Summary of the invention

[0005] It is therefore an object of the present invention to provide a method which enables bump mapping of real physical objects, wherein the real physical objects are produced by a 3D printing process.

[0006] Solution according to the invention

[0007] This object is achieved by a method having the features according to independent claim 1. Advantageous developments of the invention are defined in the dependent subclaims.

[0008] According to the present invention, a method for generating a volume texture of a 3D model of a physical object is provided. The 3D model includes a triangulated surface having a plurality of first triangles. Each of the plurality of first triangles has a surface normal. Each angle of each of the plurality of first triangles has a first texture coordinate and an angle normal.

[0009] For each first triangle, in a first step, a first plane parallel to the first triangle is generated at a first specified distance along the surface normal of the first triangle.

[0010] In a second step, a second triangle is generated by projecting the angle normal of the first triangle onto the first plane.

[0011] In the third step, a volume region is generated. The volume region has a plurality of second voxels and includes the first triangle and the second triangle; that is, the first triangle and the second triangle are located within the volume region. Therefore, the volume region surrounds the plurality of second voxels and the first triangle.

[0012] In a fourth step, an iteration is performed on the plurality of second voxels, wherein a first distance of the corresponding second voxel from the first triangle is calculated, and a third triangle projected on a second parallel plane spaced apart by the first distance is generated. Second texture coordinates are assigned to each corner of the third triangle. Third texture coordinates are derived from the second texture coordinates for the corresponding second voxel.

[0013] In the fifth step, a voxel model is generated. The voxel model includes a first voxel. A second voxel corresponds to the first voxel. A third texture coordinate and a first distance of at least one second voxel are assigned as 3D coordinates to the corresponding first voxel. Therefore, the voxel model represents a volume texture of the 3D model.

[0014] The method according to the invention is applicable to 3D models with any triangulated surface and its use is therefore wide-ranging.Volume textures represented by voxel models have many advantages.

[0015] First, volume textures can be modeled with almost any level of detail. Each voxel of a voxel model of a volume texture can have a different material or a different color, or can differ in other manufacturing parameters. In this way, a digital bump map applied to a 3D model in a conventional visualization program can be transferred from a 3D printer to a real physical object.

[0016] Second, voxel models can be processed very efficiently and robustly, i.e., without numerical instabilities. For example, processing operations of voxel models can be parallelized and / or accelerated by means of binary computation operations. Thus, volume textures represented by voxel models can be processed significantly faster and more efficiently than volume textures represented by polygon-based models.

[0017] Third, the method according to the invention is based on geometric operations that are easy to perform and not very computationally intensive, such as unfolding parallel planes or calculating the intersection of angular normals with parallel planes. Therefore, the method is able to efficiently generate second voxels and calculate their texture coordinates. Therefore, the method according to the invention can also be applied to larger boundary surface models or surfaces of objects.

[0018] It is advantageous to determine the union of the second voxels of all volume regions in the joining step in order to remove overlapping second voxels. Overlapping second voxels occur in particular in the case of adjacent first triangles of concave surface portions of the 3D model.

[0019] An advantage of forming the union of the second voxels of all volumetric regions is that overlapping second voxels are eliminated, which improves the efficiency of processing volumetric textures in two aspects: speeding up the processing of volumetric textures and reducing the memory required to store the resulting voxel model (ie, volumetric texture).

[0020] It is also advantageous if the voxel model is applied to the 3D model of the physical object in a transformation step. To this end, the 3D texture coordinates of the first voxel of the voxel model are transformed into Cartesian coordinates X, Y and Z.

[0021] By applying the voxel model to the 3D model, a 3D model containing a volume texture can be produced in a 3D printer. In this way, digital visualization effects, such as rough or patterned surfaces, can be achieved on physical objects at almost any level of detail.

[0022] In an advantageous aspect of the invention, a distance attribute is assigned to each first voxel of the voxel model, wherein a second distance is assignable to the distance attribute. The second distance is measured between the corresponding first voxel and a second surface of the physical object of the termination volume texture.

[0023] Typically, not a shell of constant thickness is placed as a volume texture over the surface of the object, but a shell of locally varying thickness. It is therefore advantageous to assign to each voxel a distance to the resulting surface of the physical object (i.e. the surface obtained by applying the volume texture to the original physical object) by means of a distance attribute.

[0024] It may be advantageous to assign a second specified distance to the distance attribute of the selected first voxels in order to form the volume texture.

[0025] In an advantageous aspect of the method according to the invention, those of the second voxels are discarded whose first distance to the first triangle is negative or greater than a first specified distance.

[0026] Thereby, voxels which are located below the surface of the object or far outside the volume texture to be applied can be eliminated. Thus, the number of second voxels is reduced to the number of second voxels required for generating the volume texture.

[0027] Advantageously, second voxels for which one of the third texture coordinates in the second voxels is negative are discarded.

[0028] Further limiting the number of second voxels to the number minimally required to represent the volume texture has the technical advantage of significantly reducing the complexity of the voxel model. This results in faster or more efficient voxel model processing.

[0029] Furthermore, it is advantageous if the second voxels of the volume region are respectively arranged identically, ie in parallel, for each of the first triangles.

[0030] The spatial arrangement of the volume regions may define the spatial arrangement of the second voxels. Therefore, it is advantageous to arrange all volume regions in parallel. The second voxels arranged in parallel make it easier to process the voxel model as a whole. For example, with the second voxels arranged in parallel, binary operations, such as forming a union, may be performed more efficiently.

[0031] Advantageously, in a fourth step, the third texture coordinates are calculated as barycentric coordinates in the third triangle.

[0032] If, in the fourth step, the third texture coordinate (U V ; V V ), is further beneficial. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Further details and features of the method according to the invention and of specific embodiments, in particular advantageous embodiments, of the method according to the invention can be derived from the following description in conjunction with the accompanying drawings. In the drawings:

[0034] Figure 1 An exemplary embodiment of the first step of the method according to the invention is shown;

[0035] Figure 2 An exemplary embodiment of the second step of the method according to the invention is shown;

[0036] Figure 3 An exemplary embodiment of the third step of the method according to the present invention is shown;

[0037] Figure 4 An exemplary embodiment of a first part of the fourth step of the method according to the invention is shown;

[0038] Figure 5 shows an exemplary embodiment of the second part of the fourth step of the method according to the present invention; and

[0039] Figure 6 A flow chart showing an embodiment of the method according to the invention is shown.

[0040] Detailed description of the invention

[0041] Figure 1 The execution of the first step of the method according to the invention is illustrated.

[0042] The 3D model of the physical object for which the volume texture is to be generated comprises a triangulated surface having a plurality of first triangles. For example, the surface of the physical object may be represented by a triangulated irregular network (TIN). Here, two adjacent first triangles each share an edge and two corner points, such that the surface of the physical object is represented by a network of non-overlapping first triangles.

[0043] The following is based on Figure 1 This first triangle D1 shown illustrates the method according to the invention, wherein the method is correspondingly applied to all triangles of the surface. However, in one embodiment of the invention, the method may also be used only for a subset of the triangles of the surface, for example if a volume texture is to be provided to only one side of the 3D model.

[0044] Each corner of each first triangle D1 has a first texture coordinate U D1 ; V D1 Texture coordinates are usually generated by UV mapping. UV mapping is the process of generating a 2D image of the surface of a 3D model. The 2D image thus represents an unfolded network of triangles. The corners of the triangles (i.e., the nodes in the unfolded network) are assigned 2D texture coordinates U D1 ; V D1 , where each of the texture coordinates typically has a value in an interval between zero and one.

[0045] Each first triangle D1 has a surface normal N D .

[0046] Furthermore, each corner of each first triangle has an angle normal N D1 、N D2 、N D3 Depending on the curvature of the surface of the physical object, in an angle shared by two adjacent first triangles D1, the angle normal N of a triangle D1 May deviate from the angle normal of adjacent triangles by N D1 .

[0047] like Figure 1 As shown, in the first step S1, along the surface normal N of the first triangle D1 D A first plane E1 parallel to the first triangle is generated at a first specified distance z. The first specified distance z may determine the maximum thickness of the volume texture. The purpose of the following steps is to generate a voxel structure between the first plane E1 and the first triangle D1, wherein texture coordinates are assigned to the voxels.

[0048] Figure 2An embodiment of the second step of the method according to the present invention is illustrated.

[0049] In a second step S2, the angular normal N is generated by means of the first triangle D1. D1 ; N D2 ; N D3 The second triangle D2 is projected onto the first plane E1.

[0050] The three corner points of the second triangle D2 are defined by the angle normal N D1 ; N D2 ; N D3 The intersection with the first plane E1 is generated. Therefore, the second triangle D2 is arranged parallel to the first triangle D1 at the first specified distance z. Depending on the angle normal N D1 ; N D2 ; N D3 The second triangle D2 may have an area the same as that of the first triangle D1 (not shown), an area larger than that of the first triangle D1 (not shown), or an area larger than that of the first triangle D1 (not shown). Figure 2 ), or an area smaller than the first triangle D1 (not shown), wherein the angle of the first triangle D1 may also be different from the angle of the second triangle D2.

[0051] In the following step of the method according to the invention, a voxel structure is generated in the volume of a truncated pyramid or prism with a triangular base located between the first triangle D1 and the second triangle D2 .

[0052] Figure 3 An embodiment of the third step of the method according to the present invention is illustrated.

[0053] In a third step S3 , a volume region VB is generated, wherein the volume region VB has a number of second voxels VX2 . Furthermore, the volume region VB includes the first triangle D1 and the second triangle D2 ; ie, the first triangle D1 and the second triangle D2 are enclosed in the volume region.

[0054] The volume region VB can be generated in any size and orientation as long as it includes or surrounds the first triangle D1 and the second triangle D2. The volume region VB has a plurality of second voxels VX2. It is advantageous if the second voxels VX2 of the volume region VB are arranged parallel to the first triangle D1 and thus parallel to the first plane E1. It is also advantageous if the volume region VB is defined or represented by a plurality of second voxels VX2. Figure 3 In FIG. 1 , several second voxels VX2 are indicated by dashed edges. In contrast, selected second voxels VX2 (based on the selected second voxels VX2 , the following steps of the method according to the invention are explained in more detail) are shown by solid lines.

[0055] The second voxels VX2 serve as an aid for determining the texture coordinates of those voxels representing the volume texture. Therefore, the purpose of the following method steps is to characterize the second voxels VX2 of the volume area VB, i.e. to determine the texture coordinates of each second voxel relative to the surface of the physical object. Finally, the information obtained can be assigned to a voxel model VM representing the volume texture.

[0056] Figure 4 An embodiment of the first part of the fourth step of the method according to the invention is illustrated.

[0057] In a fourth step S4 of the method according to the invention, an iteration is performed on a second number of voxels VX2 of the volume region VB.

[0058] In a first part S4.1 of a fourth step S4, a first distance d of the corresponding second voxel VX2 from the first triangle D1 is calculated. The first distance d respectively indicates the distance of the second voxel VX2 from the considered surface portion of the physical object. Preferably, the minimum distance in terms of magnitude between the corresponding second voxel VX2 and the first triangle D1 is calculated.

[0059] Figure 5 An embodiment of the second part S4.2 of the fourth step S4 of the method according to the invention is illustrated.

[0060] In a second part S4.2 of the fourth step S4, a third triangle D3 is generated on a second plane E2, which is parallel to the first triangle D1 and is spaced apart from the first triangle D1 by a first distance d.

[0061] Therefore, firstly, the second plane E2 is generated at a first distance d from the first angle D1. The second plane E2 generated here is Figure 5 The corner points of the third triangle are marked in bold. D1 ; N D2 ; N D3 The intersection point with the second plane E2 is given. Assign a second texture coordinate U to each corner of the third triangle D3 D3 ; V D3 Here, the second texture coordinate U D3 ; V D3 The first texture coordinate U of the first triangle D1 D1 ; V D1 produce.

[0062] For the corresponding second voxel VX2, from the second texture coordinate U D3 ; V D3 Export the third texture coordinate U V ; V V Preferably, the third texture coordinate U V ; V VCalculated as the barycentric coordinates of the third triangle D3. Therefore, the third texture coordinate U V ; V V The position of the second voxel VX2 is indicated in each case relative to the corner points of the third triangle D3 in the second plane E2.

[0063] It is advantageous if those second voxels VX2 whose first distance d from the first triangle D1 is negative or greater than the first specified distance z are discarded. Preferably, the third texture coordinate U V ; V V Those voxels in the second VX2 whose third texture coordinate is negative are discarded.

[0064] Preferably, in the second part S4.2 of the fourth step S4, the third texture coordinate U of the second voxel VX2 may be calculated by means of trilinear interpolation between the second voxels (VX2). V ; V V The second voxels VX2 of the volume area VB preferably form a regular three-dimensional grid on which the third texture coordinate U V ; V V The values ​​are trilinearly interpolated.

[0065] After executing the fourth step of the method according to the invention, the second voxels VX2 thus fill the volume of the truncated pyramid or prism with the triangular base surface located between the first triangle D1 and the second triangle D2. Each second voxel VX2 has the third texture coordinates U V ; V V and a first distance d from the first triangle D1.

[0066] In the fifth step S5 of the method according to the present invention, a voxel model VM is generated. The voxel model VM includes a first voxel VX1, wherein a second voxel VX2 corresponds to the first voxel VX1. The third texture coordinate U V ; V V and the first distance d as 3D texture coordinates U; V; W assigned to the corresponding first voxel VX1. For example, the third texture coordinate U of the second voxel VX2 is V ; V V and the first distance d is copied to the corresponding first voxel VX1. Thus, the voxel model VM represents the volume texture of the 3D model of the physical object.

[0067] Preferably, before the voxel model VM is generated, in a joining step of the method according to the invention, the union of the second voxels VX2 of all volume regions VB is determined in order to remove overlapping second voxels VX2 .

[0068] Due to the different orientations of the corner normals of the adjacent first triangles D1 in the shared corner points, overlapping truncated pyramids with triangle bases may result, and thus overlapping second voxels VX2 may result. In general, the third texture coordinates U of the overlapping second voxels are V ; V V It can indeed be different, because in this case the third texture coordinate U V ; V V is associated with a different third triangle D3. However, the overlapping second voxel VX2 represents (at least partially) the same spatial unit twice, which can save the spatial unit once and thus improve processing efficiency.

[0069] Preferably, in a seventh step S7 of the method according to the invention, the voxel model is applied to the 3D model of the physical object.

[0070] It is particularly advantageous if a distance attribute is assigned to each first voxel VX1 of the voxel model, wherein a second distance d2 can be assigned to the distance attribute. The second distance d2 is measured between the corresponding first voxel VX1 and a second surface of the physical object at which the volume texture is terminated. A prerequisite is that the surface of the volume texture extends within a first specified distance z from the surface of the physical object.

[0071] Since the second specified distance d +∞ The distance attribute assigned to the selected first voxel VX1 can thus advantageously form a volume texture or its surface. +∞ Indicates that the corresponding first voxel VX1 is outside the volume texture. Therefore, by manipulating the distance value of the first voxel VX1, a volume texture can be generated with any desired level of detail, with the help of which a bump map for a physical object can be generated from a 3D printer.

[0072] Figure 6 A flow chart showing an embodiment of the method according to the invention is shown.

[0073] The above-described embodiments of the individual steps of the method according to the invention are related to one another and are described by Figure 6 The flowchart is summarized in Figure 2.

[0074] For each first triangle D1 of the triangulated surface of the 3D model of the physical object, Figure 6 The method steps S1 to S4 are performed in the order shown. Here, step S4 comprises an iteration on the second voxel VX2 of the corresponding volume region VB.

[0075] After the third texture coordinate U has been calculated for each second voxel VX2 of each volume region VB (ie for each first triangle D1 ), V ; V VAfterwards, in the fifth step S5, a voxel model VM is first generated. The voxel model includes a first voxel VX1, as described above. Next, the third texture coordinate UV; VV of the second voxel VX2 and the first distance d are assigned as 3D texture coordinates to the corresponding first voxel VX1.

[0076] Preferably, a union of the second voxels VX2 as described above may be formed in a union step, in particular before assigning the 3D texture coordinates U;V;W.

[0077] The generated voxel model VM represents the volume texture of the 3D model of the physical object.

[0078] In a transformation step (not shown), the triangulated surface and volume texture may be transformed into a Cartesian coordinate system, thereby producing a 3D model with the volume texture applied. Control instructions for a 3D printer may be derived from the resulting 3D model, which control instructions may be used to print a physical object enriched with a bump map.

[0079] List of reference numerals:

[0080] VM voxel model

[0081] VX1 First Voxel

[0082] VX2 Second Voxel

[0083] D1 First triangle

[0084] D2 Second triangle

[0085] D3 third triangle

[0086] E1 First plane

[0087] E2 Second Plane

[0088] ND Surface normal of the first triangle D1

[0089] N D1 ,N D2 ,N D3 Angle normal of the first triangle D1

[0090] U D1 ,V D1 First texture coordinate

[0091] U D3 ,V D3 Second texture coordinate

[0092] U V ,V V Third texture coordinate

[0093] U, V, W 3D texture coordinates of the voxel model VM

[0094] d First distance

[0095] d2 Second distance

[0096] z First specified distance

[0097] d +∞ Second specified distance

Claims

1. A method for generating a volume texture of a 3D model of a physical object, wherein - the 3D model comprises a triangulated surface having a plurality of first triangles (D1), - Each first triangle (D1) has a surface normal (N D ), - Each corner of each first triangle (D1) has a first texture coordinate (U D1 ; V D1 ) and the angular normal (N D1 ; N D2 ; N D3 ),and -where for each first triangle (D1): - In a first step (S1), along the surface normal (N D ) generates a first plane (E1) parallel to the first triangle (D1) at a first specified distance (z), - In a second step (S2), the angle normal (N) of the first triangle (D1) is generated D1 ; N D2 ; N D3 ) is projected onto the first plane (E1), - in a third step (S3), a volume region (VB) is generated, wherein the volume region (VB) has a second number of voxels (VX2) and comprises the first triangle (D1) and the second triangle (D2), - In a fourth step (S4), the plurality of second voxels (VX2) is iterated, wherein - calculating a first distance (d) of a corresponding second voxel (VX2) from said first triangle (D1), and - generating a third triangle (D3) on a second plane (E2), the second plane being parallel to the first triangle (D1) and being spaced apart from the first triangle (D1) by the first distance (d), wherein - assigning a second texture coordinate (U) to each corner of the third triangle (D3) D3 ; V D3 ),and - for the corresponding second voxel (VX2) from the second texture coordinate (U D3 ; V D3 ) Export the third texture coordinate (U V ; V V ),and - In a fifth step (S5), a voxel model (VM) is generated, wherein the voxel model comprises a first voxel (VX1), wherein the second voxel (VX2) corresponds to the first voxel (VX1), and the third texture coordinate (U V ; V V ) and the first distance (d) are assigned as 3D texture coordinates (U; V; W) to the corresponding first voxel (VX1), The voxel model (VM) is made to represent the volume texture of the 3D model.

2. The method according to claim 1, wherein in the combining step a union of the second voxels (VX2) of all volume regions (VB) is determined in order to remove overlapping second voxels (VX2).

3. Method according to any of the preceding claims, wherein in a transformation step the voxel model (VM) is applied to the 3D model of the physical object.

4. A method according to the preceding claim, wherein a distance attribute is assigned to each first voxel (VX1) of the voxel model, wherein a second distance (d2) can be assigned to the distance attribute, wherein the second distance (d2) is measured between the corresponding first voxel (VX1) and a second surface of the physical object terminating the volume texture.

5. The method according to the preceding claim, wherein the second specified distance (d +∞ ) assigns the distance attribute to the selected first voxel (VX1) to form the volume texture.

6. A method according to any of the preceding claims, wherein those second voxels (VX2) whose first distance (d) from the first triangle (D1) is negative or greater than the first specified distance (z) are discarded.

7. The method according to any one of the preceding claims, wherein the third texture coordinate (U V ; V V ) those second voxels (VX2) for which a third texture coordinate is negative are discarded.

8. Method according to any of the preceding claims, wherein the second voxels (VX2) of the volume region (VB) are each arranged identically for each of the first triangles (D1).

9. The method according to any one of the preceding claims, wherein in the fourth step, the third texture coordinate (U V ; V V ) are calculated as the barycentric coordinates in the third triangle (D3).

10. The method according to claim 1 , wherein in the fourth step, the third texture coordinates (U x 2 ) are calculated by means of trilinear interpolation between second voxels ( VX2 ). V ; V V ).