Description Retrieves the identifier of the Optical Source that generated the specified ray. 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 nSource = GetRaySource ( id )
Parameters nSource (Long) Node number of the Optical Source that generated the ray.
id As Long (or Huge_) Identifier for a specific ray.
Remarks This function retrieves the identifier of the Optical Source that generated a specific ray. If there is a problem, the function toggles an error and returns a value of -1.
See Also Examples
|