Navigation: Scripting Reference Manual > Functions & Subroutines > SetPolarization

 

SetPolarization

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the polarization state of a specified ray in the Ray Buffer.  Depending on the number of rays traced, it may be necessary to dimension ray index and ray counter variables as data type Huge_ instead of Long.  Please see Multi-threaded Raytracing for more information.

 

Syntax

SetPolarization id, polar

 

Parameters

id As Long (or Huge_)

Identifier of the ray.

 

polar As T_POLARIZE

Structure containing the polarization state of the ray.

 

Remarks

This subroutine sets the polarization state of a specified ray in the Ray Buffer.  If there is a problem, the subroutine posts an error and returns without changing the ray.

 

See Also

T_POLARIZE

SetPolarization2

SetRayDirection

SetRayPower

SetRayWavelength

Examples

Raydata GetSet

 

 

 

 

 

Copyright © Photon Engineering, LLC