Unit type optical reflecting surface design and automatic 3D modeling method and device based on Catia V5, processor and medium

By defining the calculation grid and applying the tangent plane iteration method on the Catia V5 platform, the problem of large error in the design of integrated reflective surfaces for thick-walled parts in the existing technology is solved, and the independent reflective surfaces and integrated reflective surfaces for thick-walled parts are realized. Compatible with design, improving design accuracy and automation.

CN119105172APending Publication Date: 2024-12-10MAGNA MIRRORS (TAICANG) AUTOMOTIVE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411115363.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

The existing unit type optical reflective surface design has large errors on thick-walled parts of transparent materials, which cannot effectively design the best light energy distribution, and cannot be compatible with the integrated reflective surface design of independent reflective surfaces and thick-walled parts.

Method used

Using Catia V5-based method, automatic 3D modeling is realized by defining calculation grids, inserting nodes, calculating reflected light vectors, applying tangent plane iteration method and fitting point clouds, which is suitable for integrated independent reflective surfaces and thick-walled parts. Reflective surface design.

Benefits of technology

It realizes an optical reflective surface design with small error and simple operation, compatible with independent reflective surfaces and thick-walled integrated reflective surfaces, with a wide range of applications, improving the accuracy and automation of the design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105172A_ABST
    Figure CN119105172A_ABST
Patent Text Reader

Abstract

The invention relates to a method for realizing unit type optical reflecting surface design and automatic 3D modeling processing based on Catia V5. The method comprises the following steps: acquiring input data; defining a computational grid, and inserting nodes; defining reflection ray vectors on the grid points; calculating a first reflecting surface unit pattern point cloud by applying a tangent plane iteration method; the fitting point cloud is a reflecting surface unit; calculating unit patterns of the residual reflecting surface by applying boundary conditions, and fitting; and integrating all the reflecting surface units, and storing a result. The invention also relates to a device, a processor and a computer readable storage medium for realizing the design and automatic 3D modeling processing of the unit type optical reflecting surface based on the Catia V5. The method and the device for realizing the unit type optical reflecting surface design and the automatic 3D modeling processing based on the Catia V5, the processor and the computer readable storage medium are convenient to operate, can be compatible with a solving method of an independent reflecting surface design and a thick-wall part integrated reflecting surface design, realizes 3D modeling automation, and has a wide application range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical reflective surface design, in particular to the field of lamp reflective surfaces, and specifically refers to a method, device, processor and computer-readable storage medium thereof for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5. Background Art

[0002] Most of the existing unit optical reflective surface design solutions are based on the "point light source-independent reflective surface" system. The so-called "point light source-independent reflective surface" system refers to an optical system that can be abstractly simplified into a system consisting of a point light source and a reflector. After the light is emitted from the LED (simplified as a point light source), it passes through the air and then through the reflective surface. The new light energy distribution formed is the result of this type of design based on the "point light source-independent reflective surface" system. Figure 1 The optical model of the "point light source-independent reflecting surface" system is demonstrated.

[0003] However, in reality, there are many situations where it is necessary to design a reflective surface on a thick-walled part of a transparent material so that the light passes through the reflective surface and forms a certain energy distribution after leaving the thick-walled part. This type of reflector may be called a thick-walled integrated reflector. When designing such a reflective surface integrated on a thick-walled part, the existing design method based on the "point light source-independent reflective surface" system often results in large errors and cannot achieve a better result. Figure 2 The optical simulation of the “point light source-transparent thick-walled integrated reflector” system is demonstrated. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a method, device, processor and computer-readable storage medium thereof for realizing unit-type optical reflective surface design and automatic 3D modeling processing based on Catia V5, which have small errors, simple operation and a wide range of applications.

[0005] In order to achieve the above-mentioned object, the method, device, processor and computer-readable storage medium for realizing unit-type optical reflective surface design and automatic 3D modeling processing based on Catia V5 of the present invention are as follows:

[0006] The method for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5 is mainly characterized in that the method comprises the following steps:

[0007] (1) Obtain input data;

[0008] (2) Define the computational grid and insert nodes;

[0009] (3) Define the reflected light vector at the grid point;

[0010] (4) Calculate the first reflective surface unit pattern point cloud using the tangent plane iteration method;

[0011] (5) Fitting point cloud into reflection surface units;

[0012] (6) Apply boundary conditions to calculate the remaining reflective surface unit patterns and fit them;

[0013] (7) Integrate all reflection surface units and save the results.

[0014] Preferably, the step (2) specifically comprises the following steps:

[0015] (2.1) Get input;

[0016] (2.2) Determine whether the left and right diffusion angles are symmetrical about the local coordinate system XZ plane. If so, proceed to step (2.3); otherwise, proceed to step (2.4);

[0017] (2.3) Calculate the pattern unit on the right side of the XZ plane of the local coordinate system;

[0018] (2.4) Calculate the pattern units of all reflective surfaces;

[0019] (2.5) For the unit to be calculated, calculate the coordinates of the projection center point of the pattern unit on the YZ plane of the local coordinate system;

[0020] (2.6) Insert nodes for the projection of the pattern unit according to the resolution.

[0021] Preferably, the step (3) specifically comprises the following steps:

[0022] (3.1) Determine whether it is a thick-walled integrated reflector. If so, proceed to step (3.2); otherwise, proceed to step (3.4);

[0023] (3.2) Convert the input diffusion angle into the diffusion angles U_spread*, B_spread*, L_spread* and R_spread* on the reflection surface;

[0024] (3.3) Let the vertical diffusion angle of the first row of nodes above the reflector unit be B_spread*; the vertical diffusion angle of the first row of nodes below the reflector unit be U_spread*; the horizontal diffusion angle of the first column of nodes on the left side of the reflector unit be R_spread*; the horizontal diffusion angle of the first column of nodes on the right side of the reflector unit be L_spread*, then continue with step (3.5);

[0025] (3.4) Let the vertical diffusion angle of the first row of nodes above the reflector unit be U_spread, and the vertical diffusion angle of the first row of nodes below the reflector unit be B_spread; let the horizontal diffusion angle of the first column of nodes on the left side of the reflector unit be L_spread, and the horizontal diffusion angle of the first column of nodes on the right side of the reflector unit be R_spread, then continue with step (3.5);

[0026] (3.5) Use linear interpolation to interpolate the diffusion angles of internal nodes.

[0027] Preferably, the step (4) specifically comprises the following steps:

[0028] (4.1) Define the first reflection surface unit;

[0029] (4.2) Initialize the X coordinate and normal vector of the first node in the upper left corner of the unit;

[0030] (4.3) The tangent plane iteration method is used to solve the reflection surface unit point cloud.

[0031] Preferably, the step (4.2) specifically includes the following steps:

[0032] (4.2.1) Anchor the intersection of the first node in the upper left corner and the parabola, denoted as p1,1;

[0033] (4.2.2) Determine whether the reflector type is a thick-walled integrated reflector. If so, proceed to step (4.2.3); otherwise, proceed to step (4.2.5);

[0034] (4.2.3) Use the iterative method to find the intersection point between the light ray emitted by the light source and reaching p1,1 and the incident surface of the thick-walled part;

[0035] (4.2.4) Get the unit incident vector v_inci, the starting point is p_iter, and the end point is p1,1;

[0036] (4.2.5) Get the unit incident vector v_inci, the starting point is the light source, and the end point is p1,1;

[0037] (4.2.6) By vector addition, calculate the local normal vector norm11 of the reflection surface at the first node in the upper left corner.

[0038] Preferably, the step (4.3) is specifically as follows:

[0039] Taking the first node in the upper left corner as the initial condition, the coordinates of the nodes adjacent to the first node in the upper left corner are calculated by the tangent plane iteration method, and the remaining nodes are calculated in this way until the calculation of the node in the lower right corner is completed.

[0040] Preferably, in step (6), the boundary conditions are applied to calculate the remaining reflective surface unit patterns, specifically:

[0041] First, the reflective surface units of the current column are calculated in the order of increasing row numbers, and then the reflective surface units of the next column whose column number is increased by one are calculated in the order of increasing row numbers.

[0042] Preferably, the input data in step (1) includes 3D data, the number of reflective surface pattern units, the projection size of the reflective surface pattern units on the YZ plane of the local coordinate system, the resolution of the reflective surface pattern units, the diffusion angle of the outer envelope of the light type formed by the reflective surface pattern units, the type of the reflector, the distance between the top plane of the reflector and the XY plane of the local coordinate system, the refractive index of the transparent thick-walled part and the distance between the first row of patterns of the reflector and the top plane of the reflector.

[0043] The device for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5 has the following main features: the device comprises:

[0044] a processor configured to execute computer-executable instructions;

[0045] A memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for realizing the design of unit optical reflective surface and automatic 3D modeling based on Catia V5 are realized.

[0046] The processor for realizing unit-type optical reflective surface design and automatic 3D modeling processing based on Catia V5 has the main feature that the processor is configured to execute computer executable instructions. When the computer executable instructions are executed by the processor, the various steps of the method for realizing unit-type optical reflective surface design and automatic 3D modeling processing based on Catia V5 are realized.

[0047] The computer-readable storage medium has the main feature of storing a computer program thereon, which can be executed by a processor to implement the various steps of the method for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5.

[0048] The method, device, processor and computer-readable storage medium for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5 of the present invention are easy to operate. When designing a thick-walled integrated reflective surface, there is only one more step than designing an independent reflective surface, and some parameters are slightly different. The method can be compatible with the solution method of independent reflective surface design and thick-walled integrated reflective surface design, and realizes 3D modeling automation, which has a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a schematic diagram of the optical model of the "point light source-independent reflecting surface" system in the prior art.

[0050] Figure 2 It is a schematic diagram of optical simulation of the “point light source-transparent thick-walled integrated reflector” system in the prior art.

[0051] Figure 3 The present invention is a flow chart of a method for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5.

[0052] Figure 4 It is an X-axis projection view of the reflection surface of the method for realizing unit-type optical reflection surface design and automatic 3D modeling processing based on Catia V5 of the present invention.

[0053] Figure 5 It is a schematic diagram of a grid unit node of the method for realizing unit-type optical reflective surface design and automatic 3D modeling processing based on Catia V5 of the present invention.

[0054] Figure 6 The present invention is a flow chart of the definition of the calculation grid of the method for realizing the design of unit optical reflective surface and automatic 3D modeling based on Catia V5.

[0055] Figure 7 This is a schematic diagram of the propagation direction of the thick-walled integrated unit reflective surface of the method for realizing the unit optical reflective surface design and automatic 3D modeling processing based on Catia V5 of the present invention.

[0056] Figure 8 The present invention is a schematic diagram of the independent unit reflective surface and the propagation direction of the reflected light in the method for realizing the unit optical reflective surface design and automatic 3D modeling based on Catia V5.

[0057] Fig. 9 It is a schematic diagram of the reflected light vector and diffusion angle of the method for realizing unit-type optical reflective surface design and automatic 3D modeling processing based on Catia V5 of the present invention.

[0058] Fig.10 The present invention is a flow chart of defining grid node reflection light vectors in a method for realizing unit optical reflection surface design and automatic 3D modeling based on Catia V5.

[0059] Fig.11It is a schematic diagram of the first reflective surface to be solved for the method of realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5 of the present invention, which is a reflective surface with symmetric left and right diffusion angles.

[0060] Fig.12 The present invention is a flow chart of calculating the first reflective surface unit point cloud of the method for realizing unit optical reflective surface design and automatic 3D modeling based on Catia V5.

[0061] Fig.13 The present invention is a flow chart of a method for realizing unit optical reflective surface design and automatic 3D modeling based on Catia V5, which takes the first node in the upper left corner as an anchor point and calculates the upper left corner node and the local normal vector of the reflective surface.

[0062] Fig.14 The present invention is a flowchart of solving the incident point by an iterative method for realizing the design of unit optical reflective surface and automatic 3D modeling based on Catia V5.

[0063] Fig.15 It is a schematic diagram of the weighted average calculation of Pi,j by the tangent plane iteration method of the method for realizing unit-type optical reflective surface design and automatic 3D modeling processing based on Catia V5 of the present invention.

[0064] Fig.16 It is a schematic diagram of a program panel of the method for realizing unit-type optical reflective surface design and automatic 3D modeling processing based on Catia V5 of the present invention.

[0065] Fig.17 This is a schematic diagram of example parameters of the method for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5 of the present invention.

[0066] Fig.18 This is a schematic diagram of simulated light intensity of an example of the method for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5 of the present invention. DETAILED DESCRIPTION

[0067] In order to more clearly describe the technical content of the present invention, further description is given below in conjunction with specific embodiments.

[0068] The method of realizing unit type optical reflective surface design and automatic 3D modeling based on Catia V5 of the present invention comprises the following steps:

[0069] (1) Obtain input data;

[0070] (2) Define the computational grid and insert nodes;

[0071] (3) Define the reflected light vector at the grid point;

[0072] (4) Calculate the first reflective surface unit pattern point cloud using the tangent plane iteration method;

[0073] (5) Fitting point cloud into reflection surface units;

[0074] (6) Apply boundary conditions to calculate the remaining reflective surface unit patterns and fit them;

[0075] (7) Integrate all reflection surface units and save the results.

[0076] As a preferred embodiment of the present invention, the step (2) specifically comprises the following steps:

[0077] (2.1) Get input;

[0078] (2.2) Determine whether the left and right diffusion angles are symmetrical about the local coordinate system XZ plane. If so, proceed to step (2.3); otherwise, proceed to step (2.4);

[0079] (2.3) Calculate the pattern unit on the right side of the XZ plane of the local coordinate system;

[0080] (2.4) Calculate the pattern units of all reflective surfaces;

[0081] (2.5) For the unit to be calculated, calculate the coordinates of the projection center point of the pattern unit on the YZ plane of the local coordinate system;

[0082] (2.6) Insert nodes for the projection of the pattern unit according to the resolution.

[0083] As a preferred embodiment of the present invention, the step (3) specifically comprises the following steps:

[0084] (3.1) Determine whether it is a thick-walled integrated reflector. If so, proceed to step (3.2); otherwise, proceed to step (3.4);

[0085] (3.2) Convert the input diffusion angle into the diffusion angles U_spread*, B_spread*, L_spread* and R_spread* on the reflection surface;

[0086] (3.3) Let the vertical diffusion angle of the first row of nodes above the reflector unit be B_spread*; the vertical diffusion angle of the first row of nodes below the reflector unit be U_spread*; the horizontal diffusion angle of the first column of nodes on the left side of the reflector unit be R_spread*; the horizontal diffusion angle of the first column of nodes on the right side of the reflector unit be L_spread*, then continue with step (3.5);

[0087] (3.4) Let the vertical diffusion angle of the first row of nodes above the reflector unit be U_spread, and the vertical diffusion angle of the first row of nodes below the reflector unit be B_spread; let the horizontal diffusion angle of the first column of nodes on the left side of the reflector unit be L_spread, and the horizontal diffusion angle of the first column of nodes on the right side of the reflector unit be R_spread, then continue with step (3.5);

[0088] (3.5) Use linear interpolation to interpolate the diffusion angles of internal nodes.

[0089] As a preferred embodiment of the present invention, the step (4) specifically comprises the following steps:

[0090] (4.1) Define the first reflection surface unit;

[0091] (4.2) Initialize the X coordinate and normal vector of the first node in the upper left corner of the unit;

[0092] (4.3) The tangent plane iteration method is used to solve the reflection surface unit point cloud.

[0093] As a preferred embodiment of the present invention, the step (4.2) specifically includes the following steps:

[0094] (4.2.1) Anchor the intersection of the first node in the upper left corner and the parabola, denoted as p1,1;

[0095] (4.2.2) Determine whether the reflector type is a thick-walled integrated reflector. If so, proceed to step (4.2.3); otherwise, proceed to step (4.2.5);

[0096] (4.2.3) Use the iterative method to find the intersection point between the light ray emitted by the light source and reaching p1,1 and the incident surface of the thick-walled part;

[0097] (4.2.4) Get the unit incident vector v_inci, the starting point is p_iter, and the end point is p1,1;

[0098] (4.2.5) Get the unit incident vector v_inci, the starting point is the light source, and the end point is p1,1;

[0099] (4.2.6) By vector addition, calculate the local normal vector norm11 of the reflection surface at the first node in the upper left corner.

[0100] As a preferred embodiment of the present invention, the step (4.3) is specifically as follows:

[0101] Taking the first node in the upper left corner as the initial condition, the coordinates of the nodes adjacent to the first node in the upper left corner are calculated by the tangent plane iteration method, and the remaining nodes are calculated in this way until the calculation of the node in the lower right corner is completed.

[0102] As a preferred embodiment of the present invention, the boundary conditions are applied in step (6) to calculate the remaining reflective surface unit patterns, specifically:

[0103] First, the reflective surface units of the current column are calculated in the order of increasing row numbers, and then the reflective surface units of the next column whose column number is increased by one are calculated in the order of increasing row numbers.

[0104] As a preferred embodiment of the present invention, the input data in the step (1) includes 3D data, the number of reflective surface pattern units, the projection size of the reflective surface pattern units on the YZ plane of the local coordinate system, the resolution of the reflective surface pattern units, the diffusion angle of the outer envelope of the light type formed by the reflective surface pattern units, the type of the reflector, the distance between the top plane of the reflector and the XY plane of the local coordinate system, the refractive index of the transparent thick-walled part, and the distance between the first row of patterns of the reflector and the top plane of the reflector.

[0105] The device for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5 of the present invention comprises:

[0106] a processor configured to execute computer executable instructions;

[0107] A memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for realizing the design of unit optical reflective surface and automatic 3D modeling based on Catia V5 are realized.

[0108] The processor of the present invention is used to implement the design of unit-type optical reflective surfaces and automatic 3D modeling processing based on Catia V5, wherein the processor is configured to execute computer-executable instructions. When the computer-executable instructions are executed by the processor, the various steps of the method for implementing the design of unit-type optical reflective surfaces and automatic 3D modeling processing based on Catia V5 are implemented.

[0109] The computer-readable storage medium of the present invention stores a computer program thereon, and the computer program can be executed by a processor to implement the various steps of the method for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5.

[0110] In a specific embodiment of the present invention, the main steps of the present invention are as follows (eg Figure 3 shown):

[0111] (1) Obtain input;

[0112] (2) Define the computational grid and insert nodes;

[0113] (3) Define the reflected light vector at the grid point;

[0114] (4) Calculate the first reflective surface unit pattern point cloud using the tangent plane iteration method;

[0115] (5) Call Catia V5 program to fit the point cloud into reflection surface units;

[0116] (6) Apply boundary conditions to calculate and fit the remaining reflective surface unit patterns;

[0117] (7) Integrate all reflection surface units and save the results.

[0118] The specific steps of the present invention are as follows:

[0119] 1. Get input:

[0120] The input information that needs to be obtained in this section includes:

[0121] 1) A 3D data in the ".CATPart" format supported by Catia V5. Contains a local coordinate system named "Local Axis" (hereinafter referred to as the local coordinate system), and the generated reflective surface uses this coordinate system as the reference system. In the calculation model, the center of the LED light-emitting surface is located at the origin of the local coordinate system, and the main optical axis is in the opposite direction of the Z axis of the local coordinate system. Contains a parabola, which is arranged in a geometric set named "Input". The opening of the parabola is in the same direction as the X axis of the local coordinate system, the rotation axis of the parabola is parallel to the X axis of the local coordinate system, and the intersection of the parabola is located on the X axis of the local coordinate system; the parabola is used to anchor the first reflective surface pattern in the upper left corner that is actually generated.

[0122] 2) The number of reflective surface pattern units, including the number of rows of the reflective surface (each row is parallel to the Y axis of the local coordinate system) elem_row_num, and the number of columns of the reflective surface (each column is parallel to the Z axis of the local coordinate system) elem_col_num. The order of increasing rows is the negative direction of the Z axis of the local coordinate system; the order of increasing columns is the positive direction of the Y axis of the local coordinate system. For example Figure 1 In the figure, the number of rows and columns of the reflective surface pattern units are 5 and 4 respectively.

[0123] 3) The projection dimensions of the reflective surface pattern unit on the YZ plane of the local coordinate system, elem_y and elem_z.

[0124] 4) Resolution of reflective surface pattern unit. This parameter refers to the number of nodes used when calculating the reflective surface pattern unit point cloud. The number of points inserted horizontally and vertically are: num_grid_h and num_grid_v respectively. This number is not absolute. Since this method requires the number of horizontal and vertical nodes to be odd numbers, there is a certain deviation between the number of nodes actually used and the input value. The final number of horizontal and vertical nodes inserted is recorded as combine_row_num and combine_col_num respectively.

[0125] 5) The diffusion angle of the outer envelope of the light pattern finally formed by the reflective surface pattern unit. The diffusion angle refers to the deflection angle of the outer envelope of the light formed by the reflective surface pattern unit relative to the X-axis of the local coordinate system. Observe the reflective surface in the opposite direction of the X-axis of the local coordinate system to ensure that the LED is located above the reflective surface on the plane. From the perspective of light intensity distribution, the outer envelope of the light is a rectangle. The left boundary of the rectangle represents the maximum deflection angle of the light pattern to the left; the right boundary of the rectangle represents the maximum deflection angle of the light pattern to the right; the upper boundary of the rectangle represents the maximum deflection angle of the light pattern to the upper side; and the lower boundary of the rectangle represents the maximum deflection angle of the light pattern to the lower side. Define the direction parallel to the X-axis of the local coordinate system as the middle. If the light is biased to the left or lower side relative to the X-axis, the corresponding diffusion angle is defined as a negative value; otherwise, it is a positive value. Define the light parallel to the X-axis to have a diffusion angle of zero. Define the diffusion angles of left, right, upper, and lower as: L_spread, R_spread, U_spread, and B_spread, respectively.

[0126] 6) Define the type of reflector, which can be Figure 1 "Standalone" (indicated by Air) or Figure 2 The "transparent thick-walled parts integrated type" (indicated by Mat) is shown.

[0127] 7) Define the distance d1 between the top plane of the reflector (the plane close to the LED and parallel to the XY plane of the local coordinate system) and the XY plane of the local coordinate system, which needs to be a positive value;

[0128] 8) If parameter 6 is set to "transparent thick-walled integrated type", define the refractive index n of the transparent thick-walled part;

[0129] 9) If parameter 6 is set to "Transparent thick-walled integrated", define the distance (along the local coordinate system Z axis) between the first row of patterns on the reflector (close to the LED side) and the top plane of the reflector (close to the LED and parallel to the local coordinate system XY plane), which needs to be a positive value.

[0130] 2. Define the computational grid and insert nodes:

[0131] The optical reflective surface pattern generated by this method is composed of a number of pattern units arranged horizontally and vertically, and each pattern unit is independent and different. From the perspective of the local coordinate system X-axis projection, the shape of the pattern unit is a rectangle, and the size of the projection of each pattern unit is the same; the optical reflective surface pattern thus combined is also a rectangle. The length (along the Y axis of the local coordinate system) of the projection of the shape of the pattern unit in the local coordinate system is defined as elem_y, and the height (along the Z axis of the local coordinate system) is defined as elem_z.

[0132] Define the number of rows of independent pattern units contained in the optical reflective surface as elem_row_num, and the number of columns as elem_col_num.

[0133] Define the distance between the top of the generated optical reflection surface and the XY plane of the local coordinate system as d1.

[0134] For the thick-walled integrated reflector, it is necessary to define the distance between the top of the optical reflective surface and the first row of independent pattern units along the Z axis of the local coordinate system, which is denoted as d2.

[0135] Based on the above information, the coordinates of the center point of each pattern unit projection can be calculated. For example, the coordinates of the center point of the pattern unit projection located in row_i and column col_j are as follows:

[0136] Y coordinate: (0.5–elem_col_num / 2+col_j-1)×elem_y

[0137] Z coordinate (independent): -d1–(0.5+row_i-1)×elem_z

[0138] Z coordinate (integrated thick-walled parts): -d1–(0.5+row_i-1)×elem_z–d2

[0139] The optical reflective surface pattern generated by this method has the same number of pattern units arranged on both sides of the local coordinate system XZ plane. If the number of rows of pattern units is an odd number, the center point of the projection of one row of pattern units is located in the local coordinate system XZ plane.

[0140] If the set diffusion angle is symmetrical about the local coordinate system XZ plane, that is, L_spread+R_Spread=0, then due to the symmetry of the light source itself, this method can be simplified to only calculate the pattern units on the right side of the local coordinate system XZ plane. The Z coordinate calculation method for the center point of the projection of the pattern unit in the right half of the local coordinate system XZ plane is as follows:

[0141] If elem_col_num is an odd number, then: the Y coordinate of the projection center point of the pattern unit in the col_j column in the right half of the local coordinate system XZ plane is: elem_y×(col_j-1);

[0142] If elem_col_num is an even number, then: the Y coordinate of the projection center point of the j-th pattern unit in the right half of the local coordinate system XZ plane is: elem_y×(0.5+col_j-1);

[0143] like Figure 4 As shown in the example, the optical pattern is arranged in 5 rows and 4 columns, the length and height of the pattern unit projection are 2 mm respectively, and the length and height of the combined optical reflective surface pattern projection are 8 mm and 10 mm respectively. The distance between the top of the optical reflective surface generated in the example and the XY plane of the local coordinate system is 1 mm.

[0144] Based on the projection (rectangle) of the pattern unit on the YZ plane of the local coordinate system, combine_row_num and combine_col_num nodes are inserted in the horizontal and vertical directions respectively to divide the length and height of the projection (rectangle) equally. The pattern unit is discretized using the dot matrix, and after solving the point cloud by the tangent plane iteration method, the final pattern unit surface is obtained by fitting. The density of the dot matrix represents the resolution of the pattern unit. Figure 5 As shown, in the example, 9 nodes are inserted in both the horizontal and vertical directions to discretize the pattern unit. For each reflective surface pattern unit, the number and arrangement of the inserted nodes are consistent.

[0145] The flow chart for defining the computational grid and inserting nodes in this section is as follows Figure 6 shown.

[0146] 3. Define the reflected light vector of the grid point:

[0147] 3.1 Basic principles:

[0148] In this method, the diffusion angle formed by each reflection surface unit generated by the same calculation is consistent.

[0149] To ensure consistency, the input diffusion angle defined in this method refers to the diffusion angle of the light relative to the local coordinate system X axis after leaving the independent reflector or thick-walled component. Because the final light pattern formed by the thick-walled component integrated reflector involves the refraction of the light-emitting surface, it is necessary to convert the reflected light vector of the thick-walled component integrated reflective surface.

[0150] In order to minimize the influence of the side walls (including the upper and lower walls) of the thick-walled integrated reflector on the reflected light, this method sets the reflected light formed by the reflective surface of the thick-walled integrated reflector to be crossed. Since the independent reflector usually does not need to consider the influence of the wall surface, this method sets the reflected light formed by the reflective surface of the independent reflector to be non-crossed.

[0151] like Figure 7 As shown, the example gives the propagation path of the reflected light at one of the reflective surface boundaries of the thick-walled integrated reflector; viewed from the opposite direction of the X-axis of the local coordinate system, ensure that the LED is above the reflective surface, the reflected light formed by the upper boundary of the reflective surface unit constitutes the lower boundary of the diffusion angle, the reflected light formed by the lower boundary of the reflective surface unit constitutes the upper boundary of the diffusion angle, the reflected light formed by the left boundary of the reflective surface unit constitutes the right boundary of the diffusion angle, and the reflected light formed by the right boundary of the reflective surface unit constitutes the left boundary of the diffusion angle.

[0152] like Figure 8 As shown, the example gives the propagation path of the reflected light at one of the reflective surface boundaries of the independent reflector; viewed from the opposite direction of the X-axis of the local coordinate system, ensuring that the LED is above the reflective surface, the reflected light formed by the upper boundary of the reflective surface unit constitutes the upper boundary of the diffusion angle, the reflected light formed by the lower boundary of the reflective surface unit constitutes the lower boundary of the diffusion angle, the reflected light formed by the left boundary of the reflective surface unit constitutes the left boundary of the diffusion angle, and the reflected light formed by the right boundary of the reflective surface unit constitutes the right boundary of the diffusion angle.

[0153] 3.2 Relationship between reflected light vector and diffusion angle

[0154] The diffusion angle of any point on the reflection surface set by this method is a two-dimensional variable, which contains two components, namely the horizontal diffusion angle and the vertical diffusion angle. The horizontal diffusion angle and the vertical diffusion angle have positive and negative values, which are used to determine their relative relationship with the X-axis. In the three-dimensional Cartesian space coordinate system, the reflected light vector is a three-dimensional variable, which is represented by the components of the vector on the three coordinate axes.

[0155] like Fig. 9 As shown in the figure, take any point on the reflection surface as the origin to create a coordinate system parallel to the local coordinate system, which is recorded as the node coordinate system. Among them: V represents the unit vector of the reflected light, V x Represents the projection vector of V on the X-axis, V y Represents the projection vector of V on the Y axis, V z V represents the projection vector of V on the Z axis, V xz represents the projection vector of V on the XZ plane, V xy Represents the projection vector of V on the XY plane; the Alpha angle is V xzThe angle with the X axis (also the vertical diffusion angle); Beta angle is V xy The angle with the X-axis (also the horizontal diffusion angle). xz On the upper side of the XY plane, the Alpha angle is positive; V xz Located in the XY plane, the Alpha angle is zero; V xz On the lower side of the XY plane, the Alpha angle is negative; xy On the right side of the XZ plane, the Beta angle is positive; V xy In the XZ plane, the Beta angle is zero; V xy On the left side of the XZ plane, the Beta angle is negative.

[0156] According to the spatial geometric relationship and vector operation rules, we can know that:

[0157]

[0158] According to the above four equations, the mapping relationship between the diffusion angle of a point on the reflection surface and the unit vector of the reflected light (denoted as v_refl) can be constructed.

[0159] 3.3 Node diffusion angle setting method

[0160] The unit nodes inserted for calculation in the second section, their projection on the YZ plane of the local coordinate system constitute a rectangular domain. If straight lines parallel to the length and height of the rectangle are drawn through the centroid of the rectangle, the rectangle must be symmetrical about these two straight lines. This method converts the horizontal (vertical) node number input by the user into adjacent odd numbers to ensure that the midpoint of the inserted node lattice is located at the centroid of the rectangle.

[0161] This method defines that in the reflection surface unit, the vertical diffusion angles of the nodes in the same horizontal row (parallel to the Y axis of the local coordinate system) are the same, and the horizontal diffusion angles of the nodes in the same vertical row (parallel to the Z axis of the local coordinate system) are the same.

[0162] For stand-alone reflector units:

[0163] According to the input, the vertical diffusion angle of the first row of nodes above the reflector unit is U_spread, and the vertical diffusion angle of the first row of nodes below the reflector unit is B_spread; the horizontal diffusion angle of the first column of nodes on the left side of the reflector unit is L_spread, and the horizontal diffusion angle of the first column of nodes on the right side of the reflector unit is R_spread. For the nodes within the boundary, linear interpolation is used to make them evenly distributed.

[0164] For thick-walled integrated reflector units:

[0165] First, we need to use Snell's law to convert the diffusion angle of the input system into the diffusion angle of the reflected light formed by the reflection surface according to the refractive index of the thick-walled part. The conversion formula is as follows (where n is the refractive index of the thick-walled part):

[0166] U spread* =sin -1 (sin(U spread ) / n)

[0167] B spread* =sin -1 (sin(B spread ) / n)

[0168] L spread* =sin -1 (sin(L spread ) / n)

[0169] R spread* =sin -1 (sin(R spread ) / n)

[0170] The diffusion angles of the upper, lower, left and right after conversion are respectively: U_spread*, B_spread*, L_spread* and R_spread*. Because the reflected light of the integrated reflective surface of the thick-walled part is cross-type, the vertical diffusion angle of the first row of nodes above the reflective surface unit is B_spread*; the vertical diffusion angle of the first row of nodes below the reflective surface unit is U_spread*; the horizontal diffusion angle of the first column of nodes on the left side of the reflective surface unit is R_spread*; the horizontal diffusion angle of the first column of nodes on the right side of the reflective surface unit is L_spread*. For the nodes within the boundary, the linear interpolation method is used to make them evenly distributed.

[0171] The flowchart of this section is as follows Fig.10 shown.

[0172] 4. Apply the tangent plane iteration method to calculate the first reflective surface unit pattern point cloud:

[0173] The flowchart of this section is as follows Fig.12 shown.

[0174] 4.1 Define the first reflection surface unit:

[0175] The definition of the first reflective surface pattern unit in this method is as follows:

[0176] (1) If the input left and right diffusion angles L_spread and R_spread are asymmetric, that is, L_spread+R_spread≠0, then the first reflection surface pattern unit refers to the reflection surface pattern unit at the upper left corner of the entire reflection surface.

[0177] (2) If the input left and right diffusion angles L_spread and R_spread are symmetrical, that is, L_spread+R_spread=0, then according to the description in Section 2, the entire reflection surface is symmetrical about the local coordinate system XZ plane, so only the reflection surface units on one side of the XZ plane need to be calculated. If the input total number of unit columns elem_col_num is an even number, then the first reflection surface unit refers to the reflection surface unit on the right half of the local coordinate system XZ plane, the upper left corner, such as Fig.11 (a) Example; if the total number of columns of input cells, elem_col_num, is an odd number, then the first reflector cell refers to the reflector cell in the middle of the first row, such as Fig.11 (b) Example shown.

[0178] Based on the above two points about the definition of the first reflector unit and the definition of the coordinates of the projection center point of the reflector unit in Section 2, the YZ coordinates of the first reflector unit node in the local coordinate system can be obtained. In the first reflector unit, the YZ coordinates of the i-th row and j-th column in the local coordinate system are:

[0179] (1) If the input left and right diffusion angles L_spread and R_spread are asymmetric, that is, L_spread+R_spread≠0, then:

[0180] Y coordinate: –elem_col_num / 2×elem_y+(j-1) / (combine_col_num-1)×elem_y

[0181] Z coordinate (independent): -d1–(i-1) / (combine_row_num-1)×elem_z

[0182] Z coordinate (thick-walled integrated): -d1-d2–(i-1) / (combine_row_num-1)×elem_z

[0183] (2) If the input left and right diffusion angles L_spread and R_spread are symmetrical, that is, L_spread+R_spread=0, then:

[0184] Y coordinate (combine_col_num is an odd number): [(j-1) / (combine_col_num-1)-0.5]×elem_y

[0185] Y coordinate (combine_col_num is an even number): (j-1) / (combine_col_num-1)×elem_y

[0186] Z coordinate (independent): -d1–(i-1) / (combine_row_num-1)×elem_z

[0187] Z coordinate (thick-walled integrated): -d1-d2–(i-1) / (combine_row_num-1)×elem_z

[0188] 4.2 Initialize the X coordinate and normal vector of the first node in the upper left corner of the unit:

[0189] The X coordinate and normal plane vector of the first node in the upper left corner of the unit obtained in this section will be used as the initial conditions for solving the entire unit point cloud using the tangent plane iteration method. There are many ways to obtain the X coordinate and normal plane vector of the first node in the upper left corner of the unit. The difference between them lies in the different nodes used to anchor the "paraboloid" input in the first section.

[0190] One of the simplest methods is to directly use the upper left corner node as the anchor point. Its flowchart is as follows Fig.13 shown.

[0191] Here’s how:

[0192] Step 1: Draw a straight line through the upper left corner node parallel to the X axis of the local coordinate system, and find the intersection of the straight line and the "paraboloid" input in the first section, recorded as p1,1. In this way, the X coordinate of the first node in the upper left corner of the unit in the local coordinate system is obtained.

[0193] Step 2, determining the input reflector type;

[0194] If the reflector type is an "independent" reflector, create a unit vector v_inci with the starting point being the intersection coordinates obtained in step 1 and the end point being the origin of the local coordinate system. Go to step 4.

[0195] If the reflector type is a "thick-walled integrated" reflector, proceed to step 3;

[0196] Step 3, use the iterative method to solve the intersection of the light emitted by the light source (local coordinate system origin, denoted as p_origin) and the light incident surface of the thick-walled part. The flowchart of step 3 is as follows Fig.14 shown.

[0197] The specific steps are as follows:

[0198] (A) The surface of the thick-walled component close to the local coordinate system and parallel to the XY plane of the local coordinate system is called the "thick-walled component incident surface". The projection point of the light source center on the "thick-walled component incident surface" is called p_st_proj, and the projection direction is the normal of the "thick-walled component incident surface". The projection point of p11 on the "thick-walled component incident surface" is called p_ed_proj, and the projection direction is the normal of the "thick-walled component incident surface". According to the knowledge of geometric optics, the intersection of the light emitted by the light source (local coordinate system origin) reaching p11 and the thick-walled component incident surface must be between p_st_proj and p_ed_proj.

[0199] (B) Let p_L be a point on the line segment with p_st_proj and p_ed_proj as endpoints, and define its initial value as p_st_proj; let p_R be a point on the line segment with p_st_proj and p_ed_proj as endpoints, and define its initial value as p_ed_proj.

[0200] (C) Create vector v_L1, with its starting point at p_origin and its end point at p_L; create vector v_L2, with its starting point at p_L and its end point at p1,1. Let the angle between vector v_L1 and the normal vector of the “thick-walled component incident surface” be θ_L1; let the angle between vector v_L2 and the normal vector of the “thick-walled component incident surface” be θ_L2.

[0201] calculate:

[0202] L_sign=n×sin(θ_L2)-sin(θ_L1)

[0203] (D) Create vector v_R1, with its starting point at p_origin and its end point at p_R; create vector v_R2, with its starting point at p_R and its end point at p1,1. Let the angle between vector v_R1 and the normal vector of the “thick-walled component incident surface” be θ_R1; let the angle between vector v_R2 and the normal vector of the “thick-walled component incident surface” be θ_R2.

[0204] calculate:

[0205] R_sign=n×sin(θ_R2)-sin(θ_R1)

[0206] (E) Let p_mid be the midpoint between p_L and p_R. Create vector v_mid1, starting from p_origin and ending at p_mid; create vector v_mid2, starting from p_mid and ending at p1,1. Let the angle between vector v_mid1 and the normal vector of the “thick-walled component incident surface” be θ_mid1; let the angle between vector v_mid2 and the normal vector of the “thick-walled component incident surface” be θ_mid2.

[0207] calculate:

[0208] Mid_sign=n×sin(θ_mid2)-sin(θ_mid1)

[0209] (F) If L_sign×Mid_sign<0, let p_R take the current value of p_mid; if Mid_sign×R_sign<0, let p_L take the current value of p_mid.

[0210] (G) Determine whether the length of the line segment formed by the current p_L and p_R is small enough (for example, less than 1.0E-05). If the length of the line segment is small enough, execute (H), otherwise return to (C).

[0211] (H) Let p_iter be the end point of p_L and p_R, and take p_iter as the intersection of the light ray emitted by the light source (the origin of the local coordinate system, denoted as p_origin) and reaching p1,1 and the incident surface of the thick-walled part.

[0212] Create a unit vector v_inci starting from p_iter and ending at the local coordinate system origin.

[0213] Step 4, add two vectors, one of which is the incident light unit vector v_inci of the first node in the upper left corner, and the other is the reflection vector v_refl at the first node in the upper left corner defined in Section 3. The vector norm11 obtained by addition is the local normal vector of the reflection surface at the first node in the upper left corner.

[0214] Another method for obtaining the X coordinate of the first node in the upper left corner and the local normal vector of the reflection surface is to use the tangent plane iteration method to infer the information of the first node in the upper left corner from other anchor points.

[0215] 4.3 Tangent plane iteration method to solve the reflection surface unit point cloud:

[0216] Taking the coordinates of the first node in the upper left corner obtained in Section 4.2 and the normal vector of the reflection surface at that location as the initial conditions, the coordinates of the reflection points corresponding to the remaining nodes in the unit including the normal vector of the reflection surface can be obtained using the spatial tangent plane iteration method.

[0217] The tangent plane iteration method is an explicit method for solving the coordinates of a space point. In this method, the iteration method takes the first node in the upper left corner as the initial condition, and calculates the coordinates of the nodes adjacent to the first node in the upper left corner (the first row and second column node is recorded as P1,2 and the first column and second row node is P2,1) through the tangent plane iteration method. The remaining nodes are calculated in this diffuse form until the calculation of the node in the lower right corner is completed.

[0218] The tangent plane iteration method used in this method follows the following principles:

[0219] (1) Forward iteration. The coordinates of the node Pi,j numbered (i, j) can only be obtained by iterating Pi-1,j and Pi,j-1. Pi,j will not be solved in reverse after Pi+1,j or Pi,j+1 is obtained;

[0220] (2) Only one step forward. The information of the node Pi,j numbered (i,j) as a known condition only directly participates in the iterative calculation of Pi+1,j or Pi,j+1. The number increases by one step.

[0221] (3) Weighted average. Assuming that Pi-1,j and Pi,j-1 are both known, when solving Pi,j, Pi-1,j and Pi,j-1 exert influence on Pi,j by weighted average. The principle of weighted average is based on distance, and the influence is small when the distance is far. If Pi-1,j (Pi,j-1) does not exist, then when solving Pi,j, only the influence of Pi,j-1 (Pi-1,j) is considered.

[0222] (4) First find the node coordinates, and then find the normal vector of the reflection surface at the node.

[0223] Fig.15 The process of solving Pi,j by the tangent plane iteration method is shown. It is assumed that the coordinates of Pi-1,j and Pi,j-1 have been obtained through the previous iteration steps, and the normal vectors Norm(i-1,j) and Norm(i,j-1) of the reflection surface at Pi-1,j and Pi,j-1 are also obtained through the previous iteration steps.

[0224] The steps to solve the X coordinate of Pi,j and the normal vector Norm(i,j) of the reflection surface at that point are as follows:

[0225] (A) Draw a straight line through Pi, j, parallel to the X-axis of the local coordinate system, denoted as L(i, j);

[0226] (B) Make a plane through Pi-1, j, whose normal vector is Norm(i-1, j), denoted as Plan(i-1, j);

[0227] (C) Make a plane through Pi, j-1, whose normal vector is Norm(i, j-1), denoted as Plan(i, j-1);

[0228] (D) Find the intersection of the line L(i, j) and the plane Plan(i-1, j), denoted as Pi,j_V;

[0229] (E) Find the intersection of the line L(i, j) and the plane Plan(i, j-1), denoted as Pi,j_H;

[0230] (F) Calculate the distance between Pi-1,j and Pi,j_V, denoted as Length_V;

[0231] (G) Calculate the distance between Pi,j-1 and Pi,j_H, denoted as Length_H;

[0232] (H)Pi,j=f1×Pi-1,j+f2×Pi,j-1, where f1=Length_H / (Length_H+Length_V),f2

[0233] =1–f1. If Pi-1,j does not exist, then Pi,j=Pi,j_H; if Pi,j-1 does not exist, then Pi,j=Pi,

[0234] j_V.

[0235] (I) Calculate the normal vector Norm(i, j) of the point. The method is as shown in Section 4.2. Just replace P1,1 in Section 4.2 with Pi,j and perform the calculation.

[0236] The order of solving the point cloud is: solve the first row of point cloud first in the order of increasing column subscripts; solve the first column of point cloud in the order of increasing row subscripts; solve the unknown part of the second row of point cloud in the order of increasing column subscripts; solve the unknown part of the second column in the order of increasing row subscripts; and so on, until the node in the lower right corner is solved.

[0237] 5. Call Catia V5 program to fit the point cloud into reflection surface units;

[0238] For the sake of distinction, the nodes after the solution are called reflection points. The collection of all reflection points in a unit is called a point cloud.

[0239] Four spline curves are created using Catia V5. The first spline curve is composed of the first row of reflection points on the top, the second spline curve is composed of the first column of reflection points on the left, the third spline curve is composed of the first row of reflection points on the bottom, and the fourth spline curve is composed of the first column of reflection points on the right;

[0240] Use the Fill command (Fill) of Catia V5 to create a fill object. Let the four spline curves created in this section be the boundaries of the fill object, and select the point cloud of the unit as the supporting feature of the fill object.

[0241] This creates the reflective surface pattern of the first unit.

[0242] 6. Apply boundary conditions to calculate and fit the remaining reflective surface unit patterns

[0243] A similar method is used to calculate the point cloud computing of the remaining reflective surface units, and the reflective surface unit pattern is fitted using Catia V5 using the method in Section 5. The calculation order is to first complete the calculation of the reflective surface units in the current column in ascending order of row numbers, and then perform the calculation of the reflective surface units in the next column with the column number increased by one in ascending order of row numbers.

[0244] In order to ensure that the entire reflection surface is point-continuous, this method follows the following principles:

[0245] (1) For units other than the first row, the coordinates of the reflection points in the first row of the units above are inherited from the coordinates of the reflection points in the last row of the units above. The normal vectors are not inherited and need to be recalculated.

[0246] (2) For units other than the first column, the reflection points in the first column inherit the coordinates of the reflection points in the last column of the units on the left, but the normal vectors do not inherit and still need to be recalculated.

[0247] 7. Integrate all reflective surface units:

[0248] The principles of integration are as follows:

[0249] (1) For left-right asymmetric patterns, that is, the input left-right diffusion angles L_spread and R_spread are asymmetric (L_spread+R_spread≠0), all reflective surface units are directly integrated into a whole through the Join method of Catia V5;

[0250] (2) For bilaterally symmetrical patterns, that is, the input left and right diffusion angles L_spread and R_spread are symmetrical (L_spread+R_spread=0), firstly, all the reflective surface units are integrated into a whole through the Join method of Catia V5; then, the redundant surface (if any) on the left side of the local coordinate system XZ is cut off through the Split command; then, the symmetry surface of the trimmed surface with respect to the local coordinate system XZ plane is made through the Symmetry command; finally, the two symmetrical surfaces are integrated into a whole through the Join command.

[0251] In this way, the generation of the entire reflection surface is completed.

[0252] Save the result to the input location.

[0253] Figure 1 The light in the image is emitted by the LED representing the point light source, and changes its propagation direction through the reflection surface in the air, forming a certain new light pattern.

[0254] Figure 2The light in the diagram is emitted by the LED representing the point light source, passes through the air and reaches the transparent thick-walled part, where it undergoes the first refraction; the refracted light reaches the reflective surface in the transparent medium and is reflected; the reflected light reaches the light-emitting surface of the thick-walled part in the transparent medium, where it undergoes the second refraction and enters the air, forming a certain light pattern.

[0255] For ease of display, Figure 7 and Figure 8 The left and bottom sides of the medium diffusion angle are negative, and the rest are positive.

[0256] Fig. 9 V represents the reflected light vector, V x Represents the projection vector of V on the X-axis, V y Represents the projection vector of V on the Y axis, V z Represents the projection vector of V on the Z axis, V xz represents the projection vector of V on the XZ plane, V xy Represents the projection vector of V on the XY plane; the Alpha angle is V xz The angle with the X axis (also the vertical diffusion angle); the Beta angle is V xy The angle with the X-axis (also the horizontal diffusion angle).

[0257] Fig.11 (a) is the case where the total number of columns is an even number; (b) is the case where the total number of columns is an odd number. (a) is an example of 4 rows and 4 columns of reflective surface units, and (b) is an example of 4 rows and 5 columns of reflective surface units.

[0258] Fig.18 The observation direction of the results is: observing the receptor from the light source.

[0259] The specific embodiment of the present invention is a computer program example compiled based on "Unit Optical Reflective Surface Design Software Based on Catia V5" (abbreviated as REG, version number V1.0), which is written in Python 3.10 language.

[0260] The operation process of the present invention is as follows:

[0261] (A) Open the panel to provide input

[0262] Given as Fig.16 The input and calculation information panel is shown.

[0263] (A1) In the File Directory column, click "Geom Input Dir:" to index and provide the 3D data in the ".CATPart" format as input. Click "Result Output Dir:" to index and select the output directory of the result file.

[0264] (A2) In the Element Parameters column, configure the specific information of the reflective surface unit. Enter Rownumber and Column number as the number of rows and columns of the unit respectively; enter Horizontal Length and VerticalLength as the width and height of each pattern unit projected on the YZ plane of the local coordinate system respectively, in millimeters; enter the number of nodes inserted in the calculation of each pattern unit in Resolution; enter the final diffusion angle of the reflective surface in Spread Angle (for thick-walled parts, it refers to the diffusion angle after leaving the thick-walled parts);

[0265] (A3) In the Reflector Type column, configure the parameters related to the type of reflector. Distance: LED to Reflector refers to the distance (mm) from the top of the reflector to the XY plane of the local coordinate system; select the reflector type, Air refers to the "independent reflector" (such as Figure 1 ), Clear Material refers to "thick-walled integrated reflective surface" (such as Figure 2 As shown); Refractive index refers to the refractive index of thick-walled parts; Distance: 1 st Row to Top refers to the "thick-walled integrated" reflective surface, the distance from the effective first row of reflective surfaces to the top of the thick-walled component in the Z direction of the local coordinate system

[0266] (A4) After completing the configuration, click the "Perform" button to run the program. Before clicking the button, make sure the CatiaV5 program is open.

[0267] (A5) Convert input. For the "Clear Material" reflector, convert the diffusion angle input by the user to the diffusion angle of the reflected light at the edge of the reflective surface. The number of nodes inserted by the conversion unit ensures that the number of horizontal nodes and the number of vertical nodes are both odd numbers.

[0268] (B) Define the computational grid and insert nodes

[0269] (B1) To simplify the operation, the input "parabola" is moved to the global coordinate system through coordinate transformation.

[0270] (B2) Define the diffusion angles corresponding to the unit grid nodes, upper right, upper left, lower left and lower right nodes:

[0271] If it is an "Air" type reflector, then:

[0272] The upper right horizontal diffusion angle is R_spread, and the upper right vertical diffusion angle is U_spread;

[0273] The upper left horizontal diffusion angle is L_spread, and the upper left vertical diffusion angle is U_spread;

[0274] The horizontal diffusion angle at the lower left is L_spread, and the vertical diffusion angle at the lower left is B_spread;

[0275] The horizontal diffusion angle at the lower right is R_spread, and the vertical diffusion angle at the lower right is B_spread;

[0276] If it is a "Clear Material" type reflector, then (the light applies intersection):

[0277] The horizontal diffusion angle at the upper right is L_spread*, and the vertical diffusion angle at the upper right is B_spread*;

[0278] The upper left horizontal diffusion angle is R_spread*, and the upper left vertical diffusion angle is B_spread*;

[0279] The horizontal diffusion angle at the lower left is R_spread*, and the vertical diffusion angle at the lower left is U_spread*;

[0280] The horizontal diffusion angle at the lower right is L_spread*, and the vertical diffusion angle at the lower right is U_spread*;

[0281] The corresponding pseudo code is as follows:

[0282]

[0283]

[0284] (B3) Determine the computational domain

[0285] If the left and right diffusion angles input by the user are symmetrical, that is, L_spread = -R_spread, the calculation domain is the pattern unit in the right half of the XZ plane. If the number of columns is an odd number, the median column is also included. At this time, the total number of columns is reassigned, the total number of columns is divided by 2, and rounded up. The corresponding pseudo code is as follows:

[0286]

[0287] If the left and right diffusion angles input by the user are asymmetric, that is, L_spread≠-R_spread, the calculation domain is all cells.

[0288] (B4) Obtain the coordinates of the projection center points of each unit in the calculation domain

[0289] The pseudocode for the assignment is shown below, where the expression is different from the technical solution because the pseudocode starts from 0 by default when executing the loop.

[0290]

[0291] (B5) Insert a node into the current computational unit

[0292] The unit projection rectangle is uniformly inserted into the specified number of nodes horizontally and vertically. The present invention divides the rectangle into four quadrants, inserts nodes respectively, and then merges the four quadrants into a matrix. The pseudo code of this part is as follows, where the quarter_sign function is used to demarcate the quadrants:

[0293]

[0294] (C) Specify the node reflection light vector

[0295] The diffusion angle of the middle node of the calculation unit, its horizontal diffusion angle is the sum of the horizontal diffusion angles of the upper right node and the lower left node, and its vertical diffusion angle is the sum of the vertical diffusion angles of the upper right node and the lower left node.

[0296] A function ray_interpolation is used to define the relationship between the reflection vector and the diffusion angle. Its principle can be found in the description of the technical solution. The pseudo code of this function is as follows:

[0297]

[0298]

[0299] Where ag_corner is the diffusion angle corresponding to the upper right, upper left, lower left and lower right nodes of the unit grid node given in (B2). Where ag_ct is the diffusion angle of the middle node of the unit. Ratio is a proportional function used to ensure that the diffusion angle is linearly distributed along the horizontal (vertical) direction.

[0300] (D) Calculate the first reflective surface unit pattern point cloud using the tangent plane iteration method

[0301] When calculating the first reflection surface unit in the upper left corner, the present invention uses the center point of the unit as the anchor point with the "parabola", and then calculates the coordinates of the reflection point in the upper left corner of the first reflection surface unit and the normal vector of the reflection surface at this point by the tangent plane iteration method. The pseudo code for obtaining the coordinates of the reflection point in the upper left corner of the first reflection surface unit pt_clouds_cord_comb[0][0] and the normal vector norm_clouds_cord_comb[0][0] of the reflection surface at this point is as follows:

[0302]

[0303]

[0304]

[0305]

[0306]

[0307] For the "Clear Material" type reflective surface, the intersection point pt_iter_cord between the incident light and the incident surface of the thick-walled part needs to be calculated through an iterative method in order to determine the correct incident light at the reflective surface. This intersection point pt_iter_cord is obtained through a function face_intersect_iter. The following is the pseudo code for calling the function face_intersect_iter and the pseudo code for the function face_intersect_iter itself.

[0308] Pseudo code for calling the function face_intersect_iter:

[0309]

[0310]

[0311] The pseudocode for formally computing the point cloud of the first cell is shared with the pseudocode for computing the remaining cells.

[0312] Call Catia V5 program to fit point cloud into reflection surface units

[0313] The method of fitting the point cloud into a reflective surface has been given in the technical solution. The pseudo code for executing this function is as follows:

[0314]

[0315]

[0316] (E) Apply boundary conditions to calculate the remaining reflective surface unit pattern and fit

[0317] After calculating the current unit, its last row of reflection points and last column of reflection points need to be inherited to other units. The pseudo code to perform this function is as follows:

[0318]

[0319] The order of calculating the point cloud in the unit is: starting from the upper left corner node, first solve the reflection point coordinates of the remaining nodes in the first column and the normal vector of the reflection surface at the reflection point in the order of increasing column numbers, and then solve the reflection point coordinates of the remaining nodes in the first row and the normal vector of the reflection surface at the reflection point in the order of increasing row numbers. This is the first round; then solve the nodes to be solved in the second column and the second row, which is the second round. Until the calculation of the lower right corner node is completed. The pseudo code for executing the formal iteration is shown below, where the variable k is used to count the rounds.

[0320]

[0321]

[0322]

[0323]

[0324] The order of solving the pattern units in the calculation domain is: starting from the first unit in the upper left corner, first complete the calculation of the units with the remaining row numbers in this column, and then perform the calculation of the next column. At the same time, the calculation is performed in the order of increasing row numbers or column numbers.

[0325] The pseudo code for the loop for the cell calculation sequence is as follows:

[0326] for elem_iin range(elem_col_num):

[0327] for elem_j in range(elem_row_num):

[0328] (F) Integrate all reflective surface units

[0329] To optimize the running memory and reduce the storage space of the result file, after the calculation of the previous unit is completed, all process variables (including Catia V5 features) of the previous unit will be deleted except the inherited points. Therefore, when the last unit is calculated, only the reflection surface after all units are fitted is retained.

[0330] The principles of integration are as follows:

[0331] (1) For left-right asymmetric patterns, that is, the input left-right diffusion angles L_spread and R_spread are asymmetric (L_spread+R_spread≠0), all reflective surface units are directly integrated into a whole through the Join method of Catia V5;

[0332] (2) For bilaterally symmetrical patterns, that is, the input left and right diffusion angles L_spread and R_spread are symmetrical (L_spread+R_spread=0), firstly, all the reflective surface units are integrated into a whole through the Join method of Catia V5; then, the redundant surface on the left side of the local coordinate system XZ (if any) is cut off through the Split command; then, the symmetry surface of the trimmed surface with respect to the local coordinate system XZ plane is made through the Symmetry command; finally, the two symmetrical surfaces are integrated into a whole through the Join command.

[0333] After the integration is completed, the integrated reflection surface is converted to the input local coordinate system through coordinate transformation.

[0334] (G) Verification results

[0335] like Fig.17 The figure shows the input parameters of a "thick-walled integrated" reflector generated by the present invention, wherein the top, bottom, left and right diffusion angles are 4°, -4°, -8° and 5° respectively.

[0336] Using an ideal point light source, the light intensity distribution obtained by SPEOS simulation is as follows: Fig.18 As shown. Since the result is obtained by observing the receptor from the light source, the light intensity distribution in the horizontal direction is opposite to the input value. Excluding this point, the accuracy meets the use requirements.

[0337] The specific implementation scheme of this embodiment can refer to the relevant description in the above embodiment, which will not be repeated here.

[0338] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0339] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.

[0340] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0341] The method, device, processor and computer-readable storage medium for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5 of the present invention are easy to operate. When designing a thick-walled integrated reflective surface, there is only one more step than designing an independent reflective surface, and some parameters are slightly different. The method can be compatible with the solution method of independent reflective surface design and thick-walled integrated reflective surface design, and realizes 3D modeling automation, which has a wide range of applications.

[0342] In this specification, the present invention has been described with reference to specific embodiments thereof. However, it is apparent that various modifications and variations may be made without departing from the spirit and scope of the present invention. Therefore, the specification and drawings should be regarded as illustrative rather than restrictive.

Claims

1. A method for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5, characterized in that: The method comprises the following steps: (1) Obtain input data; (2) Define the computational grid and insert nodes; (3) Define the reflected light vector at the grid point; (4) Calculate the first reflective surface unit pattern point cloud using the tangent plane iteration method; (5) Fitting point cloud into reflection surface units; (6) Apply boundary conditions to calculate the remaining reflective surface unit patterns and fit them; (7) Integrate all reflection surface units and save the results.

2. The method for realizing unit type optical reflective surface design and automatic 3D modeling based on Catia V5 according to claim 1, characterized in that: The step (2) specifically comprises the following steps: (2.1) Get input; (2.2) Determine whether the left and right diffusion angles are symmetrical about the local coordinate system XZ plane. If so, proceed to step (2.3); otherwise, proceed to step (2.4); (2.3) Calculate the pattern unit on the right side of the XZ plane of the local coordinate system; (2.4) Calculate the pattern units of all reflective surfaces; (2.5) For the unit to be calculated, calculate the coordinates of the projection center point of the pattern unit on the YZ plane of the local coordinate system; (2.6) Insert nodes for the projection of the pattern unit according to the resolution.

3. The method for realizing unit type optical reflective surface design and automatic 3D modeling based on Catia V5 according to claim 1, characterized in that: The step (3) specifically comprises the following steps: (3.1) Determine whether it is a thick-walled integrated reflector. If so, proceed to step (3.2); otherwise, proceed to step (3.4); (3.2) Convert the input diffusion angle into the diffusion angles U_spread*, B_spread*, L_spread* and R_spread* on the reflection surface; (3.3) Let the vertical diffusion angle of the first row of nodes above the reflector unit be B_spread*; the vertical diffusion angle of the first row of nodes below the reflector unit be U_spread*; the horizontal diffusion angle of the first column of nodes on the left side of the reflector unit be R_spread*; the horizontal diffusion angle of the first column of nodes on the right side of the reflector unit be L_spread*, then continue with step (3.5); (3.4) Let the vertical diffusion angle of the first row of nodes above the reflector unit be U_spread, and the vertical diffusion angle of the first row of nodes below the reflector unit be B_spread; let the horizontal diffusion angle of the first column of nodes on the left side of the reflector unit be L_spread, and the horizontal diffusion angle of the first column of nodes on the right side of the reflector unit be R_spread, then continue with step (3.5); (3.5) Use linear interpolation to interpolate the diffusion angles of internal nodes.

4. The method for realizing unit type optical reflective surface design and automatic 3D modeling based on Catia V5 according to claim 1, characterized in that: The step (4) specifically comprises the following steps: (4.1) Define the first reflection surface unit; (4.2) Initialize the X coordinate and normal vector of the first node in the upper left corner of the unit; (4.3) The tangent plane iteration method is used to solve the reflection surface unit point cloud.

5. The method for realizing unit type optical reflective surface design and automatic 3D modeling based on Catia V5 according to claim 4, characterized in that: The step (4.2) specifically comprises the following steps: (4.2.1) Anchor the intersection of the first node in the upper left corner and the parabola, denoted as p1,1; (4.2.2) Determine whether the reflector type is a thick-walled integrated reflector. If so, proceed to step (4.2.3); otherwise, proceed to step (4.2.5); (4.2.3) Use the iterative method to find the intersection point between the light ray emitted by the light source and reaching p1,1 and the incident surface of the thick-walled part; (4.2.4) Get the unit incident vector v_inci, the starting point is p_iter, and the end point is p1,1; (4.2.5) Get the unit incident vector v_inci, the starting point is the light source, and the end point is p1,1; (4.2.6) By vector addition, calculate the local normal vector norm11 of the reflection surface at the first node in the upper left corner.

6. The method for realizing unit type optical reflective surface design and automatic 3D modeling based on Catia V5 according to claim 4, characterized in that: The step (4.3) is specifically: Taking the first node in the upper left corner as the initial condition, the coordinates of the nodes adjacent to the first node in the upper left corner are calculated by the tangent plane iteration method, and the remaining nodes are calculated in this way until the calculation of the node in the lower right corner is completed.

7. The method for realizing unit type optical reflective surface design and automatic 3D modeling based on Catia V5 according to claim 1, characterized in that: In the step (6), the boundary conditions are applied to calculate the remaining reflective surface unit patterns, specifically: First, the reflective surface units of the current column are calculated in the order of increasing row numbers, and then the reflective surface units of the next column whose column number is increased by one are calculated in the order of increasing row numbers.

8. The method for realizing unit type optical reflective surface design and automatic 3D modeling based on Catia V5 according to claim 1, characterized in that: The input data in the step (1) includes 3D data, the number of reflective surface pattern units, the projection size of the reflective surface pattern units on the YZ plane of the local coordinate system, the resolution of the reflective surface pattern units, the diffusion angle of the outer envelope of the light type formed by the reflective surface pattern units, the type of the reflector, the distance between the top plane of the reflector and the XY plane of the local coordinate system, the refractive index of the transparent thick-walled part, and the distance between the first row of patterns of the reflector and the top plane of the reflector.

9. A device for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5, characterized in that: The device comprises: a processor configured to execute computer executable instructions; A memory storing one or more computer executable instructions, wherein when the computer executable instructions are executed by the processor, the steps of the method for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5 as described in any one of claims 1 to 8 are implemented.

10. A processor for realizing unit-type optical reflective surface design and automatic 3D modeling based on Catia V5, characterized in that: The processor is configured to execute computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for realizing unit-type optical reflective surface design and automatic 3D modeling processing based on Catia V5 described in any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program can be executed by a processor to implement the various steps of the method for realizing unit-type optical reflective surface design and automatic 3D modeling processing based on Catia V5 as described in any one of claims 1 to 8.