Method and device for designing free-form surface vehicle lamp reflector based on macro focus

By adopting a macrofocal freeform surface headlight reflector design method, the challenges of headlight reflectors in streamlined vehicle appearance and beam control are solved, achieving a design that is both energy efficient and compliant with regulations.

CN118915313APending Publication Date: 2024-11-08ZHEJIANG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411415829.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

Existing headlight reflector designs are insufficient to meet the requirements of streamlined vehicle appearance, cannot effectively utilize light energy, and lack precise beam control, making it difficult to meet international and national regulatory standards.

Method used

A freeform surface automotive lamp reflector design method based on macrofocus is adopted. By inputting design parameters and configuration options, the discrete data points of the freeform surface are calculated using numerical solution methods, the surface gaps are processed, and a freeform surface array with independently controllable light distribution is created.

Benefits of technology

It enables the rapid generation of free-form surface headlight reflectors with sharp cut-off lines, improving energy efficiency and design freedom, meeting regulatory requirements, and adapting to the development of automotive streamlined designs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118915313A_ABST
    Figure CN118915313A_ABST
Patent Text Reader

Abstract

The invention discloses a free-form surface vehicle lamp reflector design method and device based on a macro focus. The method comprises the steps that design parameters and configuration options of a macro focus reflector are input; initializing a UV direction data point coordinate of each free-form surface facet according to the design parameters and the configuration options; solving the macro-focus reflector according to the design parameters, the configuration options and the UV direction data point coordinates, and obtaining discrete data points of each free-form surface facet to form a solving result; according to the design parameters, the configuration options and the solving result, processing each free-form surface facet and a gap connecting surface between the facets to obtain a processing result; and fitting the curved surface according to a processing result to obtain the designed free-form surface vehicle lamp reflector. According to the method and the device, the free-form surface with the sharp horizontal intensity cut-off line can be simply and conveniently designed, the free-form surface array for independently controlling the light emitting distribution of each sub-surface can be created, a relatively large design freedom degree is provided, and the design efficiency and the energy utilization rate are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the cross-technical field of optical element modeling and vehicle lamp reflector design, and in particular relates to a macro-focus-based free-form surface vehicle lamp reflector design method and device. Background Art

[0002] With the rapid development of the automotive lighting industry, headlights have gradually become an important part of vehicle aesthetics and safety, and headlight reflectors that realize the functions of headlights are also facing more difficult requirements. Headlight reflectors are not only required to reflect and guide as much light as possible, improve energy utilization, and reduce resource consumption. They also require precise beam control to ensure that the light is distributed in a prescribed pattern, including specific effects such as focusing and astigmatism, improve illumination uniformity, meet relevant international and national regulations and standards, and ensure vehicle driving safety. At the same time, in order to adapt to the increasingly diverse headlight styles, the reflector is required to have a compact structure to provide headlight designers with more design freedom, which further increases the challenges of reflector modeling.

[0003] In the early days, the reflector of the headlight used a quadratic reflector with a fixed focus and a rotationally symmetrical shape. Since the actual light source has a certain volume, the light from the light source placed at the focus will diverge to a certain extent after being deflected by the reflector, and it cannot meet the lighting requirements. Therefore, it gradually developed into a quadratic-like reflector, which is made of multiple quadratic surfaces spliced ​​and cut, and multiple reflectors are used for joint lighting distribution. Each reflector is responsible for a lighting distribution range to jointly achieve the lighting distribution task. However, due to the shape limitations of the quadratic surface itself, the quadratic-like reflector cannot meet the lighting standards well, resulting in shortcomings such as the high beam is not far enough; the low beam is prone to glare; and the energy utilization rate is low. At the same time, as vehicles are moving towards a more streamlined development, quadratic-like reflectors are no longer adapted to the development trend.

[0004] Free-form surface reflectors can solve the above problems very well. Free-form surfaces have flexible shapes, compact structures, and small space occupation. They can provide a high degree of design freedom to meet the increasingly diverse appearance styles of headlights. They are not limited by symmetrical structures and have powerful beam control capabilities. They can independently complete the light distribution task without the help of light baffles and light distribution mirrors. They can not only meet regulatory requirements well, but also effectively improve energy utilization. However, there is no clear mathematical definition of free-form surfaces. Given a target beam pattern, it is difficult to solve due to the complex curvature changes. In addition, the actual light source has volume. How to no longer idealize it as a point light source in the calculation process, incorporate the actual geometric shape of the light source into the calculation process, and reduce the discrepancy between theoretical calculations and actual light emission is equally important. In addition, a single free-form surface reflector is often difficult to directly meet the diverse light distribution needs. How to easily and quickly create a free-form surface array reflector and independently debug the light distribution of each free-form surface is the key to improving design freedom and efficiency.

[0005] In summary, the design of headlight reflectors has always been a challenge faced by the headlight industry. With the development of the main automotive industry and the changing needs, how to meet the vehicle appearance requirements faster and better and achieve the lighting requirements of international and national regulatory standards is an issue that urgently needs to be solved in the design of headlight reflectors. Summary of the invention

[0006] In view of the above, the purpose of the present invention is to provide a macro-focus-based free-form surface headlight reflector design method and device, which can easily and quickly design a free-form surface array that independently controls the light distribution of each facet, and each facet can use the geometric shape of the light source to create a sharp horizontal intensity cutoff line, thereby improving the design efficiency of the headlight reflector and the energy utilization of the light source, reducing the space required for the headlight reflector, expanding the design freedom of the headlight, and adapting to the development of streamlined automobile models.

[0007] To achieve the above-mentioned purpose of the invention, an embodiment provides a macro-focus-based free-form surface headlight reflector design method, comprising the following steps: Enter the design parameters and configuration options of the macrofocus reflector; Initialize the UV direction data point coordinates of each free-form surface facet according to the design parameters and configuration options; Solve the macrofocus reflector according to the design parameters and configuration options, as well as the UV direction data point coordinates of each free-form surface facet, and obtain the solution result composed of discrete data points of each free-form surface facet; According to the design parameters and configuration options, as well as the solution results, each free-form surface facet and the gap connecting surface between the facets are processed to obtain the processing results; The designed free-form surface headlight reflector is obtained by fitting the surface according to the processing results.

[0008] Preferably, the design parameters and configuration options of the input macrofocus reflector include: Input the index of the free-form surface facet and the optical axis offset of the calculation starting point of the macrofocus reflector; Input the number of free-form surface facets of the macrofocus reflector in the UV direction, the width of each row and column of the macrofocus reflector base grid, the UV coordinate offset, and the optical axis start value; Configure the gap type between each row and column of free-form surface facets, further configure the gap options based on the gap type, and further input the gap parameters based on the gap options; Configure the target light distribution type of each free-form surface facet, input additional parameters according to the target light distribution type, and define the diffusion angle parameters of each free-form surface facet including the horizontal diffusion angle and the vertical diffusion angle, configure the macro focus edge ray type, and further input the macro focus center offset and the rotation angle of the horizontal cutoff line in the beam pattern according to the macro focus edge ray type; Input the axis system of the light source, configure the light source geometry type, input different geometric parameters according to the geometry type, and define the number of samples of macro focus edge points; Input the optical axis offset of each facet in the macrofocus reflector; Enter the activation status of each facet in the macrofocus reflector, specifying whether the macrofocus reflector is split into individual freeform surface facets; Enter the calculation step size for the macrofocus reflector, specify the calculation method, and the order in which the freeform surface facets are calculated.

[0009] Preferably, the gap type includes a no-gap type, a gap type, a retreat type, and a retreat and no-gap type; The gap options include new boundary, old boundary, average boundary, empty, and surface; The target light distribution types include far field, near field optical axis plane, and near field free plane; The macro-focus edge ray types include maximum edge ray, minimum edge ray, and center edge ray; The light source geometric shape types include point, rectangular surface, rectangular surface array, circular disk surface, and elliptical disk surface; The calculation method of the macrofocus reflector includes a U-based curve method and a V-based curve method; The calculation order of the free-form surface facets includes horizontal priority and vertical priority.

[0010] Preferably, the step of initializing the UV direction data point coordinates of each free-form surface facet according to the design parameters and configuration options includes: Check whether the design parameters and configuration options are legal, pre-allocate the space required to store the results according to the number of free-form surface facets in the UV direction, initialize the solution order of the facets, calculate the UV boundary range of each free-form surface facet according to the index of the free-form surface facet at the start of the calculation of the macrofocus reflector, the width of each row and column of the macrofocus reflector base grid, the UV coordinate offset, the configured gap options, types and parameters, and initialize the UV direction data point coordinates of each free-form surface facet.

[0011] Preferably, solving the macrofocus reflector according to the design parameters and configuration options and the UV direction data point coordinates of each free-form surface facet to obtain a solution result composed of discrete data points of each free-form surface facet includes: According to the optical axis offset of the calculation starting point of the macrofocus reflector, the optical axis starting value of the basic grid, and the optical axis offset of the facet where the calculation starting point is located, the final optical axis starting value of the calculation starting point of the entire macrofocus reflector is obtained; Based on the final optical axis starting value of the calculation starting point of the entire macrofocus reflector, the free-form surface facets are calculated one by one according to the calculation order of the free-form surface facets, and the horizontal diffusion angle and the vertical diffusion angle of the light source luminous edge point and the outgoing light are obtained by sampling according to the diffusion angle parameter, the target light distribution type, the macrofocus edge light type, the light source geometry type, and the sampling number of the macrofocus edge point. According to the UV direction data point coordinates of each free-form surface facet, the specified calculation method and calculation step size, the fourth-order Runge-Kutta numerical method is used to iteratively solve to obtain a set of discrete data points for each free-form surface facet; Whenever calculating the current free-form surface facet, it is necessary to obtain the optical axis starting value of the current facet calculation starting point according to the gap type between the current facet and the previous facet, the optical axis offset of the current facet, and the solution value of the adjacent point of the previous facet; All discrete data points of all free-form surface facets constitute the solution of the macrofocus reflector.

[0012] Preferably, according to the design parameters and configuration options, and the solution results, each free-form surface facet and the gap connecting surface between the facets are processed to obtain the processing results, including: Modify the discrete data points of each free surface facet in the solution result according to the configured gap type, gap option and gap parameters, or create gap connection surfaces between facets. If the gap type includes no gap, the discrete data points of all free surface facets affected by this need to be modified according to the no gap option; if the gap type includes gap and it is not a blank gap, the gap connection surface needs to be created according to the gap parameters configured under the gap option to ensure that the relevant facets are connected, and then the processing result is obtained.

[0013] Preferably, the free-form surface headlight reflector designed by fitting the curved surface according to the processing result includes: According to the activation status of the free-form surface facets, the discrete data points of each activated free-form surface facet in the processing results are first fitted to obtain the activated facets, and then all the activated facets and the gap connecting surfaces are exported as a model as the designed free-form surface headlight reflector.

[0014] To achieve the above-mentioned purpose of the invention, the embodiment further provides a free-form surface headlight reflector design device based on macro focus, comprising an input module, a facet initialization module, a free-form surface solving module, a gap processing module, and an output module; The input module is used to input design parameters and configuration options of the macrofocus reflector; The facet initialization module is used to initialize the UV direction data point coordinates of each free-form surface facet according to the design parameters and configuration options; The free-form surface solving module is used to solve the macrofocus reflector according to the design parameters and configuration options, and the UV direction data point coordinates of each free-form surface facet, and obtain the discrete data point composition solution result of each free-form surface facet; The gap processing module is used to process each free-form surface facet and the gap connection surface between the facets according to the design parameters and configuration options and the solution results to obtain the processing results; The output module is used to fit the surface according to the processing result to obtain the designed free-form surface vehicle headlight reflector.

[0015] To achieve the above-mentioned purpose of the invention, an embodiment further provides a computing device, including a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the above-mentioned macro-focus-based free-form surface vehicle light reflector design method.

[0016] To achieve the above-mentioned purpose of the invention, an embodiment further provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the above-mentioned macro-focus-based free-form surface vehicle light reflector design method.

[0017] Compared with the prior art, the present invention has the following beneficial effects: Through the design parameters and configuration options input by the user, all free-form surface facets of the macrofocus reflector are numerically solved, and the facet gaps are automatically processed to facilitate processing and production. The numerical solution method has high calculation efficiency and can easily and conveniently generate free-form surfaces with sharp intensity cutoff lines. It can also create free-form surface arrays that independently control the light distribution of each facet, and quickly obtain the standard industrial model of free-form surface headlight reflectors. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 is a flow chart of a free-form surface vehicle lamp reflector design method based on macrofocus provided in an embodiment; Figure 2 is a detailed flow chart of a macro-focus-based free-form surface headlight reflector design method provided in an embodiment; Figure 3 It is a schematic diagram of the calculation sequence of the macrofocus reflector and the free-form surface facet transfer solution provided by the embodiment; Figure 4It is a flow chart of a macro-focus-based free-form surface vehicle lamp reflector design device provided in an embodiment. DETAILED DESCRIPTION

[0020] To make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the scope of protection of the present invention.

[0021] In view of the shortcomings in the background technology, the embodiments provide a macro-focus-based vehicle headlight reflector design method and device, which can realize the convenient and quick design of free-form surfaces with sharp horizontal intensity cutoff lines, and can create free-form surface arrays that independently control the light distribution of each facet, with high energy utilization and design freedom.

[0022] like Figure 1 and Figure 2 As shown, a design method for a headlight reflector based on macro focus is provided in an embodiment of the present invention, comprising the following steps: S01, input the design parameters and configuration options of the macrofocus reflector.

[0023] In the embodiment of the present invention, inputting the design parameters and configuration options of the macrofocus reflector includes: inputting the index of the calculation starting free-form surface facet of the macrofocus reflector, and the optical axis offset; inputting the number of free-form surface facets of the macrofocus reflector in the UV direction, the width of each row and each column, the UV coordinate offset of the basic grid of the macrofocus reflector, and the starting value of the optical axis; configuring the gap type between each row and each column of the free-form surface facets, further configuring the gap option according to the gap type, and further inputting the gap parameter according to the gap option; configuring the target light distribution type of each free-form surface facet, inputting additional parameters according to the target light distribution type, and defining each free-form surface facet. The diffusion angle parameters of the surface include horizontal diffusion angle and vertical diffusion angle, configure the macrofocus edge ray type, and further input the macrofocus center offset and the rotation angle of the horizontal cutoff line in the beam mode according to the macrofocus edge ray type; input the axis system of the light source, configure the light source geometry type, input different geometric parameters according to the geometry type, and define the number of sampling of macrofocus edge points; input the optical axis offset of each facet in the macrofocus reflector; input the activation status of each facet in the macrofocus reflector, and specify whether the macrofocus reflector is divided into a single free-form surface facet; input the calculation step of the macrofocus reflector, specify the calculation method, and the calculation order of the free-form surface facets.

[0024] Among them, the gap type includes no gap type, gap type, retreat type, and retreat and no gap type. The gap options include new boundary, old boundary, average boundary, empty, and surface. The target light distribution types include far field, near field optical axis plane, and near field free plane; the macro focus edge ray type includes maximum edge ray, minimum edge ray, and center edge ray; the light source geometry type includes point, rectangular surface, rectangular surface array, disk surface, and elliptical disk surface; the calculation method of the macro focus reflector includes U basic curve method and V basic curve method; the calculation order of free surface facets includes horizontal priority and vertical priority. The core functions in the macro focus reflector are detailed below.

[0025] The existence of gaps is to adapt the mold to facilitate processing and production. It allows users to control the space between free-form surface facets. They can set the size of the space, control whether the space exists, and whether there is a connecting surface when it exists. Gaps are generally divided into two categories. No gaps ensure that there are common edges between free-form surface facets according to different rules; gaps ensure that the free-form surface facets use their own boundaries. For the column gap in the gap type, the gap size can be controlled by setting the parameters of U and the optical axis direction; for the row gap, the gap size can be controlled by setting the parameters of V and the optical axis direction; for the retreat type, the column gap can only set the parameters of the U direction, and the row gap can only set the parameters of the V direction, and there is no offset on the optical axis. Therefore, when the gap is set to the retreat type, the non-starting facet will not be affected by the optical axis offset parameters of the calculation starting point of the macrofocus reflector. When the optical axis offset of each facet is not considered, the calculation starting point value of the non-starting facet is always the optical axis starting value of the base grid.

[0026] The diffusion angle is the core of the user's target light distribution. Different target light distribution types describe the light energy distribution of the macrofocus reflector in different ways. It is generally divided into two categories. The diffusion angle is defined as an angle in the far field, and the azimuth and polar angles of the reflected light are within the range specified by the user; the diffusion angle is defined as a coordinate point in the near field, and the reflected light will pass through the plane area specified by the user in space. The difference between the near-field optical axis plane and the free plane is that the optical axis plane is parallel to the basic grid of the macrofocus reflector, while the free plane has an arbitrary axis system.

[0027] When a clear and sharp intensity cutoff is required, you can additionally configure the macrofocus edge ray type, which is currently only available for the far-field target light type. For any point on the free-form surface, the solid light source forms an incident light cone with the point, and then forms an outgoing light cone based on the reflection principle. The macrofocus edge ray limits the vertical diffusion angle of the outgoing light cone to form a horizontal cutoff beam pattern with a specified angle. Among them, the maximum edge ray can distribute the intensity below the user-specified vertical diffusion angle; the minimum edge ray distributes the intensity above the user-specified vertical diffusion angle, at this time forming a horizontal cutoff of the intensity. For the center edge ray, the light emitted from the center point of the light source is generally selected as the edge ray, but the macrofocus center offset can be additionally specified. When the design scene is a low beam in the headlamp, in order to meet the light and dark cutoff in the regulatory standard, it is necessary to rotate the horizontal cutoff of the intensity to a certain extent to achieve a clear light and dark cutoff effect. This parameter is defined by the rotation angle of the horizontal cutoff in the beam pattern and is applicable to all macrofocus edge ray types.

[0028] The core of the light source lies in its geometric shape. When the light emitted by the light source hits the reflector, it forms reflected light. This process is similar to pinhole imaging. Therefore, the light emitted from the edge of the light source is still edge light after reflection. According to the definition of macro-focus edge light, the core of achieving the horizontal cutoff line is to find the edge reflected light with the largest or smallest vertical diffusion angle, and the edge reflected light must be the light emitted by the edge of the light source. Therefore, edge sampling is required according to the geometric shape of the light source. Different geometric shapes have different edge sampling modes, and the number of samples needs to be specified by the user. For special geometric types such as rectangular surfaces, the edge light must be located at the four corners, so it is not sensitive to multi-sampling. However, for circular or elliptical disks, the number of samples determines whether a clear and sharp horizontal cutoff line can be achieved.

[0029] S02, initializing the UV direction data point coordinates of each free-form surface facet according to the design parameters and configuration options.

[0030] In the embodiment, when initializing the UV direction data point coordinates of each free-form surface facet, first check whether the design parameters and configuration options are legal, because the design parameters may affect each other. For example, the index of the starting free-form surface facet for calculating the macrofocus reflector must be within the number of free-form surface facets of the macrofocus reflector in the UV direction, and the starting index out of range is meaningless.

[0031] Then, the calculation result space is pre-allocated according to the number of free-form surface facets in the UV direction, and the solution order of the facets is initialized. According to the index of the free-form surface facet at the start of the calculation of the macrofocus reflector, the width of each row and column of the macrofocus reflector basic grid, the UV coordinate offset, and the UV direction size set in the configured gap, the free-form surface facets are traversed in turn to calculate the UV boundary range of each facet, and then the UV direction data point coordinates of each free-form surface facet are initialized.

[0032] S03, solving the macrofocus reflector according to the design parameters and configuration options, and the UV direction data point coordinates of each free-form surface facet, and obtaining a solution result composed of discrete data points of each free-form surface facet.

[0033] The solution equations for the faceting of free-form surfaces in macrofocus reflectors are derived from Snell's law and the law of conservation of energy, and are a set of first-order partial differential equations, as follows: The macrofocus reflector can be expressed as an implicit function: ; The UV boundary and Fixed and known, we only need to solve for the z value, which is the optical axis value.

[0034] According to the knowledge of multivariate function, the gradient of a point on an implicit function is calculated as: (1) Assume that the known light source point is L, and the macro-focus reflector point to be solved is P(u,v,z), then the incident light ray I can be expressed as: (2) Assuming that the diffusion angle is defined by the near-field target light type, the reflected light needs to hit the target point T specified by the user (obtained by interpolation), and the outgoing light O can be expressed as: (3) According to Snell's law, the incident light ray I, the normal line N at the point to be solved, and the outgoing light ray O need to satisfy the following relationship: (4) Decompose the vector into its components and calculate: (5) Further transformation yields: (6) Since the gradient at the point to be solved is equivalent to the normal vector, the combined formula (1) yields: (7) Finally got about The first-order partial differential equations of are solved by the fourth-order Runge-Kutta numerical method to obtain a set of discrete data points. Here, the outgoing light is defined by the near-field target light type. The outgoing light under the far-field target light type can directly obtain the azimuth and polar angle through UV coordinate interpolation. The derivation is simpler and will not be repeated.

[0035] Specifically, it includes: S03-1, obtaining a final starting value of the macrofocus reflector calculation starting point according to the optical axis offset of the macrofocus reflector calculation starting point, the optical axis starting value of the basic grid, and the optical axis offset of the facet where the calculation starting point is located; S03-2, based on the final optical axis starting value of the calculation starting point of the entire macrofocus reflector, all free-form surface facets are calculated in sequence according to the specified calculation order of the free-form surface facets. In the specific calculation, the horizontal and vertical diffusion angles of the light source luminous edge points and the outgoing light are obtained according to the diffusion angle parameters, the target light distribution type, the macrofocus edge light type, the light source geometry type, and the sampling number of the macrofocus edge points. Then, according to the UV direction data point coordinates of each free-form surface facet, the specified calculation method and calculation step size, the fourth-order Runge-Kutta numerical method is used to iteratively solve and obtain a set of discrete data points for each free-form surface facet.

[0036] like Figure 3 As shown, taking vertical priority as an example, the numbers in the figure represent the calculation order of facets. First calculate the column where the starting facet is located. In this column, first calculate the starting facet, and then pass the calculated facets upward. After the upward calculation is completed, pass the calculated facets downward from the starting facet. After the calculation of this column is completed, start from the starting facet and pass it to the right to calculate all the columns on the right. After the calculation of the right column is completed, start from the starting facet and pass it to the left to calculate all the columns on the left. When the user needs a horizontal cutoff line, the U basic curve method must be used. At this time, first numerically solve a row of discrete data points in the U direction when V=0, and then traverse the discrete data points in this row to numerically solve. A column of discrete data points in the V direction at the time θ is , which eventually constitutes a set of discrete data points distributed in a grid.

[0037] The solution of each discrete data point requires calculating the incident and outgoing light rays based on the design parameters and configuration options of the previous data point and the diffusion angle, and then finding the normal and partial derivatives, and then using the fourth-order Runge-Kutta method to find the coordinate value of the data point. When the maximum or minimum macro-focus edge light is set and the target light type is far field, it is necessary to sample the geometric shape of the light source to obtain the edge point, and the edge point is used as the input light source emitting point in the solution process.

[0038] The core meaning of edge points is that the normal of the point to be solved needs to constrain the light emitted from the edge point to meet the maximum or minimum vertical diffusion angle specified by the user after being deflected by the free surface, thereby ensuring that the energy distribution of the light source after reflection from the point is always below or above the horizontal cutoff line. Different light source geometries have different sampling modes. For rectangles and rectangular surface arrays, the four corner points of each rectangular surface are sampled; for disks and elliptical disks, the angles are divided into equally spaced samples according to the number of samples, and the edge point candidate list is obtained by sampling using parametric equations; point light sources have only one point, so there is no sampling mode.

[0039] Since non-point light sources have geometric surfaces and the edge points are not at the center of the light source, it is also necessary to offset the horizontal diffusion angle of the outgoing light. The offset is given by the angle between the incident light at the center of the light source and the incident light with the maximum vertical diffusion angle projected on the horizontal plane. This offset is added to the user-specified value to become the horizontal diffusion angle of the outgoing direction.

[0040] When a tilted intensity cutoff line beam pattern is required, the horizontal and vertical spread angle offsets of the outgoing light rays need to be further calculated according to the user-specified rotation angle, which is obtained by superposition of geometric relationships and trigonometric functions.

[0041] Step S03-3: After one facet is calculated, the next facet needs to be solved in the calculation order, so the calculation starting point value of the next facet needs to be known. Figure 3 As shown in the figure, if the next facet is located above the current facet, the starting value of the next facet is the upper left point value of the current facet; if the next facet is located on the right side of the current facet, the starting value of the next facet is the lower right point value of the current facet; if the next facet is located below or on the left side of the current facet, the starting value of the next facet is the lower left point value of the current facet. In addition, additional processing is required based on the gap type and gap parameters between the two facets, the optical axis offset of the next facet, and the initial value of the optical axis of the base grid.

[0042] S03-2, repeating steps S03-2 to S03-3 until all free-form surface facets are numerically solved to form the solution result of the macro-focus reflector.

[0043] S04, processing each free-form surface facet and the gap connecting surfaces between the facets according to the design parameters and configuration options and the solution results to obtain a processing result.

[0044] After solving and obtaining the discrete data points of all free-form surface facets, further post-processing operations are required based on the gap parameters. It should be noted that since the gapless and retreat types will modify the facet data, the gapless processing must precede the gap and retreat types. Only after the facet data is modified and the gap connection surface is created can the correct shape be guaranteed.

[0045] Specifically, the discrete data points of each free surface facet in the solution result are modified according to the configured gap type, gap option and gap parameters, or gap connecting surfaces are created between facets. If the gap type includes no gap, the discrete data points of all free surface facets affected by this need to be modified according to the no gap option; if the gap type includes gap and it is not an empty gap, the gap connecting surface needs to be created according to the gap parameters configured under the gap option to ensure that the relevant facets are connected, and then the processing result is obtained.

[0046] More specifically, S04-1, processing no gaps, for no gaps and retreat and no gaps types, it is necessary to ensure that adjacent facets share a boundary. The free surface facets obtained by solution are independent facets with their own boundaries. In order to share boundaries, the facet data needs to be modified according to certain rules. According to the facet solution order recorded in steps S02 and S03, when the data of two facets are to be processed, the new boundary type means retaining the boundary of the newly calculated facet and modifying the boundary of the old facet to adapt to the new boundary; the old boundary type means retaining the boundary of the old facet and modifying the boundary of the new facet to adapt to the old boundary; the average type means taking the average value of the boundaries of the new and old facets as the common boundary, and the discrete data points of the new and old facets need to be modified at the same time.

[0047] S04-2, in the state of having a gap, for the gap and retreat types, it is necessary to create a gap connection surface according to the gap options and parameters. Traverse from the lower left facet by row to the upper right facet, and there are three possible gap connection surfaces when processing each facet. When the column gap option between the facet and the right adjacent facet is surface, the right boundary of the facet and the left boundary of the right adjacent facet are taken out to form a gap connection surface; when the row gap option between the facet and the upper adjacent facet is surface, the upper boundary of the facet and the lower boundary of the upper adjacent facet are taken out to form a gap connection surface; when the row and column gap options between the facet and the upper adjacent facet and the right adjacent facet are both surface, the upper right corner of the facet, the lower right corner of the upper adjacent facet, the upper left corner of the right adjacent facet, and the lower left corner of the upper right adjacent facet are taken out to form a gap connection surface.

[0048] S05, fitting the surface according to the processing result to obtain the designed free-form surface headlight reflector.

[0049] In the embodiment, the free-form surface facets are fitted one by one, the discrete data points obtained by calculation are input, the OCCT two-dimensional array is filled, and the surface construction function in OCCT is called to create the surface. According to the activation state of the free-form surface facets, the discrete data points of each activated free-form surface facet in the processing results are firstly surface fitted to obtain the activated facets, and then all the activated facets and the gap connection surfaces are exported together as a model as the designed free-form surface headlight reflector. Specifically, according to the activation state of the free-form surface facets, the relevant surfaces are written into the STEP model. If a facet is not activated, then the facet and all the gap connection surfaces associated with the facet cannot be written into the STEP model.

[0050] like Figure 4 As shown, the embodiment further provides a macrofocus-based free-form surface headlight reflector design device 40, comprising an input module 41, a facet initialization module 42, a free-form surface solving module 43, a gap processing module 44, and an output module 45, wherein the input module 41 is used to input the design parameters and configuration options of the macrofocus reflector; the facet initialization module 42 is used to initialize the UV direction data point coordinates of each free-form surface facet according to the design parameters and configuration options; the free-form surface solving module 43 is used to solve the macrofocus reflector according to the design parameters and configuration options, and the UV direction data point coordinates of each free-form surface facet, and obtain a solution result composed of discrete data points of each free-form surface facet; the gap processing module 44 is used to process each free-form surface facet and the gap connecting surface between the facets according to the design parameters and configuration options, and the solution result, to obtain a processing result; the output module 45 is used to fit the surface according to the processing result to obtain the designed free-form surface headlight reflector.

[0051] It should be noted that the free-form surface headlight reflector design device based on macrofocus provided in the above embodiment should be illustrated by the division of the above functional modules when designing the free-form surface headlight reflector. The above functional allocation can be completed by different functional modules as needed, that is, the internal structure of the terminal or server is divided into different functional modules to complete all or part of the functions described above. In addition, the free-form surface headlight reflector design device based on macrofocus provided in the above embodiment and the free-form surface headlight reflector design method embodiment based on macrofocus belong to the same concept. The specific implementation process is detailed in the free-form surface headlight reflector design method embodiment based on macrofocus, which will not be repeated here.

[0052] Based on the same inventive concept, an embodiment further provides a computing device, including a memory and one or more processors, wherein executable codes are stored in the memory, and when the one or more processors execute the executable codes, the above-mentioned macro-focus-based free-form surface vehicle lamp reflector design method is implemented, specifically including the following steps: S01, input design parameters and configuration options of the macrofocus reflector; S02, initializing the UV direction data point coordinates of each free-form surface facet according to the design parameters and configuration options; S03, solving the macrofocus reflector according to the design parameters and configuration options, and the UV direction data point coordinates of each free-form surface facet, and obtaining a solution result composed of discrete data points of each free-form surface facet; S04, processing each free-form surface facet and the gap connection surface between the facets according to the design parameters and configuration options and the solution results to obtain a processing result; S05, fitting the surface according to the processing result to obtain the designed free-form surface headlight reflector.

[0053] The computing device provided in the embodiment, in addition to the processor and memory, also includes hardware required for other services such as internal bus, network interface, memory, etc. at the hardware level. The memory is a non-volatile memory, and the processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the free-form surface headlight reflector design method based on macro focus described in S01-S05 above. Of course, in addition to the software implementation method, the present invention does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0054] Based on the same inventive concept, an embodiment further provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned free-form surface headlight reflector design method based on macro focus is implemented, which specifically includes the following steps: S01, input design parameters and configuration options of the macrofocus reflector; S02, initializing the UV direction data point coordinates of each free-form surface facet according to the design parameters and configuration options; S03, solving the macrofocus reflector according to the design parameters and configuration options, and the UV direction data point coordinates of each free-form surface facet, and obtaining a solution result composed of discrete data points of each free-form surface facet; S04, processing each free-form surface facet and the gap connection surface between the facets according to the design parameters and configuration options and the solution results to obtain a processing result; S05, fitting the surface according to the processing result to obtain the designed free-form surface headlight reflector.

[0055] In the embodiment, computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules or other data.

[0056] The specific implementation methods described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above is only the most preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A design method for a free-form surface headlight reflector based on macrofocus, characterized in that: The following steps are involved: Enter the design parameters and configuration options of the macrofocus reflector; Initialize the UV direction data point coordinates of each free-form surface facet according to the design parameters and configuration options; Solve the macrofocus reflector according to the design parameters and configuration options, as well as the UV direction data point coordinates of each free-form surface facet, and obtain the solution result composed of discrete data points of each free-form surface facet; According to the design parameters and configuration options, as well as the solution results, each free-form surface facet and the gap connecting surface between the facets are processed to obtain the processing results; The designed free-form surface headlight reflector is obtained by fitting the surface according to the processing results.

2. The macrofocus-based free-form surface headlight reflector design method according to claim 1, characterized in that: The input macrofocus reflector design parameters and configuration options include: Input the index of the free-form surface facet and the optical axis offset of the calculation starting point of the macrofocus reflector; Input the number of free-form surface facets of the macrofocus reflector in the UV direction, the width of each row and column of the macrofocus reflector base grid, the UV coordinate offset, and the optical axis start value; Configure the gap type between each row and column of free-form surface facets, further configure the gap options based on the gap type, and further input the gap parameters based on the gap options; Configure the target light distribution type of each free-form surface facet, input additional parameters according to the target light distribution type, and define the diffusion angle parameters of each free-form surface facet including the horizontal diffusion angle and the vertical diffusion angle, configure the macro focus edge ray type, and further input the macro focus center offset and the rotation angle of the horizontal cutoff line in the beam pattern according to the macro focus edge ray type; Input the axis system of the light source, configure the light source geometry type, input different geometric parameters according to the geometry type, and define the number of samples of macro focus edge points; Input the optical axis offset of each facet in the macrofocus reflector; Enter the activation status of each facet in the macrofocus reflector, specifying whether the macrofocus reflector is split into individual freeform surface facets; Enter the calculation step size for the macrofocus reflector, specify the calculation method, and the order in which the freeform surface facets are calculated.

3. The design method of a free-form surface headlight reflector based on macro focus according to claim 2, characterized in that: The gap types include a no-gap type, a gap type, a retreat type, and a retreat and no-gap type; The gap options include new boundary, old boundary, average boundary, empty, and surface; The target light distribution types include far field, near field optical axis plane, and near field free plane; The macro-focus edge ray types include maximum edge ray, minimum edge ray, and center edge ray; The light source geometric shape types include point, rectangular surface, rectangular surface array, circular disk surface, and elliptical disk surface; The calculation method of the macrofocus reflector includes a U-based curve method and a V-based curve method; The calculation order of the free-form surface facets includes horizontal priority and vertical priority.

4. The design method of a free-form surface headlight reflector based on macro focus according to claim 2, characterized in that: Initializing the UV direction data point coordinates of each free-form surface facet according to the design parameters and configuration options includes: Check whether the design parameters and configuration options are legal, pre-allocate the space required to store the results according to the number of free-form surface facets in the UV direction, initialize the solution order of the facets, calculate the UV boundary range of each free-form surface facet according to the index of the free-form surface facet at the start of the calculation of the macrofocus reflector, the width of each row and column of the macrofocus reflector base grid, the UV coordinate offset, the configured gap options, types and parameters, and initialize the UV direction data point coordinates of each free-form surface facet.

5. The macrofocus-based free-form surface headlight reflector design method according to claim 2, characterized in that: The macrofocus reflector is solved according to the design parameters and configuration options, and the UV direction data point coordinates of each free-form surface facet, and the discrete data point composition solution result of each free-form surface facet is obtained, including: According to the optical axis offset of the calculation starting point of the macrofocus reflector, the optical axis starting value of the basic grid, and the optical axis offset of the facet where the calculation starting point is located, the final optical axis starting value of the calculation starting point of the entire macrofocus reflector is obtained; Based on the final optical axis starting value of the calculation starting point of the entire macrofocus reflector, the free-form surface facets are calculated one by one according to the calculation order of the free-form surface facets, and the horizontal diffusion angle and the vertical diffusion angle of the light source luminous edge point and the outgoing light are obtained by sampling according to the diffusion angle parameter, the target light distribution type, the macrofocus edge light type, the light source geometry type, and the sampling number of the macrofocus edge point. According to the UV direction data point coordinates of each free-form surface facet, the specified calculation method and calculation step size, the fourth-order Runge-Kutta numerical method is used to iteratively solve to obtain a set of discrete data points for each free-form surface facet; Whenever calculating the current free-form surface facet, it is necessary to obtain the optical axis starting value of the current facet calculation starting point according to the gap type between the current facet and the previous facet, the optical axis offset of the current facet, and the solution value of the adjacent point of the previous facet; All discrete data points of all free-form surface facets constitute the solution of the macrofocus reflector.

6. The macrofocus-based free-form surface headlight reflector design method according to claim 2, characterized in that: According to the design parameters, configuration options, and solution results, each free-form surface facet and the gap connection surface between the facets are processed to obtain the processing results, including: Modify the discrete data points of each free surface facet in the solution result according to the configured gap type, gap option and gap parameters, or create gap connection surfaces between facets. If the gap type includes no gap, the discrete data points of all free surface facets affected by this need to be modified according to the no gap option; if the gap type includes gap and it is not a blank gap, the gap connection surface needs to be created according to the gap parameters configured under the gap option to ensure that the relevant facets are connected, and then the processing result is obtained.

7. The macrofocus-based free-form surface headlight reflector design method according to claim 2, characterized in that: The free-form surface headlight reflector designed by fitting the curved surface according to the processing result comprises: According to the activation status of the free-form surface facets, the discrete data points of each activated free-form surface facet in the processing results are first fitted to obtain the activated facets, and then all the activated facets and the gap connecting surfaces are exported as a model as the designed free-form surface headlight reflector.

8. A free-form surface headlight reflector design device based on macro focus, characterized in that: It includes input module, facet initialization module, free surface solution module, gap processing module and output module; The input module is used to input design parameters and configuration options of the macrofocus reflector; The facet initialization module is used to initialize the UV direction data point coordinates of each free-form surface facet according to the design parameters and configuration options; The free-form surface solving module is used to solve the macrofocus reflector according to the design parameters and configuration options, and the UV direction data point coordinates of each free-form surface facet, and obtain the discrete data point composition solution result of each free-form surface facet; The gap processing module is used to process each free-form surface facet and the gap connection surface between the facets according to the design parameters and configuration options and the solution results to obtain the processing results; The output module is used to fit the surface according to the processing result to obtain the designed free-form surface vehicle headlight reflector.

9. A computing device comprising a memory and one or more processors, wherein the memory stores executable code, characterized in that: When the one or more processors execute the executable code, they are used to implement the macro-focus-based free-form surface vehicle light reflector design method described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: A program is stored thereon, and when the program is executed by a processor, the macro-focus-based free-form surface vehicle lamp reflector design method described in any one of claims 1 to 7 is implemented.