Navigation: Scripting Reference Manual > Functions & Subroutines > ReadBasicRayDataFromFile

 

ReadBasicRayDataFromFile

 

Contact Us: fredsupport@photonengr.com

 

Description

Read rays from a rayset file in any format supported by the "Read rays from a file and generate dynamically" ray positions type.  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

raycount = ReadBasicRayDataFromFile( fname, apnd, dwavelen )

 

Parameters

raycount (Long or Huge_)

Number of rays read from file.

 

fname As String

Rayset file name.

 

apnd As Boolean

True to append ray to rayset currently in ray buffer.

 

dwavelen As Double

Wavelength assigned to all imported rays.

 

 

See Also

WriteBasicRayDataToFCRFile

Ray Import

ReadRaysFromFRBSFileToRayBuffer

WriteRaysFromRayBufferToFRBSFile

ReadSourceUserRays

ReadSourceUserRays2

SetSourcePosImported

 

 

 

 

 

 

Copyright © Photon Engineering, LLC