Navigation: Scripting Reference Manual > Data Structures > T_SOURCEDIRRANGE

 

T_SOURCEDIRRANGE

 

Contact Us: fredsupport@photonengr.com

 

Description

Data structure for specification of Ray Directions directed into an angular range for a source.  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.

 

Definition

Type T_SOURCEDIRRANGE

ZdirX As Double
ZdirY As Double
ZdirZ As Double
XdirX As Double
XdirY As Double
XdirZ As Double
semiApeX As Double
semiApeY As Double

innerSemiApeX As Double

innerSemiApeY As Double

rayDirCount As Long (or Huge_)
isElliptical As Boolean
isLambertian As Boolean

End Type

 

Members

ZdirX

The X component of the forward direction vector.

 

ZdirY

The Y component of the forward direction vector.

 

ZdirZ

The Z component of the forward direction vector.

 

XdirX

The X component of the local X direction vector.

 

XdirY

The Y component of the local X direction vector.

 

XdirZ

The Z component of the local X direction vector.

 

semiApeX

The Semi-angle spread in X, measured in degrees between 0 and 90.

 

semiApeY

The Semi-angle spread in Y, measured in degrees between 0 and 90.

 

innerSemiApeX

The Semi-angle spread in X of the cone hole obscuration, measured in degrees between 0 and 90.

 

innerSemiApeY

The Semi-angle spread in Y of the cone hole obscuration, measured in degrees between 0 and 90.

 

rayDirCount

The number of ray directions per ray position.

 

isElliptical

The shape of the solid angle. Set to True for elliptical, False for rectangular.

 

isLambertian

The angular distribution type. Set to True for Lambertian, False for Isotropic.

 

 

Used as Parameter in

GetSourceDirRange

SetSourceDirRange

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC