Navigation: Scripting Reference Manual > Functions & Subroutines > SetSourceDirGridHex

 

SetSourceDirGridHex

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the ray direction data for a source with a hexagonal grid of points in angle space ray direction.

 

Syntax

SetSourceDirGridHex n, cellSemiAng, polarAngleStart, polarAngEnd, azmuthAngStart, azmuthAngEnd

 

Parameters

n As Long

Node number of the source.

 

cellSemiAng As Double

The new angular radius of the first hexagonal cell, in degrees.

 

polarAngStart As Double

The new starting polar angle, a value in degrees between 0° and 179°, inclusive.

 

polarAngEnd As Double

The new stopping polar angle, a value in degrees between polarAngleStart and 180°, inclusive.

 

azmuthAngStart As Double

The new starting azimuth angle, a value in degrees between -180° and 179°, inclusive.

 

azmuthAngEnd As Double

The new stopping azimuth angle, a value in degrees between azmuthAngStart and azmuthAngStart+360°, exclusive.

 

Remarks

This subroutine sets the ray direction data for a source with a hexagonal grid points in angle space ray direction. If there is a problem the subroutine returns without setting an error or modifying the source.

 

See Also

IsSourceDirGridHex

GetSourceDirGridHex

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC