Rectangular
Description
Add-On Required: This feature requires the Optical Design and Simulation Library for Image Processing Toolbox add-on.
A Rectangular object specifies a rectangular shape for a
surface represented by a Surface
object.
Creation
There are two ways to create a Rectangular object.
Use the
addRefractiveSurface,addDiaphragm, oraddMirrorfunction, and specify theRectangleSizename-value argument. Use one of these function when you want to add a surface to an optical system, and specify the surface shape, in a single command. TheRectangleSizename-value argument specifies that the surface is rectangular, as well as its dimensions.Use the
optics.shape.Rectangularfunction described here. Use this function when you want to modify the shape of a surface in an optical system, or specify the shape of a surface before you add it to the system. After creating theRectangularobject, you can specify the rectangular shape dimensions by modifying properties of the object.
To specify a circular surface, use the Circular
object, instead.
Syntax
Description
creates a rshape = optics.shape.RectangularRectangular object that represents a square surface shape
with a width and height of 1.
specifies a square cross-sectional boundary for a surface, with each side of length
rshape = optics.shape.Rectangular(length)length.
specifies a rectangular cross-sectional boundary for a surface, with dimensions
rshape = optics.shape.Rectangular(dim)dim.
Input Arguments
Properties
Version History
Introduced in R2026a