Navigation: Scripting Reference Manual > Functions & Subroutines > SetLensBending

 

SetLensBending

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the bending parameter for a specific singlet lens.

 

Syntax

SetLensBending n, bend

 

Parameters

n As Long

Node number of the singlet.

 

bend As Double

The new bending parameter for the singlet.

 

Remarks

This subroutine sets the bending parameter for a specific singlet lens.  The bending factor specifies the shape of a lens.  It can take on any value with common values being +1 (convex-plano, i.e. the back surf is flat), 0 (front and back surfs have equal and opposite, i.e. equi-convex), -1 (plano-convex, i.e. the front surface is flat).  Values outside the range of -1 to +1 are uncommon. If there is a problem the function sets an error and returns without modifying the singlet.

 

See Also

GetLensBending

GetLensFocalLen

SetLensFocalLen

Examples

Elements

 

 

 

 

 

Copyright © Photon Engineering, LLC