Navigation: Scripting Reference Manual > Functions & Subroutines > ImpSampGetPos

 

ImpSampGetPos

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the attributes of a particular Importance Sampling specification of type "Scatter rays toward a point".

 

Syntax

ImpSampGetPos n, indx, angle, x, y, z, entity

 

Parameters

n As Long

Node number of the surface.

 

indx As Long

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

 

angle As Double

Returns the semi-angle (in degrees) of the solid angle cone.

 

x As Double

Returns the X component of the position vector.

 

y As Double

Returns the Y component of the position vector.

 

z As Double

Returns the Z component of the position vector.

 

entity As Long

Node number of the FRED entity whose coordinate system will be used to orient x, y, and z.

 

Remarks

This subroutine retrieves the attributes of a particular Importance Sampling specification of type "Scatter rays toward a point". If the type is not Pos, or if there is another problem, the subroutine returns without modifying the parameters or setting an error.

 

See Also

ImpSampAddPos

ImpSampSetPos

Examples

Importance Sampling

 

 

 

 

 

Copyright © Photon Engineering, LLC