Navigation: Scripting Reference Manual > Functions & Subroutines > ReverseRays

 

ReverseRays

 

Contact Us: fredsupport@photonengr.com

 

Description

Reverses the directions of all active rays on the specified entity and moves the rays a specified distance along their reversed directions.  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 = ReverseRays ( n, offset )

 

 

Parameters

count (Long or Huge_)

Number of rays whose trajectories have been reversed.

 

n As Long

Node number of entity on which rays are located.

 

offset As Double

Distance ray is moved away from specified entity. This distance is measured along the new trajectory and |offset| > 0.

 

See Also

ReverseRay

GetRay

SetRay

 

 

 

 

 

Copyright © Photon Engineering, LLC