CATIA platform-based internal lens random pattern optical surface generation method
By using the random pattern optical surface generation method on the CATIA platform, the problems of uneven light distribution and insufficient design flexibility in traditional internal lens design are solved, and more uniform light distribution and flexible design are achieved. Through the random number generation algorithm and The combination of VBA scripts optimizes optical performance.
Patent Information
- Application Number
- CN202411258264.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-09-09
AI Technical Summary
The regular optical surface structure in traditional inner lens design leads to uneven light distribution and aesthetic fatigue problems, and lacks flexible design methods.
Using the random pattern optical surface generation method based on the CATIA platform, through the steps of initialization parameter setting, random pattern generation, optical surface creation and model optimization verification, VBA scripts are used to generate a three-dimensional optical surface model with random characteristics in CATIA to improve light rays. Distribution uniformity and design flexibility.
The uniformity of the light distribution and design flexibility of the inner lens are improved, and the optical performance and scattering characteristics are optimized through the combination of random number generation algorithm and VBA script.
Smart Images

Figure CN119249523A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of optical design, in particular to a method for generating a random pattern optical surface of an inner lens based on a CATIA platform. Background Art
[0002] With the development of optical display and lighting technology, inner lenses are widely used in various optical devices as important components for controlling light distribution. Traditional inner lens designs usually adopt regular optical surface structures, which may cause uneven light distribution or glare problems, as well as aesthetic fatigue problems in some applications. Therefore, it is of great practical significance to study a technology that can generate random patterned optical surfaces. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a method for generating a random pattern optical surface of an inner lens based on a CATIA platform, so as to improve the uniformity of light distribution of the inner lens and the design flexibility.
[0004] In order to solve the above technical problems, the technical solution of the present invention is: a method for generating a random pattern optical surface of an inner lens based on a CATIA platform, comprising the following steps: (1) Initialization parameter setting: setting the basic geometric parameters of the inner lens and the generation rules of the random pattern, including random cell spacing, random radius, number of edges, maximum angle and minimum angle; (2) Random pattern generation: Using a random number generation algorithm, an irregular optical feature unit optical microstructure is created on the surface. Each edge of the unit optical microstructure has a random angle in the plane and in the vertical plane. (3) Optical surface creation: Create a three-dimensional optical surface model in CATIA using the randomly generated unit optical microstructure; (4) Model optimization and verification: Simulate the optical performance of the generated optical surface, verify its uniformity and scattering characteristics, and adjust parameters to optimize the design.
[0005] As an improvement, in step (1), the parameters are set through a parameter input interface.
[0006] As an improvement, in the step (1), the horizontal distance P1 and the vertical distance P2 of the random cell are input to obtain the basic center array point; the radius r is input, and a new center point k is randomly generated within the circle with the radius r and the center point n as the circle center; the number of segmentation lines s is input; the angle range αmin~αmax of the basic segmentation is input, and the angle is randomly generated within this angle range; on the normal section plane, the downward tilt angle βmin~βmax is input, and the angle is randomly generated within this angle range.
[0007] As an improvement, in step (2), VBA script is used to realize random pattern generation.
[0008] As an improvement, in step (3), the data is input into CATIA through an API interface to generate the final inner lens optical surface model.
[0009] Compared with the prior art, the present invention has the following beneficial effects: The system is implemented on the CATIA platform using VBA (Visual Basic for Applications) scripts, and a patterned optical surface with random characteristics is generated through an algorithm to improve the uniformity of light distribution in the inner lens and the flexibility of design. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a flow chart of the present invention.
[0011] Figure 2 This is the logic diagram for generating random patterns.
[0012] Figure 3 is the edge segmentation angle range.
[0013] Figure 4 is the downtilt angle range.
[0014] Figure 5 Schematic diagram of the unit optical microstructure.
[0015] Figure 6 Schematic diagram of the random patterned optical surface of the inner lens after generation. DETAILED DESCRIPTION
[0016] The present invention will be further described below in conjunction with the accompanying drawings.
[0017] like Figure 1 As shown, a method for generating a random pattern optical surface of an inner lens based on a CATIA platform comprises the following steps: (1) Initialization parameter setting: setting the basic geometric parameters of the inner lens and the generation rules of the random pattern, including random cell spacing, random radius, number of edges, maximum angle and minimum angle; (2) Random pattern generation: Figure 5 As shown, a random number generation algorithm is used to create an irregular optical feature unit optical microstructure on the surface, and each edge of the unit optical microstructure has a random angle in the plane and in the vertical plane; (3) Optical surface creation: Figure 6 As shown, the randomly generated unit optical microstructure is used to create a three-dimensional optical surface model in CATIA; (4) Model optimization and verification: Simulate the optical performance of the generated optical surface, verify its uniformity and scattering characteristics, and adjust parameters to optimize the design.
[0018] In the step (1), the parameters are set through the parameter input interface, and a plug-in is built into the software CATIA platform. The parameters are input through the interface window, which is convenient for users to use and adjust the parameter settings.
[0019] The logic of generating random patterns in step (1): 1.1) If Figure 2 As shown, input the horizontal distance P1 and the vertical distance P2 of the random cell to obtain the basic center array point; 1.2) If Figure 2 As shown, input the radius r, then take the center point n as the center, and randomly generate a new center point k within the circle of radius r; 1.3) If Figure 3 As shown, input the number of segmentation lines 5; input the basic segmentation angle range αmin~αmax, and randomly generate angles within this angle range; 1.4) If Figure 4 As shown, similarly, on the normal section plane, input the downward tilt angle βmin~βmax, and randomly generate angles within this angle range.
[0020] In the step (2), VBA script is used to realize random pattern generation.
[0021] In the step (3), the data is input into CATIA through the API interface to generate the final inner lens optical surface model.
Claims
1. A method for generating random pattern optical surfaces of inner lenses based on CATIA platform, characterized in that: The following steps are involved: (1) Initialization parameter setting: setting the basic geometric parameters of the inner lens and the generation rules of the random pattern, including random cell spacing, random radius, number of edges, maximum angle and minimum angle; (2) Random pattern generation: Using a random number generation algorithm, an irregular optical feature unit optical microstructure is created on the surface. Each edge of the unit optical microstructure has a random angle in the plane and in the vertical plane. (3) Optical surface creation: Create a three-dimensional optical surface model in CATIA using the randomly generated unit optical microstructure; (4) Model optimization and verification: Simulate the optical performance of the generated optical surface, verify its uniformity and scattering characteristics, and adjust parameters to optimize the design.
2. The method for generating a random pattern optical surface of an inner lens based on a CATIA platform according to claim 1, characterized in that: In the step (1), parameters are set through a parameter input interface.
3. The method for generating a random pattern optical surface of an inner lens based on a CATIA platform according to claim 1, characterized in that: In the step (1), the horizontal distance P1 and the vertical distance P2 of the random cell are input to obtain the basic center array point; the radius r is input, and a new center point k is randomly generated within the circle with the center point n as the center and the radius r; the number of segmentation lines s is input; the angle range αmin~αmax of the basic segmentation is input, and the angle is randomly generated within this angle range; on the normal section plane, the downward tilt angle βmin~βmax is input, and the angle is randomly generated within this angle range.
4. The method for generating a random pattern optical surface of an inner lens based on a CATIA platform according to claim 1, characterized in that: In the step (2), VBA script is used to realize random pattern generation.
5. The method for generating a random pattern optical surface of an inner lens based on a CATIA platform according to claim 1, characterized in that: In the step (3), the data is input into CATIA through the API interface to generate the final inner lens optical surface model.
Citation Information
Patent Citations
Random microlens array structure, design method and application thereof
CN113406735A
Range imaging lidar
US20110164783A1
