Navigation: Scripting Reference Manual > Functions & Subroutines > SetSourceDirApodIsotropic

 

SetSourceDirApodIsotropic

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the power data from a source with an "Inverse Lambertian in a given direction" power direction apodization type.

 

Syntax

SetSourceDirApodIsotropic n, x, y, z, cosThreshold

 

Parameters

n As Long

Node number of the source.

 

dirX As Double

The new X component of the direction vector.

 

dirY As Double

The new Y component of the direction vector.

 

dirZ As Double

The new Z component of the direction vector.

 

cosThreshold As Double

The limiting angle, a value greater than or equal to 0° and less than 90°.

 

 

Remarks

This subroutine sets the power data from a source with an "Inverse Lambertian in a given direction" power direction apodization type.  The direction vector (x,y,z) specifies the reference direction and is typically (0,0,1). If there is a problem the subroutine returns without modifying the source or setting an error.

 

See Also

GetSourceDirApodIsotropic

IsSourceDirApodIsotropic

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC