Navigation: Scripting Reference Manual > Functions & Subroutines > GetRayInitialPower

 

GetRayInitialPower

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the initial power in a 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

power = GetRayInitialPower ( id )

 

Parameters

power (Double)

The initial power of a ray, or 0.0 if there is a problem.

 

id As Long (or Huge_)

The identifier of the ray.

 

Remarks

This function retrieves the initial power in a specified ray.  If there is a problem, the function sets an error and returns 0.0.

 

The initial power is the power of the ray when it was first created.

 

See Also

GetRayConsecutiveIntersects

GetRayPath

GetRaySourceRayNumber

ReadRayFile

Examples

 

 

 

 

 

Copyright © Photon Engineering, LLC