Method and apparatus for generating a light-dark texture pattern, decorative panel
By establishing a coordinate system of texture units on the surface of aluminum alloy trim and using inverse mapping technology, density difference textures in highlight areas, base areas, and shadow areas are generated. Combined with anodizing process, this solves the limitation problem of texture generation on the surface of aluminum alloy trim, and improves durability and visual effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- FUYAO GLASS IND GROUP CO LTD
- Filing Date
- 2026-04-14
- Publication Date
- 2026-07-03
AI Technical Summary
Existing technologies for generating surface textures on aluminum alloy trims suffer from problems such as limited texture effects, processing limitations, difficulty in adapting to complex curved surfaces, and inability to effectively combine with anodizing processes, resulting in insufficient flexibility in texture design and visual expressiveness.
By establishing a coordinate system for texture units, extending and moving lines along specific angles creates density differences between highlight areas, base areas, and shadow areas. Combining inverse mapping technology, the two-dimensional texture pattern is pasted back onto the three-dimensional curved surface. The anodizing process ensures the wear resistance, acid and alkali resistance, and weather resistance of the texture effect.
It enables the generation of durable texture effects on different curved surfaces, enhances the adaptability and visual expressiveness of textures, solves the limitations of texture design in existing technologies, and improves production efficiency and adaptability.
Smart Images

Figure CN122322697A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of additive manufacturing technology, specifically to a method and apparatus for generating light and dark texture patterns, and a decorative panel. Background Technology
[0002] With the rapid development of the automotive industry and the increasing demands of consumers for vehicle appearance quality, surface texture design of automotive interior and exterior trim parts has become an important technical means to enhance product competitiveness. Especially in the application of decorative components such as aluminum alloy trim strips, how to achieve aesthetically pleasing textures while ensuring functionality has become a focus of industry attention.
[0003] Currently, the surface of aluminum alloy trim strips can be etched using lasers in a directional manner, resulting in a surface state different from the substrate and thus achieving a textured effect.
[0004] However, existing technologies still have many shortcomings in the generation and application of surface textures for aluminum alloy trim strips: First, there is a lack of mature texture solutions in the current market. Most products only use ordinary surface laser roughening to make the logo or characters have different surface roughness. The texture effect is relatively simple and it is difficult to meet the ever-increasing aesthetic requirements.
[0005] Secondly, the method of forming textured surfaces with varying heights through stamping has obvious processing limitations during production, especially since concave areas cannot be effectively polished, affecting the final surface quality.
[0006] Third, existing technologies lack a universally applicable texture scheme that can be effectively combined with mainstream anodizing processes to achieve ideal texture effects while ensuring automotive-grade durability.
[0007] Furthermore, existing technologies cannot effectively cover textures on trim surfaces with different curvatures, and are particularly poorly adaptable to complex three-dimensional curved surfaces, which limits the flexibility and visual expressiveness of texture design.
[0008] The market urgently needs a technology that can flexibly produce textured surfaces, whether large textures or character textures such as logos, while also meeting the product requirements of automotive trim parts. Summary of the Invention
[0009] The purpose of this invention is to provide a method and apparatus for generating light and dark texture patterns, as well as a decorative panel, to solve the problem of applying textures to different decorative surfaces while ensuring that the generated texture patterns are wear-resistant, acid and alkali-resistant, and weather-resistant.
[0010] The above-mentioned objectives of this invention are mainly achieved by the following technical solutions: This invention provides a method for generating light and dark texture patterns, comprising: Establish a coordinate system for a texture unit, wherein the coordinate system has a first direction and a second direction that are perpendicular to each other; Multiple lines extend at a certain angle to the first direction, and the multiple lines are arranged at intervals along the second direction; The plurality of lines are moved along the first direction by at least the length of the texture unit, and / or the plurality of lines are moved along the second direction by at least the width of the texture unit, thereby obtaining a two-dimensional light and dark texture pattern.
[0011] In some embodiments, a highlight area, a base area, and a shadow area are formed within the texture unit, wherein the line density of the highlight area is less than the line density of the base area, and the line density of the shadow area is greater than the line density of the base area; The multiple lines extending at a certain angle to the first direction, and the multiple lines arranged at intervals along the second direction, include: the multiple lines being generated in the order of the highlight area, the base area, and the shadow area.
[0012] In some embodiments, the plurality of lines are generated in the order of the highlight area, the base area, and the shadow area, including: Obtain the total number of lines in the highlight area, the total number of lines in the base area, and the total number of lines in the shadow area; Obtain at least one of the line spacing of the highlight area, the line spacing of the base area, and the line spacing of the shadow area; Based on at least one of the total number of lines in the highlight area, the total number of lines in the base area, the total number of lines in the shadow area, and the line spacing of the highlight area, the line spacing of the base area, and the line spacing of the shadow area, multiple lines are generated within the texture unit.
[0013] In some embodiments, the line spacing between two adjacent lines in the highlight area is P0, and the line spacing between two adjacent lines in the base area is P. t The line spacing between two adjacent lines in the shaded area is P. s Then we have: P t = 2·P0·P s / (P0+P s ), P s = P0 / k max ; where k max is the density amplification factor for the shaded area.
[0014] In some embodiments, the total number of lines within the texture unit is N, the width of the texture unit is W, and the total number of lines in the highlight area is N. h The total number of lines in the shaded area is N. s The total number of lines in the basic area is N. t Then we have: N = ceil(W / P0), N h = ceil(α·N), N s = ceil((1-α-γ)·N), N t = N - N h - N s , where γ is the area ratio of the base region to the total area of the texture unit, and α is the area ratio of the highlight region to the total area of the texture unit.
[0015] In some embodiments, it also includes: The three-dimensional curved surface is discretized into multiple arc surfaces, and the two-dimensional light and dark texture pattern is generated on the arc surfaces. By using inverse mapping, two-dimensional light and dark texture patterns on multiple curved surfaces are pasted back onto the three-dimensional curved surface to generate a three-dimensional light and dark texture pattern.
[0016] In some embodiments, it also includes: Obtain the radius of curvature of each arc surface; The radius of curvature is compared with the preset reference radius of curvature of the three-dimensional surface; If the absolute difference between the radius of curvature and the preset reference radius of curvature is greater than or equal to 5 mm, the parameters of the lines corresponding to the arc surface are corrected.
[0017] In some embodiments, the correction of the parameters of the lines corresponding to the arc surface includes: correcting the line spacing between the lines on the arc surface, and / or correcting the angle of each line on the arc surface relative to the first direction.
[0018] In some embodiments, correcting the line spacing between the lines on the arc surface includes: correcting the line spacing based on the line spacing of the highlight area, the radius of curvature, and the preset reference radius of curvature.
[0019] In some embodiments, the line spacing of the highlight area is P0 and the radius of curvature is R. i The preset reference radius of curvature is R0, and the corrected line spacing is P. i Then we have: P i = P0 × (R i / R0) × (1 +β), where β is the curvature compensation coefficient.
[0020] In some embodiments, correcting the angle of each line on the arc surface relative to the first direction includes: correcting the angle of the line based on the angle between the first direction and the line extension direction, the radius of curvature, and the preset reference radius of curvature.
[0021] In some embodiments, the angle between the first direction and the line extension direction is θ, and the radius of curvature is R. i The preset reference radius of curvature is R0, and the correction angle is θ. i Then we have: θ i = θ × (R0 / R i ).
[0022] In some embodiments, the correction of the parameters of the lines corresponding to the arc surface further includes: At the path splicing point between two adjacent discretized arc surfaces, obtain the coordinate deviation of the beginning and end endpoints of each line at the splicing point: If the absolute value of the coordinate deviation is greater than or equal to 0.02 mm, then each line in the last texture unit is translated along the first direction.
[0023] In some embodiments, the correction of the parameters of the lines corresponding to the arc surface further includes: Obtain the contrast value of the light and dark texture pattern on the corrected 3D surface; If the absolute difference between the contrast value of the light and dark texture pattern on the three-dimensional surface and the target light and dark contrast value is greater than or equal to 1mm, then adjust the total number of lines in the highlight area, the total number of lines in the base area, and / or the total number of lines in the shadow area on the three-dimensional surface.
[0024] This invention also provides an apparatus for generating light and dark texture patterns, comprising: A modeling unit establishes a coordinate system for a texture unit, the coordinate system having a first direction and a second direction that are perpendicular to each other; The execution unit has multiple lines extending at a certain angle to the first direction, and the multiple lines are arranged sequentially along the second direction; The generating unit moves the plurality of lines along the first direction by at least the length of the texture unit, and / or moves the plurality of lines along the second direction by at least the width of the texture unit, thereby obtaining a two-dimensional light and dark texture pattern.
[0025] In some embodiments, it also includes: Discrete unit, discretizes three-dimensional curved surface into multiple arc surfaces, and generates the two-dimensional light and dark texture pattern on the arc surfaces; The mapping unit uses an inverse mapping method to paste the two-dimensional light and dark texture patterns on multiple curved surfaces back onto the three-dimensional curved surface to generate a three-dimensional light and dark texture pattern.
[0026] In some embodiments, it also includes: The first acquisition unit acquires the radius of curvature of each arc surface; The comparison unit compares the radius of curvature with a preset reference radius of curvature; The first correction unit corrects the parameters corresponding to the arc surface if the absolute difference between the radius of curvature and the preset reference radius of curvature is greater than or equal to 5 mm.
[0027] In some embodiments, it also includes: The second acquisition unit acquires the coordinate deviation of the beginning and end endpoints of each line at the path splicing point between two adjacent discretized arc surfaces: If the coordinate deviation is greater than or equal to 0.02 mm, the second correction unit translates each line in the last segment of the texture unit along the first direction.
[0028] In some embodiments, it also includes: The third acquisition unit acquires the contrast value of the light and dark texture pattern on the corrected three-dimensional surface; The third correction unit adjusts the total number of lines in the highlight area, the total number of lines in the base area, and the total number of lines in the shadow area on the three-dimensional surface if the contrast value of the light and dark texture pattern is greater than or equal to 1mm.
[0029] This invention also provides a decorative panel with a light and dark texture pattern formed on its surface. The light and dark texture pattern is generated by the method for generating light and dark texture patterns as described above. The light and dark texture pattern includes at least one texture unit. The texture unit has a highlight area, a base area, and a shadow area arranged sequentially. The line density of the highlight area is less than the line density of the base area, and the line density of the shadow area is greater than the line density of the base area.
[0030] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the method for generating light and dark texture patterns as described above.
[0031] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method for generating light and dark texture patterns as described above.
[0032] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the method for generating light and dark texture patterns as described above.
[0033] Compared with the prior art, the technical solution of the present invention has the following beneficial effects: This invention provides a method, apparatus, and decorative panel for generating light and dark texture patterns. Compared with existing technologies, it can achieve texture effects while ensuring automotive-grade durability. It is compatible with all graphics and can enhance the texture effect through changes in light and dark, which is a significant improvement over the single texture effect of existing technologies. This invention can achieve a three-dimensional effect on a two-dimensional surface without the need to bond other parts to the surface, solving the technical problem that concave surfaces cannot be polished in existing stamping processes. In addition, this invention can use parametric model design to apply the same texture concept to products with different curved surfaces, thereby forming a rapid reproduction of different light and dark styles, improving production efficiency and adaptability.
[0034] Furthermore, this invention can also be combined with mainstream anodizing processes, namely, laser engraving of the texture on the processed surface after machining and polishing. Specifically, the pre-anodizing process cleans the part surface and removes the original oxide film, wherein the removed film thickness is less than the depth of laser processing, thus preserving the generated texture. Then, the part is connected to a positive electrode, forming a dense oxide film in the electrolyte. Subsequently, a transparent protective film layer can be added to ensure performance stability, achieve the desired effect, and guarantee wear resistance, acid and alkali resistance, and weather resistance. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art 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. In the drawings: Figure 1 The flowchart of a method for generating light and dark texture patterns according to an embodiment of the present invention. Figure 1 .
[0036] Figure 2 This is a schematic diagram of lines in a texture unit according to an embodiment of the present invention.
[0037] Figure 3The flowchart of a method for generating light and dark texture patterns according to an embodiment of the present invention. Figure 2 .
[0038] Figure 4 This is a flowchart of a modified method for generating light and dark texture patterns according to an embodiment of the present invention.
[0039] Figure 5 This is a flowchart of a modified method for generating light and dark texture patterns according to an embodiment of the present invention.
[0040] Figure 6 This is a flowchart of a modified method three for generating light and dark texture patterns according to an embodiment of the present invention.
[0041] Figure 7 This is a schematic diagram illustrating the structure of a texture pattern generated based on a method for generating light and dark texture patterns according to an embodiment of the present invention.
[0042] Figure 8 This is a module of an apparatus for generating light and dark texture patterns according to an embodiment of the present invention. Figure 1 .
[0043] Figure 9 This is a module of an apparatus for generating light and dark texture patterns according to an embodiment of the present invention. Figure 2 .
[0044] Figure 10 This is a module of an apparatus for generating light and dark texture patterns according to an embodiment of the present invention. Figure 3 .
[0045] Figure 11 This is a module of an apparatus for generating light and dark texture patterns according to an embodiment of the present invention. Figure 4 .
[0046] Figure 12 This is a module of an apparatus for generating light and dark texture patterns according to an embodiment of the present invention. Figure 5 .
[0047] Figure 13 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention.
[0048] Explanation of icon numbers: 1. Highlight area; 2. Base area; 3. Shadow area; 100. Apparatus for generating light and dark texture patterns; 101. Modeling unit; 102. Execution unit; 103. Generation unit; 104. Discretization unit; 105. Mapping unit; 106. First acquisition unit; 107. Comparison unit; 108. First correction unit; 109. Second acquisition unit; 110. Second correction unit; 111. Third acquisition unit; 112. Third correction unit; 1100. Computer equipment; 1101. Processor; 1102. Memory; 1103. Bus. Detailed Implementation
[0049] 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.
[0050] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, apparatus, product, or device that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0051] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0052] like Figure 1 The diagram shown is a flowchart of a method for generating light and dark texture patterns according to an embodiment of the present invention, which may include: Step S101: Establish a coordinate system for a texture unit, wherein the coordinate system has a first direction and a second direction that are perpendicular to each other; Step S102: Extend multiple lines at a certain angle to the first direction, and arrange the multiple lines at intervals along the second direction; Step S103: Move the multiple lines along the first direction by at least the length of the texture unit, and / or move the multiple lines along the second direction by at least the width of the texture unit, thereby obtaining a two-dimensional light and dark texture pattern.
[0053] The method for generating light and dark texture patterns provided in this invention can be used in machining to generate light and dark texture patterns on the surface of corresponding materials. The generated light and dark texture patterns can present a natural "weathered sandstone" effect, meet the light and dark contrast requirements of the design, and at the same time ensure the continuity and consistency of the texture pattern on the curved surface.
[0054] Furthermore, the method for generating light and dark texture patterns provided in this invention can be combined with mainstream anodizing processes, that is, after machining and polishing, the texture is laser-engraved on the processed surface. Specifically, the part surface is cleaned and the original oxide film is removed in the pre-anodizing process, wherein the thickness of the removed film is less than the depth of laser treatment, so that the generated texture can be preserved; then, the part is connected to the positive electrode, and a dense oxide film is formed in the electrolyte; then, a transparent protective film layer can be added to provide performance assurance, stably achieve the desired effect, and ensure wear resistance, acid and alkali resistance, and weather resistance.
[0055] Specifically, in step S101 of this embodiment of the invention, as follows: Figure 2 As shown, the coordinate system of the texture unit is a two-dimensional coordinate system. The first direction of the coordinate system is the x-axis direction, and the second direction is the y-axis direction. Of course, those skilled in the art can also define the first direction as the y-axis direction and the second direction as the x-axis direction. This embodiment of the invention does not limit this.
[0056] In step S102, multiple lines are extended at a certain angle to the first direction, that is, as shown in the figure. Figure 2 As shown, the lines extend at an angle θ to the x-axis and are spaced apart along a second direction, that is, spaced apart along the y-axis.
[0057] In step S103, the generation of a two-dimensional light and dark texture pattern based on the multiple lines generated in step S102 includes the following three specific implementation methods: In one feasible embodiment, the lines move at least one texture unit length along the second direction (i.e., the y-axis direction); or, in another feasible embodiment, the lines move at least one texture unit width along the first direction (i.e., the x-axis direction); or, in yet another feasible embodiment, the lines move at least one texture unit length along both the second direction (i.e., the y-axis direction) and the first direction (i.e., the x-axis direction) and at least one texture unit width, and the present invention is not limited thereto. Through this translation operation, embodiments of the present invention can achieve the continuous spreading of two-dimensional light and dark texture patterns.
[0058] In one feasible embodiment of the present invention, a highlight area 1, a base area 2, and a shadow area 3 are formed within the texture unit, wherein the line density of the highlight area 1 is less than the line density of the base area 2, and the line density of the shadow area 3 is greater than the line density of the base area 2. Through this differentiated design of line density, the present invention can effectively create a contrast effect between light and dark areas.
[0059] Furthermore, in this embodiment of the invention, the multiple lines extending at a certain angle to the first direction, and the multiple lines being arranged at intervals along the second direction, include: the multiple lines being generated in the order of the highlight area 1, the base area 2, and the shadow area 3.
[0060] Specifically, such as Figure 2 As shown, for example, along the positive direction of the second direction (y-axis direction), these lines are sequentially formed as highlight area 1, base area 2, and shadow area 3; or, along the negative direction of the second direction (-y-axis direction), these lines are sequentially formed as shadow area 3, base area 2, and highlight area 1. The present invention does not limit this, as long as the base area 2 is located between highlight area 1 and shadow area 3 in the generated lines.
[0061] In one feasible embodiment of the present invention, the plurality of lines are generated in the order of the highlight area 1, the base area 2, and the shadow area 3, specifically including: Obtain the total number N of lines in the highlight area 1. h The total number of lines N in the basic area 2 t and the total number of lines N in the shaded area 3. s ; Obtain the line spacing P0 of the highlight area 1 and the line spacing P of the base area 2. t and the line spacing P of the shaded area 3 s At least one of them; Based on the total number of lines N in the highlight area 1 h The total number of lines N in the basic area 2 t The total number of lines N in the shaded area 3 s And the line spacing P0 of the highlight area 1 and the line spacing P of the base area 2 t and the line spacing P of the shaded area 3 s At least one of them generates multiple lines within the texture unit.
[0062] Specifically, in this invention, a texture unit is defined with a length of L and a width of W. The length L can be set from 3mm to 20mm, and is preferably 6mm. The width W can be set from 2mm to 12mm, and is preferably 4mm.
[0063] In a specific embodiment of the present invention, the center distance between two adjacent lines in the highlight area 1 (i.e., the line spacing P0 of the highlight area 1) is set as the baseline line spacing. The center distance can be set from 0.08mm to 0.20mm, and is preferably 0.12mm. Based on this, the line spacing P of the base area 2 can be calculated according to the following formula (1). t Then we have: P t = 2·P0·P s / (P0+P s )Formula (1) Furthermore, the line spacing P of the shaded area 3 can be calculated using the following formula (2). s Then we have: P s = P0 / k max Formula (2) Where, k max k is the density magnification factor for shaded region 3. max The range can be 2.0~5.0, k max The preferred setting is 3.0.
[0064] Of course, in other embodiments, the center distance between two adjacent lines in the shadow area 3 can also be set as the baseline distance, and then the line distance P0 of the highlight area 1 and the line distance P of the base area 2 can be obtained according to the relationship between the line distances of the above-mentioned areas (i.e., Formula 1 and Formula 2). t Alternatively, the center distance between two adjacent lines in base area 2 can be set as the baseline distance. Then, based on the relationship between the line distances of the above-mentioned areas, the line distance P0 of highlight area 1 and the line distance P of shadow area 3 can be obtained. s However, this invention does not impose any limitations on this.
[0065] Finally, based on the total number of lines N in highlight area 1 h The total number of lines N in the basic area 2 t The total number of lines in shaded area 3, N s The spacing between lines in each region is also considered, and multiple lines are generated within this texture unit.
[0066] In one feasible embodiment of the present invention, such as Figure 3 As shown, the method for generating light and dark texture patterns also includes: Step S104: Discretize the three-dimensional curved surface into multiple arc surfaces, and generate the two-dimensional light and dark texture pattern on the arc surfaces; Step S105: By using inverse mapping, the two-dimensional light and dark texture patterns on the multiple curved surfaces are pasted back onto the three-dimensional curved surface to generate a three-dimensional light and dark texture pattern.
[0067] Specifically, in step S104, for a three-dimensional curved surface, such as a 3D curved surface trim, the 3D curved surface is first discretized into several arc surfaces with an arc length L' ≤ L / 2 (where L is the arc length of the three-dimensional curved surface and L' is the arc length of the discretized arc surface). Steps S101 to S103 are then performed on each arc surface to generate a corresponding two-dimensional light and dark texture pattern on each arc surface. This step uses a surface segmentation method, decomposing the three-dimensional curved surface into multiple relatively gentle arc surfaces based on the curvature variation characteristics.
[0068] In step S105, after step S104 is completed, the discrete arc surfaces with two-dimensional light and dark texture patterns are combined by inverse mapping to establish the transformation relationship between the arc surface coordinate system and the three-dimensional curved surface coordinate system. The planar texture pattern is accurately mapped to the corresponding three-dimensional curved surface position through inverse geometric transformation, and finally the light and dark texture pattern generated on the 3D curved surface is formed, thereby maintaining the visual continuity and consistency of the texture pattern.
[0069] like Figure 4 As shown, in one embodiment of the present invention, it can be determined whether the two-dimensional light and dark texture pattern generated on the arc surface needs to be corrected by the actual radius of curvature of each discrete arc surface.
[0070] Step S1061: Obtain the radius of curvature of each arc surface; Step S1062: Compare the radius of curvature with the preset reference radius of curvature of the three-dimensional surface; Step S1063: If the absolute difference between the radius of curvature and the preset reference radius of curvature is greater than or equal to 5mm, then the parameters corresponding to the arc surface are corrected.
[0071] Specifically, in step S1061, the actual radius of curvature of each discrete arc surface is defined as R. i (Where i is the index of the discrete arc segment), the preset reference radius of curvature of the three-dimensional surface is R0. In steps S1062~S1063, if |R i If R0|≥5 mm (quantifiable threshold), then the parameters of the lines on the arc surface are corrected.
[0072] The modification of the parameters of the lines corresponding to the arc surface includes: modifying the line spacing between the lines on the arc surface, and / or modifying the angle of each line on the arc surface relative to the first direction.
[0073] In one embodiment of the present invention, the line spacing between the lines on the arc surface can be corrected; or, in another embodiment, the angle of each line on the arc surface relative to the first direction can be corrected; or, in yet another embodiment, the line spacing between the lines on the arc surface can be corrected, and the angle of each line on the arc surface relative to the first direction can be corrected at the same time. The present invention does not limit this.
[0074] Specifically, the correction of the line spacing between the lines on the curved surface includes: the line spacing P0 based on the highlight area 1, and the radius of curvature R. i And a preset reference curvature radius R0, the line spacing is corrected according to the following formula (3).
[0075] In this invention, the modified line spacing is defined as P. i Then we have: P i = P0 × (R i Formula (3) = (R0) × (1 +β) Where β is the curvature compensation coefficient.
[0076] Furthermore, the correction of the angles of each line on the curved surface relative to the first direction includes: based on the angle θ between the first direction and the extension direction of the line, and the radius of curvature R. i And a preset reference curvature radius R0, the line angle is corrected according to the following formula (4) to compensate for the deviation of line segment rotation angle caused by surface curvature.
[0077] In this invention, the corrected angle is defined as θ. i Then we have: θ i = θ × (R0 / R i )Formula (4) like Figure 5 As shown, in another feasible embodiment of the present invention, the correction of the parameters corresponding to the arc surface further includes: Step S1064: At the path splicing point between two adjacent discretized arc surfaces, obtain the coordinate deviation of the beginning and end endpoints of each line at the splicing point: Step S1065: If the absolute value of the coordinate deviation is greater than or equal to 0.02mm, then translate each line in the last texture unit along the first direction to ensure that the texture lines at the splicing point are continuous without any breaks.
[0078] Specifically, in step S1064, at the path splicing point of two arc surfaces of adjacent discrete segments, the coordinate deviation Δ(x,y,z) of the endpoints of the first and last line segments of the two arc surfaces at the splicing point is calculated, where z=0; In step S1065, if the coordinate deviation |Δ(x,y,z)| ≥ 0.02 mm (engraving accuracy threshold), then the starting point coordinates of the last arc surface are translated along the first direction (i.e., the x-axis direction) by the following formula (5) by a distance Δu, then: Δu = -Δx × (L / 6) (normalized according to L) Formula (5) Furthermore, such as Figure 6 As shown, in another feasible embodiment of the present invention, the correction of the parameters of the lines corresponding to the arc surface further includes: Step S1066: Obtain the contrast value of the light and dark texture pattern on the corrected 3D surface; Step S1067: If the absolute difference between the contrast value of the light and dark texture pattern on the three-dimensional curved surface and the target light and dark contrast value is greater than or equal to 1mm, then adjust the total number N of lines in the highlight area 1 on the three-dimensional curved surface. h The total number of lines N in the basic area 2 t And / or, the total number of lines N in the shaded area 3 s .
[0079] Specifically, in step S1066, based on the corrected 3D path, the contrast value ΔL of the segment is pre-calculated. i In step S1067, if |ΔL i -ΔL |≥ 1 (where ΔL) (For the target brightness and contrast value), then adjust the total number of lines N of the texture unit according to the following formulas (6) to (8). h Total number of lines N t The total number of lines N s The adjusted quantity is defined as the total number of lines N. hi Total number of lines N ti Total number of lines N si Then we have: N hi = N h × (ΔL / ΔL i ) Formula (6) N ti = N t × (ΔL / ΔL i ) Formula (7) N si = N s × (ΔL / ΔL i ) Formula (8) Then, regenerate the lines and repeat. Figure 4 and Figure 5 The correction steps continue until |ΔL i - ΔL | < 1.
[0080] The following specific embodiment illustrates the method for generating light and dark texture patterns described above: like Figure 7 As shown, taking the B-pillar trim of a certain car model as an example, the maximum radius of curvature of this 3D surface is 120mm, and the generated light and dark texture pattern is required to have a "weathered sandstone" effect, where the target light and dark contrast value ΔL ≈15.
[0081] At this point, the length of the texture unit is defined as L = 6 mm, the width as W = 4 mm, and the center distance between two adjacent lines in highlight area 1 (i.e., the line spacing P0) is P0 = 0.12 mm. The density amplification factor k of shadow area 3 is... max = 3.2, the angle θ between the first direction and the line is 27°, and the ratio of the area of the highlight area 1 to the total area of the texture unit is α = 0.28 (α can be in the range of 0.15~0.35).
[0082] Based on the following formula (9), the total number of lines N in the texture unit can be obtained sequentially, and then: N = ceil(W / P0) formula (9) Based on the following formulas (10) to (12), we can obtain the following in sequence: The total number of lines N in highlight area 1 h = ceil(α·N)=10 formula (10) The total number of lines in shaded area 3 is N s = ceil((1-α-γ)·N)=17 formula (11) Where γ is the ratio of the base region to the total area of the texture unit, preferably γ = 0.10. The total number of lines N in the basic area 2 t = N - N h - N s =7 formula (12) When generating lines, multiple lines are generated sequentially in the order of highlight area 1, base area 2, and shadow area 3. The specific process includes: obtaining the total number of lines in highlight area 1, the total number of lines in base area 2, and the total number of lines in shadow area 3. The total number of lines is calculated to be N=34, of which the total number of lines in highlight area 1 is N... h =10, the total number of lines in the basic area 2 is N t =7, the total number of lines in shaded area 3 is N s =17.
[0083] Simultaneously, the line spacing parameters for each region were obtained. The line spacing P0 in highlight area 1 was set to 0.12mm, and the density magnification factor k was... max Set to 3.2. Based on these parameters and formulas (1) to (3), multiple lines are generated within the texture unit.
[0084] like Figure 8 As shown, an embodiment of the present invention also provides an apparatus 100 for generating light and dark texture patterns, which may include a modeling unit 101, an execution unit 102, and a generation unit 103.
[0085] Modeling unit 101 is used to establish a coordinate system for a texture unit, the coordinate system having a first direction and a second direction that are perpendicular to each other.
[0086] In this invention, the modeling unit 101 establishes a standardized texture unit coordinate system through digital modeling technology, providing a benchmark reference framework for the subsequent precise arrangement and movement of lines. See also... Figure 2 As shown, the first direction (i.e., the x-axis direction) and the second direction (i.e., the y-axis direction) are perpendicular to each other, forming a standard two-dimensional coordinate system to ensure the geometric accuracy and consistency of the texture pattern.
[0087] The execution unit 102 extends multiple lines at a certain angle to the first direction, and the multiple lines are arranged sequentially along the second direction.
[0088] In this invention, the execution unit 102 controls the extension angle θ of the lines, for example, 27 degrees, so that the lines are arranged at an angle relative to the first direction, and the lines are distributed at intervals along the second direction. The execution unit 102, through a precise angle control mechanism, ensures that the extension angle of all lines remains consistent, laying the foundation for forming a regular texture pattern.
[0089] The generation unit 103 moves multiple lines along a first direction by at least the length of a texture unit, and / or moves multiple lines along a second direction by at least the width of a texture unit, thereby obtaining a two-dimensional light and dark texture pattern.
[0090] In this invention, the generating unit 103 controls the translational movement of lines to achieve the repetitive arrangement and expansion of texture patterns.
[0091] In one specific embodiment, the length L of the texture unit is set to 6mm, and the width W is set to 4mm. The motion control system of the generation unit 103 can precisely control the displacement of the lines to ensure seamless splicing between adjacent texture units.
[0092] like Figure 9As shown, in one feasible embodiment of the present invention, the apparatus 100 for generating light and dark texture patterns may further include a discrete unit 104 and a mapping unit 105.
[0093] Discrete unit 104 discretizes the three-dimensional curved surface into multiple arc surfaces and generates two-dimensional light and dark texture patterns on the arc surfaces.
[0094] In this invention, the discrete unit 104 employs a surface segmentation method, decomposing the three-dimensional surface into multiple relatively gentle arc surfaces based on its curvature variation characteristics. The size of each arc surface is adaptively adjusted according to the radius of curvature of the three-dimensional surface, ensuring that the two-dimensional texture pattern generated on the arc surface accurately reflects the geometric features of the original three-dimensional surface. In a feasible embodiment, the discrete unit 104 can calculate the optimal segmentation point position through numerical analysis, making the transition between the arc surfaces smoother.
[0095] The mapping unit 105 uses inverse mapping to paste two-dimensional light and dark texture patterns on multiple curved surfaces back onto the three-dimensional curved surface to generate a three-dimensional light and dark texture pattern.
[0096] In this invention, the mapping unit 105 can establish a transformation relationship between the arc surface coordinate system and the three-dimensional curved surface coordinate system, and accurately map the planar texture pattern to the corresponding three-dimensional curved surface position through inverse geometric transformation. This mapping unit can handle the deformation and distortion of the texture pattern during the surface mapping process, maintaining the visual continuity and consistency of the texture pattern.
[0097] like Figure 10 As shown, in one feasible embodiment of the present invention, the apparatus 100 for generating light and dark texture patterns may further include a first acquisition unit 106, a comparison unit 107, and a first correction unit 108.
[0098] The first acquisition unit 106 acquires the radius of curvature of each arc surface. In this invention, the first acquisition unit 106 can analyze the local curvature characteristics of each arc surface and calculate the corresponding radius of curvature value.
[0099] The comparison unit 107 compares the radius of curvature with a preset reference radius of curvature. In one embodiment, the preset reference radius of curvature can be 120mm. Through numerical comparison, the deviation between the radius of curvature of each arc surface and the preset reference radius of curvature is obtained. The comparison unit 107 establishes a curvature deviation evaluation system to provide a basis for subsequent parameter correction.
[0100] The first correction unit 108 corrects the parameters corresponding to the curved surface when the absolute difference between the radius of curvature and the preset reference radius of curvature is greater than or equal to 5mm. This first correction unit 108 compensates for the influence of curvature changes on the texture pattern by adjusting the line spacing parameter and / or the angle of each line relative to the first direction. When the absolute difference in the radius of curvature exceeds a threshold, the first correction unit 108 recalculates the total number of lines N, thereby adjusting the total number of lines N in the highlight area 1. h The total number of lines in basic area 2 is N t The total number of lines in shaded area 3 is N s Adjustments will be made.
[0101] like Figure 11 As shown, in one feasible embodiment of the present invention, the apparatus 100 for generating light and dark texture patterns may further include a second acquisition unit 109 and a second correction unit 110.
[0102] The second acquisition unit 109 acquires the coordinate deviations of the start and end points of each line at the path splicing point between two adjacent discretized arc surfaces. This second acquisition unit 109 uses coordinate measurement technology to accurately calculate the positional differences of the line endpoints at the boundary of adjacent arc surfaces. This second acquisition unit 109 establishes coordinate deviation detection to monitor the geometric continuity of the splicing point in real time.
[0103] The second correction unit 110 translates each line within the last texture unit along the first direction when the coordinate deviation is greater than or equal to 0.02 mm. This second correction unit 110 eliminates discontinuities at the joints by fine-tuning the line positions, ensuring a smooth transition of the overall texture pattern. This second correction unit 110 optimizes the amount of line translation, achieving precise boundary matching while maintaining the overall consistency of the texture pattern.
[0104] like Figure 12 As shown, in one feasible embodiment of the present invention, the apparatus 100 for generating light and dark texture patterns may further include a third acquisition unit 111 and a third correction unit 112.
[0105] The third acquisition unit 111 acquires the contrast value of the light and dark texture pattern on the corrected three-dimensional curved surface. The third acquisition unit 111 analyzes the light and dark contrast of the texture pattern through optical measurement technology, calculates the brightness difference between light and dark areas, and thus quantitatively evaluates the visual contrast effect of the texture pattern.
[0106] The third correction unit 112 adjusts the total number of lines in the highlight area 1, the base area 2, and the shadow area 3 on the 3D curved surface when the absolute difference between the contrast value of the light and dark texture pattern on the 3D curved surface and the target light and dark contrast value is greater than or equal to 1 mm. This third correction unit 112 optimizes the light and dark contrast effect by redistributing the line density of different areas, achieving the preset weathered sandstone texture effect and ensuring that the light and dark contrast value meets the target requirements. The third correction unit 112 adjusts the line distribution ratio of each area according to visual perception to ensure that the final generated 3D light and dark texture pattern has ideal visual hierarchy and contrast.
[0107] This invention also provides a decorative panel with a light and dark texture pattern formed on its surface. The light and dark texture pattern is generated by the above-described method for generating light and dark texture patterns. The light and dark texture pattern includes at least one texture unit. The texture unit has a highlight area 1, a base area 2, and a shadow area 3 arranged sequentially. The line density of the highlight area 1 is less than the line density of the base area 2, and the line density of the shadow area 3 is greater than the line density of the base area 2.
[0108] The decorative panel in this embodiment features a light and dark texture pattern on its surface, generated using the method described above. This pattern can be combined with mainstream anodizing processes, where the texture is laser-engraved onto the processed surface after machining and polishing. Specifically, the pre-anodizing process cleans the part surface and removes the original oxide film. The thickness of the removed film is less than the depth of the laser treatment, thus preserving the generated texture. Afterward, the part is connected to a positive electrode, forming a dense oxide film in the electrolyte. A transparent protective film layer can then be added to ensure performance stability, achieve the desired effect, and guarantee wear resistance, acid and alkali resistance, and weather resistance.
[0109] The embodiments of the present invention can be used to generate light and dark texture patterns on the surface of decorative panels of corresponding materials during machining. The generated light and dark texture patterns can present a natural "weathered sandstone" effect, meet the light and dark contrast requirements of the design, and at the same time ensure the continuity and consistency of the texture pattern on the curved surface.
[0110] Figure 13 This is a schematic diagram of the physical structure of a computer device provided in an embodiment of the present invention, such as... Figure 13 As shown, the computer device 1100 includes a processor 1101, a memory 1102, and a bus 1103.
[0111] The processor 1101 and the memory 1102 communicate with each other via the bus 1103.
[0112] The processor 1101 is used to call program instructions in the memory 1102 to execute the methods provided in the above-described method embodiments.
[0113] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for generating light and dark texture patterns.
[0114] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described method for generating light and dark texture patterns.
[0115] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0116] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0117] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0118] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0119] In the description of this specification, the references to terms such as "an embodiment," "a specific embodiment," "some embodiments," "for example," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0120] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for generating light and dark texture patterns, characterized in that, include: Establish a coordinate system for a texture unit, wherein the coordinate system has a first direction and a second direction that are perpendicular to each other; Multiple lines extend at a certain angle to the first direction, and the multiple lines are arranged at intervals along the second direction; The plurality of lines are moved along the first direction by at least the length of the texture unit, and / or the plurality of lines are moved along the second direction by at least the width of the texture unit, thereby obtaining a two-dimensional light and dark texture pattern.
2. The method for generating light and dark texture patterns according to claim 1, characterized in that, The texture unit has a highlight area, a base area, and a shadow area, wherein the line density of the highlight area is less than the line density of the base area, and the line density of the shadow area is greater than the line density of the base area. The multiple lines extending at a certain angle to the first direction, and the multiple lines arranged at intervals along the second direction, include: the multiple lines being generated in the order of the highlight area, the base area, and the shadow area.
3. The method for generating light and dark texture patterns according to claim 2, characterized in that, The multiple lines are generated in the order of the highlight area, the base area, and the shadow area, including: Obtain the total number of lines in the highlight area, the total number of lines in the base area, and the total number of lines in the shadow area; Obtain at least one of the line spacing of the highlight area, the line spacing of the base area, and the line spacing of the shadow area; Based on at least one of the total number of lines in the highlight area, the total number of lines in the base area, the total number of lines in the shadow area, and the line spacing of the highlight area, the line spacing of the base area, and the line spacing of the shadow area, multiple lines are generated within the texture unit.
4. The method for generating light and dark texture patterns according to claim 3, characterized in that, The line spacing between two adjacent lines in the highlight area is P0, and the line spacing between two adjacent lines in the base area is P. t The line spacing between two adjacent lines in the shaded area is P. s Then we have: P t = 2·P0·P s / (P0+P s ); P s = P0 / k max ; Where, k max is the density amplification factor for the shaded area.
5. The method for generating light and dark texture patterns according to claim 3, characterized in that, The total number of lines in the texture unit is N, the width of the texture unit is W, and the total number of lines in the highlight area is N. h The total number of lines in the shaded area is N. s The total number of lines in the basic area is N. t Then we have: N = ceil(W / P0); N h = ceil(α·N); N s = ceil((1-a-c)·N); N t = N - N h - N s Wherein, γ is the area ratio of the base region to the total area of the texture unit, and α is the area ratio of the highlight region to the total area of the texture unit.
6. The method for generating light and dark texture patterns according to claim 2 or 3, characterized in that, Also includes: The three-dimensional curved surface is discretized into multiple arc surfaces, and the two-dimensional light and dark texture pattern is generated on the arc surfaces. By using inverse mapping, two-dimensional light and dark texture patterns on multiple curved surfaces are pasted back onto the three-dimensional curved surface to generate a three-dimensional light and dark texture pattern.
7. The method for generating light and dark texture patterns according to claim 6, characterized in that, Also includes: Obtain the radius of curvature of each arc surface; The radius of curvature is compared with the preset reference radius of curvature of the three-dimensional surface; If the absolute difference between the radius of curvature and the preset reference radius of curvature is greater than or equal to 5 mm, the parameters of the lines corresponding to the arc surface are corrected.
8. The method for generating light and dark texture patterns according to claim 7, characterized in that, The modification of the parameters of the lines corresponding to the arc surface includes: modifying the line spacing between the lines on the arc surface, and / or modifying the angle of each line on the arc surface relative to the first direction.
9. The method for generating light and dark texture patterns according to claim 8, characterized in that, The correction of the line spacing between the lines on the arc surface includes: correcting the line spacing based on the line spacing of the highlight area, the radius of curvature, and the preset reference radius of curvature.
10. The method for generating light and dark texture patterns according to claim 9, characterized in that, The line spacing of the highlight area is P0, and the radius of curvature is R. i The preset reference radius of curvature is R0, and the corrected line spacing is P. i Then we have: P i = P0 × (R i / R0) × (1 +β) Where β is the curvature compensation coefficient.
11. The method for generating light and dark texture patterns according to claim 8 or 9, characterized in that, The step of correcting the angle of each line on the arc surface relative to the first direction includes: correcting the angle of the line based on the angle between the first direction and the extension direction of the line, the radius of curvature, and the preset reference radius of curvature.
12. The method for generating light and dark texture patterns according to claim 11, characterized in that, The angle between the first direction and the line extension direction is θ, and the radius of curvature is R. i The preset reference radius of curvature is R0, and the correction angle is θ. i Then we have: i i = θ × (R0 / R i )。 13. The method for generating light and dark texture patterns according to claim 7 or 8, characterized in that, The correction of the parameters of the lines corresponding to the arc surface also includes: At the path splicing point between two adjacent discretized arc surfaces, obtain the coordinate deviation of the beginning and end endpoints of each line at the splicing point: If the absolute value of the coordinate deviation is greater than or equal to 0.02 mm, then each line in the last texture unit is translated along the first direction.
14. The method for generating light and dark texture patterns according to claim 9, characterized in that, The correction of the parameters of the lines corresponding to the arc surface also includes: Obtain the contrast value of the light and dark texture pattern on the corrected 3D surface; If the absolute difference between the contrast value of the light and dark texture pattern on the three-dimensional surface and the target light and dark contrast value is greater than or equal to 1mm, then adjust the total number of lines in the highlight area, the total number of lines in the base area, and / or the total number of lines in the shadow area on the three-dimensional surface.
15. An apparatus for generating light and dark texture patterns, characterized in that, include: A modeling unit establishes a coordinate system for a texture unit, the coordinate system having a first direction and a second direction that are perpendicular to each other; The execution unit has multiple lines extending at a certain angle to the first direction, and the multiple lines are arranged sequentially along the second direction; The generating unit moves the plurality of lines along the first direction by at least the length of the texture unit, and / or moves the plurality of lines along the second direction by at least the width of the texture unit, thereby obtaining a two-dimensional light and dark texture pattern.
16. The apparatus for generating light and dark texture patterns according to claim 15, characterized in that, Also includes: Discrete unit, discretizes three-dimensional curved surface into multiple arc surfaces, and generates the two-dimensional light and dark texture pattern on the arc surfaces; The mapping unit uses an inverse mapping method to paste the two-dimensional light and dark texture patterns on multiple curved surfaces back onto the three-dimensional curved surface to generate a three-dimensional light and dark texture pattern.
17. A decorative panel, characterized in that, Its surface has a light and dark texture pattern, which is generated by the method of generating light and dark texture patterns according to any one of claims 1 to 14. The light and dark texture pattern includes at least one texture unit, which has a highlight area, a base area and a shadow area arranged sequentially, wherein the line density of the highlight area is less than the line density of the base area and the line density of the shadow area is greater than the line density of the base area.