Navigation: Scripting Reference Manual > Data Structures > T_SOURCEPOSSURFACE

 

T_SOURCEPOSSURFACE

 

Contact Us: fredsupport@photonengr.com

 

Description

Data structure specifying a Random Surface Ray Position type 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_SOURCEPOSSURFACE

offsetDistance As Double
surfID As Long
numRays As Long (or Huge_)
directionSpec As String
startOnSurface As Boolean
reverseDirection As Boolean

End Type

 

Members

offsetDistance

Specifies the offset from the surface along the surface normal of ray starting positions.

 

surfID

Identifier of the surface on which to place the rays.

 

numRays

The number of rays that will be on the surface.

 

directionSpec

Specifies what direction the rays will travel in. May be one of the following:


'S' (for specifying along the Surface normal)
'I' (for specifying a random Isotropic direction)
'D' (for specifying a source ray Direction)
 

Any other value will result in the source having a random Lambertian direction.

 

startOnSurface

When True, starts the rays exactly on the surface before the offset.

 

reverseDirection

When True, reverses the ray directions.

 

 

Used as Parameter in

GetSourcePosSurface

SetSourcePosSurface

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC