A method for generating random pattern optical surface of inner lens based on CATIA platform
By using VBA scripts on the CATIA platform to generate random patterned optical surfaces, the problems of uneven light distribution and glare in traditional inner lens designs are solved, thereby improving the uniformity of light distribution and design flexibility of inner lenses.
Patent Information
- Application Number
- CN202411258264.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-09-09
AI Technical Summary
Traditional internal lens designs suffer from uneven light distribution and glare, leading to aesthetic fatigue. Existing technologies struggle to generate flexible, random-patterned optical surfaces.
A CATIA-based approach was adopted, using VBA scripts to generate random patterned optical surfaces. Irregular optical feature units were created on the inner lens surface through a random number generation algorithm. A three-dimensional optical surface model was created in CATIA using the API interface, and optical performance simulation and parameter optimization were performed.
It improves the uniformity of light distribution in the inner lens and the flexibility of the design, and solves the problems of uneven light distribution and glare in traditional designs.
Smart Images

Figure CN119249523B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of optical design, and particularly relates to a method for generating a random pattern optical surface of an internal lens based on a CATIA platform. BACKGROUND
[0002] With the development of optical display and illumination technology, internal lenses, as important elements for controlling light distribution, are widely used in various optical devices. Traditional internal lens design usually adopts a regular optical surface structure, which may cause uneven light distribution or glare problems, as well as aesthetic fatigue problems in some application scenarios. Therefore, it is of great practical significance to study a technology capable of generating a random pattern optical surface. SUMMARY
[0003] The present application aims to provide a method for generating a random pattern optical surface of an internal lens based on a CATIA platform, so as to improve the uniformity of light distribution of the internal lens and the flexibility of design.
[0004] To solve the above technical problems, the technical scheme of the present application is as follows: a method for generating a random pattern optical surface of an internal lens based on a CATIA platform, comprising the following steps:
[0005] (1) initialization parameter setting: setting the basic geometric parameters of the internal lens and the generation rules of the random pattern, including the random cell spacing, the random radius, the number of edges, the maximum angle and the minimum angle;
[0006] (2) random pattern generation: using a random number generation algorithm to create irregular optical feature unit optical microstructures on the surface, and each edge of the unit optical microstructure is a random angle in the plane and the vertical plane;
[0007] (3) optical surface creation: creating a three-dimensional optical surface model in CATIA by using the randomly generated unit optical microstructures;
[0008] (4) model optimization and verification: performing optical performance simulation on the generated optical surface to verify its uniformity and scattering characteristics, and adjusting the parameters to optimize the design.
[0009] As an improvement, in the step (1), the parameters are set through a parameter input interface.
[0010] As improvement, in the step (1), the transverse distance P1 and the longitudinal distance P2 of the random cell are inputted to obtain the basic center array point; a new center point k is randomly generated in a circle with the center point n as the center and the radius r; the number of the segmented lines s is inputted; the angle range alpha min~alpha max of the basic segmentation is inputted, and the angle is randomly generated in the angle range; the down angle beta min~beta max is inputted on the normal section plane, and the angle is randomly generated in the angle range.
[0011] As improvement, in the step (2), the VBA script is adopted to realize the random pattern generation.
[0012] As improvement, in the step (3), the data is inputted into CATIA through the API interface to generate the final inner lens optical surface model.
[0013] Compared with the prior art, the method has the beneficial effects that:
[0014] The VBA (Visual Basic for Applications) script is used on the CATIA platform to generate the pattern optical surface with random characteristics through the algorithm, and the uniformity of the inner lens light distribution and the flexibility of the design are improved. BRIEF DESCRIPTION OF DRAWINGS
[0015] Figure 1 The flow chart of the present application.
[0016] Figure 2 The logic diagram of the random pattern generation.
[0017] Figure 3 The range of the prism segmentation angle.
[0018] Figure 4 The range of the down angle.
[0019] Figure 5 The schematic diagram of the unit optical microstructure.
[0020] Figure 6 The schematic diagram after the generation of the inner lens random pattern optical surface. DETAILED DESCRIPTION
[0021] The present application is further described below in combination with the drawings of the specification.
[0022] As shown in the drawings, Figure 1 a kind of inner lens random pattern optical surface generation method based on CATIA platform, including the following steps:
[0023] (1) Initialization parameter setting: set the basic geometric parameters of the inner lens and the generation rule of the random pattern, including random cell spacing, random radius, number of edges, maximum angle and minimum angle;
[0024] (2) Random pattern generation: as shown in Figure 5 , use random number generation algorithm to create irregular optical feature unit optical microstructure on the surface, and each edge of the unit optical microstructure is a random angle in the plane and perpendicular to the plane;
[0025] (3) Optical surface creation: as shown in Figure 6 , create a three-dimensional optical surface model in CATIA by randomly generating unit optical microstructure;
[0026] (4) Model optimization and verification: simulate the optical performance of the generated optical surface, verify its uniformity and scattering characteristics, and adjust the parameters to optimize the design.
[0027] In step (1), the parameters are set through the parameter input interface, and the software CATIA platform is built-in plug-in, which inputs the parameters through the interface window, so as to facilitate the user to use and adjust the parameter setting.
[0028] The generation logic of the random pattern in step (1) is as follows:
[0029] 1.1) as shown in Figure 2 , input the horizontal distance P1 and the vertical distance P2 of the random cell to get the basic center array point;
[0030] 1.2) as shown in Figure 2 , input the radius r, then generate a new center point k inside the circle with center point n as the center and radius r;
[0031] 1.3) as shown in Figure 3 , input the number of lines 5; input the basic segmentation angle range αmin~αmax, and randomly generate an angle in this angle range;
[0032] 1.4) as shown in Figure 4 , similarly, on the normal cross-sectional plane, input the downward angle βmin~βmax, and randomly generate an angle in this angle range.
[0033] In step (2), VBA script is used to realize random pattern generation.
[0034] In step (3), the data is input into CATIA through API interface to generate the final inner lens optical surface model.
Claims
1. A method for generating random patterned optical surfaces of an inner lens based on the CATIA platform, characterized in that, Includes the following steps: (1) Initialization parameter settings: Set the basic geometric parameters of the inner lens and the generation rules of random patterns, including random cell spacing, random radius, number of edges, maximum angle and minimum angle; (2) Random pattern generation: Using a random number generation algorithm, irregular optical feature units and optical microstructures are created on the surface. Each edge of the unit optical microstructure has a random angle in both the plane and the vertical plane. (3) Optical surface creation: Create a three-dimensional optical surface model in CATIA from the randomly generated unit optical microstructure; (4) Model optimization and verification: Perform optical performance simulation on the generated optical surface to verify its uniformity and scattering characteristics, and adjust parameters to optimize the design; In step (1), input the horizontal distance P1 and vertical distance P2 of the random cells to obtain the basic center array points; input the radius r, and a new center point k is randomly generated within the circle with the center point n as the center and radius r; input the number of dividing lines s; input the angle range αmin~αmax of the basic division, and randomly generate the angle within this angle range; on the normal cross-section plane, input the downslope angle βmin~βmax, and randomly generate the angle within this angle range.
2. The method for generating random pattern optical surfaces of inner lenses based on the CATIA platform according to claim 1, characterized in that: In step (1), parameters are set through the parameter input interface.
3. The method for generating random pattern optical surfaces of inner lenses based on the CATIA platform according to claim 1, characterized in that: In step (2), a VBA script is used to generate random patterns.
4. The method for generating random pattern optical surfaces of inner lenses based on the CATIA platform according to claim 1, characterized in that: In step (3), 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