Navigation: Scripting Reference Manual > Functions & Subroutines > IsDiffractingSurface

 

IsDiffractingSurface

 

Contact Us: fredsupport@photonengr.com

 

Description

Determines if an surface has a diffraction grating assigned to it or not.

 

Syntax

diffracts = IsDiffractingSurface ( n )

 

Parameters

diffracts (Boolean)

True if the surface diffracts, False otherwise.

 

n As Long

Node number of the surface.

 

Remarks

This function determines if a surface has a diffraction grating assigned to it or not.  If there is a problem, the function sets an error and returns False.

 

See Also

GetDiffractOrderCount

GetDiffractWavelengthCount

SetDiffractEfficiencyTable

SetDiffractHOE

SetDiffractLinear

SetDiffractNone

Examples

Gratings

 

 

 

 

 

Copyright © Photon Engineering, LLC