Navigation: Scripting Reference Manual > Functions & Subroutines > GetRayCount

 

GetRayCount

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the number of rays in the ray buffer.  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

count = GetRayCount ()

 

Parameters

count (Long or Huge_)

Returns the number of rays in the buffer.

 

Remarks

This function retrieves the number of rays in the ray buffer.  If there is a problem, the function returns a value of 0 and does not set an error.

 

See Also

T_RAY

AddRay

GetRay

SetRay

Examples

General Raydata

 

 

 

 

 

Copyright © Photon Engineering, LLC