Surface
Description
Add-On Required: This feature requires the Optical Design and Simulation Library for Image Processing Toolbox add-on.
A Surface object specifies the properties of a surface in an
optical system, such as its shape and radius of curvature.
Creation
Create a Surface object using these options.
Use the
addRefractiveSurfaceobject function. Use this function to add at least two refractive surfaces, which constitute a lens element, as the next component of an optical system. You can specify their properties, such as shape, material, and aspheric coefficients, using name-value arguments. When you add two or more surfaces usingaddRefractiveSurface, you create aLensElementobject.Use the
addDiaphragmobject function. Use this function to add a diaphragm, which contains a surface, as the next component to an optical system. You can specify its properties, such as shape and semi-diameter, using name-value arguments.Use the
addMirrorobject function. Use this function to add a mirror, which contains a surface, as the next component to an optical system. You can specify its properties, such as shape, radius, and aspheric coefficients, using name-value arguments.Use the
addImagePlaneobject function. Use this function to add an image plane, which contains a surface, as the next component to an optical system. You can specify its properties, such as semi-diameter, using name-value arguments.Use the
optics.surface.Surfacefunction described here. Use this function when you want to create a surface without adding it to the optical system, or modify the properties of a surface already in the system. After creating the object, you can specify the surface properties by modifying the properties of the object.
Description
creates a
rsurf = optics.surface.SurfaceSurface object with default properties.
sets writeable properties using one or more name-value arguments.rsurf = optics.surface.Surface(PropertyName=Value)
Example: optics.surface.Surface(Radius=10) creates a
Surface object representing a surface with a radius of
10.
Properties
Examples
Version History
Introduced in R2026a
