Navigation: Scripting Reference Manual > Functions & Subroutines > DeleteSourceUserRays

 

DeleteSourceUserRays

 

Contact Us: fredsupport@photonengr.com

 

Description

Deletes a specific number of user rays from a specified source with user ray positions.  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

raysLeft = DeleteSourceUserRays ( n, rayNum, count )

 

Parameters

raysLeft (Long or Huge_)

The number of rays left after the function finishes.

 

n As Long

Node number of the source.

 

rayNum As Long (or Huge_)

The index (zero based) into the user-defined rays list at which FRED starts deleting.

 

count As Long (or Huge_)

The number of rays to delete.

 

Remarks

This function deletes a specific number of user rays from a specified source. If there is a problem the function returns -1 and does not set an error.

 

See Also

T_SOURCEUSERRAY

AddSourceUserRay

AddSourceUserRays

DeleteSourceIthUserRay

GetSourceUserRayCount

SetSourceIthUserRay

GetSourceIthUserRay

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC