Optical Layout Example -- Beam Expander

Contents

Basic Example

% Use "sub-shapes" to specify the launch parameters and lens
% parameters, but do not draw anything yet.
LAUNCH = davinci( 'optical_layout.beam_launch', 'Position',        [0 0], ...
                                                'Direction',       [1 0], ...
                                                'BeamWidth',           2, ...
                                                'BeamLineWidth',       2 );
L1 = davinci( 'optical_layout.lens', 'DistanceToFocus',     3, ...
                                     'LineWidth',           2 );
L2 = davinci( 'optical_layout.lens', 'DistanceToFocus',   Inf, ...
                                     'LineWidth',           2 );
% Use the ">" operator to merge the "sub-shape" parameters
% with the travel distances.  Do not draw anything yet.
LAYOUT = LAUNCH > 5 > L1 > 10 > L2 > 5.5;
% Draw the layout.
davinci( 'optical_layout', 'Layout', LAYOUT );
daspect([1 1 1])   % Set aspect ratio to 1:1.

Unannotated Figure