Navigation: Scripting Reference Manual > Functions & Subroutines > ImpSampGetEntity

 

ImpSampGetEntity

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the identifier of the target entity for an importance sampling specification of type "Scatter rays toward an entity".

 

Syntax

ImpSampGetEntity n, indx, entity

 

Parameters

ByVal n As Long

Node number of the surface.

 

indx As Long

The index (zero based) of the importance sampling specification.

 

entity As Long

Returns the node number of the entity the rays scatter towards.

 

Remarks

This subroutine retrieves the identifier of the target entity for an importance sampling specification of type "Scatter rays toward an entity". If the importance sampling specification is not an entity, or if there is another problem, the subroutine sets an error and returns without modifying entity.

 

See Also

ImpSampAddEntity

ImpSampSetEntity

Examples

Importance Samples

 

 

 

 

 

 

Copyright © Photon Engineering, LLC