Method for generating iso-10303-21 data of a transmission optical system
By describing the lens mathematical model with 8 parameters, the standardization problem of generating ISO 10303-21 data for optical systems is solved, enabling fast and accurate optical system design and generation of ISO-10303-21 data, and supporting the generation of data for various lenses and mirrors.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2026-03-03
AI Technical Summary
The lack of a standardized method in the current technology to generate the ISO 10303-21 STEP file of the optical system into computer-aided design software results in the need for manual confirmation or editing before the optical system is manufactured, which is inefficient.
A mathematical model of the lens is described using eight parameters. The lens entity is generated by solving the lens boundary points and boundary lines, and then rotated into a surface to finally generate ISO-10303-21 data.
It enables the rapid and accurate generation of ISO-10303-21 standard data for optical system design, supports data generation for lenses and mirrors of different surface types, and expands the application range.
Smart Images

Figure CN115203838B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer-aided design, and specifically relates to a method for generating ISO-10303-21 data for a transmission optical system. Background Technology
[0002] ISO 10303-21 STEP documents are the most widely used form of data exchange, widely applied in industrial automation systems, information technology applications, character sets and information encoding, computer-aided design, and other fields. In the field of optical system design, optical system designers typically use computer optimization algorithms to schedule various parameters within the optical system to obtain the desired optical system. Optical systems are generally described by their various surfaces. However, before the optical system can be fabricated, it needs to be imported into computer-aided design software (CAD) for final confirmation or secondary editing to achieve a suitable state for fabrication or to output fabrication drawings. While CAD software can read and output ISO 10303-21 STEP documents, there is currently no standardized method for outputting ISO 10303-21 STEP documents for optical systems. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a method for generating ISO-10303-21 data for a transmission optical system, addressing the shortcomings of existing technologies.
[0004] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:
[0005] This application uses eight parameters—position offset, first surface curvature, first surface net aperture, first surface mechanical half-diameter, second surface curvature, second surface net aperture, second surface mechanical half-diameter, and thickness—to describe the mathematical model of each lens in the optical system.
[0006] L=p1p2p3p4p5p6p7p8
[0007] Where L represents a lens, p1 is the position offset, p2 is the curvature of the first surface, p3 is the net aperture of the first surface, p4 is the mechanical half-diameter of the first surface, p5 is the curvature of the second surface, p6 is the net aperture of the second surface, p7 is the mechanical half-diameter of the second surface, and p8 is the lens thickness.
[0008] Based on the mathematical model of the single lens described above, the entire transmission optical system can be described as follows:
[0009] S = L1L2…L n
[0010] Where S represents the entire optical system, and L k Let n be the k-th lens in the system, and n be the number of lenses in the system.
[0011] In the field of computer-aided design, to facilitate the precise design and optimization of optical systems, optical systems are generally described as being composed of a series of surfaces. This application first obtains a mathematical model of the eight parameters mentioned above based on these surface data. Then, based on the mathematical model, a method for solving the boundary points of the lens is established. Finally, the lens entity is obtained by forming lines from points, surfaces from lines, and rotating the surfaces. The steps are as follows:
[0012] (1) A mathematical model is obtained from the optical system surface description, including eight parameters: lens position offset, curvature of the first surface, net aperture of the first surface, mechanical semi-diameter of the first surface, curvature of the second surface, net aperture of the second surface, mechanical semi-diameter of the second surface, and thickness. The solution process is as follows: Figure 2 As shown. An optical system is generally described as a series of surfaces, and the array of data consisting of these surfaces is referred to as the surface group data below. The i-th surface is represented as F(i) = [r,c,m,t], where F(i)[r] is the curvature of the i-th surface, F(i)[c] is the net aperture of the i-th surface, F(i)[m] is the mechanical semi-diameter of the i-th surface, and F(i)[t] is the thickness of the i-th surface. The mathematical model of the lens is obtained by iteratively taking the surfaces, thereby converting the surface-described data of the target transmission optical system into a lens-described data, resulting in the model S of the target transmission optical system.
[0013] Set the default position offset D to 0, and set i = 1; 1) Take faces F(i) sequentially from the face group data; 2) If the taken face has material, take the next face F(i+1) and form a lens with the current face F(i), and reset the position offset D to 0; if the taken face has no material, add the position offset to the thickness F(i)[t] of the previous face; 3) If F(i+1) has no material, set i = i+2 and continue the loop from 1); if F(i+1) has material, set i = i+1 and continue the loop from 1. Each time a face is taken, check whether a face has been taken. If no face has been taken, exit the loop.
[0014] Where F(i) represents the data of the i-th surface of the optical system, and F(i+1) represents the data of the (i+1)-th surface of the optical system. The obtained surface has no material and is generally the aperture surface of the optical system. Its thickness information is actually the displacement information added by the next lens.
[0015] (2) Solve for boundary points and boundary lines:
[0016] Using the XY plane as lens L k The plane containing the cross-section, with the origin as the data reference point, and lens L. k The portion where y>0 is taken as the plane of revolution, and lens L can be obtained by rotating it 180 degrees along the x-axis. k The corresponding entity. The solution process is as follows: Figure 3As shown.
[0017] Take the origin as the starting point:
[0018] P start =(0,0,0)
[0019] If p8 > 0, then take:
[0020] P end =(p8,0,0)
[0021] Add a boundary line, named P. start With P end Line between them and reset the starting point:
[0022]
[0023] If p5 = ∞, then take:
[0024]
[0025] P end =(p8,h1,0)
[0026] Add a boundary line, named P. start With P end Line between them and reset the starting point:
[0027]
[0028] If p5≠∞, then take:
[0029]
[0030] o1=|p6-p7|
[0031] P end =(x 11 (p6,0)
[0032] Add a boundary line, taking the radius |p5| based on the sign of p5, and choose a circle P centered at (p5+p8, 0, 0). start With P end Draw an arc in either clockwise or counterclockwise direction, and reset the starting point:
[0033]
[0034] If o1 > 0, then take:
[0035] P end =(x 11 (p7,0)
[0036] Add a boundary line, named P.start With P end Line between them and reset the starting point:
[0037]
[0038] If p2 = ∞, then take:
[0039]
[0040] P end = (0, h2, 0)
[0041] Add a boundary line, named P. start With P end Line between them and reset the starting point:
[0042]
[0043] If p2 ≠ ∞, then take:
[0044]
[0045] o2 = |p3-p4|
[0046] If o2 > 0, then take:
[0047] P end =(x 22 (p4,0)
[0048] Add a boundary line, named P. start With P end Line between them and reset the starting point:
[0049]
[0050] Pick:
[0051] P end =(x 22 (p3,0)
[0052] Add a boundary line, named P. start With P end Line between them and reset the starting point:
[0053]
[0054] Pick:
[0055] P end =(0,0,0)
[0056] Add a boundary line, taking the radius |p2| depending on the sign of p2, and choose a circle P on the circle centered at (p2,0,0).start With P end Arcs in either clockwise or counterclockwise direction:
[0057]
[0058] After obtaining all the boundary lines, connect the boundary lines to form a surface, and then rotate the surface 180 degrees around the x-axis to obtain the lens entity.
[0059] (3) Based on the lens mathematical model parameter p1, move the lens to the appropriate position. Then generate other lenses in sequence and transfer and combine them to obtain the ISO-10303-21 data of the entire optical system.
[0060] The present invention also provides a server, characterized in that it includes a memory and a processor, the memory storing a computer program configured to be executed by the processor, the computer program including instructions for performing the steps of the above-described method.
[0061] The present invention also provides a computer-readable storage medium having a computer program stored thereon, characterized in that the computer program, when executed by a processor, implements the steps of the above-described method.
[0062] The beneficial effects of this invention are:
[0063] This application employs eight parameters to describe a mathematical model of a lens in an optical system. Based on this mathematical model, a solution process for lens boundary points and boundary lines is established. Then, the lens entity is obtained by rotating the boundary lines to form a surface. This provides support for optical system designers to quickly generate ISO-10303-21 standard data. Expanding the parameters used allows this method to support the generation of data for lenses and mirrors with different surface shapes, thus broadening its application scope. Attached Figure Description
[0064] Figure 1 This is a diagram of a double Gaussian optical system.
[0065] Figure 2 A flowchart for obtaining the lens mathematical model from the surface data of the optical system.
[0066] Figure 3 A flowchart for solving the boundary lines of lens boundary points using a mathematical model.
[0067] Figure 4 This is a diagram illustrating the generation process of the fourth lens in the implementation example;
[0068] (a) is the first boundary line, (b) is the second boundary line, (c) is the third boundary line, (d) is the fourth boundary line, and (e) is the fifth boundary line.
[0069] Figure 5 The 4th lens generated for the implementation example. Detailed implementation
[0070] The following introduces a transmissive optical system provided by the present invention and an ISO-10303-21 data generation method in conjunction with the accompanying drawings and embodiments:
[0071] In the design of an optical system, the optical system is generally described as being composed of individual surfaces. Taking a typical double-Gauss optical system as an example, its system parameters are shown in Table 1, and the array data in the table is called the surface array:
[0072] Table 1 is the system parameter table
[0073]
[0074]
[0075] The mathematical model of a certain lens in the optical system described by 8 parameters proposed in this application can be obtained by processing the above surface array. According to Figure 2 Take data from the surface array in the order of the processing flow. When a surface with material is obtained, form a lens by combining this surface with the next surface; if there are two consecutive surfaces with material, the latter surface is the back surface of the previous lens and also the front surface of the next lens, and the lens offset distance is 0; the offset distance of the lens is taken as the thickness of the previous surface; after ending a lens, if the first surface encountered does not have material, then take the thickness of this surface as the offset distance superimposed on the subsequent surfaces. According to the above logical process, the data model of the double-Gauss optical system shown in Table 1 can be described as shown in Table 2.
[0076] Table 2
[0077] Serial Number <![CDATA[p1]]> <![CDATA[p2]]> <![CDATA[p3]]> <![CDATA[p4]]> <![CDATA[p5]]> <![CDATA[p6]]> <![CDATA[p7]]> <![CDATA[p8]]> 1 0 54.153246 29.22529 29.225297 152.52192 28.140954 29.225297 8.746657 2 0.5 35.950624 24.295812 24.295812 ∞ 21.297191 24.2958124 14 3 0 ∞ 21.297191 24.2958124 22.269924 14.919352 24.2958124 3.7769658 4 26.6811883 -25.685033 13.187758 18.9295675 ∞ 16.468122 18.9295675 3.7769658 5 0 ∞ 16.468122 18.9295675 -36.98022 18.9295675 18.9295675 10.8339285 6 0.5 196.417334 21.310764 21.646258 -67.14755 21.646258 21.646258 6.85817491
[0078] Taking the 4th row in Table 2, that is, the 4th lens, as an example, introduce the generation method of the lens body.
[0079] Select the origin as the starting boundary point, P start =(0,0,0).
[0080] Since p8 = 3.<7769658> 0, we get P end =(3.7769658,0,0), and directly connect the two points P start and P end to generate the first boundary line as shown in Figure 4 (a), and reset the starting point P start =P end =(3.7769658,0,0).
[0081] Since p6 < p7, we have h1 = p7. Given p5 = ∞, so P end = (p8, h1, 0), we get P end = (3.7769658, 18.9295675, 0), P start and P end are directly connected to generate the second boundary line as shown in Figure 4 (b). Reset the starting point P start = P end = (3.7769658, 18.9295675, 0).
[0082] Substitute p2, p3, p4 into x2 = sqrt(p2 * p2 + p3 * p3), o2 = |p3 - p4|, we get x2 = 22.04096093, o2 = 5.7418. Since p2 = -25.685033 < 0, so x 22 = p2 + x2, we get x 22 = -3.644072.
[0083] Since o2 > 0, P end = (-3.644072, 13.187758, 0), P start and P end are directly connected to generate the third boundary line as shown in Figure 4 (c). Reset the starting point P start = P end = (-3.644072, 13.187758, 0).
[0084] x 22 and p3 are substituted into P end = (x 22 , p3, 0) to get P end = (-3.644072, 13.187758, 0), P start and P end are directly connected to generate the fourth boundary line as shown in Figure 4 (d). Reset the starting point P start = P end = (-3.644072, 13.187758, 0).
[0085] P end = (0, 0, 0). Since p2 = -25.685033 < 0, take a point P start with the center at (-25.685033, 0, 0) and radius 25.685033 and the arc in the counterclockwise direction from P end to generate the fifth boundary line, as shown in Figure 4 (e).
[0086] Connecting the five generated boundary lines creates a surface. Rotating this surface 180 degrees around the X-axis yields the lens entity. Figure 5 As shown. Move the lens to the desired position based on p1 = 26.6811883.
[0087] By generating each lens sequentially and moving their positions according to their relative relationships, the final ISO-10303-21 data for the optical system can be obtained.
[0088] Although specific embodiments of the invention have been disclosed for illustrative purposes to aid in understanding and implementing the invention, those skilled in the art will understand that various substitutions, variations, and modifications are possible without departing from the spirit and scope of the invention and the appended claims. Therefore, the invention should not be limited to the content disclosed in the preferred embodiments, and the scope of protection claimed by the invention is defined by the claims.
Claims
1. A method for generating ISO-10303-21 data of a transmissive optical system, comprising the steps of: 1) modeling a lens in the transmissive optical system; wherein the model of the lens is L = p1p2p3p4p5p6p7p8; p1 is a position offset, p2 is a curvature of a first surface, p3 is a clear aperture of the first surface, p4 is a mechanical half diameter of the first surface, p5 is a curvature of a second surface, p6 is a clear aperture of the second surface, p7 is a mechanical half diameter of the second surface, and p8 is a thickness of the lens; 2) creating a mathematical model of each lens in the target transmissive optical system according to description information of the target transmissive optical system, obtaining a model S = L1L2…Ln of the target transmissive optical system n ; wherein the model of the kth lens is denoted as L k k, and n is the total number of lenses in the target transmissive optical system; 3) taking the XY plane of the coordinate system as the plane of the cross section of the lens L k , taking the origin as the data reference point, taking the part with y>0 in the lens L k as the rotation plane, and rotating along the x-axis by 180 degrees to obtain the lens model L k corresponding to the entity; wherein the method for obtaining the lens model L k corresponding to the entity is: 31) Take the origin as the starting point P start = (0,0,0); if p8 in lens model L k > 0, take P end = (p8,0,0) and add a straight line between P start and P end as a border line Then reset the starting point P start = P end ; if p5 in lens model L k = ∞, take P end = (p8,h1,0), then add a straight line between P start and P end as a border line and reset the starting point P start = P end ; if p5 in lens model L k ≠ ∞, take o1 = |p6-p7| P end = (x 11 ,p6,0) Then according to the positive or negative case of p5, take the radius |p5|, take the center of the circle in (p5+p8, 0, 0) on P start Between P end Clockwise or counterclockwise direction of the circular arc, and then reset the starting point P start =P end ; If o1>0, take P end =(x 11 , p7, 0), then add a straight line between P start And P end As a boundary line, and reset the starting point P start = P end ; if p2=∞, take: P end = (0, h2, 0) Then add a straight line between P start and P end as the boundary line, and reset the starting point P start = P end ; if p2≠∞ in the lens model L k , take o2 = |p3-p4| If o2> 0, take P end = (x 22 , p4, 0), then add a straight line between P start and P end as the boundary line, and reset the starting point P start = P end ; 32) take P end = (x 22 , p3, 0), add a straight line between P start and P end as a boundary line, and reset the starting point P start = P end ; 33) take P end = (0,0,0), take the circle with radius |p2| and center at (p2,0,0) according to the positive or negative case of p2, take the circular arc between P start and P end as a boundary line in the counterclockwise or clockwise direction. 34) connecting the boundary lines obtained in steps 31) to 33) to form a surface, and rotating the surface by 180 degrees around the x-axis to obtain a lens model L k a corresponding lens entity; 4) The lens model L k is shifted to the corresponding position according to the parameter p1 in the lens model L k . 5) repeating steps 3) to 4) to obtain the entity and corresponding position of each lens in the target transmissive optical system, and to obtain the ISO-10303-21 data of the target transmissive optical system.
2. The method of claim 1, wherein, The method for obtaining the model S of the target transmissive optical system is: 21) setting a default position offset D as 0, and taking i = 1; the description information of the target transmissive optical system is surface group data composed of each surface in the target transmissive optical system; 22) sequentially taking surface data F(i) from the surface group data; 23) if the surface data F(i) has a material, then taking the next surface data F(i+1) and the surface data F(i) to form a lens, and resetting the position offset D as 0; if the taken surface data F(i) has no material, then the position offset is superimposed with the thickness of the surface data F(i); 24) if the surface data F(i+1) has no material, then taking i = i+2 and returning to 22); if the surface data F(i+1) has a material, then taking i = i+1 and returning to step 22) until the surface group data is empty.
3. A server, characterized by A computer program product comprising a memory storing a computer program configured to be executed by a processor, the computer program comprising instructions for performing each step in the method of any one of claims 1 to 2.
4. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program product is executed by the processor to implement the steps of the method of any one of claims 1 to 2.
Citation Information
Patent Citations
Wavefront restoration method and system based on diffractive optical neural network
CN111652372A
Optical Apparatus And Method
US20150028195A1