Navigation: Scripting Reference Manual > Functions & Subroutines > GetRayEntity

 

GetRayEntity

 

Contact Us: fredsupport@photonengr.com

 

Description

Returns the identifier of the entity that the specified ray is currently on.  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

n = GetRayEntity ( id )

 

Parameters

n (Long)

Node number of the entity that the ray is currently on.

 

id As Long (or Huge_)

Identifier for the ray.

 

Remarks

This function returns the identifier of the entity that the specified ray is currently on.  If there is a problem, the function posts an error and returns a value of -1.

 

See Also

AddRay

GetRay

SetRay

GetRayPathLength

GetRayIntersects

GetRayParent

Examples

Raydata GetSet

 

 

 

 

 

Copyright © Photon Engineering, LLC