Navigation: Scripting Reference Manual > Functions & Subroutines > AddSourceUserRays

 

AddSourceUserRays

 

Contact Us: fredsupport@photonengr.com

 

Description

Appends a ray to a specific user-defined rays list of a detailed source model.  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

numRays = AddSourceUserRays ( n, rays )

 

Parameters

numRays (Long or Huge_)

The total number of rays in the source.

 

n (Long)

Node number of the source.

 

rays As T_SOURCEUSERRAY

Structure containing ray data to add to the source.

 

Remarks

This function appends a ray to a specific User-defined source. If there is a problem, the function sets an error and returns -1.

 

See Also

T_SOURCEUSERRAY

AddSourceUserRay

GetSourceUserRayCount

SetSourceIthUserRay

GetSourceIthUserRay

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC