Skip to content

Commit 8f41e60

Browse files
committed
fix lens view display promble
1 parent 8e98838 commit 8f41e60

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Main_code.m

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
surface_num = 2;
77
distance = [0.01, 0.02, 0.16055]; % Unit : mm
88
material = [1, sk16_schott, 1]; % Unit : mm
9-
y_radius = [inf, -0.1]; % Unit : mm
9+
y_radius = [0.1, -0.1]; % Unit : mm
1010
aperture = 0.05; % Unit : mm
1111
%------------------%
1212
%------------------%
@@ -28,14 +28,6 @@
2828
MTF = 1; % 0 = OFF, 1 = ON
2929
Point_Spread_Function = [1; 1]; % 0 = OFF, 1 = ON; perspective:[yz, xy]
3030

31-
%% Lens data
32-
Lens.lambda = lambda*1e-6;
33-
Lens.surface_num = surface_num;
34-
Lens.distance = distance;
35-
Lens.material = material;
36-
Lens.y_radius = y_radius;
37-
Lens.aperture = aperture;
38-
3931
%% Source Setting
4032
lambda = lambda*1e-6; % nm -> mm
4133
[s_x, s_y, s_z, L, M, N] = light_source_setting(aperture,distance,cross_diameter_num,ang_x,ang_y);
@@ -49,6 +41,14 @@
4941
y_radius(end+1) = inf;
5042
end
5143

44+
%% Lens data
45+
Lens.lambda = lambda*1e-6;
46+
Lens.surface_num = surface_num;
47+
Lens.distance = distance;
48+
Lens.material = material;
49+
Lens.y_radius = y_radius;
50+
Lens.aperture = aperture;
51+
5252
%% Ray Tracing
5353
curvature = 1./y_radius;
5454
s_x_all = cell(1,numel(distance)); s_y_all = cell(1,numel(distance)); s_z_all = cell(1,numel(distance));

0 commit comments

Comments
 (0)