Navigation: Scripting Reference Manual > Functions & Subroutines > GetRayPath

 

GetRayPath

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the index into the raypath list of the specified ray.  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

path = GetRayPath ( id )

 

Parameters

path (Long)

The index into the raypath list.

 

id As Long (or Huge_)

Identifier for the ray.

 

Remarks

This function retrieves the index into the ray path list of the specified ray.  If there is a problem, the function sets an error and returns -1.

 

See Also

GetRayConsecutiveIntersects

GetRayInitialPower

GetRaySourceRayNumber

ReadRayFile

Examples

Ray Path

 

 

 

 

 

Copyright © Photon Engineering, LLC