RayBundle
Description
Add-On Required: This feature requires the Optical Design and Simulation Library for Image Processing Toolbox add-on.
A RayBundle object stores information on the rays traced through
the optical system from a single field point at a specific wavelength.
Creation
Create a RayBundle object by using the traceRays,
traceChiefRay, or
traceMarginalRays
function to trace rays through an optical system.
Properties
This property is read-only.
Field point representation of the light source, represented as one of these values.
FieldPoint Value | Field Point Type |
|---|---|
| Field point represents a light source that is at an infinite distance. |
| Field point represents a light source that is at a finite distance. |
This property is read-only.
Wavelength for which the rays are traced, represented as a positive numeric scalar. Units are in nanometers.
This property is read-only.
Sampling configuration, represented as a structure with these fields.
| Field | Value |
|---|---|
Grid | Sampling grid, represented as a samplingGrid object. |
Type | Sampling surface, represented as one of these options.
|
This property is read-only.
Ray data from rays traced through the optical system, represented as a structure with these fields, which correspond to ray properties.
| Field | Value |
|---|---|
| Number of traced rays, represented as a nonnegative integer. |
| Maximum number of straight-line ray segments that any single ray can have as it passes through the optical system, represented as a nonnegative integer. |
| Length of each ray, represented as a |
Origin | Origin of the ray in the global coordinate system, represented as a
|
HitPoints | Ray intersection coordinates in the global coordinate system,
represented as a
Note If a ray terminates before reaching |
| Ray direction vectors at each segment, represented as a
Note If a ray terminates before reaching |
TerminationMode | Ray termination, represented as a
|
LastRayDirection | Final direction vector of each ray, represented as a
|
OrientedGrid | Grid coordinates of each ray, represented as a
|
To return one or more of these additional ray properties, specify the
RayProperties name-value argument of the traceRays,
traceChiefRay, or traceMarginalRays function.
| Field | Value |
|---|---|
| Surface normal vectors at ray intersection points, represented as a
Note If a ray terminates before reaching |
| Angle of incidence at each ray-surface intersection, represented as a
Note If a ray terminates before reaching |
| Optical path length (OPL), represented as a
Note If a ray terminates before reaching |
| Ray intersection coordinates in the local reference frame,
represented as a
Note If a ray terminates before reaching |
|
The s-polarized and p-polarized incident electric field vectors are perpendicular and parallel to the plane of incidence, respectively. Note For the |
PolarizationMatrices |
Note For the |
For more information about the global and local coordinate systems, see Coordinate Systems in Optical Design.
Version History
Introduced in R2026a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)