Navigation: Scripting Reference Manual > Functions & Subroutines > SetPolarization2

 

SetPolarization2

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the intrinsic quantities of 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

SetPolarization2 id, polar

 

Parameters

id As Long (or Huge_)

Identifier of the ray.

 

polar As T_POLARIZE2

Structure containing the new intrinsic polarization data for the ray.

 

Remarks

This subroutine sets the intrinsic quantities of 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_POLARIZE2

T_POLARIZE

SetPolarization

SetRayDirection

SetRayPower

SetRayWavelength

Examples

Raydata GetSet

 

 

 

 

 

Copyright © Photon Engineering, LLC