Navigation: Scripting Reference Manual > Functions & Subroutines > ReadRaysFromFRBSFileToRayBuffer

 

ReadRaysFromFRBSFileToRayBuffer

 

Contact Us: fredsupport@photonengr.com

 

Description

Reads ray data from a *.frbs file into the active 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 = ReadRaysFromFRBSFileToRayBuffer ( fname, rayapnd )

 

Parameters

count (Long or Huge_)

Number of rays read.

 

fname As String

Ray data file name.

 

rayapnd As Boolean

Flag to append read data (True or False).

 

Remarks

Reads ray data from a FredRayBufferSerialize ray data format into the active ray buffer. Ray data is saved using the command WriteRaysFromRayBufferToFRBSFile.

 

See Also

WriteRaysFromRayBufferToFRBSFile

Ray Import

ReadBasicRayDataFromFile

WriteBasicRayDataToFCRFile

ReadSourceUserRays

ReadSourceUserRays2

SetSourcePosImported

 

 

 

 

 

 

Copyright © Photon Engineering, LLC